More significant updates to the general layout and styling per module.
This commit is contained in:
@@ -1,23 +1,34 @@
|
||||
<script lang="ts">
|
||||
/** @type {import('./$types').LayoutData} */
|
||||
export let data: any;
|
||||
let log_lvl: number = 0;
|
||||
if (log_lvl > 1) {
|
||||
console.log(`ae_idaa_bulletin_board +layout.svelte data:`, data);
|
||||
console.log(`ae_idaa_bulletin_board +layout.svelte`, 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';
|
||||
|
||||
// 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.post_obj_li = ae_acct.slct.post_obj_li;
|
||||
// $idaa_slct.post_id = ae_acct.slct.post_id; // Not set here yet.
|
||||
|
||||
// *** Set initial variables
|
||||
</script>
|
||||
|
||||
|
||||
<slot />
|
||||
{@render children?.()}
|
||||
|
||||
@@ -240,7 +240,6 @@ function add_activity_log(
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<svelte:head>
|
||||
<title>
|
||||
IDAA Bulletin Board:
|
||||
@@ -248,8 +247,7 @@ function add_activity_log(
|
||||
</title>
|
||||
</svelte:head>
|
||||
|
||||
|
||||
<section
|
||||
<!-- <section
|
||||
class="
|
||||
ae_idaa__bb
|
||||
container h-full mx-auto
|
||||
@@ -259,7 +257,7 @@ function add_activity_log(
|
||||
min-w-full
|
||||
max-w-max
|
||||
"
|
||||
>
|
||||
> -->
|
||||
|
||||
|
||||
<Comp__post_options
|
||||
@@ -276,7 +274,7 @@ function add_activity_log(
|
||||
{/if}
|
||||
|
||||
|
||||
</section>
|
||||
<!-- </section> -->
|
||||
|
||||
|
||||
<!-- Modal: Post (Bulletin Board) view ID -->
|
||||
|
||||
Reference in New Issue
Block a user