Compare commits
No commits in common. "27c525d5bd137d4ce8d6ff6e7a7edb17e5c4d209" and "c98905e285e4cd1cf11106411dfb87b39eb81590" have entirely different histories.
27c525d5bd
...
c98905e285
@ -53,18 +53,8 @@
|
|||||||
enabled: data.settingsRead
|
enabled: data.settingsRead
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
let pageTitleSuffix =
|
|
||||||
tabs.find((t) => $page.url.pathname === t.path)?.name ??
|
|
||||||
$page.url.pathname === `${env.PUBLIC_BASE_PATH}/admin/login`
|
|
||||||
? 'Login '
|
|
||||||
: null;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
|
||||||
<title>Craftattack Admin{pageTitleSuffix ? ` - ${pageTitleSuffix}` : ''}</title>
|
|
||||||
</svelte:head>
|
|
||||||
|
|
||||||
{#if $page.url.pathname !== `${env.PUBLIC_BASE_PATH}/admin/login`}
|
{#if $page.url.pathname !== `${env.PUBLIC_BASE_PATH}/admin/login`}
|
||||||
<div class="h-12 relative bg-base-200 flex justify-center items-center">
|
<div class="h-12 relative bg-base-200 flex justify-center items-center">
|
||||||
<ul class="menu menu-horizontal h-10 p-0 flex items-center bg-base-300 rounded-lg">
|
<ul class="menu menu-horizontal h-10 p-0 flex items-center bg-base-300 rounded-lg">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Input from '$lib/components/Input/Input.svelte';
|
import Input from '$lib/components/Input/Input.svelte';
|
||||||
import { env } from '$env/dynamic/public';
|
import { env } from '$env/dynamic/public';
|
||||||
|
import { goto } from '$app/navigation';
|
||||||
import { errorMessage } from '$lib/stores';
|
import { errorMessage } from '$lib/stores';
|
||||||
|
|
||||||
let passwordValue: string;
|
let passwordValue: string;
|
||||||
@ -12,7 +13,7 @@
|
|||||||
body: new FormData(document.forms[0])
|
body: new FormData(document.forms[0])
|
||||||
});
|
});
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
window.location = `${env.PUBLIC_BASE_PATH}/admin`;
|
await goto(`${env.PUBLIC_BASE_PATH}/admin`, { invalidateAll: true });
|
||||||
resolve();
|
resolve();
|
||||||
} else if (response.status == 401) {
|
} else if (response.status == 401) {
|
||||||
passwordValue = '';
|
passwordValue = '';
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
<title>Report</title>
|
|
||||||
<!-- just in case... -->
|
<!-- just in case... -->
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user