salix-front/src/router/routes.js

96 lines
2.9 KiB
JavaScript
Raw Normal View History

import item from './modules/item';
2022-04-19 10:37:47 +00:00
import customer from './modules/customer';
import ticket from './modules/ticket';
2022-10-17 14:23:19 +00:00
import claim from './modules/claim';
2022-11-17 13:03:50 +00:00
import worker from './modules/worker';
2022-11-21 12:45:48 +00:00
import invoiceOut from './modules/invoiceOut';
2023-10-31 07:56:51 +00:00
import invoiceIn from './modules/invoiceIn';
import wagon from './modules/wagon';
import supplier from './modules/Supplier';
import route from './modules/route';
2023-11-25 22:02:26 +00:00
import travel from './modules/travel';
2023-12-25 23:38:13 +00:00
import department from './modules/department';
2024-04-22 11:34:38 +00:00
import ItemType from './modules/itemType';
2023-11-25 23:04:20 +00:00
import shelving from 'src/router/modules/shelving';
2023-12-25 23:38:13 +00:00
import order from 'src/router/modules/order';
import entry from 'src/router/modules/entry';
import roadmap from 'src/router/modules/roadmap';
2024-02-21 09:26:20 +00:00
import parking from 'src/router/modules/parking';
import agency from 'src/router/modules/agency';
2024-04-30 08:32:32 +00:00
import zone from 'src/router/modules/zone';
2024-05-09 05:54:16 +00:00
import account from './modules/account';
2024-05-05 22:13:36 +00:00
import monitor from 'src/router/modules/monitor';
import mailAlias from './modules/mailAlias';
2022-03-11 10:25:30 +00:00
2022-03-24 12:33:14 +00:00
const routes = [
2022-03-11 10:41:23 +00:00
{
path: '/login',
component: () => import('../layouts/OutLayout.vue'),
children: [
{
path: '',
name: 'Login',
meta: { title: 'logIn' },
component: () => import('../pages/Login/LoginMain.vue'),
},
{
path: '/twoFactor',
name: 'TwoFactor',
meta: { title: 'twoFactor' },
component: () => import('../pages/Login/TwoFactor.vue'),
},
2023-10-02 12:54:00 +00:00
{
path: '/verifyEmail',
name: 'VerifyEmail',
meta: { title: 'verifyEmail' },
component: () => import('../pages/Login/VerifyEmail.vue'),
},
],
},
2022-03-11 10:41:23 +00:00
{
path: '/',
name: 'Main',
2022-03-24 15:49:33 +00:00
component: () => import('../layouts/MainLayout.vue'),
2022-03-11 10:41:23 +00:00
redirect: { name: 'Dashboard' },
children: [
{
path: '/dashboard',
name: 'Dashboard',
meta: { title: 'dashboard', icon: 'dashboard' },
2022-12-19 10:23:08 +00:00
component: () => import('../pages/Dashboard/DashboardMain.vue'),
2022-04-12 12:53:43 +00:00
},
// Module routes
item,
2022-04-19 10:37:47 +00:00
customer,
ticket,
2022-10-17 14:23:19 +00:00
claim,
2022-11-17 13:03:50 +00:00
worker,
shelving,
2022-11-21 12:45:48 +00:00
invoiceOut,
2023-10-31 07:56:51 +00:00
invoiceIn,
2024-05-05 22:13:36 +00:00
monitor,
wagon,
2023-12-11 14:47:16 +00:00
order,
route,
supplier,
2023-11-25 22:02:26 +00:00
travel,
2023-12-25 23:38:13 +00:00
department,
2024-02-15 04:02:01 +00:00
roadmap,
entry,
2024-02-21 09:26:20 +00:00
parking,
agency,
2024-04-22 11:34:38 +00:00
ItemType,
2024-04-30 08:32:32 +00:00
zone,
2024-05-09 05:54:16 +00:00
account,
mailAlias,
{
2022-12-20 11:30:25 +00:00
path: '/:catchAll(.*)*',
name: 'NotFound',
component: () => import('../pages/NotFound.vue'),
},
2022-03-11 10:41:23 +00:00
],
},
2022-03-11 10:25:30 +00:00
];
2022-11-21 12:45:48 +00:00
export default routes;