Files
aurora-admin/package.json
T
aurora-admin 5ee5d829a4
Regression / regression (push) Canceled after 0s
refactor(详情页+S8): 详情页减重(导航互斥/入口去重/i18n去重) + 品牌标识入库
本提交含两条并行工作线,因互相咬合(package.json scripts、regression.yml、
npm run build 链)无法按文件干净拆分,故合并为一次自洽提交。

## 详情页减重(本轮主任务:修复「AI 干太重」)

- 导航收敛:宽屏只用右侧目录、≤1200px 只用页内 sticky 导航,纯 CSS 媒体查询
  实现(不引入 JS 宽度监听)。此前两套导航同时可见,active 状态互相打架。
- 入口去重:标题区由「查看示例/在线测试/契约 JSON」三个减为「在线测试」一个;
  契约 JSON 归入实现资源;删除示例底部重复的「在线测试」。
- 示例工具栏:删除与目录锚点重复的示例下拉选择器;「全部展开代码」只在
  示例数 >1 时出现(103 个组件里 49 个仅 1 个示例,此前恒显示)。
- 重复文案:示例区两句同义导语合并为一句。
- 首页 CTA 由 5 个减为 2 个(浏览组件/快速开始),测试总览入口挂到已有的
  通过率统计卡上,不再另占 Hero 按钮。
