general cleanups

ref #5
This commit is contained in:
Philipp Dormann 2020-12-30 12:35:07 +01:00
parent 7e69eeef29
commit 428d2e2579
3 changed files with 16 additions and 14 deletions

View File

@ -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,

View File

@ -1,5 +1,5 @@
<script>
import FilePond, { registerPlugin, supported } from "svelte-filepond";
import FilePond from "svelte-filepond";
let pond;
// pond.getFiles() will return the active files
// the name to use for the internal file input

View File

@ -2,12 +2,20 @@
import { _ } from "svelte-i18n";
</script>
<footer class="text-gray-700 body-font">
<div
class="container px-5 py-8 mx-auto flex items-center sm:flex-row flex-col">
<p
class="text-sm text-gray-500 sm:ml-4 sm:pl-4 sm:py-2 sm:mt-0 mt-4">
proudly powered by <a class="underline" href="https://odit.services" rel="noopener,noreferrer" target="_blank">ODIT.Services</a>
</p>
<footer class="block py-4">
<div class="container mx-auto px-4">
<hr class="mb-4 border-b-1 border-gray-300" />
<footer class="text-gray-700 body-font">
<div class="container mx-auto flex items-center sm:flex-row flex-col">
<p class="text-sm text-gray-500 mt-4">
Lauf für Kaya! Läufersystem - Copyright © 2020 + proudly powered by
<a
class="underline"
href="https://odit.services"
rel="noopener,noreferrer"
target="_blank">ODIT.Services</a>
</p>
</div>
</footer>
</div>
</footer>