From 23ffa480ecd29fdb8e1e5662ba473da0ae380acd Mon Sep 17 00:00:00 2001 From: Zephyruso <176294927+Zephyruso@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:15:05 +0800 Subject: [PATCH] feat: cfg for two cols --- src/components/ProxyGroup.vue | 9 +++++++-- src/components/sidebar/ProxiesCtrl.vue | 22 +++++++++++++++------- src/i18n/en.ts | 1 + src/i18n/zh.ts | 1 + src/store/config.ts | 1 + src/views/ProxiesPage.vue | 7 ++++--- 6 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/components/ProxyGroup.vue b/src/components/ProxyGroup.vue index fc5cd1cf..440e3ff7 100644 --- a/src/components/ProxyGroup.vue +++ b/src/components/ProxyGroup.vue @@ -39,7 +39,12 @@ />
import LatencyTag from '@/components/LatencyTag.vue' import ProxyNodeCard from '@/components/ProxyNodeCard.vue' -import { collapseGroupMap } from '@/store/config' +import { collapseGroupMap, twoColumns } from '@/store/config' import { activeConnections } from '@/store/connections' import { getLatencyByName, proxyGroupLatencyTest, proxyMap, selectProxy } from '@/store/proxies' import prettyBytes from 'pretty-bytes' diff --git a/src/components/sidebar/ProxiesCtrl.vue b/src/components/sidebar/ProxiesCtrl.vue index 49aa8846..a053ca31 100644 --- a/src/components/sidebar/ProxiesCtrl.vue +++ b/src/components/sidebar/ProxiesCtrl.vue @@ -3,12 +3,14 @@ class="flex flex-col gap-2 p-2" v-if="configs" > - +
+ {{ $t('twoColumns') }}: + +