chore: apply prettier formatting and fix lint errors

This commit is contained in:
codenamewont
2026-06-15 09:25:01 +09:00
parent 063a193396
commit 84c8a0aac9
29 changed files with 1421 additions and 471 deletions

View File

@@ -1,8 +1,5 @@
<script>
let {
enPlainText = '',
koPlainText = ''
} = $props();
let { enPlainText = '', koPlainText = '' } = $props();
/** @type {'ko' | 'en'} */
let activeLang = $state('ko');
@@ -61,10 +58,14 @@
rows={4}
value={activeText}
oninput={handleInput}
aria-label={activeLang === 'ko' ? '꽃집 주문 멘트 (한국어)' : 'Florist order message (English)'}
aria-label={activeLang === 'ko'
? '꽃집 주문 멘트 (한국어)'
: 'Florist order message (English)'}
></textarea>
{:else}
<p class="min-w-0 flex-1 text-sm text-muted">Complete the flow to generate your order message.</p>
<p class="min-w-0 flex-1 text-sm text-muted">
Complete the flow to generate your order message.
</p>
{/if}
<div class="flex shrink-0 flex-col items-stretch gap-2">

View File

@@ -1,5 +1,6 @@
<script>
import { onMount } from 'svelte';
import { SvelteMap } from 'svelte/reactivity';
import { env } from '$env/dynamic/public';
let {
@@ -23,8 +24,8 @@
let mapInstance = $state(null);
/** @type {ReturnType<typeof window.kakao.maps.InfoWindow> | null} */
let infoWindow = null;
/** @type {Map<string, { marker: ReturnType<typeof window.kakao.maps.Marker>; shop: (typeof shops)[number] }>} */
let shopMarkerMap = new Map();
/** @type {SvelteMap<string, { marker: ReturnType<typeof window.kakao.maps.Marker>; shop: (typeof shops)[number] }>} */
let shopMarkerMap = new SvelteMap();
function relayoutMap() {
mapInstance?.relayout?.();
@@ -226,9 +227,7 @@
{mapError}
</div>
{:else if !mapReady}
<div
class="absolute inset-0 flex items-center justify-center bg-track text-sm text-muted"
>
<div class="absolute inset-0 flex items-center justify-center bg-track text-sm text-muted">
Loading map...
</div>
{/if}

View File

@@ -71,10 +71,12 @@
{/if}
<div class="flex min-h-0 flex-1 flex-col gap-6 px-6 pb-8 md:px-10 lg:flex-row lg:px-12 lg:pb-10">
<div class="relative flex min-h-64 flex-1 flex-col overflow-hidden border border-line lg:min-h-0">
<div
class="relative flex min-h-64 flex-1 flex-col overflow-hidden border border-line lg:min-h-0"
>
<KakaoMap
initialLat={initialLat}
initialLng={initialLng}
{initialLat}
{initialLng}
{shops}
selectedId={selectedShopId}
{fitBounds}
@@ -96,7 +98,7 @@
{#if loading && shops.length === 0}
<p class="text-sm text-muted">Searching for flower shops...</p>
{:else}
<ShopList shops={shops} bind:selectedId={selectedShopId} onselect={handleShopSelect} />
<ShopList {shops} bind:selectedId={selectedShopId} onselect={handleShopSelect} />
{/if}
</div>
</div>