2023-10-13 11:02:28 -04:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { page } from '$app/stores';
|
|
|
|
|
import SideBarButton from '$lib/components/shared-components/side-bar/side-bar-button.svelte';
|
|
|
|
|
import SideBarSection from '$lib/components/shared-components/side-bar/side-bar-section.svelte';
|
|
|
|
|
import StatusBox from '$lib/components/shared-components/status-box.svelte';
|
|
|
|
|
import { AppRoute } from '$lib/constants';
|
2023-10-25 09:48:25 -04:00
|
|
|
import { mdiAccountMultipleOutline, mdiCog, mdiServer, mdiSync, mdiTools } from '@mdi/js';
|
2023-10-13 11:02:28 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<SideBarSection>
|
|
|
|
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_USER_MANAGEMENT} draggable="false">
|
|
|
|
|
<SideBarButton
|
|
|
|
|
title="Users"
|
2023-10-25 09:48:25 -04:00
|
|
|
icon={mdiAccountMultipleOutline}
|
2023-10-13 11:02:28 -04:00
|
|
|
isSelected={$page.route.id === AppRoute.ADMIN_USER_MANAGEMENT}
|
|
|
|
|
/>
|
|
|
|
|
</a>
|
|
|
|
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_JOBS} draggable="false">
|
2023-10-25 09:48:25 -04:00
|
|
|
<SideBarButton title="Jobs" icon={mdiSync} isSelected={$page.route.id === AppRoute.ADMIN_JOBS} />
|
2023-10-13 11:02:28 -04:00
|
|
|
</a>
|
|
|
|
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_SETTINGS} draggable="false">
|
2023-10-25 09:48:25 -04:00
|
|
|
<SideBarButton title="Settings" icon={mdiCog} isSelected={$page.route.id === AppRoute.ADMIN_SETTINGS} />
|
2023-10-13 11:02:28 -04:00
|
|
|
</a>
|
|
|
|
|
<a data-sveltekit-preload-data="hover" href={AppRoute.ADMIN_STATS} draggable="false">
|
2023-10-25 09:48:25 -04:00
|
|
|
<SideBarButton title="Server Stats" icon={mdiServer} isSelected={$page.route.id === AppRoute.ADMIN_STATS} />
|
2023-10-13 11:02:28 -04:00
|
|
|
</a>
|
2023-10-31 16:37:32 -04:00
|
|
|
<a data-sveltekit-preload-data="off" href={AppRoute.ADMIN_REPAIR} draggable="false">
|
2023-10-25 09:48:25 -04:00
|
|
|
<SideBarButton title="Repair" icon={mdiTools} isSelected={$page.route.id === AppRoute.ADMIN_REPAIR} />
|
2023-10-14 13:12:59 -04:00
|
|
|
</a>
|
2023-10-13 11:02:28 -04:00
|
|
|
<div class="mb-6 mt-auto">
|
|
|
|
|
<StatusBox />
|
|
|
|
|
</div>
|
|
|
|
|
</SideBarSection>
|