From 32465fe7f4e1a7e7d7e381fef4ff99f31ec98c10 Mon Sep 17 00:00:00 2001 From: Zephyruso <176294927+Zephyruso@users.noreply.github.com> Date: Tue, 26 Nov 2024 12:37:28 +0800 Subject: [PATCH] feat: upgrade all providers --- src/api/index.ts | 4 ++ src/components/sidebar/ProxiesCtrl.vue | 59 ++++++++++++++++++-------- src/components/sidebar/RulesCtrl.vue | 25 ++++++++++- src/i18n/en.ts | 2 + src/i18n/zh.ts | 2 + src/views/SettingsPage.vue | 20 ++++++++- 6 files changed, 93 insertions(+), 19 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 7b6a917f..70c2f03b 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -108,6 +108,10 @@ export const flushFakeIPAPI = () => { return axios.post('/cache/fakeip/flush') } +export const reloadConfigsAPI = () => { + return axios.put('/configs?reload=true') +} + export const upgradeUIAPI = () => { return axios.post('/upgrade/ui') } diff --git a/src/components/sidebar/ProxiesCtrl.vue b/src/components/sidebar/ProxiesCtrl.vue index b1866f5a..07be3aa7 100644 --- a/src/components/sidebar/ProxiesCtrl.vue +++ b/src/components/sidebar/ProxiesCtrl.vue @@ -3,22 +3,35 @@ class="flex flex-col gap-2 p-2" v-if="configs" > -
- +
- {{ $t(type) }} + {{ $t(type) }} +
+
-
+ +
+