From 78c201d8d9d2f3ec07f6ea36201977846e29ccd9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Feb 2026 12:42:42 -0800 Subject: homepage design and currency toggling --- src/routes/(app)/+layout.svelte | 10 +++- .../(app)/[username]/(profile)/+layout.svelte | 52 +++++++++++--------- src/routes/(app)/account/[id]/+page.svelte | 55 +++++++++------------- .../(app)/ecash/[id]/[...version]/+layout.svelte | 43 ++++++++++------- src/routes/(app)/fund/[id]/withdraw/+page.svelte | 9 +++- src/routes/(app)/invoice/[id]/tip/+page.svelte | 47 +++++++++--------- .../(app)/pay/[username]/[...amount]/+page.svelte | 8 +++- src/routes/(app)/payment/[id]/+page.svelte | 40 +++++++++++----- src/routes/(app)/payment/[id]/plain/+page.svelte | 19 ++++++-- src/routes/(app)/send/ark/[address]/+page.svelte | 14 ++++-- .../(app)/send/bitcoin/[address]/+page.svelte | 14 ++++-- .../send/fund/[...name]/[...amount]/+page.svelte | 11 +++-- src/routes/(app)/send/invoice/[id]/+page.svelte | 27 +++++++---- .../send/lightning/[payreq]/[...memo]/+page.svelte | 13 +++-- src/routes/(app)/settings/nostr/+page.svelte | 13 +++-- 15 files changed, 231 insertions(+), 144 deletions(-) (limited to 'src/routes') diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 19c0708d..3a399c3a 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -13,6 +13,8 @@ password, pin, theme as themeStore, + fiat, + rate as rateStore, } from "$lib/store"; import { page } from "$app/stores"; import { browser } from "$app/environment"; @@ -20,7 +22,7 @@ import AppHeader from "$comp/AppHeader.svelte"; import Nostr from "$comp/Nostr.svelte"; import Password from "$comp/Password.svelte"; - import { s, success, post, getCookie, warning } from "$lib/utils"; + import { s, f, toFiat, success, post, getCookie, warning } from "$lib/utils"; import { t, locale, loading } from "$lib/translations"; import { goto, invalidate, afterNavigate, preloadData } from "$app/navigation"; @@ -49,7 +51,11 @@ let amount = notification.newVtxos.reduce((a, b) => a + b.value, 0); if (!amount) return; - success(`Received ⚡️${s(amount)}!`); + if ($fiat && $rateStore && user?.currency) { + success(`Received ${f(toFiat(amount, $rateStore), user.currency)}!`); + } else { + success(`Received ⚡️${s(amount)}!`); + } try { let inv = await post(`/invoice`, { diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index 4a55c6e6..f929a602 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -1,14 +1,6 @@
@@ -54,6 +52,15 @@
+
+ + +
+
{#if mnemonic} @@ -69,28 +76,6 @@ >
{$t("accounts.revealMnemonic")}
- {:else if nwc} -
- {nwc} -
- - - - - {:else} - {/if} {#if seed} @@ -102,7 +87,9 @@ {/if}
-
+
diff --git a/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte b/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte index 530aa126..1f20820c 100644 --- a/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte +++ b/src/routes/(app)/ecash/[id]/[...version]/+layout.svelte @@ -1,6 +1,8 @@