General clean up of files. Less debug. Less extra stuff.
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
<script lang="ts">
|
||||
let log_lvl: number = 0;
|
||||
if (log_lvl > 1) {
|
||||
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';
|
||||
@@ -16,6 +13,10 @@ interface Props {
|
||||
|
||||
let { data, children }: Props = $props();
|
||||
|
||||
if (log_lvl > 1) {
|
||||
console.log(`ae_idaa_bulletin_board +layout.svelte`, data);
|
||||
}
|
||||
|
||||
// *** Quickly pull out data from parent(s)
|
||||
$slct.account_id = data.account_id;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/** @type {import('./$types').LayoutLoad} */
|
||||
console.log(`IDAA BB - [account_id] +layout.ts start`);
|
||||
|
||||
import { error } from '@sveltejs/kit';
|
||||
// import { error } from '@sveltejs/kit';
|
||||
import { browser } from '$app/environment';
|
||||
// import { page } from '$app/state';
|
||||
import { posts_func } from '$lib/ae_posts/ae_posts_functions';
|
||||
@@ -16,14 +16,14 @@ export async function load({ params, parent }) { // route
|
||||
let ae_acct = data[account_id];
|
||||
// console.log(`ae_acct = `, ae_acct);
|
||||
|
||||
if (!account_id) {
|
||||
console.log(`ae IDAA BB - [account_id] +page.ts: The account_id was not found!!!`);
|
||||
error(404, {
|
||||
message: 'Account ID not found'
|
||||
});
|
||||
}
|
||||
// if (!account_id) {
|
||||
// console.log(`ae IDAA BB - [account_id] +page.ts: The account_id was not found!!!`);
|
||||
// error(404, {
|
||||
// message: 'Account ID not found'
|
||||
// });
|
||||
// }
|
||||
|
||||
ae_acct.slct.account_id = account_id;
|
||||
// ae_acct.slct.account_id = account_id;
|
||||
|
||||
// let post_id = params.post_id;
|
||||
// let post_id = page.url.searchParams.has('post_id') ?? null;
|
||||
@@ -48,12 +48,14 @@ export async function load({ params, parent }) { // route
|
||||
inc_comment_li: true,
|
||||
enabled: 'enabled',
|
||||
hidden: 'not_hidden',
|
||||
limit: 99,
|
||||
limit: 29,
|
||||
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'title': 'ASC'},
|
||||
try_cache: true,
|
||||
log_lvl: log_lvl
|
||||
});
|
||||
console.log(`load_post_obj_li = `, load_post_obj_li);
|
||||
if (log_lvl) {
|
||||
console.log(`load_post_obj_li = `, load_post_obj_li);
|
||||
}
|
||||
ae_acct.slct.post_obj_li = load_post_obj_li;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user