- 统一详情取数:抽出 fetchDetail/loadDetail 作为 details/*.json 的唯一路径,
  FAQ 不再自行 fetch 一遍,与组件页共用缓存与失败兜底。

## i18n

- 删除 12 组重复键(含整段 FAQ 说明),字典 604 → 585 唯一键。
- 删除本次改动产生的 6 个死键。
- verify-i18n.mjs 新增 `unique dictionary keys` 断言:重复键在对象字面量里
  是静默的后值覆盖,此前无从发现;现由门禁拦住。

## 文档事实修正(实测为准)

- TESTING/CONTRIBUTING:79 → 103 组件;旧断言数改为回指 tests/report.json。
- PLATFORMS:移动端 108 文件/18 端 → 282 文件/47 端;契约 5 → 47;
  令牌 17 → 15;uni-app SFC 21 → 50。
- AGENTS:断言 1405/18 页 → 1464/103 页(PC)、807/47 页(移动端)。
- package.json:YOUR-ACCOUNT 占位 → gitea 实址与 kole-ui.mymoyu.top。

## 品牌标识(并行会话成果,一并入库)

- brand-mark.json 收归真源,build:brand 生成 favicon 与单色 SVG;
  PC 与移动端共用资产,verify:brand 24 条断言。
- regression.yml 增加 verify:brand 步骤。

## 门禁与验收

新增工具:verify-component-page.mjs(86 条真实浏览器断言,随详情页改造同步
更新为「只允许一套导航可见」)、verify-brand-mark.mjs、lib/i18n-dead-keys.mjs
(只读诊断)。

回归:PC 100%(1464/1464,103 页,N/A 50)· 移动端 100%(807/807,47 页)。
门禁:component-page 86 · i18n 17 · brand 24 · routes all · smoke all ·
theme OK · isolation 31 · nav all · examples 9 · api-docs 10 · mobile-docs 12。

已知未做:i18n 另有约 44 条历史死键(非本次产生),已记为 ROADMAP S8-P6;
顶栏与悬浮区的两个主题入口为刻意设计(verify-theme 断言其互斥),未删。
2026-09-22 23:56:05 +08:00

139 lines
4.6 KiB
JSON

{
"name": "kole-ui",
"version": "1.0.0",
"description": "B 端中后台设计系统 · PC 103 组件 + 移动端组件(平台隔离,含 uni-app 端)· 零运行时依赖",
"license": "MIT",
"main": "dist/tokens/tokens.css",
"style": "dist/components/index.css",
"exports": {
".": {
"style": "./dist/components/index.css",
"default": "./dist/components/index.css"
},
"./tokens.css": "./dist/tokens/tokens.css",
"./tokens/*": "./dist/tokens/*",
"./components/*": "./dist/components/*",
"./react": {
"default": "./dist/react/index.js"
},
"./react/*": "./dist/react/*",
"./vue3": {
"default": "./dist/vue3/index.js"
},
"./vue3/*": "./dist/vue3/*",
"./vue2": {
"default": "./dist/vue2/index.js"
},
"./vue2/*": "./dist/vue2/*",
"./manifest.json": "./dist/manifest.json",
"./package.json": "./package.json",
"./mobile": {
"style": "./dist/mobile/components/index.css",
"default": "./dist/mobile/components/index.css"
},
"./mobile/tokens.css": "./dist/mobile/tokens/tokens.css",
"./mobile/components/*": "./dist/mobile/components/*",
"./mobile/react": {
"default": "./dist/mobile/react/index.js"
},
"./mobile/react/*": "./dist/mobile/react/*",
"./mobile/vue3": {
"default": "./dist/mobile/vue3/index.js"
},
"./mobile/vue3/*": "./dist/mobile/vue3/*",
"./mobile/vue2": {
"default": "./dist/mobile/vue2/index.js"
},
"./mobile/vue2/*": "./dist/mobile/vue2/*",
"./mobile/uniapp": {
"default": "./dist/mobile/uniapp/index.js"
},
"./mobile/uniapp/*": "./dist/mobile/uniapp/*",
"./mobile/manifest.json": "./dist/mobile/manifest.json",
"./uniapp-pc/*": "./dist/uniapp-pc/*",
"./uniapp-pc/manifest.json": "./dist/uniapp-pc/manifest.json"
},
"peerDependencies": {
"react": ">=17",
"vue": ">=2.6"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"vue": {
"optional": true
}
},
"files": [
"dist/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "node tools/build-brand-mark.mjs && node tools/build-dist.mjs && node tools/build-mobile.mjs && node tools/build-uniapp.mjs",
"regression": "node tools/run-regression.mjs",
"serve": "node site/dev-server.js",
"build:site": "powershell -NoProfile -ExecutionPolicy Bypass -File build-site.ps1 && node tools/precompute.mjs",
"precompute": "node tools/precompute.mjs",
"snapshot:site": "node tools/snapshot-site.mjs",
"verify:versions": "node tools/verify-versions.mjs",
"verify:i18n": "node tools/verify-i18n.mjs",
"verify:api-docs": "node tools/verify-api-docs.mjs",
"verify:component-page": "node tools/verify-component-page.mjs",
"verify:examples": "node tools/verify-examples.mjs",
"smoke:site": "node tools/run-site-smoke.mjs",
"verify:stage-overlay": "node tools/verify-stage-overlay.mjs",
"verify:templates": "node tools/verify-templates.mjs",
"verify:theme": "node tools/verify-theme.mjs",
"verify:nav": "node tools/verify-nav-responsive.mjs",
"verify:playground": "node tools/verify-playground.mjs",
"verify:deploy": "node tools/verify-deploy-consistency.mjs",
"build:brand": "node tools/build-brand-mark.mjs",
"verify:brand": "node tools/verify-brand-mark.mjs",
"build:dist": "node tools/build-dist.mjs",
"build:mobile": "node tools/build-mobile.mjs",
"build:uniapp": "node tools/build-uniapp.mjs",
"verify:isolation": "node tools/verify-mobile-isolation.mjs",
"verify:uniapp": "node tools/verify-uniapp.mjs",
"regression:mobile": "node tools/run-mobile-regression.mjs",
"verify:mobile-site": "node tools/verify-mobile-site.mjs",
"verify:mobile-docs": "node tools/verify-mobile-docs.mjs",
"verify:uniapp-build": "node tools/verify-uniapp-build.mjs",
"build:icons": "node tools/build-icons.mjs && node tools/inject-icon-table.mjs",
"verify:icons": "node tools/verify-icons.mjs",
"fetch:icons": "node tools/fetch-icon-sources.mjs",
"build:aliases": "node tools/build-icon-aliases.mjs"
},
"keywords": [
"design-system",
"design-tokens",
"admin",
"dashboard",
"css-variables",
"component-library",
"b2b",
"mobile",
"touch",
"uni-app"
],
"sideEffects": [
"*.css"
],
"engines": {
"node": ">=20"
},
"devDependencies": {
"playwright": "^1.48.0"
},
"dependencies": {},
"repository": {
"type": "git",
"url": "git+https://gitea.mymoyu.top/root/aurora-admin.git"
},
"bugs": {
"url": "https://gitea.mymoyu.top/root/aurora-admin/issues"
},
"homepage": "https://kole-ui.mymoyu.top/site/"
}