Remove dashboard page

This commit is contained in:
ditatompel 2024-05-08 20:27:06 +07:00
parent f7fe431c5d
commit d95530c595
No known key found for this signature in database
GPG key ID: 31D3D06D77950979
4 changed files with 4 additions and 21 deletions

View file

@ -4,18 +4,7 @@
import { apiUri } from '$lib/utils/common';
const drawerStore = getDrawerStore();
function drawerOpen() {
drawerStore.open({});
}
/**
* @typedef formResult
* @type {object}
* @property {string} status
* @property {string} message
* @property {null | object} data
*/
/** @type {formResult} */
/** @type {ApiResponse} */
let formResult;
/** @param {{ currentTarget: EventTarget & HTMLFormElement}} event */
@ -34,7 +23,6 @@
formResult = await response.json();
if (formResult.status === 'ok') {
// rerun all `load` functions, following the successful update
await invalidateAll();
goto('/login/');
}
@ -48,7 +36,7 @@
<button
class="btn btn-sm inline-flex items-center md:hidden"
aria-label="Mobile Drawer Button"
on:click={drawerOpen}
on:click={() => drawerStore.open({})}
>
<span>
<svg viewBox="0 0 100 80" class="fill-token h-4 w-4">
@ -58,8 +46,7 @@
</svg>
</span>
</button>
<a href="/app/dashboard/" class="ms-2 flex md:me-24" aria-label="title">
<a href="/app/prober/" class="ms-2 flex md:me-24" aria-label="title">
<span class="hidden self-center whitespace-nowrap text-2xl font-semibold lg:block"
>XMR Nodes</span
>

View file

@ -1,5 +1,4 @@
export const adminNavs = [
{ name: 'Dashboard', path: '/app/dashboard/' },
{ name: 'Prober', path: '/app/prober/' },
{ name: 'Crons', path: '/app/crons/' }
];

View file

@ -1,3 +0,0 @@
<div class="mb-4">
<h1 class="h2 font-extrabold dark:text-white">Dashboard</h1>
</div>

View file

@ -35,7 +35,7 @@
if (formResult.status === 'ok') {
// rerun all `load` functions, following the successful update
await invalidateAll();
goto('/app/dashboard/');
goto('/app/prober/');
}
}
</script>