Starting to switch pages to Runes mode....

This commit is contained in:
Scott Idem
2024-12-03 15:27:28 -05:00
parent c34e62a0c5
commit b3dfb5deec
4 changed files with 167 additions and 193 deletions

View File

@@ -1,15 +1,22 @@
<script lang="ts">
/** @type {import('./$types').LayoutData} */
export let data: any;
// import { browser } from '$app/environment';
let log_lvl = 1;
if (log_lvl > 1) {
let log_lvl = 0;
if (log_lvl) {
console.log(`ae_idaa_archives +layout.svelte data:`, data);
}
// *** Import Aether specific variables and functions
import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';
import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_stores';
interface Props {
/** @type {import('./$types').LayoutData} */
data: any;
children?: import('svelte').Snippet;
}
let { data, children }: Props = $props();
// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other.
$slct.account_id = data.account_id;
// console.log(`$slct.account_id = `, $slct.account_id);
@@ -31,4 +38,4 @@ $idaa_slct.archive_obj_li = ae_acct.slct.archive_obj_li;
</script>
<slot />
{@render children?.()}