General clean up of files. Less debug. Less extra stuff.

This commit is contained in:
Scott Idem
2025-06-27 12:44:23 -04:00
parent bd0d96cb83
commit 9914fd1700
18 changed files with 82 additions and 128 deletions

View File

@@ -1,8 +1,5 @@
<script lang="ts">
let log_lvl: number = 0;
if (log_lvl > 1) {
console.log(`ae_idaa_recovery_meetings +layout.svelte`, data);
}
// *** Import Aether specific variables and functions
// import type { key_val } from '$lib/ae_stores';
@@ -24,6 +21,10 @@ interface Props {
let { data, children }: Props = $props();
if (log_lvl > 1) {
console.log(`ae_idaa_recovery_meetings +layout.svelte`, data);
}
// *** Quickly pull out data from parent(s)
$slct.account_id = data.account_id;

View File

@@ -1,7 +1,7 @@
/** @type {import('./$types').LayoutLoad} */
// console.log(`IDAA Recovery Meetings - [account_id] +layout.ts start`);
import { error } from '@sveltejs/kit';
// import { error } from '@sveltejs/kit';
import { browser } from '$app/environment';
import { events_func } from '$lib/ae_events_functions';
@@ -15,14 +15,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 Recovery Meetings - [account_id] +page.ts: The account_id was not found!!!`);
error(404, {
message: 'Account ID not found'
});
}
// if (!account_id) {
// console.log(`ae IDAA Recovery Meetings - [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;
if (browser) {
let load_event_obj_li = events_func.load_ae_obj_li__event({
@@ -30,7 +30,7 @@ export async function load({ params, parent }) { // route
for_obj_type: 'account',
for_obj_id: account_id,
qry_conference: false,
limit: 25,
limit: 29,
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'name': 'ASC'},
try_cache: true,
log_lvl: log_lvl