界面文案改成中性措辞;延迟测试报出真实原因
原来那句「X 测不通」把两种要查不同地方的情况混在了一起。内核的语义是精确的 (hub/route/proxies.go:122-145):504 表示在给定超时内没有完成,503 表示连接建立失败 或测得延迟为 0。现在分开报,超时会写明是几秒,503 且内核没给具体错误时说明可能是 线路失效或本机到该服务器网络不通。 其余文案统一过一遍:「本机之外也能连」「这个名字已经被占用了」「还没做」这类口语改成 「允许来自其它主机的连接」「名称已存在」「尚未实现」。
This commit is contained in:
@@ -83,13 +83,13 @@ function isCurrentOutbound(mode: OutboundMode): boolean {
|
||||
}
|
||||
|
||||
const BUILTINS: Array<{ mode: OutboundMode; label: string; sub: string }> = [
|
||||
{ mode: { kind: 'rules' }, label: 'RULE', sub: '走分流规则' },
|
||||
{ mode: { kind: 'direct' }, label: 'DIRECT', sub: '不经过代理' },
|
||||
{ mode: { kind: 'global' }, label: 'GLOBAL', sub: '跟随全局选择' },
|
||||
{ mode: { kind: 'rules' }, label: 'RULE', sub: '由规则决定' },
|
||||
{ mode: { kind: 'direct' }, label: 'DIRECT', sub: '直接连接' },
|
||||
{ mode: { kind: 'global' }, label: 'GLOBAL', sub: '跟随 GLOBAL 组' },
|
||||
]
|
||||
|
||||
const LINE_LOCKED = '订阅线路不能被入站直接引用,选中它需要自动建一个筛选组——这部分还没做'
|
||||
const NO_PROXY_FIELD = '这路入站没有 proxy 字段'
|
||||
const LINE_LOCKED = '订阅线路无法被入站直接引用,需要通过筛选组间接引入。该功能尚未实现。'
|
||||
const NO_PROXY_FIELD = '该入站没有 proxy 字段'
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -126,7 +126,7 @@ const NO_PROXY_FIELD = '这路入站没有 proxy 字段'
|
||||
</p>
|
||||
|
||||
<template v-if="switchable">
|
||||
<h4>{{ switchable.group }} 当前选中</h4>
|
||||
<h4>{{ switchable.group }} 的当前选中</h4>
|
||||
<div class="grid">
|
||||
<OutboundCard
|
||||
v-for="m in switchable.members"
|
||||
@@ -148,7 +148,7 @@ const NO_PROXY_FIELD = '这路入站没有 proxy 字段'
|
||||
<section class="block">
|
||||
<h3>出站</h3>
|
||||
<p v-if="locked" class="hint">
|
||||
由 <code>{{ inbound.legacyKey }}</code> 声明,这种写法没有 proxy 字段,固定走 RULE
|
||||
由 <code>{{ inbound.legacyKey }}</code> 声明。该写法没有 proxy 字段,出站固定为 RULE。
|
||||
</p>
|
||||
|
||||
<div v-if="!locked" class="grid">
|
||||
@@ -207,9 +207,9 @@ const NO_PROXY_FIELD = '这路入站没有 proxy 字段'
|
||||
<h4 :class="locked && 'is-dim'">订阅线路</h4>
|
||||
<p v-if="!kernelOnline" class="hint">
|
||||
<IconOffline />
|
||||
内核未连接,看不到订阅里有哪些线路
|
||||
内核未连接,无法获取订阅线路
|
||||
</p>
|
||||
<p v-else-if="providerLines.length === 0" class="hint">订阅里没有线路</p>
|
||||
<p v-else-if="providerLines.length === 0" class="hint">订阅中没有线路</p>
|
||||
<div v-else class="grid">
|
||||
<OutboundCard
|
||||
v-for="line in providerLines"
|
||||
|
||||
Reference in New Issue
Block a user