diff --git a/src/lib/components/shad-editor/shad-editor.svelte b/src/lib/components/shad-editor/shad-editor.svelte index ff2c681d..23843534 100644 --- a/src/lib/components/shad-editor/shad-editor.svelte +++ b/src/lib/components/shad-editor/shad-editor.svelte @@ -133,7 +133,7 @@ onMount(() => { TableCell, ImageExtension ], - autofocus: true, + autofocus: false, // This should be changed to a prop in the future onTransaction: (transaction) => { /** * Weird behavior of editor. diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index bcc35163..4116ac10 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,6 +1,6 @@ diff --git a/src/routes/idaa/(idaa)/archives/+layout.svelte b/src/routes/idaa/(idaa)/archives/+layout.svelte index 1642f8c2..7a463e35 100644 --- a/src/routes/idaa/(idaa)/archives/+layout.svelte +++ b/src/routes/idaa/(idaa)/archives/+layout.svelte @@ -17,14 +17,14 @@ interface Props { let { data, children }: Props = $props(); -// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other. -$slct.account_id = data.account_id; -// console.log(`$slct.account_id = `, $slct.account_id); +// *** Quickly pull out data from parent(s) let ae_acct = data[$slct.account_id]; -console.log(`ae_acct = `, ae_acct); +if (log_lvl) { + console.log(`ae_acct = `, ae_acct); +} $idaa_slct.archive_obj_li = ae_acct.slct.archive_obj_li; - +// $idaa_slct.archive_id = ae_acct.slct.archive_id; // Not set here yet. // *** Set initial variables // if (browser) { diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+layout.ts b/src/routes/idaa/(idaa)/archives/[archive_id]/+layout.ts index 990ca6b8..03be851a 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/+layout.ts +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+layout.ts @@ -1,9 +1,9 @@ /** @type {import('./$types').LayoutLoad} */ -console.log(`IDAA Archives - [archive_id] +layout.ts start`); +// 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'; +// 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; diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte index a5852951..5b2071ee 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte @@ -37,15 +37,12 @@ let { data }: Props = $props(); // let ae_tmp: key_val = {}; // let ae_triggers: key_val = {}; - // Variables - - -// Quickly save the data passed from the parent(s) to the Svelte stores, localStorage, and other. -$slct.account_id = data.account_id; -// console.log(`$slct.account_id = `, $slct.account_id); +// *** Quickly pull out data from parent(s) let ae_acct = data[$slct.account_id]; -console.log(`ae_acct = `, ae_acct); +if (log_lvl) { + console.log(`ae_acct = `, ae_acct); +} // For some reason data.params.archive_id (or whatever param) is not being passed to this page when loaded by a link from another page. This seems to be a bug with Svelte or SvelteKit. Hopefully fixed in a future version 5? 2024-11-06 $idaa_slct.archive_id = ae_acct.slct.archive_id; diff --git a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte index 2b1b8636..7179f852 100644 --- a/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte +++ b/src/routes/idaa/(idaa)/archives/[archive_id]/ae_idaa_comp__archive_content_obj_li.svelte @@ -1,16 +1,20 @@