Starting to switch pages to Runes mode....
This commit is contained in:
@@ -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?.()}
|
||||
|
||||
Reference in New Issue
Block a user