From 186923671d9f7be8bd8b6599bd33db8f961d0cb8 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 17 Sep 2025 13:40:57 -0400 Subject: [PATCH] Finally working on the Launcher piece again. Getting it updated to match the standards for everything else. --- .../(launcher)/launcher/+layout.svelte | 9 +- .../(launcher)/launcher_menu.svelte | 42 +++-- .../(launcher)/menu_location_list.svelte | 155 ++++++++++++++++++ .../(launcher)/menu_session_list.svelte | 37 +++-- 4 files changed, 212 insertions(+), 31 deletions(-) create mode 100644 src/routes/events/[event_id]/(launcher)/menu_location_list.svelte diff --git a/src/routes/events/[event_id]/(launcher)/launcher/+layout.svelte b/src/routes/events/[event_id]/(launcher)/launcher/+layout.svelte index 0d1f9059..455acbc4 100644 --- a/src/routes/events/[event_id]/(launcher)/launcher/+layout.svelte +++ b/src/routes/events/[event_id]/(launcher)/launcher/+layout.svelte @@ -667,18 +667,21 @@ $effect(() => { {#await ae_promises[slct_event_location_id]} {:then result} @@ -234,7 +253,7 @@ let ae_promises: key_val = $state({ {/if} -{/if} +{/if} --> @@ -277,6 +296,7 @@ let ae_promises: key_val = $state({ {/if} diff --git a/src/routes/events/[event_id]/(launcher)/menu_location_list.svelte b/src/routes/events/[event_id]/(launcher)/menu_location_list.svelte new file mode 100644 index 00000000..348e440b --- /dev/null +++ b/src/routes/events/[event_id]/(launcher)/menu_location_list.svelte @@ -0,0 +1,155 @@ + + + +
+ {#if $lq__event_location_obj_li && $lq__event_location_obj_li.length > 0} +
+ + Location: + + ({$lq__event_location_obj_li?.length}×) + + + + {#await ae_promises[slct_event_location_id]} + + {:then result} + + {/await} + +
+ + + {:else} +
+ No locations found. + +
+ {/if} +
\ No newline at end of file diff --git a/src/routes/events/[event_id]/(launcher)/menu_session_list.svelte b/src/routes/events/[event_id]/(launcher)/menu_session_list.svelte index 05860626..04cd812c 100644 --- a/src/routes/events/[event_id]/(launcher)/menu_session_list.svelte +++ b/src/routes/events/[event_id]/(launcher)/menu_session_list.svelte @@ -3,12 +3,14 @@ interface Props { data_url: any; // export let lq__event_session_obj: any; lq__event_session_obj_li: any; + slct_event_session_id: string|null; log_lvl?: number; } let { data_url, lq__event_session_obj_li, + slct_event_session_id = null, log_lvl = $bindable(0), }: Props = $props(); @@ -38,16 +40,10 @@ let ae_promises: key_val = $state({ let hover_timer_wait = 1000; let hover_timer: any = $state(null); + - - -
{#if $lq__event_session_obj_li && $lq__event_session_obj_li.length > 0} -
+
+ Sessions: - {#if $ae_loc.administrator_access} - ({$lq__event_session_obj_li?.length}×) - {/if} + + ({$lq__event_session_obj_li?.length}×) + + {#await ae_promises.slct_event_session_id} {:then result} {/await} -
+
+
+
    @@ -80,7 +80,7 @@ let hover_timer: any = $state(null); $events_slct.event_session_id = null; await tick(); - // $events_slct.event_session_id = event_session_obj?.id; + slct_event_session_id = event_session_obj?.id; $events_slct.event_session_id = event_session_obj?.id; data_url.searchParams.set('session_id', event_session_obj?.id); $events_slct.event_session_obj = event_session_obj; @@ -144,9 +144,9 @@ let hover_timer: any = $state(null); text-sm w-full max-w-full text-left - transition-all rounded-md - flex flex-row justify-between items-center + flex flex-row items-center justify-start + transition-all " class:preset-filled-primary-500={$events_slct.event_session_id === event_session_obj?.id} class:preset-tonal-secondary={$events_slct.event_session_id != event_session_obj?.id} @@ -157,8 +157,9 @@ let hover_timer: any = $state(null); class:dim={event_session_obj?.hide} title={event_session_obj?.name} > + {#if $events_slct.event_session_id === event_session_obj?.id} @@ -177,9 +178,11 @@ let hover_timer: any = $state(null); {ae_util.iso_datetime_formatter(event_session_obj?.start_datetime, $events_loc.launcher.time_format)} - + + {event_session_obj?.name} + {/each}