From 6b1d2e8af94a848104ffbe5d824a7294d4151362 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 27 Mar 2026 11:18:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E8=B7=AF=E7=94=B1=E9=A1=B5=E9=9D=A2=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=BC=93=E5=AD=98=E5=92=8C=E8=AF=B7=E6=B1=82=E5=A4=B4?= =?UTF-8?q?=E5=88=97=EF=BC=8C=E7=AE=80=E5=8C=96=E6=98=BE=E7=A4=BA=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/proxy-routes-page.tsx | 60 +------------------ openflare_server/web/package.json | 2 +- 2 files changed, 2 insertions(+), 60 deletions(-) diff --git a/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx b/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx index af0e12ab..978c27ef 100644 --- a/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx +++ b/openflare_server/web/features/proxy-routes/components/proxy-routes-page.tsx @@ -516,19 +516,6 @@ function parseUpstreams(rawValue: string) { } } -function buildCachePolicyLabel(policy: string) { - switch (policy) { - case 'suffix': - return '按后缀'; - case 'path_prefix': - return '按前缀'; - case 'path_exact': - return '按路径'; - default: - return '按 URL'; - } -} - function getCacheRulesHint(policy: string) { switch (policy) { case 'suffix': @@ -1537,35 +1524,20 @@ export function ProxyRoutesPage() { 域名 源站地址 HTTPS - 缓存 - 请求头 状态 备注 - 更新时间 操作 {routes.map((route) => { - const headers = parseCustomHeaders(route.custom_headers); - const cacheRules = parseCacheRules(route.cache_rules); - const upstreams = parseUpstreams(route.upstreams); - return ( {route.domain} -
-

{route.origin_url}

-

- 回源主机名: {route.origin_host || '$host'} -

-

- 上游数量: {Math.max(upstreams.length, 1)} -

-
+

{route.origin_url}

{route.enable_https ? ( @@ -1583,33 +1555,6 @@ export function ProxyRoutesPage() { )} - - {route.cache_enabled ? ( -
- -

- {cacheRules.length > 0 - ? `${cacheRules.length} 条规则` - : '按 URL 粒度缓存'} -

-
- ) : ( - - )} - - - 0 ? `${headers.length} 条` : '无' - } - variant={headers.length > 0 ? 'success' : 'warning'} - /> - {route.remark || '—'} - - {formatDateTime(route.updated_at)} -