Done for the night!
This commit is contained in:
@@ -4,8 +4,13 @@ import '../app.postcss';
|
||||
import { AppShell, AppBar, initializeStores } from '@skeletonlabs/skeleton';
|
||||
// Initialize the stores for Drawer, Modal, and Toast so they work throughout the app.
|
||||
initializeStores();
|
||||
import { Drawer, Modal } from '@skeletonlabs/skeleton';
|
||||
import type { ModalSettings, ModalComponent, ModalStore } from '@skeletonlabs/skeleton';
|
||||
import { Drawer, Modal, getDrawerStore } from '@skeletonlabs/skeleton';
|
||||
// import type {
|
||||
// DrawerSettings, DrawerComponent, DrawerStore,
|
||||
// // ModalSettings, ModalComponent, ModalStore
|
||||
// } from '@skeletonlabs/skeleton';
|
||||
const drawerStore = getDrawerStore();
|
||||
|
||||
|
||||
// Highlight JS
|
||||
import hljs from 'highlight.js/lib/core';
|
||||
@@ -42,6 +47,8 @@ console.log(api);
|
||||
console.log($ae_loc, $ae_sess, $ae_api);
|
||||
|
||||
|
||||
import Edit_sponsorship_obj from './sponsorships/10_edit__sponsorship_obj.svelte';
|
||||
|
||||
// const ae_loc_test_store: Writable<string> = localStorageStore('ae_loc_test', {'test': 'This is a test'});
|
||||
// // Subscribe to the store
|
||||
// ae_loc_test_store.subscribe(() => {});
|
||||
@@ -106,7 +113,25 @@ async function handle_get_data_store_obj_w_code({code, data_type='text'}) {
|
||||
|
||||
<Modal />
|
||||
|
||||
<Drawer />
|
||||
|
||||
<Drawer>
|
||||
{#if $drawerStore.id === 'example-1'}
|
||||
(show 'example-1' contents)
|
||||
{:else if $drawerStore.id === 'example-2'}
|
||||
(show 'example-2' contents)
|
||||
{:else if $drawerStore.id === 'sponsorships__edit'}
|
||||
(show 'sponsorships__edit__sponsorship_obj' contents)
|
||||
<section class="sponsorships_editing">
|
||||
{#if $slct.sponsorship_obj && $ae_loc.mod.sponsorships.show_edit__sponsorship_obj}
|
||||
<p>Edit!</p>
|
||||
<Edit_sponsorship_obj />
|
||||
{/if}
|
||||
</section>
|
||||
{:else}
|
||||
(fallback contents)
|
||||
{/if}
|
||||
</Drawer>
|
||||
|
||||
|
||||
<!-- App Shell -->
|
||||
<AppShell>
|
||||
|
||||
Reference in New Issue
Block a user