mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
bc49e39df7
updated admin progress track steps added dummy template in admin booking
66 lines
4.0 KiB
JavaScript
66 lines
4.0 KiB
JavaScript
const Welcome = () => import('~/pages/welcome').then(m => m.default || m)
|
|
const Login = () => import('~/pages/auth/login').then(m => m.default || m)
|
|
const Register = () => import('~/pages/auth/register').then(m => m.default || m)
|
|
const PasswordEmail = () => import('~/pages/auth/password/email').then(m => m.default || m)
|
|
const PasswordReset = () => import('~/pages/auth/password/reset').then(m => m.default || m)
|
|
const NotFound = () => import('~/pages/errors/404').then(m => m.default || m)
|
|
|
|
const Home = () => import('~/pages/home').then(m => m.default || m)
|
|
const Settings = () => import('~/pages/settings/index').then(m => m.default || m)
|
|
const SettingsProfile = () => import('~/pages/settings/profile').then(m => m.default || m)
|
|
const SettingsPassword = () => import('~/pages/settings/password').then(m => m.default || m)
|
|
|
|
// Booking
|
|
const Upload = () => import('~/pages/booking/uploadUserBankSlip').then(m => m.default || m)
|
|
const Confirmation = () => import('~/pages/booking/confirmation').then(m => m.default || m)
|
|
const Transfer = () => import('~/pages/booking/transfer').then(m => m.default || m)
|
|
const UploadPo = () => import('~/pages/booking/uploadPo').then(m => m.default || m)
|
|
const PoComplete = () => import('~/pages/booking/poComplete').then(m => m.default || m)
|
|
const Completed = () => import('~/pages/booking/completed').then(m => m.default || m)
|
|
|
|
// Admin booking
|
|
const Verification = () => import('~/pages/admin/booking/verification').then(m => m.default || m)
|
|
const Supplier = () => import('~/pages/admin/booking/supplierBooking').then(m => m.default || m)
|
|
const SupplierReport = () => import('~/pages/admin/booking/supplierReport').then(m => m.default || m)
|
|
const UploadCNSlip = () => import('~/pages/admin/booking/uploadChinaBankslip').then(m => m.default || m)
|
|
const UploadInvoice = () => import('~/pages/admin/booking/uploadInvoice').then(m => m.default || m)
|
|
// const Completed = () => import('~/pages/booking/uploadUserBankSlip').then(m => m.default || m)
|
|
|
|
const AdminHome = () => import('~/pages/admin/home').then(m => m.default || m)
|
|
|
|
export default [
|
|
{ path: '/', name: 'welcome', component: Welcome },
|
|
{ path: '/login', name: 'login', component: Login },
|
|
{ path: '/register', name: 'register', component: Register },
|
|
{ path: '/password/reset', name: 'password.request', component: PasswordEmail },
|
|
{ path: '/password/reset/:token', name: 'password.reset', component: PasswordReset },
|
|
|
|
{ path: '/home', name: 'home', component: Home },
|
|
{ path: '/settings',
|
|
component: Settings,
|
|
children: [
|
|
{ path: '', redirect: { name: 'settings.profile' } },
|
|
{ path: 'profile', name: 'settings.profile', component: SettingsProfile },
|
|
{ path: 'password', name: 'settings.password', component: SettingsPassword }
|
|
] },
|
|
|
|
// Booking
|
|
{ path: '/booking/:id/upload-user-bankslip', name: 'booking.user.upload', component: Upload },
|
|
{ path: '/booking/:id/confirmation', name: 'booking.confirmation', component: Confirmation },
|
|
{ path: '/booking/:id/transfer', name: 'booking.transfer', component: Transfer },
|
|
{ path: '/booking/:id/upload-po', name: 'booking.user.uploadpo', component: UploadPo },
|
|
{ path: '/booking/:id/po-complete', name: 'booking.user.pocomplete', component: PoComplete },
|
|
{ path: '/booking/:id/complete', name: 'booking.complete', component: Completed },
|
|
|
|
// Admin booking
|
|
{ path: '/booking/:id/verification', name: 'booking.admin.verification', component: Verification },
|
|
{ path: '/booking/:id/supplier', name: 'booking.admin.supplier', component: Supplier },
|
|
{ path: '/booking/:id/supplier-report', name: 'booking.admin.supplier.report', component: SupplierReport },
|
|
{ path: '/booking/:id/upload-cn-bankslip', name: 'booking.admin.cnslip', component: UploadCNSlip },
|
|
{ path: '/booking/:id/upload-invoice', name: 'booking.admin.invoice', component: UploadInvoice },
|
|
// { path: '/booking/:id/complete', name: 'booking.complete', component: Completed },
|
|
|
|
{ path: '/admin', name: 'admin.home', component: AdminHome },
|
|
{ path: '*', name: 'notfound', component: NotFound }
|
|
]
|