fixing config manual
This commit is contained in:
parent
ffc11fd929
commit
feb02ec5b4
2 changed files with 55 additions and 52 deletions
|
|
@ -15,66 +15,68 @@ import probation from "./api/probation/api.probation";
|
|||
import development from "./api/api.development";
|
||||
|
||||
const API = {
|
||||
...testtest,
|
||||
...retirementResign,
|
||||
...placementTransfer,
|
||||
...message,
|
||||
...evaluate,
|
||||
...appeal,
|
||||
...support,
|
||||
...org,
|
||||
...scholarship,
|
||||
...kpi,
|
||||
...probation,
|
||||
...development,
|
||||
...testtest,
|
||||
...retirementResign,
|
||||
...placementTransfer,
|
||||
...message,
|
||||
...evaluate,
|
||||
...appeal,
|
||||
...support,
|
||||
...org,
|
||||
...scholarship,
|
||||
...kpi,
|
||||
...probation,
|
||||
...development,
|
||||
};
|
||||
|
||||
const path = "https://bma-ehr-manual.frappet.synology.me";
|
||||
const path =
|
||||
import.meta.env.VITE_MANUAL_URL ??
|
||||
"https://bma-ehr-manual.frappet.synology.me";
|
||||
|
||||
const generatePopupPath = (routeName: any) => {
|
||||
if (routeName.includes("registry")) {
|
||||
return `${path}/manual/chapter-2-user-registry`;
|
||||
}
|
||||
if (routeName.includes("leave")) {
|
||||
return `${path}/manual/chapter-4-user-leave`;
|
||||
}
|
||||
if (routeName.includes("evaluate")) {
|
||||
return `${path}/manual/chapter-3-user-evaluate`;
|
||||
}
|
||||
if (routeName.includes("portfolio")) {
|
||||
return `${path}/manual/chapter-5-user-portfolio`;
|
||||
}
|
||||
if (routeName.includes("transfer")) {
|
||||
return `${path}/manual/chapter-6-user-transfer`;
|
||||
}
|
||||
if (routeName.includes("appealComplain")) {
|
||||
return `${path}/manual/chapter-7-user-appeal-complain`;
|
||||
}
|
||||
if (routeName.includes("KPI")) {
|
||||
return `${path}/manual/chapter-9-user-KPI-evaluator`;
|
||||
}
|
||||
if (routeName.includes("scholarship")) {
|
||||
return `${path}/manual/chapter-10-user-scholarship`;
|
||||
}
|
||||
if (routeName.includes("Retire")) {
|
||||
return `${path}/manual/chapter-11-user-retire`;
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
}
|
||||
if (routeName.includes("registry")) {
|
||||
return `${path}/manual/chapter-2-user-registry`;
|
||||
}
|
||||
if (routeName.includes("leave")) {
|
||||
return `${path}/manual/chapter-4-user-leave`;
|
||||
}
|
||||
if (routeName.includes("evaluate")) {
|
||||
return `${path}/manual/chapter-3-user-evaluate`;
|
||||
}
|
||||
if (routeName.includes("portfolio")) {
|
||||
return `${path}/manual/chapter-5-user-portfolio`;
|
||||
}
|
||||
if (routeName.includes("transfer")) {
|
||||
return `${path}/manual/chapter-6-user-transfer`;
|
||||
}
|
||||
if (routeName.includes("appealComplain")) {
|
||||
return `${path}/manual/chapter-7-user-appeal-complain`;
|
||||
}
|
||||
if (routeName.includes("KPI")) {
|
||||
return `${path}/manual/chapter-9-user-KPI-evaluator`;
|
||||
}
|
||||
if (routeName.includes("scholarship")) {
|
||||
return `${path}/manual/chapter-10-user-scholarship`;
|
||||
}
|
||||
if (routeName.includes("Retire")) {
|
||||
return `${path}/manual/chapter-11-user-retire`;
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
}
|
||||
};
|
||||
|
||||
const manualConfig = {
|
||||
dashboard: `${path}/manual/chapter-1-user-organization-chart`,
|
||||
leave: `${path}/manual/chapter-4-user-leave`,
|
||||
organizationChart: `${path}/manual/chapter-1-user-organization-chart`,
|
||||
registryMain: `${path}/manual/chapter-2-user-registry`,
|
||||
addPortfolio: `${path}/manual/chapter-5-user-portfolio`,
|
||||
addTransfer: `${path}/manual/chapter-6-user-transfer`,
|
||||
KPIMain: `${path}/manual/chapter-8-user-KPI`,
|
||||
KPIMainEvaluator: `${path}/manual/chapter-9-user-KPI-evaluator`,
|
||||
dashboard: `${path}/manual/chapter-1-user-organization-chart`,
|
||||
leave: `${path}/manual/chapter-4-user-leave`,
|
||||
organizationChart: `${path}/manual/chapter-1-user-organization-chart`,
|
||||
registryMain: `${path}/manual/chapter-2-user-registry`,
|
||||
addPortfolio: `${path}/manual/chapter-5-user-portfolio`,
|
||||
addTransfer: `${path}/manual/chapter-6-user-transfer`,
|
||||
KPIMain: `${path}/manual/chapter-8-user-KPI`,
|
||||
KPIMainEvaluator: `${path}/manual/chapter-9-user-KPI-evaluator`,
|
||||
};
|
||||
|
||||
export default {
|
||||
API: API,
|
||||
generatePopupPath,
|
||||
API: API,
|
||||
generatePopupPath,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue