felicity-lims/webapp/router/admin.ts

129 lines
2.8 KiB
TypeScript
Raw Normal View History

import { InventoryHome } from '../views/admin/inventory/Index'
2021-02-02 23:52:27 +08:00
const adminRoutes = [
{
path: '',
name: 'felicity-configs',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/Admin.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'users-conf',
name: 'users-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/users/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'location-conf',
name: 'location-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/location/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'laboratory-conf',
name: 'laboratory-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/laboratory/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'instruments-conf',
name: 'instruments-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/instruments/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'publication-conf',
name: 'publication-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/publication/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'analyses-conf',
name: 'analyses-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/analyses/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'sampletypes-conf',
name: 'sampletypes-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/sample/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'worksheets-conf',
name: 'worksheets-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/worksheets/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'suppliers-conf',
name: 'suppliers-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/suppliers/index.vue'),
2021-02-02 23:52:27 +08:00
meta: {
requiresAuth: true,
},
},
2022-02-06 03:36:45 +08:00
{
path: 'reflex-rule-conf',
name: 'reflex-rule-conf',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/reflex/index.vue'),
2022-02-06 23:56:47 +08:00
children: [
{
path: '',
name: 'reflex-listing',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/reflex/ReflexListing.vue'),
2022-02-06 23:56:47 +08:00
meta: {
requiresAuth: true,
},
},
{
path: ':uid',
name: 'reflex-detail',
2022-04-01 04:29:09 +08:00
component: () => import('../views/admin/reflex/_id/index.vue'),
2022-02-06 23:56:47 +08:00
meta: {
requiresAuth: true,
},
}
],
2022-02-06 03:36:45 +08:00
meta: {
requiresAuth: true,
},
},
{
path: 'inventory-conf',
name: 'inventory-conf',
component: InventoryHome,// () => import('../views/admin/inventory/Index'),
meta: {
requiresAuth: true,
},
},
2022-04-22 03:33:54 +08:00
{
path: 'setup-data-conf',
name: 'setup-data-conf',
component: () => import('../views/admin/data-load/index.vue'),
meta: {
requiresAuth: true,
},
},
2021-02-02 23:52:27 +08:00
];
export default adminRoutes;