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', }, { path: '/manager/users/:userId/permissions', component: './Manager/User/Permission/Assign', }, ], }, { 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', };