From 6e0dec4567e562784d920689032dea88ef90d2c6 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Thu, 20 Nov 2025 18:35:22 +0800 Subject: [PATCH] feat(versioning): implement UI and server version tracking with build date display in footer --- app.js | 4 ++ i18n.js | 8 +++- index.html | 9 +++- src/core/connection.js | 91 ++++++++++++++++++++++++++++++++++++ src/modules/auth-files.js | 6 +++ src/modules/config-editor.js | 4 ++ src/modules/login.js | 1 + 7 files changed, 120 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index fc240fe..6d36e7b 100644 --- a/app.js +++ b/app.js @@ -42,6 +42,9 @@ class CLIProxyManager { this.managementKey = ''; this.isConnected = false; this.isLoggedIn = false; + this.uiVersion = null; + this.serverVersion = null; + this.serverBuildDate = null; // 配置缓存 - 改为分段缓存 this.configCache = {}; // 改为对象,按配置段缓存 @@ -129,6 +132,7 @@ class CLIProxyManager { } init() { + this.initUiVersion(); this.initializeTheme(); this.checkLoginStatus(); this.bindEvents(); diff --git a/i18n.js b/i18n.js index 70cb2cb..5473708 100644 --- a/i18n.js +++ b/i18n.js @@ -508,7 +508,9 @@ const i18n = { 'sidebar.toggle_collapse': '收起侧边栏', // 页脚 - 'footer.version': '版本', + 'footer.api_version': 'CLI Proxy API 版本', + 'footer.build_date': '构建时间', + 'footer.version': '管理中心版本', 'footer.author': '作者' }, @@ -1013,7 +1015,9 @@ const i18n = { 'sidebar.toggle_collapse': 'Collapse sidebar', // Footer - 'footer.version': 'Version', + 'footer.api_version': 'CLI Proxy API Version', + 'footer.build_date': 'Build Time', + 'footer.version': 'Management UI Version', 'footer.author': 'Author' } }, diff --git a/index.html b/index.html index dda0222..b334b6e 100644 --- a/index.html +++ b/index.html @@ -1003,7 +1003,14 @@