Sponsorships and Speakers are working and looking pretty well. Other general clean up.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import '../app.postcss';
|
||||
|
||||
import { AppShell, AppBar, initializeStores } from '@skeletonlabs/skeleton';
|
||||
@@ -44,16 +45,10 @@ 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;
|
||||
};
|
||||
|
||||
import { api } from '$lib/api';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
// console.log(api);
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
console.log($ae_loc, $ae_sess, $ae_api);
|
||||
|
||||
|
||||
@@ -63,6 +58,18 @@ export let data;
|
||||
console.log(`ae_ Svelte +Layout page data:`, data);
|
||||
|
||||
|
||||
onMount(() => {
|
||||
console.log('Root: +layout.svelte');
|
||||
if ($ae_loc.iframe) {
|
||||
console.log('Use iframe layout!');
|
||||
|
||||
document.getElementsByTagName('html')[0].classList.add('iframe');
|
||||
document.getElementsByTagName('html')[0].classList.remove('dark');
|
||||
document.getElementsByTagName('html')[0].classList.remove('light');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// $ae_loc = data;
|
||||
|
||||
// const ae_loc_test_store: Writable<string> = localStorageStore('ae_loc_test', {'test': 'This is a test'});
|
||||
@@ -134,7 +141,7 @@ async function handle_get_data_store_obj_w_code({ code=null, data_type='text', t
|
||||
}
|
||||
|
||||
$slct_trigger = 'set_access_code_li';
|
||||
$: if ($slct_trigger == 'set_access_code_li' && $ae_loc.ds['hub__page__access_code_li_json']) {
|
||||
$: if ($slct_trigger == 'set_access_code_li' && !$ae_loc.ds['hub__page__access_code_li_json']) {
|
||||
console.log(`$ae_loc.ds['hub__page__access_code_li_json'] = `, $ae_loc.ds['hub__page__access_code_li_json']);
|
||||
$slct_trigger = null; // Reset the trigger to prevent loops
|
||||
|
||||
@@ -218,6 +225,7 @@ $: if ($slct_trigger == 'set_access_code_li' && $ae_loc.ds['hub__page__access_co
|
||||
|
||||
<!-- App Shell -->
|
||||
<AppShell
|
||||
regionPage={($ae_loc.iframe ? 'iframe' : '')}
|
||||
slotHeader={($ae_loc.iframe ? 'iframe' : '')}
|
||||
slotFooter={($ae_loc.iframe ? 'iframe' : '')}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user