mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:56:28 +00:00
6ffe7746c8
Unify interactive and read-only role permission rows, refine role and menu forms and labels, and correct the access-permissions sidebar route. Update role payloads and admin-menu handling.
173 lines
4.3 KiB
TypeScript
173 lines
4.3 KiB
TypeScript
import { LayoutDashboard, Settings, MonitorSmartphone, Database, ShieldAlert, FileText, ScanFace, MenuSquare, CalendarX2, FolderGit2, ShieldCheck } from 'lucide-react'
|
|
|
|
const SIDEBAR_MENU = [
|
|
{
|
|
title: "Dashboard",
|
|
Icon: <LayoutDashboard size={18} />,
|
|
path: ''
|
|
},
|
|
{
|
|
title: "Administration",
|
|
Icon: <ShieldAlert size={18} />,
|
|
submenuId: 1,
|
|
submenuItems: [
|
|
{
|
|
title: "Company",
|
|
path: '/administration/company'
|
|
},
|
|
{
|
|
title: "Area",
|
|
path: '/administration/area'
|
|
},
|
|
{
|
|
title: "Division",
|
|
path: '/administration/division'
|
|
},
|
|
{
|
|
title: "User",
|
|
path: '/administration/user'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "RBAC",
|
|
Icon: <ShieldCheck size={18} />,
|
|
submenuId: 7,
|
|
submenuItems: [
|
|
{
|
|
title: "Access Permissions",
|
|
path: '/rbac/action-permissions'
|
|
},
|
|
{
|
|
title: "Menu Management",
|
|
path: '/rbac/menu'
|
|
},
|
|
{
|
|
title: "User Role",
|
|
path: '/rbac/user-role'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "Device",
|
|
Icon: <MonitorSmartphone size={18} />,
|
|
submenuId: 2,
|
|
submenuItems: [
|
|
{
|
|
title: "Device",
|
|
path: '/device/device'
|
|
},
|
|
{
|
|
title: "Device Type",
|
|
path: '/device/device-type'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "Global Parameter",
|
|
Icon: <Settings size={18} />,
|
|
path: '/global-parameter'
|
|
},
|
|
{
|
|
title: "Menu",
|
|
Icon: <MenuSquare size={18} />,
|
|
path: '/menu'
|
|
},
|
|
{
|
|
title: "Day Off",
|
|
Icon: <CalendarX2 size={18} />,
|
|
path: '/day-off'
|
|
},
|
|
{
|
|
title: "Report",
|
|
Icon: <Database size={18} />,
|
|
submenuId: 3,
|
|
submenuItems: [
|
|
{
|
|
title: "Attendance History",
|
|
path: '/report/history'
|
|
},
|
|
{
|
|
title: "Attendance Distribution",
|
|
path: '/report/distribution'
|
|
},
|
|
{
|
|
title: "Leave, Permit & Sick",
|
|
path: '/report/leave-permit-sick'
|
|
},
|
|
{
|
|
title: "Summary Report",
|
|
path: '/report/monthly-presence'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Audit Trail",
|
|
Icon: <FileText size={18} />,
|
|
path: '/audit-trail'
|
|
},
|
|
{
|
|
title: "Manual Attendance & Approval",
|
|
submenuId: 4,
|
|
Icon: <ScanFace size={18} />,
|
|
submenuItems: [
|
|
{
|
|
title: "Manual Attendance",
|
|
path: '/manual/manual-presence'
|
|
},
|
|
{
|
|
title: "Approval Non WFO",
|
|
path: '/manual/approval'
|
|
},
|
|
{
|
|
title: "Approval Auto Checkout",
|
|
path: '/manual/approval-autocheckout'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
title: "Project Assignment",
|
|
Icon: <FolderGit2 size={18} />,
|
|
submenuId: 5,
|
|
submenuItems: [
|
|
{
|
|
title: "Client",
|
|
path: '/project-assignment/client'
|
|
},
|
|
{
|
|
title: "End User",
|
|
path: '/project-assignment/end-user'
|
|
},
|
|
{
|
|
title: "Project Management",
|
|
path: '/project-assignment/project-management'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
title: "Information",
|
|
Icon: <ShieldAlert size={18} />,
|
|
submenuId: 6,
|
|
submenuItems: [
|
|
{
|
|
title: "Master Status",
|
|
path: '/information/master-status'
|
|
},
|
|
{
|
|
title: "Working Status",
|
|
path: '/information/working-status'
|
|
},
|
|
{
|
|
title: "Employee Position",
|
|
path: '/information/position'
|
|
},
|
|
{
|
|
title: "Employee Type",
|
|
path: '/information/employee-type'
|
|
},
|
|
]
|
|
},
|
|
]
|
|
|
|
export default SIDEBAR_MENU
|