From 8aeb0d6d818b823afec1ee7e5749971468842c9c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Sep 2024 13:22:31 -0700 Subject: fix signing --- src/routes/(app)/[username]/(profile)/+page.svelte | 12 +++------ src/routes/(app)/account/[id]/+page.svelte | 19 +++++++------- src/routes/(app)/account/pass/+page.svelte | 29 +++++++++++++++------- src/routes/(app)/account/seed/+page.svelte | 26 ++++++++----------- src/routes/(app)/payment/[id]/+page.svelte | 17 +++++++++++++ .../(app)/send/bitcoin/[address]/+layout.server.ts | 12 +++++++++ .../[address]/[amount]/[...feeRate]/+page.svelte | 20 +++++++++------ 7 files changed, 84 insertions(+), 51 deletions(-) create mode 100644 src/routes/(app)/send/bitcoin/[address]/+layout.server.ts (limited to 'src/routes/(app)') diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 2c2ff9a8..0d85fc56 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -28,14 +28,6 @@
{#if user?.id === subject.id} - {#if !user.balance} -
-

- {$t("user.welcome")} -

-
- {/if} - {#each accounts as account} {/each} @@ -47,7 +39,9 @@ >
-
{$t("accounts.addAccount")}
+
+ {$t("accounts.addAccount")} +
diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index 3dcd99b8..06494dd8 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -1,4 +1,5 @@
-

Seed phrase

+

+ {$t("accounts.seedPhrase")} +

{#if $mnemonic} -
- {#each $mnemonic.split(" ") as w, i} -
- {i + 1}. - {@html w === "-" ? "—" : w} -
- {/each} -
+ {/if}
@@ -45,7 +39,7 @@ on:click={generate} > -
Regenerate
+
{$t("accounts.regenerate")}
@@ -74,7 +68,7 @@ type="button" class="bg-black text-white w-full px-5 py-6 text-xl rounded-2xl font-bold" > - Next + {$t("accounts.next")}
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 9a278049..481d0242 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -34,6 +34,7 @@ rate, type, ref, + path, tip, ourfee, fee, @@ -57,6 +58,7 @@ rate, type, ref, + path, tip, ourfee, fee, @@ -225,6 +227,21 @@
{/if} + {#if path} +
+ Path +
+
{path}
+ +
+
+ {/if} +
{#if user.admin}