Continuing to make updates to the Data Stores to use v3.
This commit is contained in:
@@ -6,8 +6,6 @@
|
|||||||
import type { key_val } from '$lib/stores/ae_stores';
|
import type { key_val } from '$lib/stores/ae_stores';
|
||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
import { api } from '$lib/api/api';
|
import { api } from '$lib/api/api';
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||||
|
|||||||
@@ -22,9 +22,6 @@
|
|||||||
|
|
||||||
import type { key_val } from '$lib/stores/ae_stores';
|
import type { key_val } from '$lib/stores/ae_stores';
|
||||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { api } from '$lib/api';
|
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
|
||||||
import Element_manage_event_file_li from '$lib/elements/element_manage_event_file_li.svelte';
|
import Element_manage_event_file_li from '$lib/elements/element_manage_event_file_li.svelte';
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
|
|||||||
@@ -24,9 +24,6 @@
|
|||||||
|
|
||||||
import type { key_val } from '$lib/stores/ae_stores';
|
import type { key_val } from '$lib/stores/ae_stores';
|
||||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { api } from '$lib/api';
|
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
|
||||||
import Element_manage_event_file_li from '$lib/elements/element_manage_event_file_li.svelte';
|
import Element_manage_event_file_li from '$lib/elements/element_manage_event_file_li.svelte';
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { api } from '$lib/api';
|
// import { api } from '$lib/api';
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
// import Element_data_store from '$lib/element_data_store_v3.svelte';
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/stores/ae_stores';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { api } from '$lib/api';
|
// import { api } from '$lib/api';
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
// import Element_data_store from '$lib/element_data_store_v3.svelte';
|
||||||
import Element_manage_hosted_file_li from '$lib/elements/element_manage_hosted_file_li.svelte';
|
import Element_manage_hosted_file_li from '$lib/elements/element_manage_hosted_file_li.svelte';
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { api } from '$lib/api';
|
// import { api } from '$lib/api';
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
||||||
import Element_data_store from '$lib/elements/element_data_store_v2.svelte';
|
import Element_data_store from '$lib/elements/element_data_store_v3.svelte';
|
||||||
|
|
||||||
import { liveQuery } from 'dexie';
|
import { liveQuery } from 'dexie';
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
|
|||||||
@@ -12,9 +12,7 @@
|
|||||||
|
|
||||||
import type { key_val } from '$lib/stores/ae_stores';
|
import type { key_val } from '$lib/stores/ae_stores';
|
||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { api } from '$lib/api';
|
|
||||||
import Element_ae_crud from '$lib/elements/element_ae_crud.svelte';
|
import Element_ae_crud from '$lib/elements/element_ae_crud.svelte';
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
|
||||||
|
|
||||||
import { core_func } from '$lib/ae_core/ae_core_functions';
|
import { core_func } from '$lib/ae_core/ae_core_functions';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
let { data }: Props = $props();
|
let { data }: Props = $props();
|
||||||
|
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
|
||||||
|
|
||||||
let lq__event_obj_li = $derived(
|
let lq__event_obj_li = $derived(
|
||||||
liveQuery(async () => {
|
liveQuery(async () => {
|
||||||
const account_id = $page.data.account_id;
|
const account_id = $page.data.account_id;
|
||||||
@@ -62,9 +60,6 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- <section
|
|
||||||
class="ae_events_pres_mgmt md:container h-full mx-auto"
|
|
||||||
> -->
|
|
||||||
|
|
||||||
<h2 class="h3">Presentation Management for {$ae_loc.account_name ?? 'Æ loading...'}</h2>
|
<h2 class="h3">Presentation Management for {$ae_loc.account_name ?? 'Æ loading...'}</h2>
|
||||||
|
|
||||||
@@ -104,10 +99,6 @@
|
|||||||
/> -->
|
/> -->
|
||||||
|
|
||||||
{#if $lq__event_obj_li}
|
{#if $lq__event_obj_li}
|
||||||
<!-- <div class="flex flex-row items-center justify-center">
|
|
||||||
<span class="fas fa-check text-green-500 mx-1"></span>
|
|
||||||
<span>Loaded</span>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
{#if $lq__event_obj_li.length}
|
{#if $lq__event_obj_li.length}
|
||||||
<ul class="space-y-2">
|
<ul class="space-y-2">
|
||||||
@@ -126,14 +117,6 @@
|
|||||||
<strong>
|
<strong>
|
||||||
{event_obj.name}
|
{event_obj.name}
|
||||||
</strong>
|
</strong>
|
||||||
<!-- <a
|
|
||||||
href="/events/{event_obj.event_id}"
|
|
||||||
class="btn btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500"
|
|
||||||
>
|
|
||||||
{ae_util.iso_datetime_formatter(event_obj.start_datetime, 'date_long')}
|
|
||||||
-
|
|
||||||
{event_obj.name}
|
|
||||||
</a> -->
|
|
||||||
{:else}
|
{:else}
|
||||||
<span>
|
<span>
|
||||||
<span class="fas fa-calendar-alt mx-1"></span>
|
<span class="fas fa-calendar-alt mx-1"></span>
|
||||||
@@ -145,11 +128,6 @@
|
|||||||
<strong>
|
<strong>
|
||||||
{event_obj.name}
|
{event_obj.name}
|
||||||
</strong>
|
</strong>
|
||||||
<!-- <button disabled class="btn btn-md preset-tonal-surface border border-surface-500">
|
|
||||||
{ae_util.iso_datetime_formatter(event_obj.start_datetime, 'date_long')}
|
|
||||||
-
|
|
||||||
{event_obj.name}
|
|
||||||
</button> -->
|
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -220,17 +198,4 @@
|
|||||||
<span class="fas fa-spinner fa-spin mx-1"></span>
|
<span class="fas fa-spinner fa-spin mx-1"></span>
|
||||||
<span>Loading...</span>
|
<span>Loading...</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- {/if} -->
|
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<!-- {:catch error}
|
|
||||||
<div class="text-red-800">
|
|
||||||
<span class="fas fa-exclamation-triangle text-xl"></span>
|
|
||||||
<span>Error: {error.message}</span>
|
|
||||||
</div>
|
|
||||||
{/await} -->
|
|
||||||
|
|
||||||
<!-- </section> -->
|
|
||||||
|
|
||||||
<style lang="postcss">
|
|
||||||
</style>
|
|
||||||
|
|||||||
@@ -16,14 +16,10 @@
|
|||||||
|
|
||||||
// *** Import Aether specific variables and functions
|
// *** Import Aether specific variables and functions
|
||||||
// import type { key_val } from '$lib/ae_stores';
|
// import type { key_val } from '$lib/ae_stores';
|
||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
// import { core_func } from '$lib/ae_core_functions';
|
||||||
import { ae_loc } from '$lib/stores/ae_stores';
|
import { ae_loc } from '$lib/stores/ae_stores';
|
||||||
|
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud
|
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
|
||||||
// import MyClipboard from '$lib/e_app_clipboard.svelte';
|
|
||||||
|
|
||||||
import { db_events } from '$lib/ae_events/db_events';
|
import { db_events } from '$lib/ae_events/db_events';
|
||||||
// import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
// import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -66,10 +66,8 @@
|
|||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
import { api } from '$lib/api/api';
|
import { api } from '$lib/api/api';
|
||||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
||||||
// import Element_data_store from '$lib/element_data_store_v2.svelte';
|
// import Element_data_store from '$lib/element_data_store_v3.svelte';
|
||||||
|
|
||||||
// import { core_func } from '$lib/ae_core_functions';
|
|
||||||
// import { db_core } from "$lib/db_core";
|
|
||||||
import {
|
import {
|
||||||
ae_snip,
|
ae_snip,
|
||||||
ae_loc,
|
ae_loc,
|
||||||
@@ -92,8 +90,6 @@
|
|||||||
import Menu_location_list_menu from './menu_location_list.svelte';
|
import Menu_location_list_menu from './menu_location_list.svelte';
|
||||||
import Menu_session_list_menu from './menu_session_list.svelte';
|
import Menu_session_list_menu from './menu_session_list.svelte';
|
||||||
|
|
||||||
// let slct_event_location_id: string = $state($events_slct.event_location_id);
|
|
||||||
|
|
||||||
// *** Functions and Logic
|
// *** Functions and Logic
|
||||||
|
|
||||||
$events_trigger = null;
|
$events_trigger = null;
|
||||||
|
|||||||
@@ -20,9 +20,9 @@
|
|||||||
// const dispatch = createEventDispatcher();
|
// const dispatch = createEventDispatcher();
|
||||||
|
|
||||||
import type { key_val } from '$lib/stores/ae_stores';
|
import type { key_val } from '$lib/stores/ae_stores';
|
||||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||||
import Element_ae_crud from '$lib/elements/element_ae_crud.svelte';
|
import Element_ae_crud from '$lib/elements/element_ae_crud.svelte';
|
||||||
import Element_data_store from '$lib/elements/element_data_store_v2.svelte';
|
import Element_data_store from '$lib/elements/element_data_store_v3.svelte';
|
||||||
|
|
||||||
let ae_promises: key_val = $state({});
|
let ae_promises: key_val = $state({});
|
||||||
// let ae_tmp: key_val = {};
|
// let ae_tmp: key_val = {};
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
import { events_func } from '$lib/ae_events_functions';
|
import { events_func } from '$lib/ae_events_functions';
|
||||||
|
|
||||||
import Element_ae_crud from '$lib/elements/element_ae_crud.svelte';
|
import Element_ae_crud from '$lib/elements/element_ae_crud.svelte';
|
||||||
import Element_data_store from '$lib/elements/element_data_store_v2.svelte';
|
import Element_data_store from '$lib/elements/element_data_store_v3.svelte';
|
||||||
import Comp__events_menu_nav from '../ae_comp__events_menu_nav.svelte';
|
import Comp__events_menu_nav from '../ae_comp__events_menu_nav.svelte';
|
||||||
import Comp__pres_mgmt_menu_opts from '../ae_comp__events_menu_opts.svelte';
|
import Comp__pres_mgmt_menu_opts from '../ae_comp__events_menu_opts.svelte';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user