From 95df5e7712044021ae221b5a572d6cca2f55e44d Mon Sep 17 00:00:00 2001 From: ezequielnick <107352853+ezequielnick@users.noreply.github.com> Date: Sat, 8 Feb 2025 13:01:12 +0800 Subject: [PATCH] chore: Enable 1-RTT test by default, update test URL, add missing translation --- src/main/core/mihomoApi.ts | 4 ++-- src/main/resolve/theme.ts | 3 ++- src/main/utils/template.ts | 2 +- src/renderer/src/locales/en-US.json | 12 +++++++----- src/renderer/src/locales/zh-CN.json | 12 +++++++----- 5 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/main/core/mihomoApi.ts b/src/main/core/mihomoApi.ts index 89d309d..81dba3b 100644 --- a/src/main/core/mihomoApi.ts +++ b/src/main/core/mihomoApi.ts @@ -145,7 +145,7 @@ export const mihomoProxyDelay = async (proxy: string, url?: string): Promise if (themes.find((theme) => theme.key === 'default.css')) { return themes } else { - return [{ key: 'default.css', label: '默认' }, ...themes] + return [{ key: 'default.css', label: t('common.default') }, ...themes] } } diff --git a/src/main/utils/template.ts b/src/main/utils/template.ts index 6bc3513..1d7669e 100644 --- a/src/main/utils/template.ts +++ b/src/main/utils/template.ts @@ -46,7 +46,7 @@ export const defaultControledMihomoConfig: Partial = { 'redir-port': 0, 'tproxy-port': 0, 'allow-lan': false, - 'unified-delay': false, + 'unified-delay': true, 'tcp-concurrent': false, 'log-level': 'info', 'find-process-mode': 'strict', diff --git a/src/renderer/src/locales/en-US.json b/src/renderer/src/locales/en-US.json index ea168f4..dff3563 100644 --- a/src/renderer/src/locales/en-US.json +++ b/src/renderer/src/locales/en-US.json @@ -69,7 +69,7 @@ "mihomo.userAgent": "Subscription User Agent", "mihomo.userAgentPlaceholder": "Default: clash.meta", "mihomo.delayTest.url": "Delay Test URL", - "mihomo.delayTest.urlPlaceholder": "Default: https://www.gstatic.com/generate_204", + "mihomo.delayTest.urlPlaceholder": "Default: http://www.gstatic.com/generate_204", "mihomo.delayTest.concurrency": "Delay Test Concurrency", "mihomo.delayTest.concurrencyPlaceholder": "Default: 50", "mihomo.delayTest.timeout": "Delay Test Timeout", @@ -121,7 +121,7 @@ "mihomo.disallowedIpSegments": "Disallowed IP Segments", "mihomo.userVerification": "User Verification", "mihomo.skipAuthPrefixes": "Skip Auth IP Segments", - "mihomo.useRttDelayTest": "Use RTT Delay Test", + "mihomo.useRttDelayTest": "Use 1-RTT Delay Test", "mihomo.tcpConcurrent": "TCP Concurrent", "mihomo.storeSelectedNode": "Store Selected Node", "mihomo.storeFakeIp": "Store Fake IP", @@ -133,11 +133,12 @@ "mihomo.logLevel": "Log Level", "mihomo.selectLogLevel": "Select Log Level", "mihomo.silent": "Silent", - "mihomo.error.coreStartFailed": "Core start failed", - "mihomo.error.profileCheckFailed": "Profile Check Failed", - "mihomo.warning": "Warning", + "mihomo.error": "Error", + "mihomo.warning": "Warn", "mihomo.info": "Info", "mihomo.debug": "Debug", + "mihomo.error.coreStartFailed": "Core start failed", + "mihomo.error.profileCheckFailed": "Profile Check Failed", "mihomo.findProcess": "Find Process", "mihomo.selectFindProcessMode": "Select Process Find Mode", "mihomo.strict": "Auto", @@ -362,6 +363,7 @@ "resources.proxyProviders.title": "Proxy Providers", "resources.proxyProviders.updateAll": "Update All", "resources.ruleProviders.title": "Rule Providers", + "resources.ruleProviders.updateAll": "Update All", "outbound.title": "Outbound Mode", "outbound.modes.rule": "Rule", "outbound.modes.global": "Global", diff --git a/src/renderer/src/locales/zh-CN.json b/src/renderer/src/locales/zh-CN.json index 4c6a9e1..5558fce 100644 --- a/src/renderer/src/locales/zh-CN.json +++ b/src/renderer/src/locales/zh-CN.json @@ -72,7 +72,7 @@ "mihomo.userAgent": "订阅 User Agent", "mihomo.userAgentPlaceholder": "默认:clash.meta", "mihomo.delayTest.url": "延迟测试 URL", - "mihomo.delayTest.urlPlaceholder": "默认:https://www.gstatic.com/generate_204", + "mihomo.delayTest.urlPlaceholder": "默认:http://www.gstatic.com/generate_204", "mihomo.delayTest.concurrency": "延迟测试并发数", "mihomo.delayTest.concurrencyPlaceholder": "默认:50", "mihomo.delayTest.timeout": "延迟测试超时", @@ -121,7 +121,7 @@ "mihomo.disallowedIpSegments": "禁止连接的 IP 段", "mihomo.userVerification": "用户验证", "mihomo.skipAuthPrefixes": "允许跳过验证的 IP 段", - "mihomo.useRttDelayTest": "使用 RTT 延迟测试", + "mihomo.useRttDelayTest": "使用 1-RTT 延迟测试", "mihomo.tcpConcurrent": "TCP 并发", "mihomo.storeSelectedNode": "存储选择节点", "mihomo.storeFakeIp": "存储 FakeIP", @@ -133,11 +133,12 @@ "mihomo.logLevel": "日志等级", "mihomo.selectLogLevel": "选择日志等级", "mihomo.silent": "静默", - "mihomo.error.coreStartFailed": "内核启动出错", - "mihomo.error.profileCheckFailed": "配置检查失败", + "mihomo.error": "错误", "mihomo.warning": "警告", "mihomo.info": "信息", "mihomo.debug": "调试", + "mihomo.error.coreStartFailed": "内核启动出错", + "mihomo.error.profileCheckFailed": "配置检查失败", "mihomo.findProcess": "查找进程", "mihomo.selectFindProcessMode": "选择进程查找模式", "mihomo.strict": "自动", @@ -216,7 +217,7 @@ "sider.size.small": "小", "sider.size.hidden": "隐藏", "actions.guide.title": "打开引导页面", - "actions.guide.button": "打开引导页面", + "actions.guide.button": "打开引导页", "actions.update.title": "检查更新", "actions.update.button": "检查更新", "actions.update.upToDate.title": "当前已是最新版本", @@ -362,6 +363,7 @@ "resources.proxyProviders.title": "代理集合", "resources.proxyProviders.updateAll": "更新全部", "resources.ruleProviders.title": "规则集合", + "resources.ruleProviders.updateAll": "更新全部", "outbound.title": "出站模式", "outbound.modes.rule": "规则", "outbound.modes.global": "全局",