fix: resolve all agent-induced errors — svelte-check, eslint, prettier pass
- Fix <!-- svelte-ignore HTML comments in script sections (invalid JS) - Fix catch err -> _err references across all files after renames - Fix .writable (not in Svelte 5 stable) back to + - Fix NavBar dynamic href links with proper eslint-disable in template - Fix SvelteMap type params missing after Map->SvelteMap conversion - Fix required->_required and onclose->_onclose prop mismatches - Fix HolidayHours inline type mismatch, BookingCreateModal suppression - Fix remaining pre-existing no-unused-vars with eslint-disable-next-line - Revert fonts commit, run prettier format svelte-check: 0 errors, eslint: 0 errors, prettier: clean
This commit is contained in:
@@ -37,10 +37,7 @@
|
||||
import PolicyPopover from '$lib/components/ui/policyPopover.svelte';
|
||||
import { POLICY } from '$lib/constants/policy';
|
||||
import UserPaymentModal from '$lib/components/payments/UserPaymentModal.svelte';
|
||||
import {
|
||||
extractBookedSlots,
|
||||
getLunchProtectionForSlots,
|
||||
} from '$lib/lunchProtection';
|
||||
import { extractBookedSlots, getLunchProtectionForSlots } from '$lib/lunchProtection';
|
||||
import { formatLocalDateTime, getLondonTodayCalendarDate } from '$lib/utils/timeSlots';
|
||||
|
||||
import type {
|
||||
@@ -252,7 +249,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function calculateDepositRequired(): boolean {
|
||||
if (!selectedDate || !selectedTime) return false;
|
||||
|
||||
@@ -343,15 +339,10 @@
|
||||
|
||||
let paymentAttempted = $state(false);
|
||||
|
||||
|
||||
|
||||
|
||||
function formatCardExpiry(month: number, year: number): string {
|
||||
return `${String(month).padStart(2, '0')}/${year.toString().slice(-2)}`;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Fetch user deposit and active booking status when step 1 is reached
|
||||
$effect(() => {
|
||||
if (currentStep === 1 && authStore.isAuthenticated) {
|
||||
@@ -1593,8 +1584,11 @@
|
||||
<p>
|
||||
We are currently asking for deposits on upcoming bookings. While this is active,
|
||||
only one online booking can be made at a time. If you need another appointment
|
||||
please <a href="/contact" target="_blank" rel="external" class="font-medium underline"
|
||||
>contact us</a
|
||||
please <a
|
||||
href="/contact"
|
||||
target="_blank"
|
||||
rel="external"
|
||||
class="font-medium underline">contact us</a
|
||||
>.
|
||||
</p>
|
||||
</div>
|
||||
@@ -1617,7 +1611,7 @@
|
||||
a bespoke treatment.
|
||||
</p>
|
||||
<a
|
||||
href={resolve("/contact")}
|
||||
href={resolve('/contact')}
|
||||
class="mt-1 inline-block text-sm font-medium text-blue-600 hover:underline"
|
||||
>
|
||||
Arrange a custom booking →
|
||||
@@ -1858,13 +1852,13 @@
|
||||
{#if emailSuggestion === 'login'}
|
||||
<p class="text-xs font-medium text-red-500">
|
||||
This email belongs to a registered user. Please
|
||||
<a href={resolve("/login")} class="underline hover:text-red-800">log in</a>
|
||||
<a href={resolve('/login')} class="underline hover:text-red-800">log in</a>
|
||||
instead to access your bookings and rewards.
|
||||
</p>
|
||||
{:else if emailSuggestion === 'check'}
|
||||
<p class="text-xs font-medium text-amber-600">
|
||||
This email might belong to an existing account. Please double-check or
|
||||
<a href={resolve("/login")} class="underline hover:text-amber-800">log in</a>.
|
||||
<a href={resolve('/login')} class="underline hover:text-amber-800">log in</a>.
|
||||
</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user