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

@@ -95,7 +95,9 @@ export async function load_ae_obj_id__archive(
api_cfg: api_cfg,
for_obj_type: 'archive',
for_obj_id: archive_id,
params: {qry__enabled: 'all', qry__limit: 99},
enabled: 'all',
limit: 99,
params: params,
try_cache: try_cache,
log_lvl: log_lvl
})

View File

@@ -294,13 +294,13 @@ async function handle_submit_form(event) {
if ($slct.event_presenter_id) {
if ($store_current_tab == 'start' && $slct.event_presenter_id) {
$store_current_tab = 'biograhpy';
$store_current_tab = 'biography';
if (!$slct.event_presenter_obj.updated_on) {
send_init_confirm_email();
}
// Move on to files
} else if ($store_current_tab == 'biograhpy' && $slct.event_presenter_id) {
} else if ($store_current_tab == 'biography' && $slct.event_presenter_id) {
$store_current_tab = 'files';
// Move on to summary
@@ -712,8 +712,8 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
</Tab> -->
<!-- <Tab
bind:group={$store_current_tab}
name="tab_biograhpy"
value={'biograhpy'}
name="tab_biography"
value={'biography'}
disabled={!$slct.event_presenter_obj.event_presenter_id_random}
regionTab={!$slct.event_presenter_obj.event_presenter_id_random ? 'text-slate-400' : ''}
>
@@ -957,10 +957,10 @@ async function handle_delete_event_presenter_obj({event_presenter_id, hosted_fil
</section>
{:else if $store_current_tab === 'biograhpy'}
{:else if $store_current_tab === 'biography'}
<section class="biograhpy space-y-4">
<section class="biography space-y-4">
<form
class="modal-form {$ae_loc.hub.classes__form}"

View File

@@ -126,15 +126,14 @@ onMount(() => {
font-weight: bold;
}
/*
.ae_header h3 {
font-size: 1.2em;
margin: 0;
/* padding: 0; */
}
.event_presenter_obj .ae_meta {
flex-direction: column;
/* justify-content: space-between; */
}
.event_presenter_obj .ae_meta .ae_group {
@@ -145,4 +144,5 @@ onMount(() => {
flex-direction: row;
justify-content: space-between;
}
*/
</style>

View File

@@ -8,13 +8,13 @@ import { onMount } from 'svelte';
// https://github.com/skeletonlabs/skeleton/blob/master/packages/skeleton/src/lib/utilities/Modal/types.ts
// To retrieve the store, getModalStore must be invoked at the top level of your component!
import type {
DrawerSettings,
ModalSettings,
ModalComponent,
ModalStore
} from '@skeletonlabs/skeleton-svelte';
const modalStore = getModalStore();
// import type {
// DrawerSettings,
// ModalSettings,
// ModalComponent,
// ModalStore
// } from '@skeletonlabs/skeleton-svelte';
// const modalStore = getModalStore();
import { api } from '$lib/api';
import { ae_loc, ae_sess, ae_api, ae_trig, slct, slct_trigger } from '$lib/ae_stores';

View File

@@ -1,8 +1,5 @@
<script lang="ts">
let log_lvl: number = 0;
if (log_lvl > 1) {
console.log(`ae_idaa_archives +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_archives +layout.svelte`, data);
}
// *** Quickly pull out data from parent(s)
$slct.account_id = data.account_id;
@@ -30,19 +31,5 @@ $idaa_slct.archive_obj_li = ae_acct.slct.archive_obj_li;
// *** Set initial variables
</script>
<!-- <div
class="
ae_idaa__archives
container h-full mx-auto
flex flex-col gap-1
items-center
justify_center
py-1 px-2 pb-16
min-w-full
max-w-max
"
> -->
{@render children?.()}
<!-- </div> -->

View File

@@ -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 { archives_func } from '$lib/ae_archives/ae_archives_functions';
@@ -15,31 +15,33 @@ export async function load({ fetch, params, parent }) { // route
let ae_acct = data[account_id];
// console.log(`ae_acct = `, ae_acct);
if (!account_id) {
console.log(`ae IDAA Archives - [account_id] +page.ts: The account_id was not found!!!`);
error(404, {
message: 'Account ID not found'
});
}
// if (!account_id) {
// console.log(`ae IDAA Archives - [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 = archives_func.load_ae_obj_li__archive({
let load_archive_obj_li = archives_func.load_ae_obj_li__archive({
api_cfg: ae_acct.api,
for_obj_type: 'account',
for_obj_id: account_id,
inc_content_li: true,
enabled: 'enabled',
hidden: 'not_hidden',
limit: 20,
limit: 29,
order_by_li: {'priority': 'DESC', 'sort': 'DESC', 'updated_on': 'DESC', 'created_on': 'DESC', 'name': 'ASC'},
params: params,
try_cache: true,
log_lvl: 2
log_lvl: log_lvl
});
console.log(`load_event_obj_li = `, load_event_obj_li);
ae_acct.slct.event_obj_li = load_event_obj_li;
if (log_lvl) {
console.log(`load_archive_obj_li = `, load_archive_obj_li);
}
ae_acct.slct.archive_obj_li = load_archive_obj_li;
}
// WARNING: Precaution against shared data between sites and sessions.

View File

@@ -1,48 +0,0 @@
/** @type {import('./$types').LayoutLoad} */
// console.log(`IDAA Archives - [archive_id] +layout.ts start`);
// import { error } from '@sveltejs/kit';
// import { browser } from '$app/environment';
// import { archives_func } from '$lib/ae_archives/ae_archives_functions';
export async function load({ params, parent }) { // route
// let log_lvl: number = 0;
// let data = await parent();
// data.log_lvl = log_lvl;
// let account_id = data.account_id;
// let ae_acct = data[account_id];
// console.log(`ae_acct = `, ae_acct);
// let archive_id = params.archive_id;
// if (!archive_id) {
// console.log(`ae IDAA Archives - [archive_id] +layout.ts: The archive_id was not found!!!`);
// error(404, {
// message: 'IDAA Archives - Archive ID not found'
// });
// }
// ae_acct.slct.archive_id = archive_id;
// if (browser) {
// if (log_lvl) {
// console.log(`ae_idaa_archives archives [archive_id] +layout.ts: archive_id = `, archive_id);
// }
// // Load event archive object
// let load_archive_obj = archives_func.load_ae_obj_id__archive({
// api_cfg: ae_acct.api,
// archive_id: archive_id,
// inc_content_li: true,
// try_cache: true
// });
// console.log(`load_archive_obj = `, load_archive_obj);
// ae_acct.slct.archive_obj = load_archive_obj;
// }
// WARNING: Precaution against shared data between sites and sessions.
// data[account_id] = ae_acct;
// return data;
}

View File

@@ -1,5 +1,5 @@
/** @type {import('./$types').PageLoad} */
import { error } from '@sveltejs/kit';
// import { error } from '@sveltejs/kit';
console.log(`ae_p_idaa_archives [archive_id] +page.ts start`);
import { browser } from '$app/environment';
@@ -15,12 +15,12 @@ export async function load({ params, parent }) { // route
let ae_acct = data[account_id];
let archive_id = params.archive_id;
if (!archive_id) {
console.log(`ae_idaa_archives archives [archive_id] +page.ts: The archive_id was not found in the params!!!`);
error(404, {
message: 'IDAA Archives - Archive ID not found'
});
}
// if (!archive_id) {
// console.log(`ae_idaa_archives archives [archive_id] +page.ts: The archive_id was not found in the params!!!`);
// error(404, {
// message: 'IDAA Archives - Archive ID not found'
// });
// }
ae_acct.slct.archive_id = archive_id;
if (browser) {
@@ -32,9 +32,12 @@ export async function load({ params, parent }) { // route
api_cfg: ae_acct.api,
archive_id: archive_id,
inc_content_li: true,
try_cache: true
try_cache: true,
log_lvl: log_lvl
});
if (log_lvl) {
console.log(`load_archive_obj = `, load_archive_obj);
}
ae_acct.slct.archive_obj = load_archive_obj;
// Load archive contents for the archive

View File

@@ -0,0 +1,4 @@
/** @type {import('./$types').LayoutLoad} */
export async function load({ params, parent }) { // route
}

View File

@@ -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;

View File

@@ -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;
}

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