This commit is contained in:
Andreas Wilms
2025-09-08 18:30:35 +02:00
commit f12cc8b2ce
130 changed files with 16911 additions and 0 deletions

121
frontend/lib/menu-list.ts Normal file
View File

@@ -0,0 +1,121 @@
import { Tag, SquarePen, Barcode, LucideIcon } from "lucide-react";
type Submenu = {
href: string;
label: string;
active?: boolean;
};
type Menu = {
href: string;
label: string;
active?: boolean;
icon: LucideIcon;
submenus?: Submenu[];
};
type Group = {
groupLabel: string;
menus: Menu[];
};
export function getMenuList(pathname: string): Group[] {
return [
/*
{
groupLabel: "",
menus: [
{
href: "/dashboard",
label: "Dashboard",
icon: LayoutGrid,
submenus: []
}
]
},
*/
{
groupLabel: "Flächendruck Service",
menus: [
{
href: "/dashboard/generateFlaechendruck",
label: "Generieren",
icon: Tag,
active: pathname === "/dashboard/generateFlaechendruck",
},
{
href: "/dashboard/vorlagenFlaechendruck",
label: "Vorlagen",
icon: SquarePen,
active: pathname === "/dashboard/vorlagenFlaechendruck",
/*submenus: [
{
href: "/posts",
label: "All Posts"
},
{
href: "/posts/new",
label: "New Post"
}
]*/
},
],
},
{
groupLabel: "Rollendruck Service",
menus: [
{
href: "/dashboard/generateRollendruck",
label: "Generieren",
icon: Tag,
active: pathname === "/dashboard/generateRollendruck",
},
{
href: "/dashboard/vorlagenRollendruck",
label: "Vorlagen",
icon: SquarePen,
active: pathname === "/dashboard/vorlagenRollendruck",
/*submenus: [
{
href: "/posts",
label: "All Posts"
},
{
href: "/posts/new",
label: "New Post"
}
]*/
},
],
},
{
groupLabel: "Billbee Service",
menus: [
{
href: "/dashboard/updateOrders",
label: "Update Sendungen",
icon: Barcode,
active: pathname === "/dashboard/updateOrders",
},
],
},
/*
{
groupLabel: "Settings",
menus: [
{
href: "/users",
label: "Users",
icon: Users
},
{
href: "/account",
label: "Account",
icon: Settings
}
]
}*/
];
}