fixed localization and made minor bug fixes

This commit is contained in:
coolcoala
2025-07-11 21:13:05 +03:00
parent e1968891ac
commit 41f32231f0
8 changed files with 29 additions and 31 deletions

View File

@@ -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)

View File

@@ -248,9 +248,9 @@ export const ProxySelectors: React.FC = () => {
</span>
</TooltipTrigger>
<TooltipContent>
{sortType === 'default' && <p>{t("Default")}</p>}
{sortType === 'delay' && <p>{t("sort by ping")}</p>}
{sortType === 'name' && <p>{t("sort by name")}</p>}
{sortType === 'default' && <p>{t("Sort by default")}</p>}
{sortType === 'delay' && <p>{t("Sort by delay")}</p>}
{sortType === 'name' && <p>{t("Sort by name")}</p>}
</TooltipContent>
</Tooltip>

View File

@@ -75,7 +75,7 @@ const LetterItem = memo(
<Tooltip>
<TooltipTrigger asChild>
<div
className="flex items-center justify-center w-6 h-6 text-xs rounded-md cursor-pointer text-muted-foreground transition-transform hover:bg-accent hover:text-accent-foreground hover:scale-125"
className="flex items-center justify-center w-6 h-6 text-xs rounded-md border shadow-sm cursor-pointer text-muted-foreground transition-transform hover:bg-accent hover:text-accent-foreground hover:scale-125"
onClick={() => onClick(name)}
>
{getFirstChar(name)}
@@ -240,7 +240,6 @@ export const ProxyGroups = memo((props: Props) => {
error,
);
}
onProxies();
});
const handleLocation = (group: IProxyGroupItem) => {

View File

@@ -130,7 +130,6 @@ export const ProxyHead = (props: Props) => {
</TooltipContent>
</Tooltip>
{/* --- НАЧАЛО ИЗМЕНЕНИЙ --- */}
<Tooltip>
<TooltipTrigger asChild>
<Button
@@ -139,7 +138,6 @@ export const ProxyHead = (props: Props) => {
onClick={() => onHeadState({ showType: !showType })}
className="h-8 w-8"
>
{/* Теперь цвет иконки меняется в зависимости от состояния showType */}
<Eye className={cn("h-5 w-5", showType && "text-primary")} />
</Button>
</TooltipTrigger>
@@ -147,7 +145,6 @@ export const ProxyHead = (props: Props) => {
<p>{showType ? t("Show Basic Info") : t("Show Detailed Info")}</p>
</TooltipContent>
</Tooltip>
{/* --- КОНЕЦ ИЗМЕНЕНИЙ --- */}
</div>
<div className="flex items-center gap-1">

View File

@@ -60,8 +60,6 @@ export const ProxyItemMini = (props: Props) => {
};
return (
// --- НАЧАЛО ИЗМЕНЕНИЙ ---
// Увеличиваем высоту (h-16) и внутренние отступы (p-3)
<div
data-selected={selected}
onClick={handleItemClick}
@@ -78,19 +76,13 @@ export const ProxyItemMini = (props: Props) => {
{proxy.now}
</span>
)}
{!!proxy.provider && (
<Badge variant="outline" className="flex-shrink-0">
{proxy.provider}
</Badge>
)}
<Badge variant="outline" className="flex-shrink-0">
{proxy.type}
</Badge>
{proxy.udp && (
<Badge variant="outline" className="flex-shrink-0">
UDP
</Badge>
)}
{!!proxy.provider && (<Badge variant="outline" className="flex-shrink-0">{proxy.provider}</Badge>)}
<Badge variant="outline" className="flex-shrink-0">{proxy.type}</Badge>
{proxy.udp && (<Badge variant="outline" className="flex-shrink-0">UDP</Badge>)}
{proxy.xudp && <Badge variant="outline" className="flex-shrink-0">XUDP</Badge>}
{proxy.tfo && <Badge variant="outline" className="flex-shrink-0">TFO</Badge>}
{proxy.mptcp && <Badge variant="outline" className="flex-shrink-0">MPTCP</Badge>}
{proxy.smux && <Badge variant="outline" className="flex-shrink-0">SMUX</Badge>}
</div>
)}
</div>

View File

@@ -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)}
</div>
) : (
// Состояние по умолчанию (до проверки)

View File

@@ -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"
}

View File

@@ -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": "Фильтр по имени"
}