implement authentication and reusable data table

This commit is contained in:
Gagan7900
2026-07-08 20:47:54 +05:30
parent 66e2c15e51
commit 4cb9b0181e
34 changed files with 1303 additions and 407 deletions
+7 -77
View File
@@ -90,83 +90,13 @@ export class NavService implements OnDestroy {
this.screenWidth.next(width);
}
MENUITEMS: Menu[] = [
// Dashboard
{ headTitle: 'MAIN' },
{
title: 'Dashboards',
icon: `<i class="bx bx-home side-menu__icon"></i>`,
type: 'sub',
badgeClass: 'warning/10',
badgeText: 'warning',
badgeValue: '12',
selected: false,
active: false,
dirchange: false,
children: [
{ path: '/dashboards/crm', title: 'CRM', type: 'link', dirchange: false, },
items = new BehaviorSubject<Menu[]>([]);
],
},
setMenuItems(menuItems: Menu[]): void {
this.items.next(menuItems);
}
{
title: 'Error',
type: 'sub',
icon: `<i class="bx bx-error side-menu__icon"></i>`,
active: false,
dirchange: false,
children: [
{
path: 'error/error404',
title: 'Error 404',
type: 'link',
dirchange: false,
},
],
},
{
title: 'Nested Menu',
icon: `<i class="bx bx-layer side-menu__icon"></i>`,
type: 'sub',
active: false,
children: [
{
title: 'Nested-1',
dirchange: false,
type: 'empty',
active: false,
selected: false,
path: '/nested-menu/nested-1',
},
{
title: 'Nested-2',
type: 'sub',
active: false,
children: [
{
title: 'Nested-2.1',
type: 'empty',
active: false,
},
{
title: 'Nested-2.2',
type: 'empty',
active: false,
}
],
},
],
},
];
items = new BehaviorSubject<Menu[]>(this.MENUITEMS);
clearMenuItems(): void {
this.items.next([]);
}
}