From 41f32231f05325fb1526d54cea3341afaf6793f1 Mon Sep 17 00:00:00 2001 From: coolcoala Date: Fri, 11 Jul 2025 21:13:05 +0300 Subject: [PATCH] fixed localization and made minor bug fixes --- src-tauri/src/utils/resolve.rs | 2 +- src/components/home/proxy-selectors.tsx | 6 +++--- src/components/proxy/proxy-groups.tsx | 3 +-- src/components/proxy/proxy-head.tsx | 3 --- src/components/proxy/proxy-item-mini.tsx | 22 +++++++--------------- src/components/proxy/proxy-item.tsx | 2 +- src/locales/en.json | 9 ++++++--- src/locales/ru.json | 13 ++++++++++--- 8 files changed, 29 insertions(+), 31 deletions(-) diff --git a/src-tauri/src/utils/resolve.rs b/src-tauri/src/utils/resolve.rs index bda25f8c..c6359a85 100644 --- a/src-tauri/src/utils/resolve.rs +++ b/src-tauri/src/utils/resolve.rs @@ -335,7 +335,7 @@ pub fn create_window(is_show: bool) -> bool { "main", /* the unique window label */ tauri::WebviewUrl::App("index.html".into()), ) - .title("Clash Verge") + .title("Clash Verge Rev Lite") .center() .decorations(true) .fullscreen(false) diff --git a/src/components/home/proxy-selectors.tsx b/src/components/home/proxy-selectors.tsx index d0882425..0dcbfc28 100644 --- a/src/components/home/proxy-selectors.tsx +++ b/src/components/home/proxy-selectors.tsx @@ -248,9 +248,9 @@ export const ProxySelectors: React.FC = () => { - {sortType === 'default' &&

{t("Default")}

} - {sortType === 'delay' &&

{t("sort by ping")}

} - {sortType === 'name' &&

{t("sort by name")}

} + {sortType === 'default' &&

{t("Sort by default")}

} + {sortType === 'delay' &&

{t("Sort by delay")}

} + {sortType === 'name' &&

{t("Sort by name")}

}
diff --git a/src/components/proxy/proxy-groups.tsx b/src/components/proxy/proxy-groups.tsx index 1616224c..e67a92fd 100644 --- a/src/components/proxy/proxy-groups.tsx +++ b/src/components/proxy/proxy-groups.tsx @@ -75,7 +75,7 @@ const LetterItem = memo(
onClick(name)} > {getFirstChar(name)} @@ -240,7 +240,6 @@ export const ProxyGroups = memo((props: Props) => { error, ); } - onProxies(); }); const handleLocation = (group: IProxyGroupItem) => { diff --git a/src/components/proxy/proxy-head.tsx b/src/components/proxy/proxy-head.tsx index 879393d4..9aa6502d 100644 --- a/src/components/proxy/proxy-head.tsx +++ b/src/components/proxy/proxy-head.tsx @@ -130,7 +130,6 @@ export const ProxyHead = (props: Props) => { - {/* --- НАЧАЛО ИЗМЕНЕНИЙ --- */} @@ -147,7 +145,6 @@ export const ProxyHead = (props: Props) => {

{showType ? t("Show Basic Info") : t("Show Detailed Info")}

- {/* --- КОНЕЦ ИЗМЕНЕНИЙ --- */}
diff --git a/src/components/proxy/proxy-item-mini.tsx b/src/components/proxy/proxy-item-mini.tsx index cac47229..b80c29e7 100644 --- a/src/components/proxy/proxy-item-mini.tsx +++ b/src/components/proxy/proxy-item-mini.tsx @@ -60,8 +60,6 @@ export const ProxyItemMini = (props: Props) => { }; return ( - // --- НАЧАЛО ИЗМЕНЕНИЙ --- - // Увеличиваем высоту (h-16) и внутренние отступы (p-3)
{ {proxy.now} )} - {!!proxy.provider && ( - - {proxy.provider} - - )} - - {proxy.type} - - {proxy.udp && ( - - UDP - - )} + {!!proxy.provider && ({proxy.provider})} + {proxy.type} + {proxy.udp && (UDP)} + {proxy.xudp && XUDP} + {proxy.tfo && TFO} + {proxy.mptcp && MPTCP} + {proxy.smux && SMUX}
)}
diff --git a/src/components/proxy/proxy-item.tsx b/src/components/proxy/proxy-item.tsx index bf7820f3..49ead3c9 100644 --- a/src/components/proxy/proxy-item.tsx +++ b/src/components/proxy/proxy-item.tsx @@ -110,7 +110,7 @@ export const ProxyItem = (props: Props) => { onClick={handleDelayClick} className={`font-medium ${getDelayColorClass(delay)} ${!proxy.provider ? "hover:opacity-70" : "cursor-default"}`} > - {delayManager.formatDelay(delay, timeout)} ms + {delayManager.formatDelay(delay, timeout)} ) : ( // Состояние по умолчанию (до проверки) diff --git a/src/locales/en.json b/src/locales/en.json index e85c9b98..7c157e00 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -645,7 +645,10 @@ "Add New Profile": "Add New Profile", "Delete Profile": "Delete Profile {{name}}?", "This action cannot be undone.": "This action cannot be undone.", - "Default": "Default", - "sort by ping": "Sort by ping", - "sort by name": "Sort by name" + "Check Group Latency": "Check Group Latency", + "Locate Current Proxy": "Locate Current Proxy", + "Show Basic Info": "Show Basic Info", + "Show Detailed Info": "Show Detailed Info", + "Set Latency Test URL": "Set Latency Test URL", + "Filter by Name": "Filter by Name" } diff --git a/src/locales/ru.json b/src/locales/ru.json index d1213238..3aa01f5c 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -595,7 +595,14 @@ "Delete Profile": "Удалить профиль {{name}}?", "This action cannot be undone.": "Это действие не может быть отменено", "Update via proxy": "Обновить через прокси", - "Default": "По умолчанию", - "sort by ping": "Сортировка по пингу", - "sort by name": "Сортировка по имени" + "Check Group Latency": "Проверка задержки в группе", + "Locate Current Proxy": "Найти текущий прокси", + "Show Basic Info": "Показать основную информацию", + "Show Detailed Info": "Показать подробную информацию", + "Update failed, retrying with Clash proxy...": "Обновление не удалось, пробую повторно с помощью прокси Clash...", + "Update failed even with Clash proxy": "Обновление не удалось даже с помощью прокси Clash", + "Update with Clash proxy successfully": "Обновление с помощью прокси Clash прошло успешно", + "Proxy Count": "Число прокси", + "Set Latency Test URL": "Установить URL-адрес тестирования задержки", + "Filter by Name": "Фильтр по имени" }