Untitled
unknown
plain_text
a year ago
9.4 kB
8
Indexable
import { lazy } from 'react'; // project imports import MainLayout from 'layout/MainLayout'; import Loadable from 'ui-component/Loadable'; import ProtectedRoute from 'utils/protectedRoute'; import OrderControlProcurement from 'views/procurement/order-control/order-control-procurement'; import OrderControlFinance from 'views/procurement/order-control/order-control-finance'; import OrderControlSuperior from 'views/procurement/order-control/order-control-superior'; import OrderControlDeptHead from 'views/procurement/order-control/order-control-dept-head'; // dashboard routing const Dashboard = Loadable(lazy(() => import('views/dashboard'))); const UnitKerja = Loadable(lazy(() => import('views/master/unit-kerja'))); const KategoriUker = Loadable(lazy(() => import('views/master/kategori-uker'))); const Item = Loadable(lazy(() => import('views/master/item'))); const Katalog = Loadable(lazy(() => import('views/master/katalog'))); const StatusAset = Loadable(lazy(() => import('views/master/status-aset'))); const KategoriAset = Loadable(lazy(() => import('views/master/kategori-aset'))); const Identifier = Loadable(lazy(() => import('views/master/identifier'))); const Kondisi = Loadable(lazy(() => import('views/master/kondisi'))); const Supplier = Loadable(lazy(() => import('views/master/supplier'))); const JenisGudang = Loadable(lazy(() => import('views/master/jenis-gudang'))); const Kurir = Loadable(lazy(() => import('views/master/kurir'))); const JenisPeminjaman = Loadable(lazy(() => import('views/master/jenis-peminjaman'))); const StatusApproval = Loadable(lazy(() => import('views/master/status-approval'))); const StatusInventaris = Loadable(lazy(() => import('views/master/status-inventaris'))); const Company = Loadable(lazy(() => import('views/master/company'))); const Currency = Loadable(lazy(() => import('views/master/currency'))); // procurement routing const PrForm = Loadable(lazy(() => import('views/procurement/pr-form'))); const Approval = Loadable(lazy(() => import('views/procurement/approval'))); const ReceivingReport = Loadable(lazy(() => import('views/procurement/receiving-report'))); const HandoverReport = Loadable(lazy(() => import('views/procurement/handover-report'))); const PrTracking = Loadable(lazy(() => import('views/procurement/pr-tracking'))); const ClosePo = Loadable(lazy(() => import('views/procurement/close-po'))); //asset routing const Asset = Loadable(lazy(() => import('views/asset'))); //user routing const AllUser = Loadable(lazy(() => import('views/user/all-user'))); const Permission = Loadable(lazy(() => import('views/user/permission'))); const Role = Loadable(lazy(() => import('views/user/role'))); // utilities routing const UtilsTypography = Loadable(lazy(() => import('views/utilities/Typography'))); const UtilsColor = Loadable(lazy(() => import('views/utilities/Color'))); const UtilsShadow = Loadable(lazy(() => import('views/utilities/Shadow'))); const UtilsMaterialIcons = Loadable(lazy(() => import('views/utilities/MaterialIcons'))); const UtilsTablerIcons = Loadable(lazy(() => import('views/utilities/TablerIcons'))); const UtilsComponentIcons = Loadable(lazy(() => import('views/utilities/TablerIcons'))); // sample page routing const SamplePage = Loadable(lazy(() => import('views/sample-page'))); // ==============================|| MAIN ROUTING ||============================== // const MainRoutes = { path: '/', element: ( <ProtectedRoute> <MainLayout /> </ProtectedRoute> ), children: [ { path: '/', element: <Dashboard /> }, { path: 'dashboard', element: <Dashboard /> }, { path: 'master', children: [ { path: 'work-unit', element: <UnitKerja /> } ] }, { path: 'master', children: [ { path: 'work-unit-category', element: <KategoriUker /> } ] }, { path: 'master', children: [ { path: 'item', element: <Item /> } ] }, { path: 'master', children: [ { path: 'asset-category', element: <KategoriAset /> } ] }, { path: 'master', children: [ { path: 'identifier', element: <Identifier /> } ] }, { path: 'master', children: [ { path: 'asset-status', element: <StatusAset /> } ] }, { path: 'master', children: [ { path: 'condition', element: <Kondisi /> } ] }, { path: 'master', children: [ { path: 'supplier', element: <Supplier /> } ] }, { path: 'master', children: [ { path: 'warehouse-type', element: <JenisGudang /> } ] }, { path: 'master', children: [ { path: 'catalog', element: <Katalog /> } ] }, { path: 'master', children: [ { path: 'courier', element: <Kurir /> } ] }, { path: 'master', children: [ { path: 'loan-type', element: <JenisPeminjaman /> } ] }, { path: 'master', children: [ { path: 'approval-status', element: <StatusApproval /> } ] }, { path: 'master', children: [ { path: 'inventory-status', element: <StatusInventaris /> } ] }, { path: 'master', children: [ { path: 'company', element: <Company /> } ] }, { path: 'master', children: [ { path: 'currency', element: <Currency /> } ] }, { path: 'asset', element: <Asset /> }, { path: 'procurement', children: [ { path: 'pr-form', element: <PrForm /> } ] }, { path: 'procurement', children: [ { path: 'oc-procurement', element: <OrderControlProcurement /> } ] }, { path: 'procurement', children: [ { path: 'oc-finance', element: <OrderControlFinance /> } ] }, { path: 'procurement', children: [ { path: 'oc-superior', element: <OrderControlSuperior /> } ] }, { path: 'procurement', children: [ { path: 'oc-dept-head', element: <OrderControlDeptHead /> } ] }, { path: 'procurement/order-control/:code', element: <Approval /> }, { path: 'procurement', children: [ { path: 'order-tracking', element: <PrTracking /> } ] }, { path: 'procurement/order-tracking/:status/:code', element: <PrTracking /> }, { path: 'procurement', children: [ { path: 'receiving-report', element: <ReceivingReport /> } ] }, { path: 'procurement', children: [ { path: 'handover-report', element: <HandoverReport /> } ] }, { path: 'procurement', children: [ { path: 'close-po', element: <ClosePo /> } ] }, { path: 'user', children: [ { path: 'all-user', element: <AllUser /> } ] }, { path: 'user', children: [ { path: 'permission', element: <Permission /> } ] }, { path: 'user', children: [ { path: 'role', element: <Role /> } ] }, { path: 'utils', children: [ { path: 'util-typography', element: <UtilsTypography /> } ] }, { path: 'utils', children: [ { path: 'util-color', element: <UtilsColor /> } ] }, { path: 'utils', children: [ { path: 'util-shadow', element: <UtilsShadow /> } ] }, { path: 'icons', children: [ { path: 'tabler-icons', element: <UtilsTablerIcons /> } ] }, { path: 'icons', children: [ { path: 'material-icons', element: <UtilsMaterialIcons /> } ] }, { path: 'icons', children: [ { path: 'component-icons', element: <UtilsComponentIcons /> } ] }, { path: 'sample-page', element: <SamplePage /> } ] }; export default MainRoutes;
Editor is loading...
Leave a Comment