mirror of
https://github.com/chenyme/grok2api.git
synced 2026-12-05 08:01:07 +00:00
fix: clarify egress probe semantics
This commit is contained in:
1 parent
3d6a699a9f
commit
f030909ce2
2 files changed
+3
-3
No files matched your search
@@ -205,7 +205,7 @@ export function EgressNodes({ title, clearanceMode }: { title: string; clearance
|
||||
</div>
|
||||
{query.isError ? <ErrorState message={query.error.message} onRetry={() => void query.refetch()} /> : <div className="overflow-hidden rounded-md border">
|
||||
<Table className="min-w-[800px] table-fixed">
|
||||
<TableHeader><TableRow><TableHead className="w-10 px-2"><Checkbox checked={allVisibleSelected ? true : selectedVisible.length > 0 ? "indeterminate" : false} disabled={filteredNodes.length === 0} onCheckedChange={(checked) => toggleVisible(checked === true)} aria-label={t("settings.egress.selectVisible")} /></TableHead><SortableTableHead className="w-28" field="name" sortBy={sort.field} sortOrder={sort.order} onSort={changeSort}>{t("settings.egress.name")}</SortableTableHead><SortableTableHead className="w-24" field="scope" sortBy={sort.field} sortOrder={sort.order} align="center" onSort={changeSort}>{t("settings.egress.scope")}</SortableTableHead><SortableTableHead className="w-16" field="proxy" sortBy={sort.field} sortOrder={sort.order} align="center" onSort={changeSort}>{t("settings.egress.proxy")}</SortableTableHead><SortableTableHead className="w-20" field="clearance" sortBy={sort.field} sortOrder={sort.order} align="center" onSort={changeSort}>{t("settings.egress.clearance")}</SortableTableHead><TableHead className="w-14 text-center">{t("settings.egress.accounts")}</TableHead><SortableTableHead className="w-24" field="health" sortBy={sort.field} sortOrder={sort.order} initialOrder="desc" align="center" title={t("settings.egress.healthHelp")} onSort={changeSort}>{t("settings.egress.health")}</SortableTableHead><TableHead className="w-52 text-center" title={t("settings.egress.probeHelp")}>{t("settings.egress.probe")}</TableHead><TableActionHead /></TableRow></TableHeader>
|
||||
<TableHeader><TableRow><TableHead className="w-10 px-2"><Checkbox checked={allVisibleSelected ? true : selectedVisible.length > 0 ? "indeterminate" : false} disabled={filteredNodes.length === 0} onCheckedChange={(checked) => toggleVisible(checked === true)} aria-label={t("settings.egress.selectVisible")} /></TableHead><SortableTableHead className="w-28" field="name" sortBy={sort.field} sortOrder={sort.order} onSort={changeSort}>{t("settings.egress.name")}</SortableTableHead><SortableTableHead className="w-24" field="scope" sortBy={sort.field} sortOrder={sort.order} align="center" onSort={changeSort}>{t("settings.egress.scope")}</SortableTableHead><SortableTableHead className="w-16" field="proxy" sortBy={sort.field} sortOrder={sort.order} align="center" onSort={changeSort}>{t("settings.egress.proxy")}</SortableTableHead><SortableTableHead className="w-20" field="clearance" sortBy={sort.field} sortOrder={sort.order} align="center" onSort={changeSort}>{t("settings.egress.clearance")}</SortableTableHead><TableHead className="w-14 text-center">{t("settings.egress.accounts")}</TableHead><SortableTableHead className="w-24" field="health" sortBy={sort.field} sortOrder={sort.order} initialOrder="desc" align="center" title={t("settings.egress.healthHelp")} onSort={changeSort}>{t("settings.egress.health")}</SortableTableHead><TableHead className="w-52"><div className="flex items-center justify-center gap-1"><span>{t("settings.egress.probe")}</span><Tooltip><TooltipTrigger asChild><button type="button" className="text-muted-foreground transition-colors hover:text-foreground" aria-label={t("settings.egress.probeHelp")}><CircleHelp className="size-3.5" /></button></TooltipTrigger><TooltipContent className="max-w-80">{t("settings.egress.probeHelp")}</TooltipContent></Tooltip></div></TableHead><TableActionHead /></TableRow></TableHeader>
|
||||
<TableBody>
|
||||
{query.isPending ? <TableLoadingRow colSpan={9} /> : null}
|
||||
{!query.isPending && filteredNodes.length === 0 ? <TableRow><TableCell colSpan={9} className="h-24 text-center text-xs text-muted-foreground">{nodes.length === 0 ? t("settings.egress.directFallback") : t("settings.egress.noMatches")}</TableCell></TableRow> : filteredNodes.map((node) => (
|
||||
|
||||
@@ -1546,13 +1546,13 @@ Object.assign(resources["zh-CN"].translation.settings.egress as unknown as Recor
|
||||
health: "请求健康",
|
||||
healthHelp: "由真实 Grok 请求的成功、连接失败和反爬拒绝累计得出,与连通探测独立。",
|
||||
probe: "连通探测",
|
||||
probeHelp: "最近一次通过该代理分别请求所选服务 IPv4 与 IPv6 固定端点的结果;任一地址族可用即汇总为可用,不代表 Grok 请求健康度。",
|
||||
probeHelp: "最近一次通过该代理分别请求所选服务 IPv4 与 IPv6 固定端点的结果。仅表示代理能访问 IP 回显端点,不保证 Grok 上游可用,也不代表真实请求健康度。",
|
||||
probeProvider: "IP 回显服务",
|
||||
probeProviderHelp: "选择 IPv4 与 IPv6 连通探测使用的固定服务。Cloudflare 为默认服务,IPinfo 可手动切换。",
|
||||
});
|
||||
Object.assign(resources.en.translation.settings.egress as unknown as Record<string, string>, {
|
||||
accounts: "Bound", health: "Request health", healthHelp: "Accumulated from real Grok request successes, transport failures, and anti-bot rejections; independent of the connectivity probe.",
|
||||
probe: "Connectivity probe", probeHelp: "The latest independent IPv4 and IPv6 checks through the selected IP echo service; either family succeeding makes the aggregate probe healthy. This does not represent Grok request health.", probeProvider: "IP echo service", probeProviderHelp: "Choose the fixed service used for IPv4 and IPv6 connectivity checks. Cloudflare is the default and IPinfo remains selectable.", healthy: "Healthy", unhealthy: "Unhealthy", notTested: "Not tested", test: "Test proxy", testedOne: "Proxy test completed",
|
||||
probe: "Connectivity probe", probeHelp: "The latest independent IPv4 and IPv6 checks through the selected IP echo service. This only confirms access to the IP echo endpoint; it does not guarantee Grok upstream availability or represent real request health.", probeProvider: "IP echo service", probeProviderHelp: "Choose the fixed service used for IPv4 and IPv6 connectivity checks. Cloudflare is the default and IPinfo remains selectable.", healthy: "Healthy", unhealthy: "Unhealthy", notTested: "Not tested", test: "Test proxy", testedOne: "Proxy test completed",
|
||||
operations: "Proxy operations", automation: "Automation", automationHelp: "Configure recurring node checks and automatic account bindings. The actions on the right run once immediately.",
|
||||
subscriptions: "Proxy sources", subscriptionsHelp: "Save a subscription URL for recurring imports. Use Add node above for a single proxy.",
|
||||
testAll: "Check all", testAllHelp: "Check every enabled proxy node now and update its health status.",
|
||||
|
||||
Reference in new issue
Block a user