From fafde0f7092b65b77f11b02055232508acf08dfc Mon Sep 17 00:00:00 2001 From: mrlee <470349233@qq.com> Date: Thu, 1 Oct 2026 17:20:06 +0800 Subject: [PATCH] feat(web): replace example page with about project page --- docs/system-upgrade.md | 13 +-- web/src/layouts/AppLayout.vue | 4 +- web/src/router/index.ts | 10 +- web/src/views/AboutView.vue | 203 +++++++++++++++++++++++++++++++++ web/src/views/ExampleView.vue | 205 ---------------------------------- 5 files changed, 216 insertions(+), 219 deletions(-) create mode 100644 web/src/views/AboutView.vue delete mode 100644 web/src/views/ExampleView.vue diff --git a/docs/system-upgrade.md b/docs/system-upgrade.md index 655f69d..37817a1 100644 --- a/docs/system-upgrade.md +++ b/docs/system-upgrade.md @@ -238,17 +238,16 @@ HAVLINE_VERSION=<旧版本> docker compose up -d --no-deps --force-recreate havl ## 10. 在线升级验证 -示例页面用于验证升级结果。v1.9.0 的验证流程: +「关于项目」页面可以用于确认升级后的版本信息。v1.9.0 的验证流程: 1. 确认当前线上实例为 v1.3.0,且 `havline-updater` sidecar 已运行。 2. 确认远端 `main` 分支的 `VERSION` 为 `1.9.0`。 3. 在侧栏看到「一键升级」后点击并确认。 4. 等待升级弹窗显示成功,页面自动刷新。 -5. 打开侧栏「示例页面」,确认: - - 页面路由为 `/example`; +5. 打开侧栏「关于项目」,确认: + - 页面路由为 `/about`; - 页面显示的版本为 `1.9.0`; - - 页面显示验证标识 `v1.9.0-example-page`; - - 页面显示独立的「本次升级验证」区块; - - 「升级验证」显示为「通过」。 + - 「源项目」显示为 `O96u/Fonu`; + - 开源协议显示为 `GPL-3.0`。 -如果示例页面可见且版本正确,说明镜像构建、容器重建、后端版本注入和前端静态资源更新均已生效。 +如果「关于项目」页面可见且版本正确,说明镜像构建、容器重建、后端版本注入和前端静态资源更新均已生效。 diff --git a/web/src/layouts/AppLayout.vue b/web/src/layouts/AppLayout.vue index 00d3621..955c8c6 100644 --- a/web/src/layouts/AppLayout.vue +++ b/web/src/layouts/AppLayout.vue @@ -123,9 +123,9 @@ import { CogOutline, DocumentTextOutline, Ellipse, - FlashOutline, GitNetworkOutline, GridOutline, + InformationCircleOutline, LockClosedOutline, LogoGithub, MoonOutline, @@ -205,7 +205,7 @@ const menuDefs = [ { label: 'Cloudflare 隧道', key: 'cloudflare', icon: CloudOutline }, { label: '日志中心', key: 'logs', icon: DocumentTextOutline }, { label: '系统设置', key: 'settings', icon: CogOutline }, - { label: '示例页面', key: 'example', icon: FlashOutline }, + { label: '关于项目', key: 'about', icon: InformationCircleOutline }, ] const menuOptions = computed(() => diff --git a/web/src/router/index.ts b/web/src/router/index.ts index 3ae48c9..cc9477c 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -14,7 +14,7 @@ import CloudflareTunnelConfigView from '../views/CloudflareTunnelConfigView.vue' import AgentView from '../views/AgentView.vue' import ProxyRemoteView from '../views/ProxyRemoteView.vue' import StatusPageView from '../views/StatusPageView.vue' -import ExampleView from '../views/ExampleView.vue' +import AboutView from '../views/AboutView.vue' const router = createRouter({ history: createWebHistory(), @@ -96,10 +96,10 @@ const router = createRouter({ meta: { title: '系统设置', description: '配置系统参数与运行策略' }, }, { - path: 'example', - name: 'example', - component: ExampleView, - meta: { title: '示例页面', description: '用于验证在线升级是否成功生效' }, + path: 'about', + name: 'about', + component: AboutView, + meta: { title: '关于项目', description: '查看 Havline 版本、源开源项目和技术信息' }, }, ], }, diff --git a/web/src/views/AboutView.vue b/web/src/views/AboutView.vue new file mode 100644 index 0000000..a2453af --- /dev/null +++ b/web/src/views/AboutView.vue @@ -0,0 +1,203 @@ + + + + + diff --git a/web/src/views/ExampleView.vue b/web/src/views/ExampleView.vue deleted file mode 100644 index d768118..0000000 --- a/web/src/views/ExampleView.vue +++ /dev/null @@ -1,205 +0,0 @@ - - - - -