- Changed output path for i18next configuration in admin and user apps to "public/assets/locales/{{language}}/{{namespace}}.json".
- Added new translation keys in English and Chinese for admin and user updates in tool.json files.
- Refactored SystemVersionCard component to utilize new service version checking and updating logic.
- Introduced basic service version checking and updating functions in the gateway service.
- Added typings for new API endpoints related to service version management.
- Updated Vite configuration to rewrite API paths.
- Added TypeScript error handling in various service files.
36 lines
942 B
TypeScript
36 lines
942 B
TypeScript
const baseConfig = {
|
|
requestLibPath: "import request from '@workspace/ui/lib/request';",
|
|
serversPath: "./src/services",
|
|
apiPrefix: "'/api'",
|
|
};
|
|
|
|
const config = [
|
|
{
|
|
...baseConfig,
|
|
schemaPath:
|
|
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/common.json",
|
|
projectName: "common",
|
|
},
|
|
{
|
|
...baseConfig,
|
|
schemaPath:
|
|
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/user.json",
|
|
projectName: "user",
|
|
},
|
|
{
|
|
...baseConfig,
|
|
schemaPath:
|
|
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/admin.json",
|
|
projectName: "admin",
|
|
},
|
|
{
|
|
...baseConfig,
|
|
schemaPath:
|
|
"https://raw.githubusercontent.com/perfect-panel/ppanel-docs/refs/heads/main/public/swagger/gateway.json",
|
|
apiPrefix: "",
|
|
projectName: "gateway",
|
|
},
|
|
];
|
|
|
|
export default config;
|