diff --git a/ng-app/src/App.svelte b/ng-app/src/App.svelte index 0beae8f..6ba0cdc 100644 --- a/ng-app/src/App.svelte +++ b/ng-app/src/App.svelte @@ -26,6 +26,7 @@ import NotFound from "./routes/NotFound.svelte"; import WalletCreate from "./routes/WalletCreate.svelte"; import WalletLogin from "./routes/WalletLogin.svelte"; + import User from "./routes/User.svelte"; import UserRegistered from "./routes/UserRegistered.svelte"; import Install from "./lib/Install.svelte"; @@ -36,6 +37,7 @@ routes.set("/test", Test); routes.set("/wallet/login", WalletLogin); routes.set("/wallet/create", WalletCreate); + routes.set("/user", User); routes.set("/user/registered", UserRegistered); if (import.meta.env.NG_APP_WEB) routes.set("/install", Install); routes.set(/^\/ng(.*)/i, URI); diff --git a/ng-app/src/lib/CenteredLayout.svelte b/ng-app/src/lib/CenteredLayout.svelte index d49de8d..a748f29 100644 --- a/ng-app/src/lib/CenteredLayout.svelte +++ b/ng-app/src/lib/CenteredLayout.svelte @@ -1,3 +1,14 @@ + +
diff --git a/ng-app/src/lib/FullLayout.svelte b/ng-app/src/lib/FullLayout.svelte index 08ac5bc..9941d38 100644 --- a/ng-app/src/lib/FullLayout.svelte +++ b/ng-app/src/lib/FullLayout.svelte @@ -47,17 +47,15 @@ mobile = true; } + let top; async function scrollToTop() { await tick(); - console.log("scrollToTop"); top.scrollIntoView(); } onMount(async () => await scrollToTop()); $: activeUrl = "#" + $location; - let top; - let asideClass = "w-48"; let spanClass = "flex-1 ml-3 whitespace-nowrap"; let nonActiveClass = diff --git a/ng-app/src/lib/Home.svelte b/ng-app/src/lib/Home.svelte index b020997..9c2b286 100644 --- a/ng-app/src/lib/Home.svelte +++ b/ng-app/src/lib/Home.svelte @@ -78,38 +78,6 @@ {/if} - -

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/MobileBottomBar.svelte b/ng-app/src/lib/MobileBottomBar.svelte index 57a721f..f27a724 100644 --- a/ng-app/src/lib/MobileBottomBar.svelte +++ b/ng-app/src/lib/MobileBottomBar.svelte @@ -1,3 +1,14 @@ + + + + +
+
+ + + +
  • +

    User panel

    +
  • + +
  • window.history.go(-1)} + on:click={() => window.history.go(-1)} + > + + Back +
  • + +
  • + {#if $online} + + Online + {:else} + + Offline + {/if} +
  • + + +
  • + + Logout +
  • + + + + + + + + + + + + + + + + + + + + + +
  • + Personal +
  • +
    + + + + + + + + + + + +
  • + Version: {version} +
  • +
    +
    +
    +
    + {#if error} +
    + + {#if error == "AlreadyExists"} +

    + The user is already registered with the selected broker.
    Try logging + in instead +

    + + + + {:else} +

    + An error occurred:
    {error} +

    + + + + {/if} +
    + {/if} +
    +
    + + diff --git a/ng-app/src/routes/WalletCreate.svelte b/ng-app/src/routes/WalletCreate.svelte index 2e032a5..ffaaeb9 100644 --- a/ng-app/src/routes/WalletCreate.svelte +++ b/ng-app/src/routes/WalletCreate.svelte @@ -1247,7 +1247,7 @@ id="security-phrase-input" placeholder="Type a security phrase..." bind:value={security_txt} - on:keydown={security_phrase_ok} + on:keypress={security_phrase_ok} />