fix(idaa): correct svelte-check errors and refine IDAA components

- Fixed invalid JavaScript-style comments inside HTML tags.
- Restored intentional '1 == 3' business logic pattern.
- Switched to 'event.currentTarget' for FormData instantiation.
- Resolved type errors in delete method calls via explicit casting.
- Cleaned up unused props and resolved property access issues in Archives and Bulletin Board components.
- Verified final state with npm run check.
This commit is contained in:
Scott Idem
2026-01-26 18:09:18 -05:00
parent ac14721bd0
commit 6858052e7d
5 changed files with 7 additions and 19 deletions

View File

@@ -155,12 +155,12 @@
async function handle_submit_form(event: SubmitEvent) {
if (log_lvl > 1) {
console.log('*** handle_submit_form() ***');
console.log(event.target);
console.log(event.currentTarget);
}
disable_submit_btn = true;
let form_data = new FormData(event.target);
let form_data = new FormData(event.currentTarget as HTMLFormElement);
if (log_lvl) {
console.log(form_data);
}

View File

@@ -96,15 +96,15 @@
};
}
async function handle_submit_form(event: SubmitEvent) {
if (log_lvl > 1) {
async function handle_submit_form(event: any) {
if (log_lvl) {
console.log('*** handle_submit_form() ***');
console.log(event.target);
console.log(event.currentTarget);
}
disable_submit_btn = true;
let form_data = new FormData(event.target);
let form_data = new FormData(event.currentTarget);
console.log(form_data);
let archive_di = ae_util.extract_prefixed_form_data({

View File

@@ -275,7 +275,7 @@
.delete_ae_obj_id__post_comment({
api_cfg: $ae_api,
post_comment_id: post_comment_id,
method: method,
method: method as any,
log_lvl: log_lvl
})
.then(function (post_comment_obj_delete_result) {

View File

@@ -496,15 +496,7 @@ Copy and paste link: <a href="${link_base_url}?post_id=${$idaa_slct.post_id}">${
/>
{:else}
<CodeMirror_wrapper
default_minimal={true}
bind:html_text={content_new_html}
show_button_kv={{
// text: true,
// bullet_list: true,
// ordered_list: true,
// link: true,
// unset_link: true
}}
classes="preset-tonal-surface hover:preset-filled-surface-100-900"
placeholder="Your post content here..."
/>

View File

@@ -335,8 +335,6 @@
{#if $idaa_sess.bb.show__inline_edit__post_comment_id === true}
<Comp__post_comment_obj_id_edit
{lq__post_obj}
{lq__post_comment_obj}
{lq__post_comment_obj_li}
/>
{/if}
@@ -352,8 +350,6 @@
{$lq__post_comment_obj_li.length ?? 'unknown???'}
<Comp__post_comment_obj_id_edit
{lq__post_obj}
{lq__post_comment_obj}
{lq__post_comment_obj_li}
/>
{:else}
<div class="post_comment__content">