export const loginRoute = { title: 'Login', path: '/login', component: './Auth', layout: false, }; export const forgotPasswordRoute = { title: 'Forgot Password', path: '/password/reset', component: './Auth/ForgotPassword', layout: false, access: 'canAll', }; 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', }, { path: '/manager/devices/:thingId', component: './Manager/Device/Detail', }, ], }, { 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 managerCameraRoute = { path: '/manager/devices/:thingId/camera', component: './Manager/Device/Camera', }; export const managerRouteBase = { name: 'manager', icon: 'icon-setting', path: '/manager', access: 'canAdmin_SysAdmin', }; export const notFoundRoute = { path: '*', component: './Exception/NotFound', };