diff --git a/e2e/activity.spec.ts b/e2e/activity.spec.ts
index e74b86e3..c49f72c1 100644
--- a/e2e/activity.spec.ts
+++ b/e2e/activity.spec.ts
@@ -482,6 +482,9 @@ test('local traffic renders without history and duplicate node names retain inde
await expect(card.locator('.rp-big')).toHaveText('—');
await expect(card.getByText('Unavailable', {exact: true})).toBeVisible();
await expect(card.getByText('Timed out', {exact: true})).toHaveCount(0);
+ // The failure code honk sends reads as words.
+ await card.getByText('Unavailable', {exact: true}).hover();
+ await expect(page.getByRole('tooltip')).toHaveText('The probe failed');
await trigger.click();
await expect(page.getByRole('menuitemradio').filter({hasText: 'provider-b'})).toHaveAttribute('aria-checked', 'true');
await page.getByRole('menuitemradio').filter({hasText: 'provider-a'}).click();
diff --git a/e2e/charts.spec.ts b/e2e/charts.spec.ts
index a411cd08..836c52e9 100644
--- a/e2e/charts.spec.ts
+++ b/e2e/charts.spec.ts
@@ -35,10 +35,13 @@ test('node latency groups two ways, shortens long groups and shows a tip on hove
await expect(fact(page, 'Highest').locator('.rp-fact-caption')).toHaveText(/^\d+ ms$/);
await expect(fact(page, 'Unavailable')).toHaveText(/^\d+ nodes?$/);
const plot = page.getByRole('group', {name: 'Node latency'});
- for (const label of ['Latest latency', 'Moving average', 'Average of the last 10']) await expect(plot.getByText(label, {exact: true})).toBeVisible();
- const row = plot.getByRole('img', {name: /^.+, latest: \d+ ms, moving average: \d+ ms, average of the last 10: \d+ ms$/}).first();
+ // The mock, like honk, reports no averages, so only the latest latency is named.
+ await expect(plot.getByText('Latest latency', {exact: true})).toBeVisible();
+ for (const label of ['Moving average', 'Average of the last 10']) await expect(plot.getByText(label, {exact: true})).toHaveCount(0);
+ const row = plot.getByRole('img', {name: /^.+, Latest latency: \d+ ms$/}).first();
await row.hover();
- await expect(page.locator('.rp-charttip')).toContainText('Moving average');
+ await expect(page.locator('.rp-charttip')).toContainText('Latest latency');
+ await expect(page.locator('.rp-charttip')).not.toContainText('Moving average');
const showAll = plot.getByRole('button', {name: /^Show all \d+$/});
await expect(showAll).toBeVisible();
const before = await plot.getByRole('img').count();
diff --git a/src/api/mock.test.ts b/src/api/mock.test.ts
index 5eef14fa..7f92b689 100644
--- a/src/api/mock.test.ts
+++ b/src/api/mock.test.ts
@@ -354,7 +354,7 @@ it('completes probes with fixture failures and publishes fresh health', async ()
await vi.advanceTimersByTimeAsync(1);
const result = await terminal;
if (result.status !== 'succeeded' || result.kind !== 'probe') throw new Error('Probe did not succeed');
- expect(result.result.results.find(r => r.member_id === 'jp-01')).toMatchObject({state: 'unavailable', latency_ms: null, error: 'timeout'});
+ expect(result.result.results.find(r => r.member_id === 'jp-01')).toMatchObject({state: 'unavailable', latency_ms: null, error: 'probe_failed'});
expect(result.result.results.find(r => r.member_id === 'hk-01')).toMatchObject({state: 'healthy', latency_ms: 84, health_updated: true});
expect(result.result.results.find(r => r.member_id === 'resilient')).toMatchObject({resolved_leaf_node_id: 'sg-01', state: 'healthy', latency_ms: 63});
const health = preferredHealth((await api.nodes()).nodes.find(n => n.id === 'hk-01')!)!;
diff --git a/src/api/mock/control.ts b/src/api/mock/control.ts
index b6005c96..bf9d97fb 100644
--- a/src/api/mock/control.ts
+++ b/src/api/mock/control.ts
@@ -44,7 +44,7 @@ export function probeResult(request: ProbeRequest, nodes: Node[], groups: Group[
const previous = node?.health.find(h => h.transport === transport && h.ip_version === ip_version);
const latency_ms = previous?.state === 'healthy' ? previous.latency_ms : null;
const state = latency_ms === null ? 'unavailable' : 'healthy';
- const error = state === 'unavailable' ? (previous?.error ?? 'unavailable') : null;
+ const error = state === 'unavailable' ? 'probe_failed' : null;
const observation: HealthObservation = {
transport,
purpose: request.purpose,
@@ -54,8 +54,8 @@ export function probeResult(request: ProbeRequest, nodes: Node[], groups: Group[
sample_source: 'probe',
state,
latency_ms,
- moving_avg_ms: latency_ms,
- avg10_ms: latency_ms,
+ moving_avg_ms: null,
+ avg10_ms: null,
observed_at,
error
};
diff --git a/src/api/mock/fixtures/inventory.ts b/src/api/mock/fixtures/inventory.ts
index 25e20d14..3655db21 100644
--- a/src/api/mock/fixtures/inventory.ts
+++ b/src/api/mock/fixtures/inventory.ts
@@ -12,11 +12,11 @@ function health(transport: 'tcp' | 'udp', latency: number | null, ip_version: 'i
sample_source: 'probe',
state: latency === null ? 'unavailable' : 'healthy',
latency_ms: latency,
- // The averages differ from the latest sample, as they do on a live backend.
- moving_avg_ms: latency === null ? null : Math.round(latency * (0.8 + (latency % 7) / 15)),
- avg10_ms: latency === null ? null : Math.round(latency * (0.85 + (latency % 5) / 10)),
+ // honk does not compute averages, and names a failed probe with this code.
+ moving_avg_ms: null,
+ avg10_ms: null,
observed_at: observedAt,
- error: latency === null ? 'timeout' : null
+ error: latency === null ? 'probe_failed' : null
};
}
function node(name: string, tcp: number | null, udp: number | null, v6: boolean, source: string, protocol: Node['protocol'] = 'shadowsocks'): Node {
diff --git a/src/features/activity/view.test.ts b/src/features/activity/view.test.ts
index ef822078..443c5634 100644
--- a/src/features/activity/view.test.ts
+++ b/src/features/activity/view.test.ts
@@ -29,7 +29,9 @@ it('chooses measured nodes and preserves an explicitly selected unavailable node
expect(unavailable.tone).toBe('err');
expect(unavailable.latency).toBe('—');
expect(unavailable.status).toBe(t('act.unavailable'));
- expect(unavailable.healthError).toBe(nodes.find(node => node.id === 'jp-01')?.health[0].error);
+ // honk's failure code reads as words in the page language.
+ expect(nodes.find(node => node.id === 'jp-01')?.health[0].error).toBe('probe_failed');
+ expect(unavailable.healthError).toBe(t('ui.backend.probeFailed'));
expect(nodeView([], '', t).tone).toBe('muted');
});
diff --git a/src/features/activity/view.ts b/src/features/activity/view.ts
index ce53cc32..8bf76ba1 100644
--- a/src/features/activity/view.ts
+++ b/src/features/activity/view.ts
@@ -1,5 +1,6 @@
import type {ApiEvent, ConnectionList, Group, Node, Runtime, RuntimeMemory, RuntimeOutbounds} from '../../api/model';
import {enumLabel} from '../../i18n/enum';
+import {backendCode} from '../../i18n/backend';
import {isBuiltinOutbound} from '../../dae/vocab';
import {
eventKindLabels,
@@ -107,7 +108,7 @@ export function nodeView(nodes: Node[], chosen: string, t: LabelFn) {
tcp: healthMillis(health),
alive: health?.state === 'unavailable' ? false : health?.state === 'healthy' ? true : undefined,
unavailable: health?.state === 'unavailable',
- healthError: health?.error ?? undefined
+ healthError: health?.error ? backendCode(health.error, t) : undefined
};
});
const node = options.find(n => n.id === chosen) ?? options.find(n => n.tcp !== undefined) ?? options.find(n => !isBuiltinOutbound(n.name)) ?? options[0];
diff --git a/src/features/nodes/Latency.tsx b/src/features/nodes/Latency.tsx
index 5e28e211..6ac74d0d 100644
--- a/src/features/nodes/Latency.tsx
+++ b/src/features/nodes/Latency.tsx
@@ -6,13 +6,13 @@ import {usePalette, FactStrip, MarkerPlot, type ChartFact} from '../../ui/charts
import AlertTriangle from '../../ui/icons/AlertTriangle';
import Clock from '../../ui/icons/Clock';
import SpeedFast from '../../ui/icons/SpeedFast';
-import {latencyMax, type LatencyBy, type LatencyMissing} from './latencyGroups';
+import {latencyAverages, latencyMax, type LatencyBy, type LatencyMissing} from './latencyGroups';
import {useLatencyTab} from './useLatencyTab';
const named = 6;
-// Every measured node on one axis, its latest latency beside its two averages, so a node that is slow now or
-// slow on average stands out; failed and unmeasured nodes are listed, not left out.
+// Every measured node on one axis, its latest latency beside the averages the backend reports, so a node that is slow
+// now or slow on average stands out; failed and unmeasured nodes are listed, not left out.
export function NodeLatency() {
const t = useT();
const lang = useLang();
@@ -22,6 +22,7 @@ export function NodeLatency() {
if (!nodes.data) return ;
if (!nodes.data.length) return {t('ui.empty')};
const tone = {ok: p.positive, warn: p.notice, err: p.negative};
+ const averages = latencyAverages(view);
// One entry per node for the summary, whichever groups it sits in.
const measured = [...new Map(view.flatMap(group => group.rows).map(row => [row.id, row])).values()].sort((a, b) => a.latest - b.latest);
const down = new Set(view.flatMap(group => group.missing.filter(row => row.state === 'unavailable').map(row => row.id))).size;
@@ -91,29 +92,28 @@ export function NodeLatency() {
showAll={n => t('nodes.latency.showAll', {n})}
legend={[
{kind: 'dot', label: t('nodes.latency.latest')},
- {kind: 'diamond', label: t('nodes.latency.moving')},
- {kind: 'tick', label: t('nodes.latency.avg10')}
+ ...(averages.moving ? [{kind: 'diamond' as const, label: t('nodes.latency.moving')}] : []),
+ ...(averages.avg10 ? [{kind: 'tick' as const, label: t('nodes.latency.avg10')}] : [])
]}
groups={view.map(group => ({
id: group.id,
label: group.label ?? t(by === 'group' ? 'nodes.latency.noGroup' : 'nodes.latency.noProtocol'),
- rows: group.rows.map(row => ({
- id: row.id,
- label: row.name,
- values: {dot: row.latest, diamond: row.moving ?? undefined, tick: row.avg10 ?? undefined},
- text: formatLatency(row.latest, t),
- tone: tone[latencyTone(row.latest)],
- description: t('nodes.latency.row', {
- latest: formatLatency(row.latest, t),
- moving: formatLatency(row.moving, t),
- avg10: formatLatency(row.avg10, t)
- }),
- details: [
+ rows: group.rows.map(row => {
+ const details = [
t('ui.valuePair', {label: t('nodes.latency.latest'), value: formatLatency(row.latest, t)}),
- t('ui.valuePair', {label: t('nodes.latency.moving'), value: formatLatency(row.moving, t)}),
- t('ui.valuePair', {label: t('nodes.latency.avg10'), value: formatLatency(row.avg10, t)})
- ]
- })),
+ ...(averages.moving ? [t('ui.valuePair', {label: t('nodes.latency.moving'), value: formatLatency(row.moving, t)})] : []),
+ ...(averages.avg10 ? [t('ui.valuePair', {label: t('nodes.latency.avg10'), value: formatLatency(row.avg10, t)})] : [])
+ ];
+ return {
+ id: row.id,
+ label: row.name,
+ values: {dot: row.latest, diamond: row.moving ?? undefined, tick: row.avg10 ?? undefined},
+ text: formatLatency(row.latest, t),
+ tone: tone[latencyTone(row.latest)],
+ description: details.join(t('ui.separator')),
+ details
+ };
+ }),
notes: notes(group.missing)
}))}
/>
diff --git a/src/features/nodes/latencyGroups.test.ts b/src/features/nodes/latencyGroups.test.ts
index 90152bcf..6df31524 100644
--- a/src/features/nodes/latencyGroups.test.ts
+++ b/src/features/nodes/latencyGroups.test.ts
@@ -1,6 +1,6 @@
import {expect, it} from 'vitest';
import type {HealthObservation, Node} from '../../api/model';
-import {latencyGroups, latencyMax} from './latencyGroups';
+import {latencyAverages, latencyGroups, latencyMax} from './latencyGroups';
const observation = (patch: Partial): HealthObservation =>
({
@@ -53,3 +53,14 @@ it('keeps the axis clear of a lone outlier', () => {
nodes.push(node('far', [], [observation({latency_ms: 2000, moving_avg_ms: 1900, avg10_ms: 1800})], 'vless'));
expect(latencyMax(latencyGroups(nodes, [], 'protocol'))).toBe(60);
});
+
+it('names only the averages some node reports', () => {
+ const none = latencyGroups([node('a', [], [observation({moving_avg_ms: null, avg10_ms: null})])], [], 'protocol');
+ expect(latencyAverages(none)).toEqual({moving: false, avg10: false});
+ const some = latencyGroups(
+ [node('a', [], [observation({moving_avg_ms: null, avg10_ms: null})]), node('b', [], [observation({moving_avg_ms: 40, avg10_ms: null})])],
+ [],
+ 'protocol'
+ );
+ expect(latencyAverages(some)).toEqual({moving: true, avg10: false});
+});
diff --git a/src/features/nodes/latencyGroups.ts b/src/features/nodes/latencyGroups.ts
index 1b75b480..7b98bfd7 100644
--- a/src/features/nodes/latencyGroups.ts
+++ b/src/features/nodes/latencyGroups.ts
@@ -41,6 +41,12 @@ export function latencyGroups(nodes: Node[], groups: GroupSummary[] | undefined,
return list.sort((a, b) => (a.label === null ? 1 : 0) - (b.label === null ? 1 : 0) || (a.label ?? '').localeCompare(b.label ?? ''));
}
+// Which averages the backend reports. honk sends neither, so a chart names only the ones some row has.
+export function latencyAverages(groups: LatencyGroup[]) {
+ const rows = groups.flatMap(group => group.rows);
+ return {moving: rows.some(row => row.moving !== null), avg10: rows.some(row => row.avg10 !== null)};
+}
+
// The axis end: past most of the values rather than the single slowest, so one outlier does not push every other
// node to the left edge; values beyond it are drawn on the edge with their number.
export function latencyMax(groups: LatencyGroup[]): number {
diff --git a/src/features/nodes/messages.ts b/src/features/nodes/messages.ts
index c8caa9b3..cd38553a 100644
--- a/src/features/nodes/messages.ts
+++ b/src/features/nodes/messages.ts
@@ -16,7 +16,6 @@ export const messages = defineMessages({
'nodes.latency.latest': '目前延遲',
'nodes.latency.moving': '移動平均',
'nodes.latency.avg10': '近 10 次平均',
- 'nodes.latency.row': '目前:{latest},移動平均:{moving},近 10 次平均:{avg10}',
'nodes.latency.unavailableList': '無法使用({n} 個):{names}',
'nodes.latency.unmeasuredList': '尚未測量({n} 個):{names}',
'nodes.latency.andMore': '及另外 {n} 個',
@@ -107,7 +106,6 @@ export const messages = defineMessages({
'nodes.latency.latest': '当前延迟',
'nodes.latency.moving': '移动平均',
'nodes.latency.avg10': '近 10 次平均',
- 'nodes.latency.row': '当前:{latest},移动平均:{moving},近 10 次平均:{avg10}',
'nodes.latency.unavailableList': '不可用({n} 个):{names}',
'nodes.latency.unmeasuredList': '尚未测量({n} 个):{names}',
'nodes.latency.andMore': '及另外 {n} 个',
@@ -198,7 +196,6 @@ export const messages = defineMessages({
'nodes.latency.latest': 'Latest latency',
'nodes.latency.moving': 'Moving average',
'nodes.latency.avg10': 'Average of the last 10',
- 'nodes.latency.row': 'latest: {latest}, moving average: {moving}, average of the last 10: {avg10}',
'nodes.latency.unavailableList': {one: '{n} unavailable: {names}', other: '{n} unavailable: {names}'},
'nodes.latency.unmeasuredList': {one: '{n} not measured: {names}', other: '{n} not measured: {names}'},
'nodes.latency.andMore': 'and {n} more',
diff --git a/src/i18n/backend.test.ts b/src/i18n/backend.test.ts
index 79e70067..915f90f3 100644
--- a/src/i18n/backend.test.ts
+++ b/src/i18n/backend.test.ts
@@ -1,21 +1,26 @@
import {expect, it} from 'vitest';
-import {backendMessage} from './backend';
+import {backendCode, backendMessage} from './backend';
import {LANGS, translate, type Lang, type Translator} from './index';
-// The codes honk sets on operation.error and provider.last_error, which the contract leaves to the adapter.
+// The codes honk sets on operation.error, provider.last_error and health.error, which the contract leaves to the adapter.
const operationCodes = [
'reload_rejected',
'reload_degraded',
'engine_unavailable',
'request_exhausted',
- 'lifecycle_failed',
'geodata_update_failed',
'probe_interrupted',
'probe_cleanup_failed',
'publication_rejected',
'fetch_failed',
'provider_replaced',
- 'result_too_large'
+ 'result_too_large',
+ 'route_unavailable',
+ 'publication_unavailable',
+ 'supervisor_stopped',
+ 'probe_cancelled',
+ 'probe_deadline',
+ 'probe_failed'
];
it.each(LANGS.map(([lang]) => lang))('translates every operation error code in %s', (lang: Lang) => {
@@ -31,3 +36,9 @@ it('falls back to the backend message for a code it does not know', () => {
const t: Translator = (key, params) => translate('en', key, params);
expect(backendMessage('adapter_specific', 'Something specific', t)).toBe(t('ui.backendMessage', {message: 'Something specific'}));
});
+
+it('shows an unknown bare code as it is', () => {
+ const t: Translator = (key, params) => translate('zh-TW', key, params);
+ expect(backendCode('probe_failed', t)).toBe(t('ui.backend.probeFailed'));
+ expect(backendCode('adapter_specific', t)).toBe('adapter_specific');
+});
diff --git a/src/i18n/backend.ts b/src/i18n/backend.ts
index c7d36c74..89c95ed8 100644
--- a/src/i18n/backend.ts
+++ b/src/i18n/backend.ts
@@ -23,12 +23,11 @@ const known: Record = {
setup_required: 'ui.backend.setupRequired',
setup_already_completed: 'ui.backend.setupAlreadyCompleted',
invalid_credentials: 'ui.backend.invalidCredentials',
- // Codes honk sets on operation.error and provider.last_error; the contract leaves these to the adapter.
+ // Codes honk sets on operation.error, provider.last_error and health.error; the contract leaves these to the adapter.
reload_rejected: 'ui.backend.reloadRejected',
reload_degraded: 'ui.backend.reloadDegraded',
engine_unavailable: 'ui.backend.engineUnavailable',
request_exhausted: 'ui.backend.requestExhausted',
- lifecycle_failed: 'ui.backend.lifecycleFailed',
geodata_update_failed: 'ui.backend.geodataUpdateFailed',
// geodata.last_error carries the failed stage as its code.
asset_validation_failed: 'ui.backend.assetValidationFailed',
@@ -37,9 +36,18 @@ const known: Record = {
publication_rejected: 'ui.backend.publicationRejected',
fetch_failed: 'ui.backend.fetchFailed',
provider_replaced: 'ui.backend.providerReplaced',
- result_too_large: 'ui.backend.resultTooLarge'
+ result_too_large: 'ui.backend.resultTooLarge',
+ route_unavailable: 'ui.backend.routeUnavailable',
+ publication_unavailable: 'ui.backend.publicationUnavailable',
+ supervisor_stopped: 'ui.backend.supervisorStopped',
+ probe_cancelled: 'ui.backend.probeCancelled',
+ probe_deadline: 'ui.backend.probeDeadline',
+ probe_failed: 'ui.backend.probeFailed'
};
export function backendMessage(code: string, message: string, t: Translator): string {
return known[code] ? t(known[code]) : t('ui.backendMessage', {message});
}
+
+// A bare code without a message of its own: its words when known, else the code itself.
+export const backendCode = (code: string, t: Translator) => (known[code] ? t(known[code]) : code);
diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts
index 69f3e370..2ac4e1bd 100644
--- a/src/i18n/locales/en.ts
+++ b/src/i18n/locales/en.ts
@@ -418,7 +418,6 @@ export const messages = {
'nodes.latency.latest': 'Latest latency',
'nodes.latency.moving': 'Moving average',
'nodes.latency.avg10': 'Average of the last 10',
- 'nodes.latency.row': 'latest: {latest}, moving average: {moving}, average of the last 10: {avg10}',
'nodes.latency.unavailableList': {one: '{n} unavailable: {names}', other: '{n} unavailable: {names}'},
'nodes.latency.unmeasuredList': {one: '{n} not measured: {names}', other: '{n} not measured: {names}'},
'nodes.latency.andMore': 'and {n} more',
@@ -1290,7 +1289,6 @@ export const messages = {
'ui.backend.reloadDegraded': 'The configuration is applied, but the datapath is degraded',
'ui.backend.engineUnavailable': 'The engine is unavailable or stopped before finishing',
'ui.backend.requestExhausted': 'Reload request numbers are exhausted',
- 'ui.backend.lifecycleFailed': 'The service state change failed',
'ui.backend.geodataUpdateFailed': 'The geodata update failed',
'ui.backend.assetValidationFailed':
'The new geodata file failed validation: it could not be read or lacks categories the rules use. The current files are kept',
@@ -1300,6 +1298,12 @@ export const messages = {
'ui.backend.fetchFailed': 'Could not fetch the subscription; the active nodes are kept',
'ui.backend.providerReplaced': 'The subscription changed during the refresh, so this result was discarded',
'ui.backend.resultTooLarge': 'The operation result exceeds the backend memory limit',
+ 'ui.backend.routeUnavailable': 'The subscription download route has no usable node yet; download this subscription directly',
+ 'ui.backend.publicationUnavailable': 'The backend stopped before applying the new nodes',
+ 'ui.backend.supervisorStopped': 'The backend stopped before the refresh finished',
+ 'ui.backend.probeCancelled': 'The probe was cancelled before measuring',
+ 'ui.backend.probeDeadline': 'The probe timed out before measuring',
+ 'ui.backend.probeFailed': 'The probe failed',
'ui.errOtherOrigin': 'The operation address belongs to another origin and was not read.',
'ui.errNoStream': 'The backend response has no event stream.',
'ui.errGenerationChanged': 'The routing changed during simulation. Run the query again.',
diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts
index aa572c0e..5a9d7f78 100644
--- a/src/i18n/locales/zh-CN.ts
+++ b/src/i18n/locales/zh-CN.ts
@@ -403,7 +403,6 @@ export const messages = {
'nodes.latency.latest': '当前延迟',
'nodes.latency.moving': '移动平均',
'nodes.latency.avg10': '近 10 次平均',
- 'nodes.latency.row': '当前:{latest},移动平均:{moving},近 10 次平均:{avg10}',
'nodes.latency.unavailableList': '不可用({n} 个):{names}',
'nodes.latency.unmeasuredList': '尚未测量({n} 个):{names}',
'nodes.latency.andMore': '及另外 {n} 个',
@@ -1264,7 +1263,6 @@ export const messages = {
'ui.backend.reloadDegraded': '配置已应用,但数据路径处于降级状态',
'ui.backend.engineUnavailable': '引擎不可用,或在完成前已停止',
'ui.backend.requestExhausted': '重载请求序号已用尽',
- 'ui.backend.lifecycleFailed': '服务状态切换失败',
'ui.backend.geodataUpdateFailed': '地理数据更新失败',
'ui.backend.assetValidationFailed': '新的地理数据文件未通过校验:文件无法解析,或缺少规则使用的分类。已沿用当前的文件',
'ui.backend.probeInterrupted': '探测在完成前中断',
@@ -1273,6 +1271,12 @@ export const messages = {
'ui.backend.fetchFailed': '无法下载订阅,沿用当前节点',
'ui.backend.providerReplaced': '刷新期间订阅已更改,本次结果已丢弃',
'ui.backend.resultTooLarge': '操作结果超过后端的内存上限',
+ 'ui.backend.routeUnavailable': '订阅的下载路由尚无可用节点,请改为直连下载此订阅',
+ 'ui.backend.publicationUnavailable': '后端在应用新节点前已停止',
+ 'ui.backend.supervisorStopped': '后端在刷新完成前已停止',
+ 'ui.backend.probeCancelled': '探测在测量前已取消',
+ 'ui.backend.probeDeadline': '探测在测量前超时',
+ 'ui.backend.probeFailed': '探测失败',
'ui.errOtherOrigin': '操作地址属于其他来源,已拒绝读取。',
'ui.errNoStream': '后端响应没有事件流。',
'ui.errGenerationChanged': '模拟期间路由配置已变更。请重新查询。',
diff --git a/src/i18n/locales/zh-TW.ts b/src/i18n/locales/zh-TW.ts
index fae7bee2..db302d35 100644
--- a/src/i18n/locales/zh-TW.ts
+++ b/src/i18n/locales/zh-TW.ts
@@ -402,7 +402,6 @@ export const messages = {
'nodes.latency.latest': '目前延遲',
'nodes.latency.moving': '移動平均',
'nodes.latency.avg10': '近 10 次平均',
- 'nodes.latency.row': '目前:{latest},移動平均:{moving},近 10 次平均:{avg10}',
'nodes.latency.unavailableList': '無法使用({n} 個):{names}',
'nodes.latency.unmeasuredList': '尚未測量({n} 個):{names}',
'nodes.latency.andMore': '及另外 {n} 個',
@@ -1263,7 +1262,6 @@ export const messages = {
'ui.backend.reloadDegraded': '組態已套用,但資料路徑處於降級狀態',
'ui.backend.engineUnavailable': '引擎無法使用,或在完成前已停止',
'ui.backend.requestExhausted': '重載請求序號已用盡',
- 'ui.backend.lifecycleFailed': '服務狀態切換失敗',
'ui.backend.geodataUpdateFailed': '地理資料更新失敗',
'ui.backend.assetValidationFailed': '新的地理資料檔未通過驗證:檔案無法解析,或缺少規則使用的分類。已沿用目前的檔案',
'ui.backend.probeInterrupted': '探測在完成前中斷',
@@ -1272,6 +1270,12 @@ export const messages = {
'ui.backend.fetchFailed': '無法下載訂閱,沿用目前的節點',
'ui.backend.providerReplaced': '重新整理期間訂閱已變更,本次結果已捨棄',
'ui.backend.resultTooLarge': '操作結果超過後端的記憶體上限',
+ 'ui.backend.routeUnavailable': '訂閱的下載路由尚無可用節點,請改為直連下載此訂閱',
+ 'ui.backend.publicationUnavailable': '後端在套用新節點前已停止',
+ 'ui.backend.supervisorStopped': '後端在重新整理完成前已停止',
+ 'ui.backend.probeCancelled': '探測在測量前已取消',
+ 'ui.backend.probeDeadline': '探測在測量前逾時',
+ 'ui.backend.probeFailed': '探測失敗',
'ui.errOtherOrigin': '操作位址屬於其他來源,已拒絕讀取。',
'ui.errNoStream': '後端回應沒有事件串流。',
'ui.errGenerationChanged': '模擬期間路由組態已變更。請重新查詢。',
diff --git a/src/ui/messages.ts b/src/ui/messages.ts
index 9ca6bfb9..7f42c1bf 100644
--- a/src/ui/messages.ts
+++ b/src/ui/messages.ts
@@ -69,7 +69,6 @@ export const messages = defineMessages({
'ui.backend.reloadDegraded': '組態已套用,但資料路徑處於降級狀態',
'ui.backend.engineUnavailable': '引擎無法使用,或在完成前已停止',
'ui.backend.requestExhausted': '重載請求序號已用盡',
- 'ui.backend.lifecycleFailed': '服務狀態切換失敗',
'ui.backend.geodataUpdateFailed': '地理資料更新失敗',
'ui.backend.assetValidationFailed': '新的地理資料檔未通過驗證:檔案無法解析,或缺少規則使用的分類。已沿用目前的檔案',
'ui.backend.probeInterrupted': '探測在完成前中斷',
@@ -78,6 +77,12 @@ export const messages = defineMessages({
'ui.backend.fetchFailed': '無法下載訂閱,沿用目前的節點',
'ui.backend.providerReplaced': '重新整理期間訂閱已變更,本次結果已捨棄',
'ui.backend.resultTooLarge': '操作結果超過後端的記憶體上限',
+ 'ui.backend.routeUnavailable': '訂閱的下載路由尚無可用節點,請改為直連下載此訂閱',
+ 'ui.backend.publicationUnavailable': '後端在套用新節點前已停止',
+ 'ui.backend.supervisorStopped': '後端在重新整理完成前已停止',
+ 'ui.backend.probeCancelled': '探測在測量前已取消',
+ 'ui.backend.probeDeadline': '探測在測量前逾時',
+ 'ui.backend.probeFailed': '探測失敗',
'ui.errOtherOrigin': '操作位址屬於其他來源,已拒絕讀取。',
'ui.errNoStream': '後端回應沒有事件串流。',
'ui.errGenerationChanged': '模擬期間路由組態已變更。請重新查詢。',
@@ -219,7 +224,6 @@ export const messages = defineMessages({
'ui.backend.reloadDegraded': '配置已应用,但数据路径处于降级状态',
'ui.backend.engineUnavailable': '引擎不可用,或在完成前已停止',
'ui.backend.requestExhausted': '重载请求序号已用尽',
- 'ui.backend.lifecycleFailed': '服务状态切换失败',
'ui.backend.geodataUpdateFailed': '地理数据更新失败',
'ui.backend.assetValidationFailed': '新的地理数据文件未通过校验:文件无法解析,或缺少规则使用的分类。已沿用当前的文件',
'ui.backend.probeInterrupted': '探测在完成前中断',
@@ -228,6 +232,12 @@ export const messages = defineMessages({
'ui.backend.fetchFailed': '无法下载订阅,沿用当前节点',
'ui.backend.providerReplaced': '刷新期间订阅已更改,本次结果已丢弃',
'ui.backend.resultTooLarge': '操作结果超过后端的内存上限',
+ 'ui.backend.routeUnavailable': '订阅的下载路由尚无可用节点,请改为直连下载此订阅',
+ 'ui.backend.publicationUnavailable': '后端在应用新节点前已停止',
+ 'ui.backend.supervisorStopped': '后端在刷新完成前已停止',
+ 'ui.backend.probeCancelled': '探测在测量前已取消',
+ 'ui.backend.probeDeadline': '探测在测量前超时',
+ 'ui.backend.probeFailed': '探测失败',
'ui.errOtherOrigin': '操作地址属于其他来源,已拒绝读取。',
'ui.errNoStream': '后端响应没有事件流。',
'ui.errGenerationChanged': '模拟期间路由配置已变更。请重新查询。',
@@ -369,7 +379,6 @@ export const messages = defineMessages({
'ui.backend.reloadDegraded': 'The configuration is applied, but the datapath is degraded',
'ui.backend.engineUnavailable': 'The engine is unavailable or stopped before finishing',
'ui.backend.requestExhausted': 'Reload request numbers are exhausted',
- 'ui.backend.lifecycleFailed': 'The service state change failed',
'ui.backend.geodataUpdateFailed': 'The geodata update failed',
'ui.backend.assetValidationFailed':
'The new geodata file failed validation: it could not be read or lacks categories the rules use. The current files are kept',
@@ -379,6 +388,12 @@ export const messages = defineMessages({
'ui.backend.fetchFailed': 'Could not fetch the subscription; the active nodes are kept',
'ui.backend.providerReplaced': 'The subscription changed during the refresh, so this result was discarded',
'ui.backend.resultTooLarge': 'The operation result exceeds the backend memory limit',
+ 'ui.backend.routeUnavailable': 'The subscription download route has no usable node yet; download this subscription directly',
+ 'ui.backend.publicationUnavailable': 'The backend stopped before applying the new nodes',
+ 'ui.backend.supervisorStopped': 'The backend stopped before the refresh finished',
+ 'ui.backend.probeCancelled': 'The probe was cancelled before measuring',
+ 'ui.backend.probeDeadline': 'The probe timed out before measuring',
+ 'ui.backend.probeFailed': 'The probe failed',
'ui.errOtherOrigin': 'The operation address belongs to another origin and was not read.',
'ui.errNoStream': 'The backend response has no event stream.',
'ui.errGenerationChanged': 'The routing changed during simulation. Run the query again.',