Browse Source

sort routes

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
4daaab1681
  1. 170
      src/routes.js

170
src/routes.js

@ -1,100 +1,108 @@
import React from 'react'; import React from 'react';
const Absensi = React.lazy(() => import('./views/Master/MasterAbsensi'));
const BaseLayers = React.lazy(() => import('./views/BaseLayers')); const BaseLayers = React.lazy(() => import('./views/BaseLayers'));
const Layers = React.lazy(() => import('./views/Layers/Layers')); const Broadcast = React.lazy(() => import('./views/Master/MasterBroadcast'));
const ChecklistK3 = React.lazy(() => import('./views/SimproV2/ChecklistK3'));
const Closing = React.lazy(() => import('./views/SimproV2/Closing'));
const ConfigAlert = React.lazy(() => import('./views/Master/ConfigAlert'));
const ControlMonitoring = React.lazy(() => import('./views/Report/ControlMonitoring'));
const ControlMonitoringGantt = React.lazy(() => import('./views/ControlMonitoringGantt'));
const CreatedProyek = React.lazy(() => import('./views/SimproV2/CreatedProyek'));
const DashboardPMO = React.lazy(() => import('./views/DashboardPMO'));
const DashboardProject = React.lazy(() => import('./views/DashboardProject'));
const DashboardSecurity = React.lazy(() => import('./views/DashboardSecurity'));
const DashboardSimpro = React.lazy(() => import('./views/DashboardSimpro'));
const Divisi = React.lazy(() => import('./views/SimproV2/Divisi'));
const DivisiKaryawan = React.lazy(() => import('./views/Master/MasterTipeKaryawan'));
const Gantt = React.lazy(() => import('./views/SimproV2/Gantt'));
const Izin = React.lazy(() => import('./views/Master/MasterCuti'));
const K3 = React.lazy(() => import('./views/Report/k3'));
const LaporanAlert = React.lazy(() => import('./views/Report/alert'));
const LaporanTugas = React.lazy(() => import('./views/Master/MasterTask'));
const Layer = React.lazy(() => import('./views/Layers/Layer')); const Layer = React.lazy(() => import('./views/Layers/Layer'));
const Layers = React.lazy(() => import('./views/Layers/Layers'));
const Lembur = React.lazy(() => import('./views/Master/MasterLembur'));
const MapConfig = React.lazy(() => import('./views/MapConfig')); const MapConfig = React.lazy(() => import('./views/MapConfig'));
const Menu = React.lazy(() => import('./views/Master/MasterMenu'));
const OfficeHours = React.lazy(() => import('./views/Master/MasterOfficeHours')); const OfficeHours = React.lazy(() => import('./views/Master/MasterOfficeHours'));
const DivisiKaryawan = React.lazy(() => import('./views/Master/MasterTipeKaryawan')); const Organization = React.lazy(() => import('./views/Master/MasterOrganization'));
const UserAdmin = React.lazy(() => import('./views/Master/UserAdmin')); const PanicButton = React.lazy(() => import('./views/SimproV2/PanicButton'));
const PlanningHarian = React.lazy(() => import('./views/SimproV2/PlanningHarian'));
const Presensi = React.lazy(() => import('./views/SimproV2/Presence')); const Presensi = React.lazy(() => import('./views/SimproV2/Presence'));
const LaporanTugas = React.lazy(() => import('./views/Master/MasterTask'));
const Izin = React.lazy(() => import('./views/Master/MasterCuti'));
const Roles = React.lazy(() => import('./views/Master/MasterRoles'));
const ProjectRole = React.lazy(() => import('./views/Master/RoleProject')); const ProjectRole = React.lazy(() => import('./views/Master/RoleProject'));
const Menu = React.lazy(() => import('./views/Master/MasterMenu')); const ProjectType = React.lazy(() => import('./views/SimproV2/ProjectType'));
const Broadcast = React.lazy(() => import('./views/Master/MasterBroadcast'));
const PanicButton = React.lazy(() => import('./views/SimproV2/PanicButton'));
const Absensi = React.lazy(() => import('./views/Master/MasterAbsensi'));
const Lembur = React.lazy(() => import('./views/Master/MasterLembur'));
const Organization = React.lazy(() => import('./views/Master/MasterOrganization'));
const Proyek = React.lazy(() => import('./views/Master/Proyek')); const Proyek = React.lazy(() => import('./views/Master/Proyek'));
const DashboardSimpro = React.lazy(() => import('./views/DashboardSimpro')); const RateCost = React.lazy(() => import('./views/SimproV2/RateCost'));
const controlMonitoring = React.lazy(() => import('./views/Report/ControlMonitoring'));
const K3 = React.lazy(() => import('./views/Report/k3'));
const TestGantt = React.lazy(() => import('./views/testgantt'));
const ConfigAlert = React.lazy(() => import('./views/Master/ConfigAlert'));
const LaporanAlert = React.lazy(() => import('./views/Report/alert'));
const ControlMonitoringGantt = React.lazy(() => import('./views/ControlMonitoringGantt'));
const CreatedProyek = React.lazy(() => import('./views/SimproV2/CreatedProyek'));
const ResourceWorker = React.lazy(() => import('./views/SimproV2/ResourceWorker'));
const ResourceMaterial = React.lazy(() => import('./views/SimproV2/ResourceMaterial')); const ResourceMaterial = React.lazy(() => import('./views/SimproV2/ResourceMaterial'));
const ResourceTools = React.lazy(() => import('./views/SimproV2/ResourceTools')); const ResourceTools = React.lazy(() => import('./views/SimproV2/ResourceTools'));
const PlanningHarian = React.lazy(() => import('./views/SimproV2/PlanningHarian')); const ResourceWorker = React.lazy(() => import('./views/SimproV2/ResourceWorker'));
const Closing = React.lazy(() => import('./views/SimproV2/Closing')); const Roles = React.lazy(() => import('./views/Master/MasterRoles'));
const ProjectType = React.lazy(() => import('./views/SimproV2/ProjectType'));
const Divisi = React.lazy(() => import('./views/SimproV2/Divisi'));
const Satuan = React.lazy(() => import('./views/SimproV2/Satuan')); const Satuan = React.lazy(() => import('./views/SimproV2/Satuan'));
const RateCost = React.lazy(() => import('./views/SimproV2/RateCost')); const ScheduleShift = React.lazy(() => import('./views/SimproV2/ScheduleShift'));
const Gantt = React.lazy(() => import('./views/SimproV2/Gantt'));
const Shift = React.lazy(() => import('./views/SimproV2/Shift')); const Shift = React.lazy(() => import('./views/SimproV2/Shift'));
const TestGantt = React.lazy(() => import('./views/testgantt'));
const UserAdmin = React.lazy(() => import('./views/Master/UserAdmin'));
const UserShift = React.lazy(() => import('./views/SimproV2/UserShift')); const UserShift = React.lazy(() => import('./views/SimproV2/UserShift'));
const ScheduleShift = React.lazy(() => import('./views/SimproV2/ScheduleShift'));
const ChecklistK3 = React.lazy(() => import('./views/SimproV2/ChecklistK3'));
const DashboardPMO = React.lazy(() => import('./views/DashboardPMO'));
const DashboardProject = React.lazy(() => import('./views/DashboardProject'));
const DashboardSecurity = React.lazy(() => import('./views/DashboardSecurity'));
const routes = [ const routes = [
{ path: '/', exact: true, name: 'Home' }, { path: '/', exact: true, name: 'Home' },
{ path: '/dashboard', name: 'Dashboard', component: DashboardSimpro }, { path: '/dashboard', name: 'Dashboard', component: DashboardSimpro },
{ path: '/map/config', exact: true, name: 'Config', component: MapConfig },
{ path: '/map/baselayers', exact: true, name: 'Base Layers', component: BaseLayers }, // initiating
{ path: '/map/layers', exact: true, name: 'Layers', component: Layers }, { path: '/projects', exact: true, name: 'Projects', component: CreatedProyek },
{ path: '/map/layers/:id', exact: true, name: 'Layer Details', component: Layer }, { path: '/projects/:id/:project/gantt', exact: true, name: 'Gantt', component: Gantt },
{ path: '/office-hours', exact: true, name: 'Jam Kerja', component: OfficeHours }, { path: '/human-resource', exact: true, name: 'Human Resource', component: ResourceWorker },
{ path: '/user-admin', exact: true, name: 'User Admin', component: UserAdmin }, { path: '/material-resource', exact: true, name: 'Material Resource', component: ResourceMaterial },
// { path: '/user-waspang', exact: true, name: 'User Waspang', component: UserWaspang }, { path: '/tools-resource', exact: true, name: 'Tools Resource', component: ResourceTools },
{ path: '/divisi-karyawan', exact: true, name: 'Divisi Karyawan', component: DivisiKaryawan },
{ path: '/presensi', exact: true, name: 'Presensi', component: Presensi }, // control monitoring
{ path: '/absensi', exact: true, name: 'Absensi', component: Absensi }, { path: '/control-monitoring', exact: true, name: 'Control Monitoring', component: ControlMonitoring },
{ path: '/laporan-tugas-karyawan', exact: true, name: 'Laporan Tugas Karyawan', component: LaporanTugas }, { path: '/control-monitoring-gantt', exact: true, name: 'Control Monitoring Gantt', component: ControlMonitoringGantt },
{ path: '/izin', exact: true, name: 'Izin', component: Izin }, { path: '/presensi-resource', exact: true, name: 'Presensi Resource', component: Presensi },
{ path: '/broadcast', exact: true, name: 'Broadcast', component: Broadcast }, { path: '/absensi-resource', exact: true, name: 'Absensi Resource', component: Absensi },
{ path: '/panic-button', exact: true, name: 'Tombol Darurat', component: PanicButton }, { path: '/laporan-k3', exact: true, name: 'Laporan K3', component: K3 },
{ path: '/proyek', exact: true, name: 'Created Project', component: Proyek }, { path: '/broadcast', exact: true, name: 'Broadcast', component: Broadcast },
// { path: '/sub-proyek', exact: true, name: 'Subproyek', component: SubProyek }, { path: '/panic-button', exact: true, name: 'Tombol Darurat', component: PanicButton },
{ path: '/menu', exact: true, name: 'Menu', component: Menu },
{ path: '/roles', exact: true, name: 'Roles', component: Roles }, { path: '/closing', exact: true, name: 'Closing', component: Closing },
{ path: '/lembur', exact: true, name: 'Lembur', component: Lembur },
{ path: '/organization', exact: true, name: 'Organisasi', component: Organization }, // setting
{ path: '/control-monitoring', exact: true, name: 'Control Monitoring', component: controlMonitoring }, { path: '/menu', exact: true, name: 'Menu', component: Menu },
{ path: '/laporan-k3', exact: true, name: 'Laporan K3', component: K3 }, { path: '/roles', exact: true, name: 'Roles', component: Roles },
{ path: '/proyek-gantt', exact: true, name: 'Gantt Chart Proyek', component: TestGantt }, { path: '/project-role', exact: true, name: 'Project Role', component: ProjectRole },
{ path: '/config-alert', exact: true, name: 'Config Alert', component: ConfigAlert }, { path: '/project-type', exact: true, name: 'Project Type', component: ProjectType },
{ path: '/laporan-alert', exact: true, name: 'Laporan Alert', component: LaporanAlert }, { path: '/divisi', exact: true, name: 'Divisi', component: Divisi },
{ path: '/control-monitoring-gantt', exact: true, name: 'Control Monitoring Gantt', component: ControlMonitoringGantt }, { path: '/satuan', exact: true, name: 'Satuan', component: Satuan },
{ path: '/projects', exact: true, name: 'Projects', component: CreatedProyek }, { path: '/config-alert', exact: true, name: 'Config Alert', component: ConfigAlert },
{ path: '/human-resource', exact: true, name: 'Human Resource', component: ResourceWorker },
{ path: '/material-resource', exact: true, name: 'Material Resource', component: ResourceMaterial }, // todo : remove
{ path: '/tools-resource', exact: true, name: 'Tools Resource', component: ResourceTools }, { path: '/dashboard-pmo', exact: true, name: 'Dashboard PMO', component: DashboardPMO },
{ path: '/projects/:id/:project/gantt', exact: true, name: 'Gantt', component: Gantt }, { path: '/dashboard-project', exact: true, name: 'Dashboard Project', component: DashboardProject },
{ path: '/planning-harian', exact: true, name: 'Planning Harian', component: PlanningHarian }, { path: '/dashboard-security', exact: true, name: 'Dashboard Security', component: DashboardSecurity },
{ path: '/presensi-resource', exact: true, name: 'Presensi Resource', component: Presensi }, { path: '/checklist-k3', exact: true, name: 'Checklist K3', component: ChecklistK3 },
{ path: '/absensi-resource', exact: true, name: 'Absensi Resource', component: Absensi }, { path: '/absensi', exact: true, name: 'Absensi', component: Absensi },
{ path: '/closing', exact: true, name: 'Closing', component: Closing }, { path: '/divisi-karyawan', exact: true, name: 'Divisi Karyawan', component: DivisiKaryawan },
{ path: '/project-type', exact: true, name: 'Project Type', component: ProjectType }, { path: '/izin', exact: true, name: 'Izin', component: Izin },
{ path: '/divisi', exact: true, name: 'Divisi', component: Divisi }, { path: '/laporan-alert', exact: true, name: 'Laporan Alert', component: LaporanAlert },
{ path: '/satuan', exact: true, name: 'Satuan', component: Satuan }, { path: '/laporan-tugas-karyawan', exact: true, name: 'Laporan Tugas Karyawan', component: LaporanTugas },
{ path: '/rate-cost', exact: true, name: 'Rate Cost', component: RateCost }, { path: '/lembur', exact: true, name: 'Lembur', component: Lembur },
{ path: '/project-role', exact: true, name: 'Project Role', component: ProjectRole }, { path: '/map/baselayers', exact: true, name: 'Base Layers', component: BaseLayers },
{ path: '/working-hour', exact: true, name: 'Working Hour', component: Shift }, { path: '/map/config', exact: true, name: 'Config', component: MapConfig },
{ path: '/user-shift', exact: true, name: 'Shift', component: UserShift }, { path: '/map/layers', exact: true, name: 'Layers', component: Layers },
{ path: '/schedule-shift', exact: true, name: 'Schedule Shift', component: ScheduleShift }, { path: '/map/layers/:id', exact: true, name: 'Layer Details', component: Layer },
{ path: '/checklist-k3', exact: true, name: 'Checklist K3', component: ChecklistK3 }, { path: '/office-hours', exact: true, name: 'Jam Kerja', component: OfficeHours },
{ path: '/dashboard-pmo', exact: true, name: 'Dashboard PMO', component: DashboardPMO }, { path: '/organization', exact: true, name: 'Organisasi', component: Organization },
{ path: '/dashboard-security', exact: true, name: 'Dashboard Security', component: DashboardSecurity }, { path: '/planning-harian', exact: true, name: 'Planning Harian', component: PlanningHarian },
{ path: '/dashboard-project', exact: true, name: 'Dashboard Project', component: DashboardProject }, { path: '/presensi', exact: true, name: 'Presensi', component: Presensi },
{ path: '/proyek', exact: true, name: 'Created Project', component: Proyek },
{ path: '/proyek-gantt', exact: true, name: 'Gantt Chart Proyek', component: TestGantt },
{ path: '/rate-cost', exact: true, name: 'Rate Cost', component: RateCost },
{ path: '/schedule-shift', exact: true, name: 'Schedule Shift', component: ScheduleShift },
{ path: '/user-admin', exact: true, name: 'User Admin', component: UserAdmin },
{ path: '/user-shift', exact: true, name: 'Shift', component: UserShift },
{ path: '/working-hour', exact: true, name: 'Working Hour', component: Shift },
]; ];
export default routes; export default routes;

Loading…
Cancel
Save