feat: Remove legacy files and fix first svelte/no-at-html-tags error\n\n- Moved legacy files from src/routes/legacy to backups/legacy/src/routes/legacy.\n- Removed the empty src/routes/legacy directory.\n- Fixed a svelte/no-at-html-tags error in src/routes/idaa/(idaa)/archives/[archive_id]/+page.svelte by replacing '{@html ?.name ?? 'Archive'}' with '{?.name ?? 'Archive'}'.\n- Addressed a misidentified '{@html}' tag in src/lib/ae_core/ae_comp__hosted_files_clip_video.svelte by removing commented-out code that might have caused false positives.
This commit is contained in:
@@ -147,7 +147,7 @@
|
||||
// let orig_entry_obj: key_val = $state({});
|
||||
let orig_entry_obj: key_val | null = $state({});
|
||||
let tmp_entry_obj_changed: boolean = $state(false);
|
||||
let tmp_entry_obj: key_val | null = $state({});
|
||||
let tmp_entry_obj: key_val = $state({});
|
||||
let updated_obj: boolean = $state(true); // Start with true to force population of orig and tmp values.
|
||||
let updated_idb: boolean = $state(true); // Updated in a separate browser session
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
|
||||
// updated_obj = false;
|
||||
orig_entry_obj = { ...$lq__journal_entry_obj };
|
||||
tmp_entry_obj = { ...$lq__journal_entry_obj };
|
||||
tmp_entry_obj = $lq__journal_entry_obj ? { ...$lq__journal_entry_obj } : {};
|
||||
|
||||
// if ($journals_loc?.entry?.decrypt_kv[$lq__journal_entry_obj?.journal_entry_id]) {
|
||||
// if (!tmp_entry_obj?.content && tmp_entry_obj?.content_encrypted) {
|
||||
@@ -240,7 +240,7 @@
|
||||
console.log(`TEST: Journal Entry updated and changed`, $lq__journal_entry_obj);
|
||||
updated_obj = false;
|
||||
orig_entry_obj = { ...$lq__journal_entry_obj };
|
||||
tmp_entry_obj = { ...$lq__journal_entry_obj };
|
||||
tmp_entry_obj = $lq__journal_entry_obj ? { ...$lq__journal_entry_obj } : {};
|
||||
if ($journals_loc?.entry?.decrypt_kv[$lq__journal_entry_obj?.journal_entry_id]) {
|
||||
let decrypt_key = $lq__journal_obj.combined_passcode;
|
||||
|
||||
@@ -1113,8 +1113,10 @@
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_alert}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.alert = !$lq__journal_entry_obj?.alert;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.alert = !$lq__journal_entry_obj?.alert;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle alert status of this journal entry"
|
||||
@@ -1306,8 +1308,10 @@
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_public}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.public = !$lq__journal_entry_obj?.public;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.public = !$lq__journal_entry_obj?.public;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle public visibility of this journal entry"
|
||||
@@ -1324,8 +1328,10 @@
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_personal}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.personal = !$lq__journal_entry_obj?.personal;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.personal = !$lq__journal_entry_obj?.personal;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle personal visibility of this journal entry"
|
||||
@@ -1342,8 +1348,11 @@
|
||||
type="button"
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_professional}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.professional = !$lq__journal_entry_obj?.professional;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.professional =
|
||||
!$lq__journal_entry_obj?.professional;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle professional visibility of this journal entry"
|
||||
@@ -1405,7 +1414,9 @@
|
||||
"
|
||||
bind:value={tmp_entry_obj.category_code}
|
||||
onchange={(event) => {
|
||||
tmp_entry_obj.category_code = event.target.value;
|
||||
tmp_entry_obj.category_code = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log('Selected category:', tmp_entry_obj.category_code);
|
||||
|
||||
update_journal_entry();
|
||||
@@ -1523,8 +1534,10 @@
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
tmp_entry_obj.public = !$lq__journal_entry_obj?.public;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.public = !$lq__journal_entry_obj?.public;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle public visibility of this journal entry"
|
||||
@@ -1541,8 +1554,10 @@
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
tmp_entry_obj.personal = !$lq__journal_entry_obj?.personal;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.personal = !$lq__journal_entry_obj?.personal;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle personal visibility of this journal entry"
|
||||
@@ -1579,8 +1594,10 @@
|
||||
class:hidden={$lq__journal_obj?.cfg_json?.hide_btn_template ||
|
||||
!$ae_loc.edit_mode}
|
||||
onclick={() => {
|
||||
tmp_entry_obj.template = !$lq__journal_entry_obj?.template;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.template = !$lq__journal_entry_obj?.template;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn-icon btn-icon-sm preset-tonal-secondary hover:preset-filled-secondary-500 transition"
|
||||
title="Toggle if used as journal entry template"
|
||||
@@ -2015,8 +2032,10 @@
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
tmp_entry_obj.priority = !$lq__journal_entry_obj?.priority;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.priority = !$lq__journal_entry_obj?.priority;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn w-full mb-2 preset-tonal-tertiary transition hover:preset-filled-tertiary-500"
|
||||
title="Toggle priority of this journal entry"
|
||||
@@ -2149,8 +2168,10 @@
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
tmp_entry_obj.hide = !$lq__journal_entry_obj?.hide;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.hide = !$lq__journal_entry_obj?.hide;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class="btn btn-sm md:btn-md w-full mb-2 preset-tonal-warning hover:preset-filled-warning-500 transition"
|
||||
title="Toggle visibility of this journal entry"
|
||||
@@ -2168,8 +2189,10 @@
|
||||
<button
|
||||
type="button"
|
||||
onclick={() => {
|
||||
tmp_entry_obj.enable = !$lq__journal_entry_obj?.enable;
|
||||
update_journal_entry();
|
||||
if (tmp_entry_obj) {
|
||||
tmp_entry_obj.enable = !$lq__journal_entry_obj?.enable;
|
||||
update_journal_entry();
|
||||
}
|
||||
}}
|
||||
class:hidden={!$ae_loc.administrator_access || !$ae_loc.edit_mode}
|
||||
class="btn btn-sm md:btn-md w-full mb-2 preset-tonal-error hover:preset-filled-error-500 transition"
|
||||
@@ -2264,7 +2287,9 @@
|
||||
"
|
||||
bind:value={tmp_entry_obj.journal_id}
|
||||
onchange={(event) => {
|
||||
tmp_entry_obj.journal_id = event.target.value;
|
||||
tmp_entry_obj.journal_id = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log('Selected journal:', tmp_entry_obj.journal_id);
|
||||
if (
|
||||
confirm(
|
||||
@@ -2499,8 +2524,8 @@ tabindex={$ae_loc.edit_mode ? 0 : -1} -->
|
||||
"
|
||||
id="rendered_journal_entry_content_{$lq__journal_entry_obj?.journal_entry_id}"
|
||||
>
|
||||
{#if tmp_entry_obj.content_md_html}
|
||||
{@html tmp_entry_obj.content_md_html}
|
||||
{#if tmp_entry_obj?.content_md_html}
|
||||
{@html tmp_entry_obj?.content_md_html}
|
||||
{:else if tmp_entry_obj?.content_encrypted && tmp_entry_obj?.private}
|
||||
<div class="text-sm text-gray-500">
|
||||
<div class="">
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
bind:value={$journals_loc.qry__search_text}
|
||||
onkeyup={(event) => {
|
||||
if (event.key === 'Enter') {
|
||||
// $journals_loc.qry__search_text = event.target.value;
|
||||
// $journals_loc.qry__search_text = (event.target as HTMLInputElement).value;
|
||||
$journals_trig.journal_entry_qry = true;
|
||||
}
|
||||
}}
|
||||
@@ -210,8 +210,8 @@
|
||||
bind:value={$journals_loc.qry__category_code}
|
||||
onchange={(event) => {
|
||||
// WARNING: This will cause pages to reset if the journal entry list is being filtered by category. This is a bug that should be fixed.
|
||||
$journals_loc.qry__category_code = event.target.value;
|
||||
$journals_loc.filter__category_code = event.target.value;
|
||||
$journals_loc.qry__category_code = (event.target as HTMLInputElement).value;
|
||||
$journals_loc.filter__category_code = (event.target as HTMLInputElement).value;
|
||||
$journals_trig.journal_entry_li = true;
|
||||
console.log('Selected category:', $journals_loc.qry__category_code);
|
||||
}}
|
||||
|
||||
@@ -309,7 +309,9 @@
|
||||
bind:value={tmp__journal_obj.type_code}
|
||||
onchange={(event) => {
|
||||
// Update the cfg_json with the selected journal type. Example cate
|
||||
tmp__journal_obj.type_code = event.target.value;
|
||||
tmp__journal_obj.type_code = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log('Selected journal type:', tmp__journal_obj.type_code);
|
||||
}}
|
||||
title="Select a journal type"
|
||||
@@ -387,7 +389,9 @@
|
||||
<select
|
||||
bind:value={tmp__journal_obj.cfg_json.entry_li_max_height}
|
||||
onchange={(event) => {
|
||||
tmp__journal_obj.cfg_json.entry_li_max_height = event.target.value;
|
||||
tmp__journal_obj.cfg_json.entry_li_max_height = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log(
|
||||
'Selected max height:',
|
||||
tmp__journal_obj.cfg_json.entry_li_max_height
|
||||
@@ -416,8 +420,9 @@
|
||||
<select
|
||||
bind:value={tmp__journal_obj.cfg_json.entry_li_hover_max_height}
|
||||
onchange={(event) => {
|
||||
tmp__journal_obj.cfg_json.entry_li_hover_max_height =
|
||||
event.target.value;
|
||||
tmp__journal_obj.cfg_json.entry_li_hover_max_height = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log(
|
||||
'Selected max height:',
|
||||
tmp__journal_obj.cfg_json.entry_li_hover_max_height
|
||||
@@ -445,8 +450,9 @@
|
||||
<select
|
||||
bind:value={tmp__journal_obj.cfg_json.entry_li_click_max_height}
|
||||
onchange={(event) => {
|
||||
tmp__journal_obj.cfg_json.entry_li_click_max_height =
|
||||
event.target.value;
|
||||
tmp__journal_obj.cfg_json.entry_li_click_max_height = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log(
|
||||
'Selected max height:',
|
||||
tmp__journal_obj.cfg_json.entry_li_click_max_height
|
||||
@@ -547,7 +553,9 @@
|
||||
<select
|
||||
bind:value={tmp__journal_obj.cfg_json.color_scheme}
|
||||
onchange={(event) => {
|
||||
tmp__journal_obj.cfg_json.color_scheme = event.target.value;
|
||||
tmp__journal_obj.cfg_json.color_scheme = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log(
|
||||
'Selected color scheme:',
|
||||
tmp__journal_obj.cfg_json.color_scheme
|
||||
@@ -574,7 +582,9 @@
|
||||
<select
|
||||
bind:value={tmp__journal_obj.cfg_json.pref_viewer}
|
||||
onchange={(event) => {
|
||||
tmp__journal_obj.cfg_json.pref_viewer = event.target.value;
|
||||
tmp__journal_obj.cfg_json.pref_viewer = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log(
|
||||
'Selected viewer:',
|
||||
tmp__journal_obj.cfg_json.pref_viewer
|
||||
@@ -598,7 +608,9 @@
|
||||
<select
|
||||
bind:value={tmp__journal_obj.cfg_json.pref_editor}
|
||||
onchange={(event) => {
|
||||
tmp__journal_obj.cfg_json.pref_editor = event.target.value;
|
||||
tmp__journal_obj.cfg_json.pref_editor = (
|
||||
event.target as HTMLInputElement
|
||||
).value;
|
||||
console.log(
|
||||
'Selected editor:',
|
||||
tmp__journal_obj.cfg_json.pref_editor
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
"
|
||||
bind:value={tmp_entry_obj.journal_id}
|
||||
onchange={(event) => {
|
||||
tmp_entry_obj.journal_id = event.target.value;
|
||||
tmp_entry_obj.journal_id = (event.target as HTMLInputElement).value;
|
||||
console.log('Selected journal:', tmp_entry_obj.journal_id);
|
||||
if (confirm(`Are you sure you want to change the journal for this entry?`)) {
|
||||
change_journal_id();
|
||||
|
||||
Reference in New Issue
Block a user