More significant updates to the general layout and styling per module.

This commit is contained in:
Scott Idem
2025-06-26 14:39:30 -04:00
parent ce59a848d6
commit 1f46b51c9a
12 changed files with 205 additions and 126 deletions

View File

@@ -1,13 +1,10 @@
<script lang="ts">
/** @type {import('./$types').LayoutData} */
export let data: any;
let log_lvl: number = 0;
if (log_lvl > 1) {
console.log(`ae_idaa_recovery_meetings +layout.svelte data:`, data);
console.log(`ae_idaa_recovery_meetings +layout.svelte`, data);
}
// import { browser } from '$app/environment';
// *** Import Aether specific variables and functions
// import type { key_val } from '$lib/ae_stores';
// import { ae_util } from '$lib/ae_utils/ae_utils';
@@ -19,15 +16,27 @@ import { ae_snip, ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$
// import { events_func } from '$lib/ae_events_functions';
import { idaa_loc, idaa_sess, idaa_slct } from '$lib/ae_idaa_stores';
// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other.
interface Props {
/** @type {import('./$types').LayoutData} */
data: any;
children?: import('svelte').Snippet;
}
let { data, children }: Props = $props();
// *** Quickly pull out data from parent(s)
$slct.account_id = data.account_id;
// console.log(`$slct.account_id = `, $slct.account_id);
let ae_acct = data[$slct.account_id];
// console.log(`ae_acct = `, ae_acct);
if (log_lvl) {
console.log(`ae_acct = `, ae_acct);
}
$idaa_slct.event_obj_li = ae_acct.slct.event_obj_li;
// $idaa_slct.event_id = ae_acct.slct.event_id; // Not set here yet.
// *** Set initial variables
</script>
<slot />
{@render children?.()}