From 4b1e75f86ba6f793f75e23d527fb08ad720a6659 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 30 Mar 2026 15:46:54 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=20=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/proxy-route-config-page.tsx | 67 ++++++------------- .../components/proxy-routes-page.tsx | 29 +------- .../web/features/proxy-routes/helpers.ts | 10 +-- 3 files changed, 25 insertions(+), 81 deletions(-) diff --git a/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx b/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx index 26b4a485..286d1663 100644 --- a/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx +++ b/openflare_server/web/features/proxy-routes/components/proxy-route-config-page.tsx @@ -221,7 +221,7 @@ function ConfigSectionShell({ description={description} action={ - {saving ? '保存中...' : '保存当前分区'} + {saving ? '保存中...' : '保存'} } > @@ -259,7 +259,7 @@ function DomainSettingsSection({ return ( @@ -282,6 +282,14 @@ function DomainSettingsSection({ ); })} > + + form.setValue('enabled', checked, { shouldDirty: true }) + } + /> - - form.setValue('enabled', checked, { shouldDirty: true }) - } - /> ); @@ -355,7 +355,7 @@ function RateLimitSection({ return ( @@ -376,8 +376,8 @@ function RateLimitSection({ })} > - + @@ -854,7 +854,7 @@ export function ProxyRouteConfigPage({
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 b1ea9c70..83fd78c0 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 @@ -189,7 +189,6 @@ export function ProxyRoutesPage() {
@@ -276,7 +274,7 @@ export function ProxyRoutesPage() { setKeyword(event.target.value)} - placeholder="搜索站点标识、域名、上游或备注" + placeholder="搜索站点" />
{diff && hasConfigChanges(diff) ? ( @@ -335,9 +333,6 @@ export function ProxyRoutesPage() { /> ))}
-

- 主域名 {route.primary_domain},共 {route.domain_count} 个域名 -

@@ -376,28 +371,6 @@ export function ProxyRoutesPage() { {getUpstreamSummary(route)}

- -
-

- HTTPS / 证书 -

-

- {route.enable_https - ? route.redirect_http - ? 'HTTPS 开启,HTTP 自动跳转' - : 'HTTPS 开启' - : '仅 HTTP'} -

-
- -
-

- 最近更新 -

-

- {formatDateTime(route.updated_at)} -

-

diff --git a/openflare_server/web/features/proxy-routes/helpers.ts b/openflare_server/web/features/proxy-routes/helpers.ts index faae3462..d9e93d47 100644 --- a/openflare_server/web/features/proxy-routes/helpers.ts +++ b/openflare_server/web/features/proxy-routes/helpers.ts @@ -8,27 +8,27 @@ export const websiteConfigSections = [ { key: 'domains', label: '域名设置', - description: '维护站点标识、主域名顺序和启用状态。', + description: '维护站点标识。', }, { key: 'limits', label: '流量限制', - description: '设置连接数和限速,0 或空值表示关闭。', + description: '设置连接数和限速。', }, { key: 'proxy', label: '反向代理', - description: '配置主回源、多上游、Host 头和自定义请求头。', + description: '配置主回源、上游。', }, { key: 'https', label: 'HTTPS', - description: '选择证书并控制 HTTP 到 HTTPS 的跳转策略。', + description: '证书设置。', }, { key: 'cache', label: '缓存', - description: '按 URL、后缀或路径规则启用站点级缓存。', + description: '页面缓存。', }, ] as const;