From f807460251c95dbd22e7142de3bb87eec28addbc Mon Sep 17 00:00:00 2001
From: fylorn <249551762+fylorn@users.noreply.github.com>
Date: Mon, 16 Nov 2026 00:17:55 +0800
Subject: [PATCH 1/2] fix(routing): restore auxiliary handling layout and
limits disclosure
---
src/routing/ProbesTab.i18n.ts | 4 ++--
src/routing/ProbesTab.tsx | 18 ++++++++----------
src/routing/WebTools.tsx | 16 ++++++++++------
3 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/src/routing/ProbesTab.i18n.ts b/src/routing/ProbesTab.i18n.ts
index ae92c4cb..392de9a4 100644
--- a/src/routing/ProbesTab.i18n.ts
+++ b/src/routing/ProbesTab.i18n.ts
@@ -4,7 +4,7 @@ export const probesTabText = messages(
{
intro:
"配置客户端辅助请求及联网工具的执行方式。设为转发的请求继续按路由规则选择上游。",
- kind: "请求/工具", mode: "处理方式", actions: "操作",
+ kind: "请求/工具", mode: "处理方式",
intercept: "本地应答",
interceptWhat: "由网关直接应答,不发送到上游,不产生费用。",
forward: "转发",
@@ -14,7 +14,7 @@ export const probesTabText = messages(
{
intro:
"Choose how client auxiliary requests and web tools are handled. Forwarded requests continue through routing rules.",
- kind: "Request / tool", mode: "Handling", actions: "Actions",
+ kind: "Request / tool", mode: "Handling",
intercept: "Answer locally",
interceptWhat: "The gateway answers directly. Nothing is sent upstream and no cost is incurred.",
forward: "Forward",
diff --git a/src/routing/ProbesTab.tsx b/src/routing/ProbesTab.tsx
index 082511b0..73fb4729 100644
--- a/src/routing/ProbesTab.tsx
+++ b/src/routing/ProbesTab.tsx
@@ -61,7 +61,7 @@ export function ProbesTab({ ov }: { ov: Overview }) {
{t.intro}
- {t.kind}{t.mode}{t.actions}
+ {t.kind}{t.mode}
{ov.client_probes.map((p) => {
const kind = PROBES.find((x) => x.id === p.id);
@@ -78,7 +78,13 @@ export function ProbesTab({ ov }: { ov: Overview }) {
{modes.find((m) => m.id === mode)?.what}
-
+
+ {/* 转圈的位置一直留着:出现、消失时分段控件不左右挪 */}
+ {busy ? (
+
+ ) : (
+
+ )}
label={label}
value={mode}
@@ -86,15 +92,7 @@ export function ProbesTab({ ov }: { ov: Overview }) {
options={modes.map((m) => ({ id: m.id, label: m.label }))}
onChange={(v) => v !== mode && void set(p.id, v)}
/>
- {/* 转圈的位置一直留着:出现、消失时分段控件不左右挪 */}
- {busy ? (
-
- ) : (
-
- )}
-
-
);
})}
diff --git a/src/routing/WebTools.tsx b/src/routing/WebTools.tsx
index feaf6971..e15436ec 100644
--- a/src/routing/WebTools.tsx
+++ b/src/routing/WebTools.tsx
@@ -1,4 +1,5 @@
import { Label } from "@/ui/label";
+import { ChevronRightIcon } from "lucide-react";
import { useId, useRef, useEffect, useState } from "react";
import { call } from "@/control";
import { useResource } from "@/lib/resource";
@@ -46,17 +47,17 @@ export function WebTools({ overview }: { overview: Overview }) {
return <>
- {t.title}
+
+
{t.title}
+ {view &&
}
+
{view?.config.mode === "core" ? t.coreHelp : t.upstreamHelp}
{view?.config.mode === "core" && {remote ? t.remote(remote.name) : t.local}
}
{!view && {resource.error ? <>{t.unavailable} > : t.loading}
}
-
- {view && void save({ ...view.config, mode })} />}
-
- {view && }
+ {view && void save({ ...view.config, mode })} />
}