From 45cd532c1ae322759b7fe5393bb27c17c3c03f83 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Wed, 30 Dec 2020 18:16:42 +0100 Subject: [PATCH] improved About page + route ref #5 --- src/App.svelte | 2 + src/components/About.svelte | 140 +++++++++++++++++++++++++++++++- src/components/Dashboard.svelte | 17 +++- 3 files changed, 156 insertions(+), 3 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 8b57f2bc..f748e89e 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -18,6 +18,7 @@ import NotFound from "./components/NotFound.svelte"; import store from "./store.js"; import ForgotPassword from "./components/ForgotPassword.svelte"; + import About from "./components/About.svelte"; store.init(); // const checkAuth = (detail) => { @@ -29,6 +30,7 @@ return true; }; const routes = { + "/about": About, "/login": Login, "/forgot_password": ForgotPassword, "/dashboard": wrap({ component: Dashboard, conditions: [checkAuth] }), diff --git a/src/components/About.svelte b/src/components/About.svelte index 63af8e6a..862822f4 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -1,5 +1,6 @@