From b18a99e4df6111e137a8081c3e6619da6f5af30c Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Feb 2021 12:51:21 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20added=20basic=20UI=20for=20ResetPas?= =?UTF-8?q?sword?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #43 --- src/App.svelte | 5 ++ src/components/ResetPassword.svelte | 105 ++++++++++++++++++++++++++++ src/locales/en.json | 2 + 3 files changed, 112 insertions(+) create mode 100644 src/components/ResetPassword.svelte diff --git a/src/App.svelte b/src/App.svelte index 78f36281..790744db 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -52,6 +52,7 @@ import RunnerDetail from "./components/RunnerDetail.svelte"; import Imprint from "./components/Imprint.svelte"; import Privacy from "./components/Privacy.svelte"; +import ResetPassword from "./components/ResetPassword.svelte"; store.init(); registerSW(); @@ -61,6 +62,10 @@ + {:else if $router.path.includes('/reset')} + + + {:else if $router.path === '/about'} diff --git a/src/components/ResetPassword.svelte b/src/components/ResetPassword.svelte new file mode 100644 index 00000000..b49ceffe --- /dev/null +++ b/src/components/ResetPassword.svelte @@ -0,0 +1,105 @@ + + +{#if reset_success} +
+
+ +

+ {$_('application_name')} +

+

+ Successful password reset! +

+

+ You can now use your new password to log in to your account! 🎉 +

+ +
+
+{:else} +
+
+ +

+ {$_('application_name')} +

+

+ {$_('reset-password')} +

+
+
+
+ +
+
+ +
+ +
+
+
+
+{/if} diff --git a/src/locales/en.json b/src/locales/en.json index 215fa57a..68ac61e6 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -115,6 +115,7 @@ "middle-name": "Middle name", "minimum-lap-time-in-s": "minimum lap time in s", "name": "Name", + "new-password": "New password", "no-license-text-could-be-found": "No license text could be found 😢", "no-tracks-added-yet": "there are no tracks added yet.", "organization": "Organization", @@ -135,6 +136,7 @@ "register": "Register", "repo_link": "Link", "reset-my-password": "Reset my password", + "reset-password": "Reset your password", "runner-import": "Runner Import", "runner-updated": "Runner updated!", "runnerimport_verify_runners_org": "Please confirm these runners for import into the organization \"{org_name}\"",