เพิ่ม config link manual

This commit is contained in:
AnandaTon 2024-06-28 13:07:29 +07:00
parent 293471997d
commit 68cfaff77e
2 changed files with 480 additions and 421 deletions

View file

@ -15,20 +15,48 @@ 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 = "http://localhost:3008";
const generatePopupPath = (routeName: any) => {
if (routeName.includes("metadata")) {
return `${path}/manual/chapter-2-admin-metadata`;
}
if (routeName.includes("leave")) {
return `${path}/manual/chapter-3-user-leave`;
}
// if (routeName.includes("compete")) {
// return `${path}/manual/chapter-10-admin-recruit`;
// }
// if (routeName.includes("registryNew")) {
// return `${path}/manual/chapter-7-admin-registry`;
// }
// if (routeName.includes("registry")) {
// return `${path}/manual/chapter-7-admin-registry`;
// }
else {
return manualConfig[routeName as keyof typeof manualConfig];
}
};
const manualConfig = {
dashboard: `${path}/manual/chapter-1-user-organization-chart`,
};
export default {
API: API,
API: API,
generatePopupPath,
};