feat(project): base smatec's frontend
This commit is contained in:
89
config/routes.ts
Normal file
89
config/routes.ts
Normal 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',
|
||||
};
|
||||
Reference in New Issue
Block a user