|
@ -2,6 +2,10 @@ |
|
|
import { Router, Link, Route } from "svelte-routing"; |
|
|
import { Router, Link, Route } from "svelte-routing"; |
|
|
import { onMount } from "svelte"; |
|
|
import { onMount } from "svelte"; |
|
|
|
|
|
|
|
|
|
|
|
import authStore from "./stores/auth"; |
|
|
|
|
|
import Boi from "./components/Boi.svelte"; |
|
|
|
|
|
import { signOut } from "./clients/amplify"; |
|
|
|
|
|
|
|
|
import FrontPage from "./pages/FrontPage.svelte"; |
|
|
import FrontPage from "./pages/FrontPage.svelte"; |
|
|
import ProjectPage from "./pages/ProjectPage.svelte"; |
|
|
import ProjectPage from "./pages/ProjectPage.svelte"; |
|
|
import LogsPage from "./pages/LogsPage.svelte"; |
|
|
import LogsPage from "./pages/LogsPage.svelte"; |
|
@ -21,7 +25,10 @@ |
|
|
import FocusHandler from "./components/FocusHandler.svelte"; |
|
|
import FocusHandler from "./components/FocusHandler.svelte"; |
|
|
import Menu from "./components/Menu.svelte"; |
|
|
import Menu from "./components/Menu.svelte"; |
|
|
|
|
|
|
|
|
import authStore from "./stores/auth"; |
|
|
|
|
|
|
|
|
async function logout() { |
|
|
|
|
|
await signOut(); |
|
|
|
|
|
await authStore.check(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
onMount(() => { |
|
|
onMount(() => { |
|
|
authStore.check() |
|
|
authStore.check() |
|
@ -40,6 +47,10 @@ |
|
|
<Route path="/questlog/" component={QlPage} /> |
|
|
<Route path="/questlog/" component={QlPage} /> |
|
|
<Route path="/logs/" component={LogsPage} /> |
|
|
<Route path="/logs/" component={LogsPage} /> |
|
|
<Route path="/items/" component={GroupPage} /> |
|
|
<Route path="/items/" component={GroupPage} /> |
|
|
|
|
|
|
|
|
|
|
|
<footer> |
|
|
|
|
|
<Boi compact tiny on:click={logout}>Sign out</Boi> |
|
|
|
|
|
</footer> |
|
|
</main> |
|
|
</main> |
|
|
</Router> |
|
|
</Router> |
|
|
<ModalRoute name="log.add"> <LogForm creation /></ModalRoute> |
|
|
<ModalRoute name="log.add"> <LogForm creation /></ModalRoute> |
|
@ -70,7 +81,14 @@ |
|
|
text-align: left; |
|
|
text-align: left; |
|
|
max-width: 99.5%; |
|
|
max-width: 99.5%; |
|
|
margin: 1em auto; |
|
|
margin: 1em auto; |
|
|
padding-bottom: 4em; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
footer { |
|
|
|
|
|
text-align: left; |
|
|
|
|
|
width: 920px; |
|
|
|
|
|
max-width: 99.5%; |
|
|
|
|
|
margin: 1em auto; |
|
|
|
|
|
padding-bottom: 4em; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |