This is a good start. Many key features are working again!!!

This commit is contained in:
Scott Idem
2024-02-15 18:53:26 -05:00
parent 19f9983c9a
commit a3d4354ef4
20 changed files with 3513 additions and 101 deletions

View File

@@ -1,6 +1,11 @@
<script lang="ts">
import '../app.postcss';
import { AppShell, AppBar } from '@skeletonlabs/skeleton';
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';
// Highlight JS
import hljs from 'highlight.js/lib/core';
@@ -24,6 +29,9 @@ import { computePosition, autoUpdate, flip, shift, offset, arrow } from '@floati
import { storePopup } from '@skeletonlabs/skeleton';
storePopup.set({ computePosition, autoUpdate, flip, shift, offset, arrow });
// import { TESTING } from '$env/static/private';
// console.log(`Aether Config - TESTING:`, TESTING);
type key_val = {
[key: string]: any;
};
@@ -71,7 +79,7 @@ async function handle_get_data_store_obj_w_code({code, data_type='text'}) {
api_cfg: $ae_api,
data_store_code: code,
data_type: data_type,
log_lvl: 2
log_lvl: 0
})
.then(function (get_data_store_result) {
if (get_data_store_result) {
@@ -96,6 +104,10 @@ async function handle_get_data_store_obj_w_code({code, data_type='text'}) {
</script>
<Modal />
<Drawer />
<!-- App Shell -->
<AppShell>
<svelte:fragment slot="header">
@@ -108,13 +120,17 @@ async function handle_get_data_store_obj_w_code({code, data_type='text'}) {
</svelte:fragment>
OSIT's Aether App
<svelte:fragment slot="trail">
<a
<!-- <a
class="btn btn-sm variant-ghost-surface"
href="example">Example Page</a>
href="/testing">Testing Page</a> -->
<a
class="btn btn-sm variant-ghost-surface"
href="example">Example Page</a>
href="/sponsorships">Sponsorships</a>
<a
class="btn btn-sm variant-ghost-surface"
href="/event_speakers">Speakers</a>
</svelte:fragment>
</AppBar>