เพิ่ม backUp
This commit is contained in:
parent
9ff3eea0ff
commit
2765d745f4
1 changed files with 74 additions and 68 deletions
|
|
@ -1,107 +1,113 @@
|
|||
/**ใช้รวมไฟล์ย่อยๆ ของ api แต่ละไฟล์ */
|
||||
|
||||
/** API Metadata */
|
||||
import manageOrganization from "./api/manage/api.organization"
|
||||
import managePerson from "./api/manage/api.person"
|
||||
import managePosition from "./api/manage/api.position"
|
||||
import managePositionEmployee from "./api/manage/api.positionEmployee"
|
||||
import manageInsignia from "./api/manage/api.insignia"
|
||||
import manageHoliday from "./api/manage/api.holiday"
|
||||
import manageOrganization from "./api/manage/api.organization";
|
||||
import managePerson from "./api/manage/api.person";
|
||||
import managePosition from "./api/manage/api.position";
|
||||
import managePositionEmployee from "./api/manage/api.positionEmployee";
|
||||
import manageInsignia from "./api/manage/api.insignia";
|
||||
import manageHoliday from "./api/manage/api.holiday";
|
||||
|
||||
/** API Tree List */
|
||||
import organizationTreeList from "./api/02_organizational/api.treelist"
|
||||
import organizationTreeList from "./api/02_organizational/api.treelist";
|
||||
|
||||
/** API Structure & Org Chart */
|
||||
import organizationChart from "./api/02_organizational/api.chart"
|
||||
import organizationChart from "./api/02_organizational/api.chart";
|
||||
|
||||
/** API Profile List */
|
||||
import profile from "./api/registry/api.profile"
|
||||
import registry from "./api/registry/api.registry"
|
||||
import profile from "./api/registry/api.profile";
|
||||
import registry from "./api/registry/api.registry";
|
||||
|
||||
/** API dashboard */
|
||||
import message from "./api/00_dashboard/api.message"
|
||||
import message from "./api/00_dashboard/api.message";
|
||||
|
||||
/** API reports */
|
||||
import reports from "./api/reports/api.report"
|
||||
import reports from "./api/reports/api.report";
|
||||
|
||||
/** API โครงสร้างอัตรากำลัง*/
|
||||
import organization from "./api/02_organizational/api.organization"
|
||||
import organization from "./api/02_organizational/api.organization";
|
||||
|
||||
import file from "./api/file/api.file"
|
||||
import file from "./api/file/api.file";
|
||||
|
||||
/** API ManagementUsers*/
|
||||
import menagement from "./api/manage/api.management"
|
||||
import menagement from "./api/manage/api.management";
|
||||
|
||||
/** API ระเมินผลการปฏิบัติราชการระดับบุคคล*/
|
||||
import KPI from "./api/14_KPI/api.KPI"
|
||||
import KPI from "./api/14_KPI/api.KPI";
|
||||
|
||||
/** API เงินเดือน/ค่าจ้าง*/
|
||||
import development from "./api/15_development/api.development"
|
||||
import development from "./api/15_development/api.development";
|
||||
|
||||
/** API BackUp/*/
|
||||
import backup from "./api/04_system/api.backup";
|
||||
|
||||
// environment variables
|
||||
export const compettitivePanel = import.meta.env.VITE_COMPETITIVE_EXAM_PANEL
|
||||
export const qualifyDisableExamPanel = import.meta.env.VITE_QUALIFY_DISABLE_EMAM_PANEL
|
||||
export const qualifyExamPanel = import.meta.env.VITE_QUALIFY_EXAM_PANEL
|
||||
export const compettitivePanel = import.meta.env.VITE_COMPETITIVE_EXAM_PANEL;
|
||||
export const qualifyDisableExamPanel = import.meta.env
|
||||
.VITE_QUALIFY_DISABLE_EMAM_PANEL;
|
||||
export const qualifyExamPanel = import.meta.env.VITE_QUALIFY_EXAM_PANEL;
|
||||
|
||||
const path = "http://chamomind.ddns.net:20006"
|
||||
const path = "http://chamomind.ddns.net:20006";
|
||||
|
||||
const generatePopupPath = (routeName: any) => {
|
||||
if (routeName.includes("viewLogs")) {
|
||||
return `${path}/build-and-deploy`
|
||||
}
|
||||
if (routeName.includes("manageUsers")) {
|
||||
return `${path}/build-and-deploy`
|
||||
}
|
||||
if (routeName.includes("manageRoles")) {
|
||||
return `${path}/build-and-deploy`
|
||||
}
|
||||
if (routeName.includes("managePermission")) {
|
||||
return `${path}/build-and-deploy`
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig]
|
||||
}
|
||||
}
|
||||
if (routeName.includes("viewLogs")) {
|
||||
return `${path}/build-and-deploy`;
|
||||
}
|
||||
if (routeName.includes("manageUsers")) {
|
||||
return `${path}/build-and-deploy`;
|
||||
}
|
||||
if (routeName.includes("manageRoles")) {
|
||||
return `${path}/build-and-deploy`;
|
||||
}
|
||||
if (routeName.includes("managePermission")) {
|
||||
return `${path}/build-and-deploy`;
|
||||
} else {
|
||||
return manualConfig[routeName as keyof typeof manualConfig];
|
||||
}
|
||||
};
|
||||
|
||||
const manualConfig = {
|
||||
dashboard: `${path}/build-and-deploy`,
|
||||
}
|
||||
dashboard: `${path}/build-and-deploy`,
|
||||
};
|
||||
const API = {
|
||||
//Metadata
|
||||
...manageOrganization,
|
||||
...managePerson,
|
||||
...managePosition,
|
||||
...managePositionEmployee,
|
||||
...manageInsignia,
|
||||
...manageHoliday,
|
||||
//Metadata
|
||||
...manageOrganization,
|
||||
...managePerson,
|
||||
...managePosition,
|
||||
...managePositionEmployee,
|
||||
...manageInsignia,
|
||||
...manageHoliday,
|
||||
|
||||
// โครงสร้างอัตรากำลัง
|
||||
...organization,
|
||||
// โครงสร้างอัตรากำลัง
|
||||
...organization,
|
||||
|
||||
//Tree List
|
||||
...organizationTreeList,
|
||||
...organizationChart,
|
||||
//Tree List
|
||||
...organizationTreeList,
|
||||
...organizationChart,
|
||||
|
||||
//profile
|
||||
...profile,
|
||||
...registry,
|
||||
//profile
|
||||
...profile,
|
||||
...registry,
|
||||
|
||||
//dashboard
|
||||
...message,
|
||||
//dashboard
|
||||
...message,
|
||||
|
||||
//reports
|
||||
...reports,
|
||||
//reports
|
||||
...reports,
|
||||
|
||||
/*file*/
|
||||
...file,
|
||||
/*file*/
|
||||
...file,
|
||||
|
||||
/** menagement*/
|
||||
...menagement,
|
||||
/** KPI*/
|
||||
...KPI,
|
||||
...development,
|
||||
}
|
||||
/** menagement*/
|
||||
...menagement,
|
||||
/** KPI*/
|
||||
...KPI,
|
||||
...development,
|
||||
/** backup*/
|
||||
...backup,
|
||||
};
|
||||
|
||||
export default {
|
||||
API: API,
|
||||
generatePopupPath,
|
||||
}
|
||||
API: API,
|
||||
generatePopupPath,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue