web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit a9fe266fd7771bc532f8d7e8ab0f313349bf1d9b
parent 389a566cf18d426a4bb80c86ac96a95ec966c559
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Fri,  7 Mar 2025 15:10:32 +0000

apps-lib: edit nostr profile view removing on mount handler and effect log

Diffstat:
Mapps-lib/src/lib/util/view.ts | 2+-
Mapps-lib/src/lib/view/profile-edit.svelte | 9+--------
2 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/apps-lib/src/lib/util/view.ts b/apps-lib/src/lib/util/view.ts @@ -1,6 +1,6 @@ import type { ViewProfileEditFieldKey } from "$root"; -export const parse_view_profile_field_key = (val?: string): ViewProfileEditFieldKey | undefined => { +export const parse_view_profile_field_key = (val?: string | null): ViewProfileEditFieldKey | undefined => { switch (val) { case `name`: case `display_name`: diff --git a/apps-lib/src/lib/view/profile-edit.svelte b/apps-lib/src/lib/view/profile-edit.svelte @@ -17,7 +17,6 @@ type ElementCallbackValue, type I18nTranslateFunction, type IViewBasis, - type IViewOnMount, } from "@radroots/util"; import { onMount } from "svelte"; @@ -33,8 +32,7 @@ public_key: string; }>; lc_handle_input: ElementCallbackValue; - }> & - IViewOnMount<{ field: ViewProfileEditFieldKey }>; + }>; ls: I18nTranslateFunction; val_field: string; } = $props(); @@ -54,7 +52,6 @@ onMount(async () => { try { if (!basis.kv_init_prevent) await idb_init_page(); - await basis.lc_on_mount({ field: basis.data.field }); } catch (e) { handle_err(e, `on_mount`); } @@ -63,10 +60,6 @@ const input_placeholder = $derived( basis.data?.field ? param[basis.data.field]?.placeholder : ``, ); - - $effect(() => { - console.log(`input_placeholder `, input_placeholder); - }); </script> <LayoutView>