From ccb3f5e39a33f80bee69caccec47704fbd52abf6 Mon Sep 17 00:00:00 2001 From: Dai0814 <3490199389@qq.com> Date: Wed, 4 Nov 2026 14:27:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(portal):=20=E9=A6=96=E9=A1=B5=E8=A1=A5?= =?UTF-8?q?=E9=BD=90=E4=BA=A7=E5=93=81=E5=8A=9F=E8=83=BD=E3=80=81=E6=A0=B8?= =?UTF-8?q?=E5=BF=83=E8=83=BD=E5=8A=9B=E3=80=81=E7=95=8C=E9=9D=A2=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E3=80=81=E5=AE=98=E6=96=B9=E6=96=87=E6=A1=A3=E5=9B=9B?= =?UTF-8?q?=E4=B8=AA=E5=8C=BA=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户反馈首页缺产品功能、核心能力与界面预览,且没有官方文档入口。 新增区块 - 产品功能:三条产品线(iotLCM / 秀杰 DTU / XiuAdmin), 每条列 6 项能力,卡片底部直达详情页 - 核心能力:8 张带标签的卡片,讲工程层面的硬指标 (部署、接入、开放、治理、韧性、交付、数据、维护), 与"产品功能"区分开:前者是做什么,后者是凭什么能用住 - 界面预览:ScreenshotPreview 组件,Web 管理端 / 小程序端两组标签切换, 首屏大图 + 缩略图条,带浏览器窗口装饰 - 官方文档:6 个入口卡片(文档中心、Web 手册、小程序手册、部署手册、 OpenAPI 合同、门户部署说明),外链自动加 target=_blank 界面预览的占位机制 - previewShots 里 file 留空时渲染带图注的占位框,不报错、不影响构建 - 补图只改 file 字段,组件无需改动 - 新增 pages/public/screenshots/README.md 写清命名、尺寸、脱敏要求 导航 - 增加产品功能、核心能力、界面预览、官方文档四个锚点项 - 窄屏(≤860px)隐藏中间三个锚点项,避免挤压 验证 - 构建 13 页,208 条引用 0 失效 - 浏览器实测:7 个导航项、5 个 section 锚点齐全 - 移动端 390px 无横向溢出 - 文档站 5 个外链地址均实测 200 可达 --- .gitignore | 1 + .vitepress/config.mts | 4 + .vitepress/theme/components/HomePage.vue | 115 ++++++++- .../theme/components/ScreenshotPreview.vue | 226 ++++++++++++++++++ .vitepress/theme/index.ts | 2 + .vitepress/theme/styles/portal.css | 178 ++++++++++++++ data/content.ts | 209 ++++++++++++++++ pages/public/screenshots/README.md | 37 +++ 8 files changed, 766 insertions(+), 6 deletions(-) create mode 100644 .vitepress/theme/components/ScreenshotPreview.vue create mode 100644 pages/public/screenshots/README.md diff --git a/.gitignore b/.gitignore index 958dc77..2137b15 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ dist # 本地构建产物(多形态验证用) .vitepress/dist-build* .vitepress/final +.vitepress/v2 diff --git a/.vitepress/config.mts b/.vitepress/config.mts index c654dff..d493b80 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -33,7 +33,11 @@ export default defineConfig({ themeConfig: { nav: [ { text: '首页', link: '/' }, + { text: '产品功能', link: '/#features' }, + { text: '核心能力', link: '/#core' }, + { text: '界面预览', link: '/#preview' }, { text: '项目', link: '/projects/' }, + { text: '官方文档', link: '/#docs' }, { text: '关于', link: '/about' }, ], sidebar: { diff --git a/.vitepress/theme/components/HomePage.vue b/.vitepress/theme/components/HomePage.vue index a11b94d..22099f7 100644 --- a/.vitepress/theme/components/HomePage.vue +++ b/.vitepress/theme/components/HomePage.vue @@ -1,7 +1,12 @@