From d4c3d52fdde5fef8f72c1f572f1ce7c70da86b23 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Sep 2024 15:55:38 -0700 Subject: progress on accounts --- static/icons/cash.svg | 12 ++++++++++++ static/icons/text.svg | 19 +++---------------- 2 files changed, 15 insertions(+), 16 deletions(-) create mode 100644 static/icons/cash.svg (limited to 'static/icons') diff --git a/static/icons/cash.svg b/static/icons/cash.svg new file mode 100644 index 00000000..966c00a5 --- /dev/null +++ b/static/icons/cash.svg @@ -0,0 +1,12 @@ + + \ No newline at end of file diff --git a/static/icons/text.svg b/static/icons/text.svg index 2bf9998f..a8fe6e04 100644 --- a/static/icons/text.svg +++ b/static/icons/text.svg @@ -1,17 +1,4 @@ - - - - - align-left - Created with Sketch Beta. - - - - - - - - - - + + + \ No newline at end of file -- cgit v1.2.3 From 52871e09d9218f3f2fb2ce4bd6e97f5c1fc15480 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 23 Sep 2024 16:22:10 -0700 Subject: account import --- src/components/Account.svelte | 6 +- src/components/WalletPass.svelte | 67 ++++++++++++++++++++++ src/lib/utils.ts | 1 + src/locales/en.json | 14 ++++- src/routes/(app)/[username]/(profile)/+page.svelte | 4 +- src/routes/(app)/account/[id]/+page.svelte | 52 +++++++++++++++-- src/routes/(app)/account/import/+page.svelte | 43 +++++++------- src/routes/(app)/account/pass/+page.svelte | 10 ++-- src/routes/(app)/account/savings/+page.svelte | 10 ++-- src/routes/(app)/invoice/+page.server.ts | 3 +- .../pay/[username]/[...amount]/+page.server.ts | 5 +- src/routes/(app)/payments/[...page]/+page.svelte | 2 + .../[amount]/[...feeRate]/+page.server.ts | 5 +- .../[address]/[amount]/[...feeRate]/+page.svelte | 61 +------------------- src/routes/(app)/send/invoice/[id]/+page.server.ts | 5 +- .../(app)/send/lightning/[payreq]/+page.server.ts | 5 +- src/routes/(app)/sent/+page.server.ts | 7 --- src/routes/(app)/sent/+page.svelte | 52 ----------------- src/routes/(app)/sent/[id]/+page.server.ts | 7 +++ src/routes/(app)/sent/[id]/+page.svelte | 49 ++++++++++++++++ static/icons/balance.svg | 29 ++++++++++ 21 files changed, 266 insertions(+), 171 deletions(-) create mode 100644 src/components/WalletPass.svelte delete mode 100644 src/routes/(app)/sent/+page.server.ts delete mode 100644 src/routes/(app)/sent/+page.svelte create mode 100644 src/routes/(app)/sent/[id]/+page.server.ts create mode 100644 src/routes/(app)/sent/[id]/+page.svelte create mode 100644 static/icons/balance.svg (limited to 'static/icons') diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 47deadcd..4bfdc4ac 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -1,5 +1,4 @@ @@ -40,7 +38,7 @@ - +
+
+

+ {$t("payments.enterWalletPass")} +

+
+
+ {#if revealPassword} + + {:else} + + {/if} + +
+
+ + +
+
+
+
diff --git a/src/lib/utils.ts b/src/lib/utils.ts index c20a7d29..0997eeb9 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -287,6 +287,7 @@ export let types = { internal: "internal", fund: "fund", ecash: "ecash", + reconcile: "reconcile", }; export let ease = (t: number): number => diff --git a/src/locales/en.json b/src/locales/en.json index 9752a41d..78ef8de1 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,6 +1,18 @@ { "accounts": { - "savings": "Savings" + "addAccount": "Add account", + "create": "Create", + "import": "Import", + "accountSetup": "Account setup", + "enterSeed": "Enter a seed phrase", + "passwordMismatch": "Passwords don't match", + "generateSeed": "Generate a new seed phrase in your browser", + "accountPassword": "Account password", + "importSeed": "Enter an existing seed phrase", + "passwordWarning": "If you lose this password you won't be able to withdraw funds from the account or restore your seed phrase. We can't recover it for you.", + "savings": "Savings", + "password": "Password", + "confirmPassword": "Confirm password" }, "404": { "404": "404", diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte index 03fbc454..2c2ff9a8 100644 --- a/src/routes/(app)/[username]/(profile)/+page.svelte +++ b/src/routes/(app)/[username]/(profile)/+page.svelte @@ -41,13 +41,13 @@ {/each}
- + diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index df121168..3dcd99b8 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -1,13 +1,27 @@
-

Import

+

{$t("accounts.import")}

-
-
-