Show pages for app,env,org plus navigation, servers wip

This commit is contained in:
2025-03-28 15:18:12 +00:00
parent 72b6231b8c
commit 7d2bc3ca5e
15 changed files with 201 additions and 29 deletions

View File

@@ -4,8 +4,8 @@ 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 } from 'lucide-vue-next';
import { Link, usePage } from '@inertiajs/vue3';
import { LayoutGrid, Server } from 'lucide-vue-next';
import AppLogo from './AppLogo.vue';
const mainNavItems: NavItem[] = [
@@ -16,18 +16,19 @@ const mainNavItems: NavItem[] = [
},
];
const footerNavItems: NavItem[] = [
{
title: 'Github Repo',
href: 'https://github.com/laravel/vue-starter-kit',
icon: Folder,
},
{
title: 'Documentation',
href: 'https://laravel.com/docs/starter-kits',
icon: BookOpen,
},
];
const organisation = usePage().props.organisation;
if (organisation) {
mainNavItems.push({
title: 'Servers',
href: route('servers.index', {
organisation: organisation.id,
}),
icon: Server,
});
}
const footerNavItems: NavItem[] = [];
</script>
<template>