Anggara MAG
2 years ago
5 changed files with 4447 additions and 3168 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,113 +1,280 @@ |
|||||||
import React from 'react'; |
import React from "react"; |
||||||
|
|
||||||
const BaseLayers = React.lazy(() => import('./views/BaseLayers')); |
const BaseLayers = React.lazy(() => import("./views/BaseLayers")); |
||||||
const Layers = React.lazy(() => import('./views/Layers/Layers')); |
const Layers = React.lazy(() => import("./views/Layers/Layers")); |
||||||
const Layer = React.lazy(() => import('./views/Layers/Layer')); |
const Layer = React.lazy(() => import("./views/Layers/Layer")); |
||||||
const MapConfig = React.lazy(() => import('./views/MapConfig')); |
const MapConfig = React.lazy(() => import("./views/MapConfig")); |
||||||
// const DashboardKominfo = React.lazy(() => import('./views/DashboardKominfo'));
|
// const DashboardKominfo = React.lazy(() => import('./views/DashboardKominfo'));
|
||||||
// const Sales = React.lazy(() => import('./views/Master/MasterSales'));
|
// const Sales = React.lazy(() => import('./views/Master/MasterSales'));
|
||||||
// const GroupSales = React.lazy(() => import('./views/Master/MasterGroupSales'));
|
// const GroupSales = React.lazy(() => import('./views/Master/MasterGroupSales'));
|
||||||
const OfficeHours = React.lazy(() => import('./views/Master/MasterOfficeHours')); |
const OfficeHours = React.lazy(() => |
||||||
|
import("./views/Master/MasterOfficeHours") |
||||||
|
); |
||||||
// const Customer = React.lazy(() => import('./views/Master/MasterCustomer'));
|
// const Customer = React.lazy(() => import('./views/Master/MasterCustomer'));
|
||||||
// const SettingSales = React.lazy(() => import('./views/Master/MasterSales/SettingSales'));
|
// const SettingSales = React.lazy(() => import('./views/Master/MasterSales/SettingSales'));
|
||||||
// const SettingOffice = React.lazy(() => import('./views/Master/MasterOffice/SettingOffice'));
|
// const SettingOffice = React.lazy(() => import('./views/Master/MasterOffice/SettingOffice'));
|
||||||
// const SettingCustomer = React.lazy(() => import('./views/Master/MasterCustomer/SettingCustomer'));
|
// const SettingCustomer = React.lazy(() => import('./views/Master/MasterCustomer/SettingCustomer'));
|
||||||
// new
|
// new
|
||||||
const DivisiKaryawan = React.lazy(() => import('./views/Master/MasterTipeKaryawan')); |
const DivisiKaryawan = React.lazy(() => |
||||||
const UserAdmin = React.lazy(() => import('./views/Master/UserAdmin')); |
import("./views/Master/MasterTipeKaryawan") |
||||||
|
); |
||||||
|
const UserAdmin = React.lazy(() => import("./views/Master/UserAdmin")); |
||||||
// const UserWaspang = React.lazy(() => import('./views/Master/UserWaspang'));
|
// const UserWaspang = React.lazy(() => import('./views/Master/UserWaspang'));
|
||||||
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 LaporanTugas = React.lazy(() => import("./views/Master/MasterTask")); |
||||||
const Izin = React.lazy(() => import('./views/Master/MasterCuti'));
|
const Izin = React.lazy(() => import("./views/Master/MasterCuti")); |
||||||
const Roles = React.lazy(() => import('./views/Master/MasterRoles')); |
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 Menu = React.lazy(() => import("./views/Master/MasterMenu")); |
||||||
const Broadcast = React.lazy(() => import('./views/Master/MasterBroadcast')); |
const Broadcast = React.lazy(() => import("./views/Master/MasterBroadcast")); |
||||||
const PanicButton = React.lazy(() => import('./views/SimproV2/PanicButton')); |
const PanicButton = React.lazy(() => import("./views/SimproV2/PanicButton")); |
||||||
const Absensi = React.lazy(() => import('./views/Master/MasterAbsensi')); |
const Absensi = React.lazy(() => import("./views/Master/MasterAbsensi")); |
||||||
const Lembur = React.lazy(() => import('./views/Master/MasterLembur')); |
const Lembur = React.lazy(() => import("./views/Master/MasterLembur")); |
||||||
const Organization = React.lazy(() => import('./views/Master/MasterOrganization')); |
const Organization = React.lazy(() => |
||||||
const Proyek = React.lazy(() => import('./views/Master/Proyek')); |
import("./views/Master/MasterOrganization") |
||||||
|
); |
||||||
|
const Proyek = React.lazy(() => import("./views/Master/Proyek")); |
||||||
// const SubProyek = React.lazy(() => import('./views/Master/SubProyek'));
|
// const SubProyek = React.lazy(() => import('./views/Master/SubProyek'));
|
||||||
const DashboardSimpro = React.lazy(() => import('./views/DashboardSimpro')); |
const DashboardSimpro = React.lazy(() => import("./views/DashboardSimpro")); |
||||||
const controlMonitoring = React.lazy(() => import('./views/Report/ControlMonitoring')); |
const controlMonitoring = React.lazy(() => |
||||||
const K3 = React.lazy(() => import('./views/Report/k3')); |
import("./views/Report/ControlMonitoring") |
||||||
const TestGantt = React.lazy(() => import('./views/testgantt')); |
); |
||||||
const ConfigAlert = React.lazy(() => import('./views/Master/ConfigAlert')); |
const K3 = React.lazy(() => import("./views/Report/k3")); |
||||||
|
const TestGantt = React.lazy(() => import("./views/testgantt")); |
||||||
|
const ConfigAlert = React.lazy(() => import("./views/Master/ConfigAlert")); |
||||||
// const NetworkDiagram = React.lazy(() => import('./views/Master/NetworkDiagram'));
|
// const NetworkDiagram = React.lazy(() => import('./views/Master/NetworkDiagram'));
|
||||||
const LaporanAlert = React.lazy(() => import('./views/Report/alert')); |
const LaporanAlert = React.lazy(() => import("./views/Report/alert")); |
||||||
const ControlMonitoringGantt = React.lazy(() => import('./views/ControlMonitoringGantt')); |
const ControlMonitoringGantt = React.lazy(() => |
||||||
const CreatedProyek = React.lazy(() => import('./views/SimproV2/CreatedProyek')); |
import("./views/ControlMonitoringGantt") |
||||||
const ResourceWorker = React.lazy(() => import('./views/SimproV2/ResourceWorker')); |
); |
||||||
const ResourceMaterial = React.lazy(() => import('./views/SimproV2/ResourceMaterial')); |
const CreatedProyek = React.lazy(() => |
||||||
const ResourceTools = React.lazy(() => import('./views/SimproV2/ResourceTools')); |
import("./views/SimproV2/CreatedProyek") |
||||||
const PlanningHarian = React.lazy(() => import('./views/SimproV2/PlanningHarian')); |
); |
||||||
const Closing = React.lazy(() => import('./views/SimproV2/Closing')); |
const ResourceWorker = React.lazy(() => |
||||||
const ProjectType = React.lazy(() => import('./views/SimproV2/ProjectType')); |
import("./views/SimproV2/ResourceWorker") |
||||||
const Divisi = React.lazy(() => import('./views/SimproV2/Divisi')); |
); |
||||||
const Satuan = React.lazy(() => import('./views/SimproV2/Satuan')); |
const ResourceMaterial = React.lazy(() => |
||||||
const RateCost = React.lazy(() => import('./views/SimproV2/RateCost')); |
import("./views/SimproV2/ResourceMaterial") |
||||||
const Gantt = React.lazy(() => import('./views/SimproV2/Gantt')); |
); |
||||||
const Shift = React.lazy(() => import('./views/SimproV2/Shift')); |
const ResourceTools = React.lazy(() => |
||||||
const UserShift = React.lazy(() => import('./views/SimproV2/UserShift')); |
import("./views/SimproV2/ResourceTools") |
||||||
const ScheduleShift = React.lazy(() => import('./views/SimproV2/ScheduleShift')); |
); |
||||||
const ChecklistK3 = React.lazy(() => import('./views/SimproV2/ChecklistK3')); |
const PlanningHarian = React.lazy(() => |
||||||
const DashboardPMO = React.lazy(() => import('./views/DashboardPMO')); |
import("./views/SimproV2/PlanningHarian") |
||||||
const DashboardProject = React.lazy(() => import('./views/DashboardProject')); |
); |
||||||
const DashboardSecurity = React.lazy(() => import('./views/DashboardSecurity')); |
const Closing = React.lazy(() => import("./views/SimproV2/Closing")); |
||||||
|
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 RateCost = React.lazy(() => import("./views/SimproV2/RateCost")); |
||||||
|
const Gantt = React.lazy(() => import("./views/SimproV2/Gantt")); |
||||||
|
const Shift = React.lazy(() => import("./views/SimproV2/Shift")); |
||||||
|
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 PlanningVsRealisasi = React.lazy(() => import('./views/Master/PlanningVsRealisasi'));
|
// const PlanningVsRealisasi = React.lazy(() => import('./views/Master/PlanningVsRealisasi'));
|
||||||
|
|
||||||
// https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config
|
// https://github.com/ReactTraining/react-router/tree/master/packages/react-router-config
|
||||||
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/config", exact: true, name: "Config", component: MapConfig }, |
||||||
{ path: '/map/baselayers', exact: true, name: 'Base Layers', component: BaseLayers }, |
{ |
||||||
{ path: '/map/layers', exact: true, name: 'Layers', component: Layers }, |
path: "/map/baselayers", |
||||||
{ path: '/map/layers/:id', exact: true, name: 'Layer Details', component: Layer }, |
exact: true, |
||||||
{ path: '/office-hours', exact: true, name: 'Jam Kerja', component: OfficeHours }, |
name: "Base Layers", |
||||||
{ path: '/user-admin', exact: true, name: 'User Admin', component: UserAdmin }, |
component: BaseLayers, |
||||||
|
}, |
||||||
|
{ path: "/map/layers", exact: true, name: "Layers", component: Layers }, |
||||||
|
{ |
||||||
|
path: "/map/layers/:id", |
||||||
|
exact: true, |
||||||
|
name: "Layer Details", |
||||||
|
component: Layer, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/office-hours", |
||||||
|
exact: true, |
||||||
|
name: "Jam Kerja", |
||||||
|
component: OfficeHours, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/user-admin", |
||||||
|
exact: true, |
||||||
|
name: "User Admin", |
||||||
|
component: UserAdmin, |
||||||
|
}, |
||||||
// { path: '/user-waspang', exact: true, name: 'User Waspang', component: UserWaspang },
|
// { path: '/user-waspang', exact: true, name: 'User Waspang', component: UserWaspang },
|
||||||
{ path: '/divisi-karyawan', exact: true, name: 'Divisi Karyawan', component: DivisiKaryawan }, |
{ |
||||||
{ path: '/presensi', exact: true, name: 'Presensi', component: Presensi }, |
path: "/divisi-karyawan", |
||||||
{ path: '/absensi', exact: true, name: 'Absensi', component: Absensi }, |
exact: true, |
||||||
{ path: '/laporan-tugas-karyawan', exact: true, name: 'Laporan Tugas Karyawan', component: LaporanTugas }, |
name: "Divisi Karyawan", |
||||||
{ path: '/izin', exact: true, name: 'Izin', component: Izin }, |
component: DivisiKaryawan, |
||||||
{ path: '/broadcast', exact: true, name: 'Broadcast', component: Broadcast }, |
}, |
||||||
{ path: '/panic-button', exact: true, name: 'Tombol Darurat', component: PanicButton }, |
{ path: "/presensi", exact: true, name: "Presensi", component: Presensi }, |
||||||
{ path: '/proyek', exact: true, name: 'Created Project', component: Proyek }, |
{ path: "/absensi", exact: true, name: "Absensi", component: Absensi }, |
||||||
|
{ |
||||||
|
path: "/laporan-tugas-karyawan", |
||||||
|
exact: true, |
||||||
|
name: "Laporan Tugas Karyawan", |
||||||
|
component: LaporanTugas, |
||||||
|
}, |
||||||
|
{ path: "/izin", exact: true, name: "Izin", component: Izin }, |
||||||
|
{ path: "/broadcast", exact: true, name: "Broadcast", component: Broadcast }, |
||||||
|
{ |
||||||
|
path: "/panic-button", |
||||||
|
exact: true, |
||||||
|
name: "Tombol Darurat", |
||||||
|
component: PanicButton, |
||||||
|
}, |
||||||
|
{ path: "/proyek", exact: true, name: "Created Project", component: Proyek }, |
||||||
// { path: '/sub-proyek', exact: true, name: 'Subproyek', component: SubProyek },
|
// { path: '/sub-proyek', exact: true, name: 'Subproyek', component: SubProyek },
|
||||||
{ path: '/menu', exact: true, name: 'Menu', component: Menu }, |
{ path: "/menu", exact: true, name: "Menu", component: Menu }, |
||||||
{ path: '/roles', exact: true, name: 'Roles', component: Roles }, |
{ path: "/roles", exact: true, name: "Roles", component: Roles }, |
||||||
{ path: '/lembur', exact: true, name: 'Lembur', component: Lembur }, |
{ path: "/lembur", exact: true, name: "Lembur", component: Lembur }, |
||||||
{ path: '/organization', exact: true, name: 'Organisasi', component: Organization }, |
{ |
||||||
{ path: '/control-monitoring', exact: true, name: 'Control Monitoring', component: controlMonitoring }, |
path: "/organization", |
||||||
{ path: '/laporan-k3', exact: true, name: 'Laporan K3', component: K3 }, |
exact: true, |
||||||
{ path: '/proyek-gantt', exact: true, name: 'Gantt Chart Proyek', component: TestGantt }, |
name: "Organisasi", |
||||||
{ path: '/config-alert', exact: true, name: 'Config Alert', component: ConfigAlert }, |
component: Organization, |
||||||
{ path: '/laporan-alert', exact: true, name: 'Laporan Alert', component: LaporanAlert }, |
}, |
||||||
{ path: '/control-monitoring-gantt', exact: true, name: 'Control Monitoring Gantt', component: ControlMonitoringGantt }, |
{ |
||||||
{ path: '/projects', exact: true, name: 'Projects', component: CreatedProyek }, |
path: "/control-monitoring", |
||||||
{ path: '/human-resource', exact: true, name: 'Human Resource', component: ResourceWorker }, |
exact: true, |
||||||
{ path: '/material-resource', exact: true, name: 'Material Resource', component: ResourceMaterial }, |
name: "Control Monitoring", |
||||||
{ path: '/tools-resource', exact: true, name: 'Tools Resource', component: ResourceTools }, |
component: controlMonitoring, |
||||||
{ path: '/projects/:id/:project/gantt', exact: true, name: 'Gantt', component: Gantt }, |
}, |
||||||
{ path: '/planning-harian', exact: true, name: 'Planning Harian', component: PlanningHarian }, |
{ path: "/laporan-k3", exact: true, name: "Laporan K3", component: K3 }, |
||||||
{ path: '/presensi-resource', exact: true, name: 'Presensi Resource', component: Presensi }, |
{ |
||||||
{ path: '/absensi-resource', exact: true, name: 'Absensi Resource', component: Absensi }, |
path: "/proyek-gantt", |
||||||
{ path: '/closing', exact: true, name: 'Closing', component: Closing }, |
exact: true, |
||||||
{ path: '/project-type', exact: true, name: 'Project Type', component: ProjectType }, |
name: "Gantt Chart Proyek", |
||||||
{ path: '/divisi', exact: true, name: 'Divisi', component: Divisi }, |
component: TestGantt, |
||||||
{ path: '/satuan', exact: true, name: 'Satuan', component: Satuan }, |
}, |
||||||
{ path: '/rate-cost', exact: true, name: 'Rate Cost', component: RateCost }, |
{ |
||||||
{ path: '/project-role', exact: true, name: 'Project Role', component: ProjectRole }, |
path: "/config-alert", |
||||||
{ path: '/working-hour', exact: true, name: 'Working Hour', component: Shift }, |
exact: true, |
||||||
{ path: '/user-shift', exact: true, name: 'Shift', component: UserShift }, |
name: "Config Alert", |
||||||
{ path: '/schedule-shift', exact: true, name: 'Schedule Shift', component: ScheduleShift }, |
component: ConfigAlert, |
||||||
{ path: '/checklist-k3', exact: true, name: 'Checklist K3', component: ChecklistK3 }, |
}, |
||||||
{ path: '/dashboard-pmo', exact: true, name: 'Dashboard PMO', component: DashboardPMO }, |
{ |
||||||
{ path: '/dashboard-security', exact: true, name: 'Dashboard Security', component: DashboardSecurity }, |
path: "/laporan-alert", |
||||||
{ path: '/dashboard-project', exact: true, name: 'Dashboard Project', component: DashboardProject }, |
exact: true, |
||||||
|
name: "Laporan Alert", |
||||||
|
component: LaporanAlert, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/control-monitoring-gantt", |
||||||
|
exact: true, |
||||||
|
name: "Control Monitoring Gantt", |
||||||
|
component: ControlMonitoringGantt, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/projects", |
||||||
|
exact: true, |
||||||
|
name: "Projects", |
||||||
|
component: CreatedProyek, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/human-resource", |
||||||
|
exact: true, |
||||||
|
name: "Human Resource", |
||||||
|
component: ResourceWorker, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/material-resource", |
||||||
|
exact: true, |
||||||
|
name: "Material Resource", |
||||||
|
component: ResourceMaterial, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/tools-resource", |
||||||
|
exact: true, |
||||||
|
name: "Tools Resource", |
||||||
|
component: ResourceTools, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/projects/:id/:project/gantt", |
||||||
|
exact: true, |
||||||
|
name: "Gantt", |
||||||
|
component: Gantt, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/planning-harian", |
||||||
|
exact: true, |
||||||
|
name: "Planning Harian", |
||||||
|
component: PlanningHarian, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/presensi-resource", |
||||||
|
exact: true, |
||||||
|
name: "Presensi Resource", |
||||||
|
component: Presensi, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/absensi-resource", |
||||||
|
exact: true, |
||||||
|
name: "Absensi Resource", |
||||||
|
component: Absensi, |
||||||
|
}, |
||||||
|
{ path: "/closing", exact: true, name: "Closing", component: Closing }, |
||||||
|
{ |
||||||
|
path: "/project-type", |
||||||
|
exact: true, |
||||||
|
name: "Project Type", |
||||||
|
component: ProjectType, |
||||||
|
}, |
||||||
|
{ path: "/divisi", exact: true, name: "Divisi", component: Divisi }, |
||||||
|
{ path: "/satuan", exact: true, name: "Satuan", component: Satuan }, |
||||||
|
{ path: "/rate-cost", exact: true, name: "Rate Cost", component: RateCost }, |
||||||
|
{ |
||||||
|
path: "/project-role", |
||||||
|
exact: true, |
||||||
|
name: "Project Role", |
||||||
|
component: ProjectRole, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/working-hour", |
||||||
|
exact: true, |
||||||
|
name: "Working Hour", |
||||||
|
component: Shift, |
||||||
|
}, |
||||||
|
{ path: "/user-shift", exact: true, name: "Shift", component: UserShift }, |
||||||
|
{ |
||||||
|
path: "/schedule-shift", |
||||||
|
exact: true, |
||||||
|
name: "Schedule Shift", |
||||||
|
component: ScheduleShift, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/checklist-k3", |
||||||
|
exact: true, |
||||||
|
name: "Checklist K3", |
||||||
|
component: ChecklistK3, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/dashboard-pmo", |
||||||
|
exact: true, |
||||||
|
name: "Dashboard PMO", |
||||||
|
component: DashboardPMO, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/dashboard-security", |
||||||
|
exact: true, |
||||||
|
name: "Dashboard Security", |
||||||
|
component: DashboardSecurity, |
||||||
|
}, |
||||||
|
{ |
||||||
|
path: "/dashboard-project", |
||||||
|
exact: true, |
||||||
|
name: "Dashboard Project", |
||||||
|
component: DashboardProject, |
||||||
|
}, |
||||||
]; |
]; |
||||||
|
|
||||||
export default routes; |
export default routes; |
||||||
|
Loading…
Reference in new issue