Lot of updates to Svelte 5 syntax
This commit is contained in:
@@ -1,28 +1,32 @@
|
||||
<script lang="ts">
|
||||
interface Props {
|
||||
// export let slct_event_presenter_id: string;
|
||||
lq__event_presenter_obj: any; // This is not actually the LiveQuery object. This was pulled from the list of presenters for a presentation. With Svelte 5 this should not matter.
|
||||
}
|
||||
|
||||
let { lq__event_presenter_obj }: Props = $props();
|
||||
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
import { api } from '$lib/api';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
// import { api } from '$lib/api';
|
||||
|
||||
import { liveQuery } from "dexie";
|
||||
|
||||
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { db_events } from "$lib/ae_events/db_events";
|
||||
import { events_loc, events_sess, events_slct, events_trigger } from '$lib/ae_events_stores';
|
||||
import { events_func } from '$lib/ae_events_functions';
|
||||
// import { events_func } from '$lib/ae_events_functions';
|
||||
|
||||
import Event_launcher_file_cont from './launcher_file_cont.svelte';
|
||||
|
||||
// export let slct_event_presentation_id: string;
|
||||
// export let slct_event_presenter_id: string;
|
||||
export let lq__event_presenter_obj: any; // This is not actually the LiveQuery object. This was pulled from the list of presenters for a presentation. With Svelte 5 this should not matter.
|
||||
|
||||
let ae_promises: key_val = {
|
||||
get_li__event_file: null,
|
||||
};
|
||||
|
||||
// Event File
|
||||
$: lq__event_file_obj_li = liveQuery(async () => {
|
||||
let lq__event_file_obj_li = $derived(liveQuery(async () => {
|
||||
let results = await db_events.files
|
||||
// .where('event_session_id_random')
|
||||
.where('for_id_random')
|
||||
@@ -30,13 +34,13 @@ $: lq__event_file_obj_li = liveQuery(async () => {
|
||||
.reverse()
|
||||
.sortBy('created_on')
|
||||
return results;
|
||||
});
|
||||
}));
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<strong>
|
||||
{#if lq__event_presenter_obj?.given_name && lq__event_presenter_obj?.given_name != 'Group' }
|
||||
{#if lq__event_presenter_obj?.given_name && lq__event_presenter_obj?.given_name != 'Group'}
|
||||
<span class="fas fa-user"></span>
|
||||
{lq__event_presenter_obj?.full_name}
|
||||
{:else if lq__event_presenter_obj?.given_name == 'Group'}
|
||||
@@ -55,7 +59,7 @@ $: lq__event_file_obj_li = liveQuery(async () => {
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
{#if $lq__event_file_obj_li && $lq__event_file_obj_li.length }
|
||||
{#if $lq__event_file_obj_li && $lq__event_file_obj_li.length}
|
||||
<section class="event_session_file_list">
|
||||
<div>
|
||||
<div class="text-xs"><strong>
|
||||
|
||||
Reference in New Issue
Block a user