diff --git a/src/api/index.ts b/src/api/index.ts index 3a2631f9..f6037d51 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -117,6 +117,10 @@ export const upgradeUIAPI = () => { return axios.post('/upgrade/ui') } +export const upgradeCoreAPI = () => { + return axios.post('/upgrade') +} + const createWebSocket = (url: string, searchParams?: Record) => { const backend = activeBackend.value const resurl = new URL( diff --git a/src/components/proxies/ProxyGroup.vue b/src/components/proxies/ProxyGroup.vue index 750c206c..268dbd93 100644 --- a/src/components/proxies/ProxyGroup.vue +++ b/src/components/proxies/ProxyGroup.vue @@ -2,7 +2,7 @@
-
+
{{ proxyGroup.name }} + + :: {{ proxyGroup.type }} +
+
+ -> {{ proxyGroup.now }}
-
-> {{ proxyGroup.now }}
diff --git a/src/i18n/en.ts b/src/i18n/en.ts index 769fe763..bbd2344b 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -72,6 +72,8 @@ export default { language: 'Language', automaticDisconnection: 'Automatic Disconnection', twoColumnsForProxyGroupInMobile: 'Two Columns For Proxy Group In Mobile', + backend: 'Backend', + upgradeCore: 'Upgrade Core', [LANG.EN_US]: 'English', [LANG.ZH_CN]: '中文', } diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index 8766d7d7..2f77a29b 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -72,6 +72,8 @@ export default { language: '语言', automaticDisconnection: '自动断开连接', twoColumnsForProxyGroupInMobile: '在移动端显示两列代理节点', + backend: '后端', + upgradeCore: '更新核心', [LANG.EN_US]: 'English', [LANG.ZH_CN]: '中文', } diff --git a/src/views/SettingsPage.vue b/src/views/SettingsPage.vue index 984bd994..383678a7 100644 --- a/src/views/SettingsPage.vue +++ b/src/views/SettingsPage.vue @@ -39,16 +39,30 @@ />
+
+ +
+
+
+
+
+ {{ $t('backend') }} +
+
- +