78 lines
2.0 KiB
Vue
78 lines
2.0 KiB
Vue
<script setup lang="ts">
|
|
import NavFooter from '@/components/NavFooter.vue';
|
|
import NavMain from '@/components/NavMain.vue';
|
|
import NavUser from '@/components/NavUser.vue';
|
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar';
|
|
import { type NavItem } from '@/types';
|
|
import { Link } from '@inertiajs/vue3';
|
|
import { BookOpen, Folder, LayoutGrid, User, House, Archive, TrafficCone } from 'lucide-vue-next';
|
|
import AppLogo from './AppLogo.vue';
|
|
|
|
const mainNavItems: NavItem[] = [
|
|
{
|
|
title: 'Dashbord',
|
|
href: '/dashboard',
|
|
icon: LayoutGrid,
|
|
},
|
|
{
|
|
title: 'SmartDok Brukere',
|
|
href: '/smartdok/profiles',
|
|
icon: User,
|
|
},
|
|
{
|
|
title: 'Avdelinger',
|
|
href: '/smartdok/departments',
|
|
icon: House,
|
|
},
|
|
{
|
|
title: 'Prosjekter',
|
|
href: '/smartdok/projects',
|
|
icon: Archive,
|
|
},
|
|
{
|
|
title: 'Arbeidstimer',
|
|
href: '/smartdok/work-hours',
|
|
icon: TrafficCone,
|
|
},
|
|
];
|
|
|
|
const footerNavItems: NavItem[] = [
|
|
{
|
|
title: 'Kodedeponi',
|
|
href: 'https://git.arcticsoftware.no',
|
|
icon: Folder,
|
|
},
|
|
{
|
|
title: 'Dokumentasjon',
|
|
href: 'https://testapi.outlands.no/docs/api',
|
|
icon: BookOpen,
|
|
},
|
|
];
|
|
</script>
|
|
|
|
<template>
|
|
<Sidebar collapsible="icon" variant="inset">
|
|
<SidebarHeader>
|
|
<SidebarMenu>
|
|
<SidebarMenuItem>
|
|
<SidebarMenuButton size="lg" as-child>
|
|
<Link :href="route('dashboard')">
|
|
<AppLogo />
|
|
</Link>
|
|
</SidebarMenuButton>
|
|
</SidebarMenuItem>
|
|
</SidebarMenu>
|
|
</SidebarHeader>
|
|
|
|
<SidebarContent>
|
|
<NavMain :items="mainNavItems" />
|
|
</SidebarContent>
|
|
|
|
<SidebarFooter>
|
|
<NavFooter :items="footerNavItems" />
|
|
<NavUser />
|
|
</SidebarFooter>
|
|
</Sidebar>
|
|
<slot />
|
|
</template>
|