From 0c22e76f4bd57656de442c861f70dedfe6ef5f73 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 9 Aug 2026 09:14:54 +0800 Subject: [PATCH] fix(frontend): optimization --- docs/changelog/index.md | 1 + .../(main)/responses/components/error-page-tab.tsx | 10 ++++------ .../(main)/responses/components/offline-page-tab.tsx | 12 ++++++------ .../app/(main)/responses/error-page/preview/page.tsx | 4 ++-- .../app/(main)/responses/offline/preview/page.tsx | 4 ++-- frontend/app/(main)/responses/page.tsx | 2 +- frontend/components/common/html-editor-workspace.tsx | 2 +- internal/apps/agent/nginx/sw_assets.go | 11 ++++++++--- 8 files changed, 25 insertions(+), 21 deletions(-) diff --git a/docs/changelog/index.md b/docs/changelog/index.md index c35bd8cc..74135df5 100644 --- a/docs/changelog/index.md +++ b/docs/changelog/index.md @@ -28,6 +28,7 @@ sidebar: false ### 变更 +- 服务工作者(SW)注入挑战页改为前台无感知:不再显示「加载中…」文案,页面空白,仅通过浏览器控制台输出 `[sw-challenge]` 调试信息(注册成功/失败/回退重定向),注入过程不打扰访客。 - 性能指标(CPU/内存/磁盘/网络)与访问日志的保留时长解耦:新增三库共用的 `metric_retention_days` 配置(默认 3 天),系统垃圾清理每日任务按独立短留存清理指标快照;访问日志仍按 `log_retention_days_*` 清理。 - ClickHouse 改为默认关闭:`clickhouse.enabled` 缺省或为 `false` 时不启用(此前会被强制置为 `true`),日志/指标由 PostgreSQL/SQLite 主库承担;显式 `true` 或设置 `CLICKHOUSE_HOST` / `CLICKHOUSE_ENABLED=true` 时启用。 diff --git a/frontend/app/(main)/responses/components/error-page-tab.tsx b/frontend/app/(main)/responses/components/error-page-tab.tsx index f28b61f7..e46e99b3 100644 --- a/frontend/app/(main)/responses/components/error-page-tab.tsx +++ b/frontend/app/(main)/responses/components/error-page-tab.tsx @@ -94,7 +94,7 @@ export function ErrorPageTab({
触发策略 - 配置源站错误页的启用条件与触发状态码。修改后需点击保存。 + 配置源站错误页的启用条件与触发状态码。
-

错误页真实预览

+

错误页预览

{'{{status}}'}→502 · {'{{host}}'}→example.com · 全屏展示

@@ -108,7 +108,7 @@ export default function ErrorPagePreviewPage() {