From 55b53955fc590dd1e008ced039be6ea0252c2105 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Fri, 19 May 2023 15:49:34 -0600 Subject: [PATCH] add page to show mnemonic seed phrase for backup --- project.yaml | 7 +- src/router/index.ts | 8 ++ src/views/AccountViewView.vue | 9 +- src/views/ContactAmountsView.vue | 5 +- src/views/ContactsView.vue | 5 +- src/views/HelpView.vue | 93 ++++++++++++++++-- src/views/NewEditProjectView.vue | 19 ++-- src/views/ProjectViewView.vue | 1 - src/views/ProjectsView.vue | 1 - src/views/SeedBackupView.vue | 162 +++++++++++++++++++++++++++++++ 10 files changed, 278 insertions(+), 32 deletions(-) create mode 100644 src/views/SeedBackupView.vue diff --git a/project.yaml b/project.yaml index 64601fa..330e78b 100644 --- a/project.yaml +++ b/project.yaml @@ -6,13 +6,11 @@ - replace user-affecting console.logs with error messages (eg. catches) - contacts v1 : - - .1 remove 'copy' until it works - .5 Add page to show seed. - 01 Provide a way to import the non-sensitive data. - 01 Provide way to share your contact info. - .2 move all "identity" references to temporary account access - .5 make deploy for give-only features - - .5 get 'copy' to work on account page - contacts v+ : - .5 make advanced "show/hide amounts" button into a nice UI toggle @@ -22,10 +20,11 @@ - refactor UI : - .5 Alerts show at the top and can be missed, eg. account data download - 01 Change alerts into a component (to cut down duplicate code) - - 01 Code for "nav" tabs across the bottom is duplicated on each page. - - .2 Add "copied" feedback when they click "copy" on /account + - 01 Change "nav" tabs across the bottom into a component (eliminating duplicate code). - .5 Fix how icons show on top of bottom bar on ContactAmounts page +- on stats-world, use all bits of randomness for location + - commit screen - discover screen diff --git a/src/router/index.ts b/src/router/index.ts index f9f5f82..6d95fcc 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -115,6 +115,14 @@ const routes: Array = [ component: () => import(/* webpackChunkName: "projects" */ "../views/ProjectsView.vue"), }, + { + path: "/seed-backup", + name: "seed-backup", + component: () => + import( + /* webpackChunkName: "seed-backup" */ "../views/SeedBackupView.vue" + ), + }, { path: "/start", name: "start", diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 7a387a8..6e3da9f 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -164,12 +164,13 @@

Data

- Backup Identifier Seed - + +
+
+ +
+ +

{{ activeAccount.mnemonic }}

+
+
You do not have an active identity.
+ + +
+ +

{{ alertTitle }}

+

{{ alertMessage }}

+
+ + + +