fix(journals): standardize component naming, props, and libraries
- Renamed all Journal components to follow the ae_comp__* snake_case convention. - Normalized all custom event handler props from PascalCase (onSave) to snake_case (on_save) across the module. - Migrated all icon imports from @lucide/svelte to lucide-svelte for consistency. - Resolved ReferenceErrors and file corruption issues in Journals config and entry views. - Updated qry__journal_entry logic to support category filtering. - Verified module integrity and component interop.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
CalendarClock,
|
||||
MousePointerClick,
|
||||
Zap
|
||||
} from '@lucide/svelte';
|
||||
} from 'lucide-svelte';
|
||||
import { Modal } from 'flowbite-svelte';
|
||||
import { goto } from '$app/navigation';
|
||||
import { untrack } from 'svelte';
|
||||
@@ -60,18 +60,18 @@
|
||||
log_lvl?: number;
|
||||
lq__journal_obj: any;
|
||||
show?: boolean;
|
||||
onNewEntry?: () => void;
|
||||
onShowExport?: () => void;
|
||||
onShowImport?: () => void;
|
||||
on_new_entry?: () => void;
|
||||
on_show_export?: () => void;
|
||||
on_show_import?: () => void;
|
||||
}
|
||||
|
||||
let {
|
||||
log_lvl = $bindable(0),
|
||||
lq__journal_obj,
|
||||
show = $bindable(false),
|
||||
onNewEntry,
|
||||
onShowExport,
|
||||
onShowImport
|
||||
on_new_entry,
|
||||
on_show_export,
|
||||
on_show_import
|
||||
}: Props = $props();
|
||||
|
||||
// *** Internal State
|
||||
@@ -201,13 +201,13 @@
|
||||
{#if tab === 'actions'}
|
||||
<div class="space-y-6 animate-in fade-in duration-300">
|
||||
<section class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<button class="btn variant-soft-secondary w-full py-4 text-lg font-bold" onclick={() => { show = false; onNewEntry?.(); }}>
|
||||
<button class="btn variant-soft-secondary w-full py-4 text-lg font-bold" onclick={() => { show = false; on_new_entry?.(); }}>
|
||||
<FilePlus size="1.5em" class="mr-2"/> New Journal Entry
|
||||
</button>
|
||||
<button class="btn variant-soft-surface w-full py-4" onclick={() => { show = false; onShowExport?.(); }}>
|
||||
<button class="btn variant-soft-surface w-full py-4" onclick={() => { show = false; on_show_export?.(); }}>
|
||||
<FileDown size="1.5em" class="mr-2"/> Export Entries
|
||||
</button>
|
||||
<button class="btn variant-soft-surface w-full py-4" onclick={() => { show = false; onShowImport?.(); }}>
|
||||
<button class="btn variant-soft-surface w-full py-4" onclick={() => { show = false; on_show_import?.(); }}>
|
||||
<FileUp size="1.5em" class="mr-2"/> Import Entries
|
||||
</button>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user