mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +08:00
chore: Enable 1-RTT test by default, update test URL, add missing translation
This commit is contained in:
parent
928bae7b26
commit
95df5e7712
@ -145,7 +145,7 @@ export const mihomoProxyDelay = async (proxy: string, url?: string): Promise<IMi
|
||||
const instance = await getAxios()
|
||||
return await instance.get(`/proxies/${encodeURIComponent(proxy)}/delay`, {
|
||||
params: {
|
||||
url: url || delayTestUrl || 'https://www.gstatic.com/generate_204',
|
||||
url: url || delayTestUrl || 'http://www.gstatic.com/generate_204',
|
||||
timeout: delayTestTimeout || 5000
|
||||
}
|
||||
})
|
||||
@ -157,7 +157,7 @@ export const mihomoGroupDelay = async (group: string, url?: string): Promise<IMi
|
||||
const instance = await getAxios()
|
||||
return await instance.get(`/group/${encodeURIComponent(group)}/delay`, {
|
||||
params: {
|
||||
url: url || delayTestUrl || 'https://www.gstatic.com/generate_204',
|
||||
url: url || delayTestUrl || 'http://www.gstatic.com/generate_204',
|
||||
timeout: delayTestTimeout || 5000
|
||||
}
|
||||
})
|
||||
|
||||
@ -7,6 +7,7 @@ import { getControledMihomoConfig } from '../config'
|
||||
import { existsSync } from 'fs'
|
||||
import { mainWindow } from '..'
|
||||
import { floatingWindow } from './floatingWindow'
|
||||
import { t } from 'i18next'
|
||||
|
||||
let insertedCSSKeyMain: string | undefined = undefined
|
||||
let insertedCSSKeyFloating: string | undefined = undefined
|
||||
@ -28,7 +29,7 @@ export async function resolveThemes(): Promise<{ key: string; label: string }[]>
|
||||
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]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
|
||||
'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',
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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": "全局",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user