This commit is contained in:
2024-01-06 15:08:54 +01:00
parent efd674eae1
commit 9ee0fd5448
28 changed files with 1162 additions and 800 deletions

View File

@ -5,10 +5,12 @@ import {t} from "astro-i18n";
---
<PageLayout title={t("dashboard.page")}>
<script is:inline>
<script>
import {l} from "../util/util";
if ((localStorage.getItem("sw-session") ?? "") === "") {
window.location.href = l("/login");
if (window.location.href.endsWith("/dashboard") || window.location.href.endsWith("/dashboard/")) {
if ((localStorage.getItem("sw-session") ?? "") === "") {
window.location.href = l("/login");
}
}
</script>
<Dashboard client:only="svelte" />