From 71d1607693f6b9d3bafa39e5f23124fa7a1efe59 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Sat, 6 Jul 2024 03:40:33 +0300 Subject: [PATCH] several fixes on Login and CreateWallet screens --- Cargo.toml | 3 + ng-app/src/lib/FullLayout.svelte | 16 +- ng-app/src/lib/Home.svelte | 4 +- ng-app/src/lib/Login.svelte | 161 ++++++++++------- ng-app/src/routes/User.svelte | 28 +-- ng-app/src/routes/WalletCreate.svelte | 217 ++++++++++++----------- ngone/web/src/routes/WalletCreate.svelte | 2 +- 7 files changed, 230 insertions(+), 201 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bc843f9..aaca5cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,6 +38,9 @@ documentation = "https://docs.nextgraph.org/" lto = true opt-level = 's' +[profile.dev] +opt-level = 2 + [patch.crates-io] # tauri = { git = "https://github.com/simonhyll/tauri.git", branch="fix/ipc-mixup"} # tauri = { git = "https://git.nextgraph.org/NextGraph/tauri.git", branch="alpha.11-nextgraph", features = ["no-ipc-custom-protocol"] } diff --git a/ng-app/src/lib/FullLayout.svelte b/ng-app/src/lib/FullLayout.svelte index 6ccd37e..1be041b 100644 --- a/ng-app/src/lib/FullLayout.svelte +++ b/ng-app/src/lib/FullLayout.svelte @@ -112,7 +112,7 @@ @@ -120,7 +120,7 @@ @@ -128,7 +128,7 @@ @@ -136,7 +136,7 @@ @@ -144,7 +144,7 @@ @@ -152,7 +152,7 @@ @@ -164,7 +164,7 @@ {/if} NextGraph @@ -60,7 +60,7 @@ class="w-7 h-7 text-black transition duration-75 dark:text-white group-hover:text-gray-900 dark:group-hover:text-white focus:outline-none" /> - + {:else if step == "pazzle" || step == "order" || step == "pin" || step == "mnemonic"}
660} class:min-w-[310px]={mobile} class:min-w-[500px]={!mobile} class:max-w-[370px]={mobile} @@ -458,25 +477,25 @@ Your 12 words mnemonic
- Confirm
@@ -484,7 +503,7 @@

- Select your emoji of category: {emoji_cat[ + Select your emoji of category:
{emoji_cat[ shuffle.category_indices[pazzlePage] ]}
@@ -506,7 +525,7 @@ {/each} {:else if step == "order"}

- Click your emojis in the correct order + Select each image in the correct order

{#each [0, 1, 2] as row}
@@ -543,11 +562,8 @@
{/each} {:else if step == "pin"} -

- Enter your PIN code: - {#each pin_code as pin_key}*{/each} +

+ Enter your PIN code

-
+
{#if step === "mnemonic" || (step === "pazzle" && pazzlePage === 0)}Go + back{:else}Correct{/if}
@@ -638,7 +658,7 @@
{:else if step == "end"} {#if error} -
+
An error occurred !
+ -
{:else} @@ -707,6 +727,10 @@