Files
cobaKeuangan/components/layout/full/vertical-sidebar/sidebarItem.ts
2025-05-28 07:23:47 +07:00

122 lines
2.3 KiB
TypeScript

const { $decodeBase64 } = useNuxtApp();
export interface menu {
header?: string;
title?: string;
icon?: any;
to?: string;
chip?: string;
BgColor?: string;
chipBgColor?: string;
chipColor?: string;
chipVariant?: string;
chipIcon?: string;
children?: menu[];
disabled?: boolean;
type?: string;
subCaption?: string;
external?: boolean;
requiredGroups?: string[];
}
const sidebarItem: menu[] = [
{ header: "Home" },
{
title: "Dashboard",
icon: "adhesive-plaster-outline",
to: "/",
},
{
title: "Front Pages",
icon: "home-angle-linear",
to: "/front",
requiredGroups: ["/Bidang Pelayanan Medik"],
children: [
{
title: "Coba VueForm",
to: "/coba",
external: false,
requiredGroups: ["/Bidang Pelayanan Medik"]
},
{
title: "Coba VueForm2",
to: "/coba2",
external: false,
requiredGroups: ["/Bidang Diklit/Staff"]
},
{
title: "Homepage",
to: "https://matdash-nuxt-main.netlify.app/front-pages/homepage",
chip: "Pro",
external: true,
},
],
},
{ header: "utilities" },
{
title: "Typography",
icon: "text-circle-outline",
to: "/ui/typography",
requiredGroups: ['/Instalasi Bedah Sentral', '/Instalasi Rawat Jalan'],
},
{
title: "Shadow",
icon: "watch-square-minimalistic-charge-line-duotone",
to: "/ui/shadow",
},
{ header: "Pages" },
{
title: "Sample Page",
icon: "planet-3-line-duotone",
to: "/sample-page",
},
{ header: "Ui" },
{
title: "Alert",
icon: "volume-small-broken",
to: "/ui-components/alerts",
},
{
title: "Button",
icon: "tag-horizontal-outline",
to: "/ui-components/buttons",
},
{
title: "Cards",
icon: "cardholder-linear",
to: "/ui-components/cards",
},
{
title: "Tables",
icon: "suspension-outline",
to: "/ui-components/tables",
},
{ header: "auth" },
{
title: "Login",
icon: "login-3-line-duotone",
to: "/auth/login",
},
{
title: "Register",
icon: "user-plus-rounded-line-duotone",
to: "/auth/register",
},
{ header: "Extra" },
{
title: "Tabler Icons",
icon: "sticker-smile-circle-2-line-duotone",
to: "/icons",
},
];
export default sidebarItem;