feat(project): base smatec's frontend

This commit is contained in:
Tran Anh Tuan
2026-01-21 11:48:57 +07:00
commit 5c2a909bed
138 changed files with 43666 additions and 0 deletions

89
config/routes.ts Normal file
View File

@@ -0,0 +1,89 @@
export const loginRoute = {
title: 'Login',
path: '/login',
component: './Auth',
layout: false,
};
export const profileRoute = {
name: 'profile',
icon: 'icon-user',
path: '/profile',
routes: [
{
path: '/profile',
component: './Profile',
},
],
flatMenu: true,
};
export const alarmsRoute = {
name: 'alarms',
icon: 'icon-alarm',
path: '/alarms',
routes: [
{
path: '/alarms',
component: './Alarm',
},
],
};
export const commonManagerRoutes = [
{
name: 'devices',
icon: 'icon-gateway',
path: '/manager/devices',
routes: [
{
path: '/manager/devices',
component: './Manager/Device',
},
],
},
{
name: 'groups',
icon: 'icon-tree',
path: '/manager/groups',
routes: [
{
path: '/manager/groups',
component: './Manager/Group',
},
],
},
{
name: 'users',
icon: 'icon-users',
path: '/manager/users',
routes: [
{
path: '/manager/users',
component: './Manager/User',
},
],
},
{
name: 'logs',
icon: 'icon-diary',
path: '/manager/logs',
routes: [
{
path: '/manager/logs',
component: './Manager/Log',
},
],
},
];
export const managerRouteBase = {
name: 'manager',
icon: 'icon-setting',
path: '/manager',
access: 'canAdmin_SysAdmin',
};
export const notFoundRoute = {
path: '*',
component: './Exception/NotFound',
};