base struktur update
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled

This commit is contained in:
Wian Drs
2026-07-27 16:25:37 +07:00
parent d5cb197f96
commit 73a32380e7
44 changed files with 5456 additions and 139 deletions
+70 -49
View File
@@ -22,7 +22,7 @@
* @type {Array<Object>}
*/
export default [
const baseNav = [
{
component: 'CNavItem',
name: 'Dashboard',
@@ -33,54 +33,54 @@ export default [
text: 'NEW',
},
},
{
component: 'CNavTitle',
name: 'Ticketing',
},
{
component: 'CNavGroup',
name: 'Ticketing',
to: '/ticket',
icon: 'cil-layers',
items: [
{
component: 'CNavItem',
name: 'Ticket',
to: '/tickets/ticket',
icon: 'cil-notes',
},
{
component: 'CNavItem',
name: 'Ticket Type',
to: '/tickets/ticket-type',
icon: 'cil-list',
},
{
component: 'CNavItem',
name: 'Ticket Materials',
to: '/tickets/ticket-materials',
icon: 'cil-file',
},
{
component: 'CNavItem',
name: 'Ticket Incident',
to: '/tickets/ticket-incident',
icon: 'cil-Puzzle',
},
{
component: 'CNavItem',
name: 'Approved',
to: '/tickets/approved',
icon: 'cil-check',
},
{
component: 'CNavItem',
name: 'Rejected',
to: '/tickets/rejected',
icon: 'cil-ban',
},
],
},
// {
// component: 'CNavTitle',
// name: 'Ticketing',
// },
// {
// component: 'CNavGroup',
// name: 'Ticketing',
// to: '/ticket',
// icon: 'cil-layers',
// items: [
// {
// component: 'CNavItem',
// name: 'Ticket',
// to: '/tickets/ticket',
// icon: 'cil-notes',
// },
// {
// component: 'CNavItem',
// name: 'Ticket Type',
// to: '/tickets/ticket-type',
// icon: 'cil-list',
// },
// {
// component: 'CNavItem',
// name: 'Ticket Materials',
// to: '/tickets/ticket-materials',
// icon: 'cil-file',
// },
// {
// component: 'CNavItem',
// name: 'Ticket Incident',
// to: '/tickets/ticket-incident',
// icon: 'cil-Puzzle',
// },
// {
// component: 'CNavItem',
// name: 'Approved',
// to: '/tickets/approved',
// icon: 'cil-check',
// },
// {
// component: 'CNavItem',
// name: 'Rejected',
// to: '/tickets/rejected',
// icon: 'cil-ban',
// },
// ],
// },
{
component: 'CNavTitle',
name: 'Theme',
@@ -454,6 +454,18 @@ export default [
},
],
},
{
component: 'CNavItem',
name: 'Users',
to: '/users',
icon: 'cil-user',
},
{
component: 'CNavItem',
name: 'Tenants',
to: '/tenants',
icon: 'cil-building',
},
{
component: 'CNavItem',
name: 'Widgets',
@@ -498,3 +510,12 @@ export default [
],
},
]
export function injectMenusAfterDashboard(dynamicMenus = []) {
if (!Array.isArray(baseNav) || baseNav.length === 0) return dynamicMenus
const [dashboard] = baseNav
return [dashboard, ...dynamicMenus]
}
export default baseNav