From 58e7bb85a0d1738b8606c125d6c0b6984862581e Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Sun, 1 Oct 2023 21:26:16 +0300 Subject: [PATCH] full-layout with mobile bottom bar --- .../gen/android/app/build.gradle.kts | 7 +- ng-app/src/lib/FullLayout.svelte | 190 +++++++++++ ng-app/src/lib/Home.svelte | 183 ++-------- ng-app/src/lib/Login.svelte | 12 +- ng-app/src/lib/MobileBottomBar.svelte | 23 ++ ng-app/src/lib/MobileBottomBarItem.svelte | 32 ++ ng-app/src/lib/NoWallet.svelte | 4 +- ng-app/src/routes/WalletCreate.svelte | 24 +- ng-app/src/routes/WalletLogin.svelte | 317 +++++++++--------- ng-app/src/styles.css | 4 +- ng-app/tailwind.config.cjs | 9 +- ngaccount/web/src/App.svelte | 8 + ngaccount/web/src/routes/Create.svelte | 2 +- ngone/web/src/App.svelte | 8 + 14 files changed, 497 insertions(+), 326 deletions(-) create mode 100644 ng-app/src/lib/FullLayout.svelte create mode 100644 ng-app/src/lib/MobileBottomBar.svelte create mode 100644 ng-app/src/lib/MobileBottomBarItem.svelte diff --git a/ng-app/src-tauri/gen/android/app/build.gradle.kts b/ng-app/src-tauri/gen/android/app/build.gradle.kts index 4cf41ca..155c96c 100644 --- a/ng-app/src-tauri/gen/android/app/build.gradle.kts +++ b/ng-app/src-tauri/gen/android/app/build.gradle.kts @@ -36,7 +36,8 @@ android { isDebuggable = true isJniDebuggable = true isMinifyEnabled = false - packaging { jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so") + packaging { + jniLibs.keepDebugSymbols.add("*/arm64-v8a/*.so") jniLibs.keepDebugSymbols.add("*/armeabi-v7a/*.so") jniLibs.keepDebugSymbols.add("*/x86/*.so") jniLibs.keepDebugSymbols.add("*/x86_64/*.so") @@ -45,6 +46,10 @@ android { getByName("release") { isMinifyEnabled = true signingConfig = signingConfigs.getByName("release") + packaging { + jniLibs.excludes.add("*/x86/*.so") + jniLibs.excludes.add("*/x86_64/*.so") + } proguardFiles( *fileTree(".") { include("**/*.pro") } .plus(getDefaultProguardFile("proguard-android-optimize.txt")) diff --git a/ng-app/src/lib/FullLayout.svelte b/ng-app/src/lib/FullLayout.svelte new file mode 100644 index 0000000..112cf7a --- /dev/null +++ b/ng-app/src/lib/FullLayout.svelte @@ -0,0 +1,190 @@ + + + + +{#if mobile} +
+
+ +
+ + + + + + + +
+{:else} +
+ + + + + + {#if $online} + + {:else} + + {/if} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + 10 + + + + + + + +
+ +
+
+{/if} + + + diff --git a/ng-app/src/lib/Home.svelte b/ng-app/src/lib/Home.svelte index c9f9c67..3955328 100644 --- a/ng-app/src/lib/Home.svelte +++ b/ng-app/src/lib/Home.svelte @@ -10,156 +10,45 @@ --> -
- - - - - - {#if $online} - - {:else} - - {/if} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - 10 - - - - - - - -
-

Welcoe {mobile}

-
- -
-
-
- - - + +

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+ +

Welcome

+ +
+ +
+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

Welcome

+

End

+
diff --git a/ng-app/src/lib/Login.svelte b/ng-app/src/lib/Login.svelte index 858cebe..00039cb 100644 --- a/ng-app/src/lib/Login.svelte +++ b/ng-app/src/lib/Login.svelte @@ -233,7 +233,7 @@ {:else if step == "pazzle"}
{:else if step == "pin"} -
+

Enter your PIN code

-
+
{#each [0, 1, 2] as row}
{#each shuffle_pin.slice(0 + row * 3, 3 + row * 3) as num}
-
+ {:else if pin.length < 4} -
+
{#if registration_success} {digit}{/each} -
+
{#each [0, 1, 2] as row}
{#each [1, 2, 3] as num}
{:else if pin_confirm.length < 4} -
+

- Please confirm your PIN code. Enter the same PIN again @@ -1153,13 +1155,13 @@ class="font-bold text-xl">{digit}{/each} -

+
{#each [0, 1, 2] as row}
{#each [1, 2, 3] as num} -
- {:else if wallet} - - {:else if !$active_wallet && !selected} -
-
-

Select a wallet to login with

-
- {#each Object.entries($wallets) as wallet_entry} - - {:else if step == "security"}{:else if step == "qrcode"}{:else if step == "cloud"}{:else if step == "loggedin"}you - are logged in{/if} - + {:else if step == "security"}{:else if step == "qrcode"}{:else if step == "cloud"}{:else if step == "loggedin"}you + are logged in{/if} + +
diff --git a/ngaccount/web/src/routes/Create.svelte b/ngaccount/web/src/routes/Create.svelte index 6418351..e43f71d 100644 --- a/ngaccount/web/src/routes/Create.svelte +++ b/ngaccount/web/src/routes/Create.svelte @@ -307,7 +307,7 @@ You can delete your account with us at any time by going to the link https://account.{domain}/#/deleteaccount.{domain}/#/delete or by entering in your NextGraph application and selecting the menu, then Accounts, then under broker "delete registration" diff --git a/ngone/web/src/App.svelte b/ngone/web/src/App.svelte index c229918..b0cbbd6 100644 --- a/ngone/web/src/App.svelte +++ b/ngone/web/src/App.svelte @@ -30,3 +30,11 @@
+ +