mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-12-23 12:09:47 +00:00
Remove dashboard page
This commit is contained in:
parent
f7fe431c5d
commit
d95530c595
4 changed files with 4 additions and 21 deletions
|
@ -4,18 +4,7 @@
|
||||||
import { apiUri } from '$lib/utils/common';
|
import { apiUri } from '$lib/utils/common';
|
||||||
|
|
||||||
const drawerStore = getDrawerStore();
|
const drawerStore = getDrawerStore();
|
||||||
function drawerOpen() {
|
/** @type {ApiResponse} */
|
||||||
drawerStore.open({});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef formResult
|
|
||||||
* @type {object}
|
|
||||||
* @property {string} status
|
|
||||||
* @property {string} message
|
|
||||||
* @property {null | object} data
|
|
||||||
*/
|
|
||||||
/** @type {formResult} */
|
|
||||||
let formResult;
|
let formResult;
|
||||||
|
|
||||||
/** @param {{ currentTarget: EventTarget & HTMLFormElement}} event */
|
/** @param {{ currentTarget: EventTarget & HTMLFormElement}} event */
|
||||||
|
@ -34,7 +23,6 @@
|
||||||
formResult = await response.json();
|
formResult = await response.json();
|
||||||
|
|
||||||
if (formResult.status === 'ok') {
|
if (formResult.status === 'ok') {
|
||||||
// rerun all `load` functions, following the successful update
|
|
||||||
await invalidateAll();
|
await invalidateAll();
|
||||||
goto('/login/');
|
goto('/login/');
|
||||||
}
|
}
|
||||||
|
@ -48,7 +36,7 @@
|
||||||
<button
|
<button
|
||||||
class="btn btn-sm inline-flex items-center md:hidden"
|
class="btn btn-sm inline-flex items-center md:hidden"
|
||||||
aria-label="Mobile Drawer Button"
|
aria-label="Mobile Drawer Button"
|
||||||
on:click={drawerOpen}
|
on:click={() => drawerStore.open({})}
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<svg viewBox="0 0 100 80" class="fill-token h-4 w-4">
|
<svg viewBox="0 0 100 80" class="fill-token h-4 w-4">
|
||||||
|
@ -58,8 +46,7 @@
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
<a href="/app/prober/" class="ms-2 flex md:me-24" aria-label="title">
|
||||||
<a href="/app/dashboard/" class="ms-2 flex md:me-24" aria-label="title">
|
|
||||||
<span class="hidden self-center whitespace-nowrap text-2xl font-semibold lg:block"
|
<span class="hidden self-center whitespace-nowrap text-2xl font-semibold lg:block"
|
||||||
>XMR Nodes</span
|
>XMR Nodes</span
|
||||||
>
|
>
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
export const adminNavs = [
|
export const adminNavs = [
|
||||||
{ name: 'Dashboard', path: '/app/dashboard/' },
|
|
||||||
{ name: 'Prober', path: '/app/prober/' },
|
{ name: 'Prober', path: '/app/prober/' },
|
||||||
{ name: 'Crons', path: '/app/crons/' }
|
{ name: 'Crons', path: '/app/crons/' }
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
<div class="mb-4">
|
|
||||||
<h1 class="h2 font-extrabold dark:text-white">Dashboard</h1>
|
|
||||||
</div>
|
|
|
@ -35,7 +35,7 @@
|
||||||
if (formResult.status === 'ok') {
|
if (formResult.status === 'ok') {
|
||||||
// rerun all `load` functions, following the successful update
|
// rerun all `load` functions, following the successful update
|
||||||
await invalidateAll();
|
await invalidateAll();
|
||||||
goto('/app/dashboard/');
|
goto('/app/prober/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue