From 27e9aedea3ce59c9cbec709a6fa640cb2fdb7b78 Mon Sep 17 00:00:00 2001 From: Julian Jelfs Date: Thu, 5 Oct 2023 17:16:13 +0100 Subject: [PATCH] Save crypto addresses (#4491) Co-authored-by: Hamish Peebles --- frontend/app/src/components/Menu.svelte | 2 + frontend/app/src/components/MenuItem.svelte | 16 ++- .../home/profile/AccountSelector.svelte | 102 ++++++++++++++++++ .../home/profile/ManageCryptoAccount.svelte | 49 +++++++-- .../home/profile/SaveAccount.svelte | 47 ++++++++ .../components/home/profile/SendCrypto.svelte | 98 +++++++++++------ frontend/app/src/i18n/cn.json | 8 +- frontend/app/src/i18n/de.json | 8 +- frontend/app/src/i18n/en.json | 8 +- frontend/app/src/i18n/es.json | 8 +- frontend/app/src/i18n/fr.json | 8 +- frontend/app/src/i18n/it.json | 8 +- frontend/app/src/i18n/iw.json | 8 +- frontend/app/src/i18n/jp.json | 10 +- frontend/app/src/i18n/ru.json | 8 +- frontend/app/src/i18n/vi.json | 8 +- .../src/services/user/candid/idl.d.ts | 10 +- .../src/services/user/mappers.ts | 26 +++++ .../src/services/user/user.client.ts | 21 ++++ frontend/openchat-client/src/openchat.ts | 15 +++ .../openchat-shared/src/domain/user/user.ts | 10 +- frontend/openchat-shared/src/domain/worker.ts | 19 ++++ frontend/openchat-worker/src/worker.ts | 16 +++ 23 files changed, 457 insertions(+), 56 deletions(-) create mode 100644 frontend/app/src/components/home/profile/AccountSelector.svelte create mode 100644 frontend/app/src/components/home/profile/SaveAccount.svelte diff --git a/frontend/app/src/components/Menu.svelte b/frontend/app/src/components/Menu.svelte index 6edf5cb1a3..f952e084aa 100644 --- a/frontend/app/src/components/Menu.svelte +++ b/frontend/app/src/components/Menu.svelte @@ -21,6 +21,8 @@ box-shadow: var(--menu-sh); border-radius: $sp2; border: 1px solid var(--menu-bd); + max-height: 80vh; + overflow-y: auto; @include mobile() { &.centered { diff --git a/frontend/app/src/components/MenuItem.svelte b/frontend/app/src/components/MenuItem.svelte index 1734724274..62bacab308 100644 --- a/frontend/app/src/components/MenuItem.svelte +++ b/frontend/app/src/components/MenuItem.svelte @@ -3,10 +3,11 @@ export let selected: boolean = false; export let warning: boolean = false; export let separator: boolean = false; + export let unpadded: boolean = false; {#if disabled} -