From c77c2110062bfdd710b4078abd7e801cc11c8076 Mon Sep 17 00:00:00 2001 From: waruneeauy Date: Fri, 20 Dec 2024 16:13:18 +0700 Subject: [PATCH] updated path manual --- src/app.config.ts | 238 +++++++++++++++++++++++----------------------- 1 file changed, 118 insertions(+), 120 deletions(-) diff --git a/src/app.config.ts b/src/app.config.ts index caafe4606..485e0beea 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -142,105 +142,103 @@ const API = { ...file, }; -const path = - import.meta.env.VITE_MANUAL_URL ?? - "https://bma-ehr-manual.frappet.synology.me"; +const path = import.meta.env.VITE_MANUAL_URL ?? ""; const generatePopupPath = (routeName: any) => { if (routeName.includes("metadata")) { - return `${path}/manual/chapter-2-admin-metadata`; + return `${path}/chapter-2-admin-metadata`; } else if (routeName.includes("registryNew")) { - return `${path}/manual/chapter-6-1-admin-registry`; + return `${path}/chapter-6-1-admin-registry`; } else if (routeName.includes("registryEmployeeList")) { - return `${path}/manual/chapter-6-2-admin-registry`; + return `${path}/chapter-6-2-admin-registry`; } else if (routeName.includes("registry-employee")) { - return `${path}/manual/chapter-6-3-admin-registry`; + return `${path}/chapter-6-3-admin-registry`; } else if (routeName.includes("insignia")) { - return `${path}/manual/chapter-13-admin-insignia`; + return `${path}/chapter-13-admin-insignia`; } else if (routeName.includes("acting")) { - return `${path}/manual/chapter-4-admin-acting`; + return `${path}/chapter-4-admin-acting`; } else if (routeName.includes("positionEmployee")) { - return `${path}/manual/chapter-5-admin-position-employee`; + return `${path}/chapter-5-admin-position-employee`; } else if (routeName == "retirement") { - return `${path}/manual/chapter-11-admin-retirement`; + return `${path}/chapter-11-admin-retirement`; } else if (routeName == "resign") { - return `${path}/manual/chapter-11-2-admin-retirement`; + return `${path}/chapter-11-2-admin-retirement`; } else if (routeName == "resignEmployee") { - return `${path}/manual/chapter-11-3-admin-retirement`; + return `${path}/chapter-11-3-admin-retirement`; } else if (routeName == "exit-Interview") { - return `${path}/manual/chapter-11-4-admin-retirement`; + return `${path}/chapter-11-4-admin-retirement`; } else if (routeName == "deceased") { - return `${path}/manual/chapter-11-5-admin-retirement`; + return `${path}/chapter-11-5-admin-retirement`; } else if (routeName == "dismiss-order") { - return `${path}/manual/chapter-11-6-admin-retirement`; + return `${path}/chapter-11-6-admin-retirement`; } else if (routeName.includes("disciplineComplaints")) { - return `${path}/manual/chapter-14-admin-discipline-complaints`; + return `${path}/chapter-14-admin-discipline-complaints`; } else if (routeName.includes("disciplineInvestigatefacts")) { - return `${path}/manual/chapter-14-2-admin-discipline-investigatefacts`; + return `${path}/chapter-14-2-admin-discipline-investigatefacts`; } else if (routeName.includes("disciplineDisciplinary")) { - return `${path}/manual/chapter-14-3-admin-discipline-disciplinary`; + return `${path}/chapter-14-3-admin-discipline-disciplinary`; } else if (routeName.includes("disciplineResult")) { - return `${path}/manual/chapter-14-4-admin-discipline-result`; + return `${path}/chapter-14-4-admin-discipline-result`; } else if (routeName.includes("disciplineListSuspend")) { - return `${path}/manual/chapter-14-5-admin-discipline-suspend`; + return `${path}/chapter-14-5-admin-discipline-suspend`; } else if (routeName.includes("appealComplain")) { - return `${path}/manual/chapter-14-6-admin-discipline-appealcomplain`; + return `${path}/chapter-14-6-admin-discipline-appealcomplain`; } else if (routeName.includes("disciplineDirector")) { - return `${path}/manual/chapter-14-7-admin-discipline-director`; + return `${path}/chapter-14-7-admin-discipline-director`; } else if (routeName.includes("disciplineChannel")) { - return `${path}/manual/chapter-14-7-2-admin-discipline-channel`; + return `${path}/chapter-14-7-2-admin-discipline-channel`; } else if (routeName.includes("KPIIndicatorByPlan")) { - return `${path}/manual/chapter-2-admin-evaluate`; + return `${path}/chapter-2-admin-evaluate`; } else if (routeName.includes("KPIIndicatorByRole")) { - return `${path}/manual/chapter-2-1-2-admin-evaluate`; + return `${path}/chapter-2-1-2-admin-evaluate`; } else if (routeName.includes("KPIAssignment")) { - return `${path}/manual/chapter-2-1-3-admin-evaluate`; + return `${path}/chapter-2-1-3-admin-evaluate`; } else if (routeName.includes("KPICompetency")) { - return `${path}/manual/chapter-2-2-admin-evaluate`; + return `${path}/chapter-2-2-admin-evaluate`; } else if (routeName.includes("strategic")) { - return `${path}/manual/chapter-2-3-admin-evaluate`; + return `${path}/chapter-2-3-admin-evaluate`; } else if (routeName == "commandListPage") { - return `${path}/manual/chapter-7-admin-order`; + return `${path}/chapter-7-admin-order`; } else if (routeName == "competePeriod") { - return `${path}/manual/chapter-8-3-admin-compete-period`; + return `${path}/chapter-8-3-admin-compete-period`; } else if (routeName == "qualifyPeriod") { - return `${path}/manual/chapter-8-4-1-admin-qualify-period`; + return `${path}/chapter-8-4-1-admin-qualify-period`; } else if (routeName == "disablePeriod") { - return `${path}/manual/chapter-8-4-2-admin-disable-period`; + return `${path}/chapter-8-4-2-admin-disable-period`; } else if (routeName == "manage") { - return `${path}/manual/chapter-8-4-3-admin-qualify-manage`; + return `${path}/chapter-8-4-3-admin-qualify-manage`; } else if (routeName == "qualifyPeriodStat") { - return `${path}/manual/chapter-8-4-4-admin-qualify-period-stat`; + return `${path}/chapter-8-4-4-admin-qualify-period-stat`; } else if (routeName == "qualifyPeriodStatDisable") { - return `${path}/manual/chapter-8-4-5-admin-qualify-disable-stat`; + return `${path}/chapter-8-4-5-admin-qualify-disable-stat`; } else if (routeName.includes("competePeriodStat")) { - return `${path}/manual/chapter-8-3-2-admin-compete-period-stat`; + return `${path}/chapter-8-3-2-admin-compete-period-stat`; } else if (routeName.includes("probation")) { - return `${path}/manual/chapter-10-admin-probation`; + return `${path}/chapter-10-admin-probation`; } else if (routeName.includes("insigniaProposals")) { - return `${path}/manual/chapter-12-admin-insignia`; + return `${path}/chapter-12-admin-insignia`; } else if (routeName.includes("insigniaManage")) { - return `${path}/manual/chapter-12-2-admin-insignia`; + return `${path}/chapter-12-2-admin-insignia`; } else if (routeName.includes("insigniaRecord")) { - return `${path}/manual/chapter-12-3-admin-insignia`; + return `${path}/chapter-12-3-admin-insignia`; } else if (routeName.includes("insigniaAllocate")) { - return `${path}/manual/chapter-12-4-admin-insignia`; + return `${path}/chapter-12-4-admin-insignia`; } else if (routeName.includes("insigniaBorrow")) { - return `${path}/manual/chapter-12-5-admin-insignia`; + return `${path}/chapter-12-5-admin-insignia`; } else if (routeName.includes("insigniaReport")) { - return `${path}/manual/chapter-12-6-admin-insignia`; + return `${path}/chapter-12-6-admin-insignia`; } else if (routeName.includes("roundTime")) { - return `${path}/manual/chapter-13-admin-leave`; + return `${path}/chapter-13-admin-leave`; } else if (routeName.includes("workList")) { - return `${path}/manual/chapter-13-2-admin-leave`; + return `${path}/chapter-13-2-admin-leave`; } else if (routeName.includes("changeRound")) { - return `${path}/manual/chapter-13-3-admin-leave`; + return `${path}/chapter-13-3-admin-leave`; } else if (routeName.includes("timestampSpecial")) { - return `${path}/manual/chapter-13-4-admin-leave`; + return `${path}/chapter-13-4-admin-leave`; } else if (routeName == "leave") { - return `${path}/manual/chapter-13-5-admin-leave`; + return `${path}/chapter-13-5-admin-leave`; } else if (routeName == "leaveReport") { - return `${path}/manual/chapter-13-6-admin-leave`; + return `${path}/chapter-13-6-admin-leave`; } else if ( routeName.includes("qualify") || routeName.includes("recruiting") || @@ -248,41 +246,41 @@ const generatePopupPath = (routeName: any) => { routeName.includes("disable") || routeName.includes("manage") ) { - return `${path}/manual/chapter-9-admin-recruit`; + return `${path}/chapter-9-admin-recruit`; } else if (routeName.includes("developmentMain")) { - return `${path}/manual/chapter-18-admin-development`; + return `${path}/chapter-18-admin-development`; } else if (routeName.includes("developmentHistory")) { - return `${path}/manual/chapter-18-2-admin-development-history`; + return `${path}/chapter-18-2-admin-development-history`; } else if (routeName.includes("developmentEmployeeHistory")) { - return `${path}/manual/chapter-18-3-admin-development-employee-history`; + return `${path}/chapter-18-3-admin-development-employee-history`; } else if (routeName.includes("developmentScholarship")) { - return `${path}/manual/chapter-18-4-admin-development-scholarship`; + return `${path}/chapter-18-4-admin-development-scholarship`; } else if (routeName == "evaluate") { - return `${path}/manual/chapter-15-admin-KPI`; + return `${path}/chapter-15-admin-KPI`; } else if (routeName == "evaluateDirector") { - return `${path}/manual/chapter-15-2-admin-KPI`; + return `${path}/chapter-15-2-admin-KPI`; } else if (routeName == "evaluateMeeting") { - return `${path}/manual/chapter-15-2-2-admin-KPI`; + return `${path}/chapter-15-2-2-admin-KPI`; } else if (routeName == "salaryChart") { - return `${path}/manual/chapter-16-admin-salary`; + return `${path}/chapter-16-admin-salary`; } else if (routeName == "salaryEmployeeChart") { - return `${path}/manual/chapter-16-2-admin-salary`; + return `${path}/chapter-16-2-admin-salary`; } else if (routeName == "salaryRound") { - return `${path}/manual/chapter-16-3-admin-salary`; + return `${path}/chapter-16-3-admin-salary`; } else if (routeName == "salaryLists") { - return `${path}/manual/chapter-16-4-admin-salary`; + return `${path}/chapter-16-4-admin-salary`; } else if (routeName == "salaryEmployeeLists") { - return `${path}/manual/chapter-16-5-admin-salary`; + return `${path}/chapter-16-5-admin-salary`; } else if (routeName == "KPIRound") { - return `${path}/manual/chapter-17-admin-development`; + return `${path}/chapter-17-admin-development`; } else if (routeName == "KPI​List") { - return `${path}/manual/chapter-17-2-admin-development-history`; + return `${path}/chapter-17-2-admin-development-history`; } else if (routeName == "KPIResults") { - return `${path}/manual/chapter-17-3-admin-development-employee-history`; + return `${path}/chapter-17-3-admin-development-employee-history`; } else if (routeName == "KPIReport") { - return `${path}/manual/chapter-17-4-admin-development-scholarship`; + return `${path}/chapter-17-4-admin-development-scholarship`; } else if (routeName == "positionCondition") { - return `${path}/manual/chapter-19-admin-position-condition`; + return `${path}/chapter-19-admin-position-condition`; } else { return manualConfig[routeName as keyof typeof manualConfig]; } @@ -290,60 +288,60 @@ const generatePopupPath = (routeName: any) => { const manualConfig = { dashboard: `${path}/`, - strategic: `${path}/manual/chapter-2-admin-evaluate`, - KPIIndicatorByRoleAdd: `${path}/manual/chapter-2-admin-evaluate`, - KPIIndicatorByPlan: `${path}/manual/chapter-2-admin-evaluate`, - "KPIIndicatorByPlan/Add": `${path}/manual/chapter-2-admin-evaluate`, - KPIIndicatorByPlanByid: `${path}/manual/chapter-2-admin-evaluate`, - KPIIndicatorByRoleByid: `${path}/manual/chapter-2-admin-evaluate`, - KPICompetency: `${path}/manual/chapter-2-admin-evaluate`, - KPIAssignment: `${path}/manual/chapter-2-admin-evaluate`, - KPIAssignmentById: `${path}/manual/chapter-2-admin-evaluate`, - KPIIndicatorByRole: `${path}/manual/chapter-2-admin-evaluate`, - KPICompetencyAdd: `${path}/manual/chapter-2-admin-evaluate`, - KPICompetencyByid: `${path}/manual/chapter-2-admin-evaluate`, - organizationalNew: `${path}/manual/chapter-3-admin-organization`, - organization: `${path}/manual/chapter-6-admin-registry`, - registry: `${path}/manual/chapter-6-admin-registry`, - registryDetail: `${path}/manual/chapter-6-admin-registry`, - verified: `${path}/manual/chapter-6-admin-registry`, - order: `${path}/manual/chapter-8-admin-order`, - OrderDetail: `${path}/manual/chapter-8-admin-order`, - OrderAdd: `${path}/manual/chapter-8-admin-order`, - editorweb: `${path}/manual/chapter-8-admin-recruit`, + strategic: `${path}/chapter-2-admin-evaluate`, + KPIIndicatorByRoleAdd: `${path}/chapter-2-admin-evaluate`, + KPIIndicatorByPlan: `${path}/chapter-2-admin-evaluate`, + "KPIIndicatorByPlan/Add": `${path}/chapter-2-admin-evaluate`, + KPIIndicatorByPlanByid: `${path}/chapter-2-admin-evaluate`, + KPIIndicatorByRoleByid: `${path}/chapter-2-admin-evaluate`, + KPICompetency: `${path}/chapter-2-admin-evaluate`, + KPIAssignment: `${path}/chapter-2-admin-evaluate`, + KPIAssignmentById: `${path}/chapter-2-admin-evaluate`, + KPIIndicatorByRole: `${path}/chapter-2-admin-evaluate`, + KPICompetencyAdd: `${path}/chapter-2-admin-evaluate`, + KPICompetencyByid: `${path}/chapter-2-admin-evaluate`, + organizationalNew: `${path}/chapter-3-admin-organization`, + organization: `${path}/chapter-6-admin-registry`, + registry: `${path}/chapter-6-admin-registry`, + registryDetail: `${path}/chapter-6-admin-registry`, + verified: `${path}/chapter-6-admin-registry`, + order: `${path}/chapter-8-admin-order`, + OrderDetail: `${path}/chapter-8-admin-order`, + OrderAdd: `${path}/chapter-8-admin-order`, + editorweb: `${path}/chapter-8-admin-recruit`, - placement: `${path}/manual/chapter-9-admin-placement`, - transfer: `${path}/manual/chapter-9-2-admin-transfer`, - receive: `${path}/manual/chapter-9-3-admin-receive`, - "help-government": `${path}/manual/chapter-9-4-admin-help-government`, - repatriate: `${path}/manual/chapter-9-5-admin-repatriate`, - "appoint-promote": `${path}/manual/chapter-9-6-admin-appoint-promote`, - "appoint-employee": `${path}/manual/chapter-9-7-admin-appoint-employee`, - other: `${path}/manual/chapter-9-8-admin-other`, + placement: `${path}/chapter-9-admin-placement`, + transfer: `${path}/chapter-9-2-admin-transfer`, + receive: `${path}/chapter-9-3-admin-receive`, + "help-government": `${path}/chapter-9-4-admin-help-government`, + repatriate: `${path}/chapter-9-5-admin-repatriate`, + "appoint-promote": `${path}/chapter-9-6-admin-appoint-promote`, + "appoint-employee": `${path}/chapter-9-7-admin-appoint-employee`, + other: `${path}/chapter-9-8-admin-other`, - probation: `${path}/manual/chapter-11-admin-probation`, - probationDetail: `${path}/manual/chapter-11-admin-probation`, - probationForm: `${path}/manual/chapter-11-admin-probation`, - retirement: `${path}/manual/chapter-12-admin-retirement`, - resign: `${path}/manual/chapter-12-admin-retirement`, - ExitInterviewEditQuestion: `${path}/manual/chapter-12-admin-retirement`, - "dismiss-order": `${path}/manual/chapter-12-admin-retirement`, - "report-report": `${path}/manual/chapter-13-admin-insignia`, - "report-report-01": `${path}/manual/chapter-13-admin-insignia`, - roundTime: `${path}/manual/chapter-14-admin-leave`, - changeRound: `${path}/manual/chapter-14-admin-leave`, - workList: `${path}/manual/chapter-14-admin-leave`, - timestampSpecial: `${path}/manual/chapter-14-admin-leave`, - leave: `${path}/manual/chapter-14-admin-leave`, - leaveDetail: `${path}/manual/chapter-14-admin-leave`, - leaveRejectDetail: `${path}/manual/chapter-14-admin-leave`, - leaveReport: `${path}/manual/chapter-14-admin-leave`, - appealComplain: `${path}/manual/chapter-15-admin-discipline`, - // KPIRound: `${path}/manual/chapter-18-admin-perf-evaluation`, - // "KPI​List": `${path}/manual/chapter-18-admin-perf-evaluation`, - // KPIDetail: `${path}/manual/chapter-18-admin-perf-evaluation`, - // KPIReport: `${path}/manual/chapter-18-admin-perf-evaluation`, - // KPIDetailnew: `${path}/manual/chapter-18-admin-perf-evaluation`, + probation: `${path}/chapter-11-admin-probation`, + probationDetail: `${path}/chapter-11-admin-probation`, + probationForm: `${path}/chapter-11-admin-probation`, + retirement: `${path}/chapter-12-admin-retirement`, + resign: `${path}/chapter-12-admin-retirement`, + ExitInterviewEditQuestion: `${path}/chapter-12-admin-retirement`, + "dismiss-order": `${path}/chapter-12-admin-retirement`, + "report-report": `${path}/chapter-13-admin-insignia`, + "report-report-01": `${path}/chapter-13-admin-insignia`, + roundTime: `${path}/chapter-14-admin-leave`, + changeRound: `${path}/chapter-14-admin-leave`, + workList: `${path}/chapter-14-admin-leave`, + timestampSpecial: `${path}/chapter-14-admin-leave`, + leave: `${path}/chapter-14-admin-leave`, + leaveDetail: `${path}/chapter-14-admin-leave`, + leaveRejectDetail: `${path}/chapter-14-admin-leave`, + leaveReport: `${path}/chapter-14-admin-leave`, + appealComplain: `${path}/chapter-15-admin-discipline`, + // KPIRound: `${path}/chapter-18-admin-perf-evaluation`, + // "KPI​List": `${path}/chapter-18-admin-perf-evaluation`, + // KPIDetail: `${path}/chapter-18-admin-perf-evaluation`, + // KPIReport: `${path}/chapter-18-admin-perf-evaluation`, + // KPIDetailnew: `${path}/chapter-18-admin-perf-evaluation`, }; export default {