@@ -15,14 +15,10 @@
|
||||
//
|
||||
import Login from "./components/Login.svelte";
|
||||
import Dashboard from "./components/Dashboard.svelte";
|
||||
import Footer from "./components/Footer.svelte";
|
||||
import NotFound from "./components/NotFound.svelte";
|
||||
import Tracks from "./components/Tracks.svelte";
|
||||
// import Profile from "./components/Profile.svelte";
|
||||
import store from "./store.js";
|
||||
import ForgotPassword from "./components/ForgotPassword.svelte";
|
||||
store.init();
|
||||
$: logged_in = $store.isLoggedIn;
|
||||
//
|
||||
const checkAuth = (detail) => {
|
||||
if (!$store.isLoggedIn) {
|
||||
@@ -37,8 +33,6 @@
|
||||
"/forgot_password": ForgotPassword,
|
||||
"/dashboard": wrap({ component: Dashboard, conditions: [checkAuth] }),
|
||||
"/": wrap({ component: Dashboard, conditions: [checkAuth] }),
|
||||
// "/password_reset_sent/*": Book,
|
||||
|
||||
// Using named parameters, with last being optional
|
||||
// "/author/:first/:last?": Author,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user