Add menu sections, icons and order, and the simple view

This commit is contained in:
Matthijs Iriks committed 2026-12-04 05:16:06 +01:00
1 parent 362a5bce2e
commit 6f31a54818
23 files changed
+393 -45

No files matched your search

+11 -1
View File
@@ -11,6 +11,14 @@ export class ApiError extends Error {
}
}
export interface NavItem {
label: string;
href: string;
section?: string;
icon?: string;
new_tab?: boolean;
}
/** What the page was started with (see resources/views/shell.blade.php). */
export interface Boot {
base: string;
@@ -19,7 +27,9 @@ export interface Boot {
locale: string;
user: { name: string; email: string; is_super_admin: boolean } | null;
permissions: string[];
navigation: { label: string; href: string }[];
navigation: NavItem[];
view: 'full' | 'simple';
can_switch: boolean;
theme: string;
can_login: boolean;
}