feat: update localization files and improve system version management

- 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.
This commit is contained in:
web
2025-12-01 03:00:47 -08:00
parent 5f3354e948
commit 3cf6a5cfb4
44 changed files with 427 additions and 143 deletions
@@ -1,8 +1,9 @@
{
"adminUpdateSuccess": "Admin updated successfully",
"cancel": "Cancel",
"confirmReboot": "Confirm Reboot",
"confirmSystemReboot": "Confirm System Reboot",
"newVersionAvailable": "New Version Available",
"confirmUpdate": "Confirm Update",
"rebootDescription": "Are you sure you want to reboot the system? This action cannot be undone.",
"rebooting": "Rebooting...",
"refreshLogs": "Refresh Logs",
@@ -10,5 +11,11 @@
"systemLogs": "System Logs",
"systemReboot": "System Reboot",
"systemServices": "System Services",
"update": "Update",
"updateFailed": "Update failed",
"updateServerDescription": "Are you sure you want to update the server version from V{{current}} to V{{latest}}?",
"updateSuccess": "Update completed successfully",
"updateWebDescription": "Are you sure you want to update the web version from V{{current}} to V{{latest}}?",
"userUpdateSuccess": "User updated successfully",
"webVersion": "Web Version"
}
@@ -1,8 +1,9 @@
{
"adminUpdateSuccess": "管理端更新成功",
"cancel": "取消",
"confirmReboot": "确认重启",
"confirmSystemReboot": "确认系统重启",
"newVersionAvailable": "有新版本可用",
"confirmUpdate": "确认更新",
"rebootDescription": "确定要重启系统吗?此操作无法撤销。",
"rebooting": "重启中...",
"refreshLogs": "刷新日志",
@@ -10,5 +11,11 @@
"systemLogs": "系统日志",
"systemReboot": "系统重启",
"systemServices": "系统服务",
"update": "更新",
"updateFailed": "更新失败",
"updateServerDescription": "确定要将服务器版本从 V{{current}} 更新到 V{{latest}} 吗?",
"updateSuccess": "更新成功",
"updateWebDescription": "确定要将前端版本从 V{{current}} 更新到 V{{latest}} 吗?",
"userUpdateSuccess": "用户端更新成功",
"webVersion": "前端版本"
}