From 05203a9b5bc71c5c5141a155c10d30f41e1e5b0a Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Tue, 7 Jul 2026 18:47:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8E=9F=E5=9E=8B=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=20.superpowers/prototype=20=E2=86=92=20design/prototy?= =?UTF-8?q?pe=EF=BC=88=E4=B8=8E=20CONTRACT=20=E5=90=8C=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - git mv 全目录(历史保留);.gitignore 收敛为整个 .superpowers/ 忽略 - 全仓 16 处引用同步(CI checks.yml / l1-sync / screens.mjs / hooks / CLAUDE.md / CONTRACT / SSR 模板注释 / docs / web 注释) - 修 pre-commit 路径正则残留;5180 评审服务已切新路径 - 验证:check-ds 12 道 / l1-sync 6 道 / fidelity 抽查全过 Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01JJ1g8XV1YhhmHRzhwWEW7o --- .gitea/workflows/checks.yml | 2 +- .gitignore | 6 ++--- CLAUDE.md | 2 +- .../handler/templates/public_product.html | 2 +- .../handler/templates/public_shop.html | 2 +- design/CONTRACT.md | 8 +++--- {.superpowers => design}/prototype/atoms.css | 0 {.superpowers => design}/prototype/index.html | 0 .../prototype/mobile-atoms.css | 0 .../prototype/screens/about-preview.html | 0 .../prototype/screens/about.html | 0 .../prototype/screens/checkout.html | 0 .../prototype/screens/datewheel.js | 0 .../prototype/screens/design-system.html | 0 .../prototype/screens/devices.html | 0 .../prototype/screens/fab.js | 0 .../prototype/screens/finance.html | 0 .../prototype/screens/icons.js | 0 .../prototype/screens/inventory-check.html | 0 .../prototype/screens/inventory.html | 0 .../prototype/screens/login.html | 0 .../prototype/screens/m-about.html | 0 .../prototype/screens/m-devices.html | 0 .../prototype/screens/m-finance.html | 0 .../prototype/screens/m-inventory-check.html | 0 .../prototype/screens/m-inventory.html | 0 .../prototype/screens/m-license.html | 0 .../prototype/screens/m-login.html | 0 .../prototype/screens/m-me.html | 0 .../prototype/screens/m-notification.html | 0 .../prototype/screens/m-notifications.html | 0 .../prototype/screens/m-partners.html | 0 .../prototype/screens/m-products.html | 0 .../prototype/screens/m-register.html | 0 .../prototype/screens/m-settings.html | 0 .../prototype/screens/m-stock-in-list.html | 0 .../prototype/screens/m-stock-in.html | 0 .../prototype/screens/m-stock-out-list.html | 0 .../prototype/screens/m-stock-out.html | 0 .../prototype/screens/m-users.html | 0 .../prototype/screens/mobile-kit.html | 0 .../prototype/screens/mobile-shell.js | 0 .../prototype/screens/notification.html | 0 .../prototype/screens/notifications.html | 0 .../prototype/screens/notify-data.js | 0 .../prototype/screens/notify.js | 0 .../prototype/screens/partners.html | 0 .../prototype/screens/pay.html | 0 .../prototype/screens/pricing.html | 0 .../prototype/screens/product-detail.html | 0 .../prototype/screens/product-editor.js | 0 .../prototype/screens/products.html | 0 .../prototype/screens/public-edit.html | 0 .../prototype/screens/public-product.html | 0 .../prototype/screens/public-shop.html | 0 .../prototype/screens/register.html | 0 .../prototype/screens/settings.html | 0 .../prototype/screens/shell.js | 0 .../prototype/screens/statusbar.js | 0 .../prototype/screens/stock-in-list.html | 0 .../prototype/screens/stock-in.html | 0 .../prototype/screens/stock-in.js | 0 .../prototype/screens/stock-out-list.html | 0 .../prototype/screens/stock-out.html | 0 .../prototype/screens/users.html | 0 {.superpowers => design}/prototype/serve.mjs | 0 {.superpowers => design}/prototype/tokens.css | 0 .../prototype/tools/check-ds.mjs | 0 docs/context/project.md | 2 +- docs/design/inventory-sale-status.html | 2 +- docs/frontend-overview.html | 8 +++--- docs/manual/dev-manual.html | 4 +-- scripts/hooks/install.sh | 2 +- scripts/hooks/pre-commit | 8 +++--- tools/check-l1-sync.mjs | 14 +++++----- tools/screens.mjs | 26 +++++++++---------- web/_includes/icons.njk | 2 +- web/assets/site.css | 2 +- web/assets/tokens.css | 2 +- 79 files changed, 46 insertions(+), 48 deletions(-) rename {.superpowers => design}/prototype/atoms.css (100%) rename {.superpowers => design}/prototype/index.html (100%) rename {.superpowers => design}/prototype/mobile-atoms.css (100%) rename {.superpowers => design}/prototype/screens/about-preview.html (100%) rename {.superpowers => design}/prototype/screens/about.html (100%) rename {.superpowers => design}/prototype/screens/checkout.html (100%) rename {.superpowers => design}/prototype/screens/datewheel.js (100%) rename {.superpowers => design}/prototype/screens/design-system.html (100%) rename {.superpowers => design}/prototype/screens/devices.html (100%) rename {.superpowers => design}/prototype/screens/fab.js (100%) rename {.superpowers => design}/prototype/screens/finance.html (100%) rename {.superpowers => design}/prototype/screens/icons.js (100%) rename {.superpowers => design}/prototype/screens/inventory-check.html (100%) rename {.superpowers => design}/prototype/screens/inventory.html (100%) rename {.superpowers => design}/prototype/screens/login.html (100%) rename {.superpowers => design}/prototype/screens/m-about.html (100%) rename {.superpowers => design}/prototype/screens/m-devices.html (100%) rename {.superpowers => design}/prototype/screens/m-finance.html (100%) rename {.superpowers => design}/prototype/screens/m-inventory-check.html (100%) rename {.superpowers => design}/prototype/screens/m-inventory.html (100%) rename {.superpowers => design}/prototype/screens/m-license.html (100%) rename {.superpowers => design}/prototype/screens/m-login.html (100%) rename {.superpowers => design}/prototype/screens/m-me.html (100%) rename {.superpowers => design}/prototype/screens/m-notification.html (100%) rename {.superpowers => design}/prototype/screens/m-notifications.html (100%) rename {.superpowers => design}/prototype/screens/m-partners.html (100%) rename {.superpowers => design}/prototype/screens/m-products.html (100%) rename {.superpowers => design}/prototype/screens/m-register.html (100%) rename {.superpowers => design}/prototype/screens/m-settings.html (100%) rename {.superpowers => design}/prototype/screens/m-stock-in-list.html (100%) rename {.superpowers => design}/prototype/screens/m-stock-in.html (100%) rename {.superpowers => design}/prototype/screens/m-stock-out-list.html (100%) rename {.superpowers => design}/prototype/screens/m-stock-out.html (100%) rename {.superpowers => design}/prototype/screens/m-users.html (100%) rename {.superpowers => design}/prototype/screens/mobile-kit.html (100%) rename {.superpowers => design}/prototype/screens/mobile-shell.js (100%) rename {.superpowers => design}/prototype/screens/notification.html (100%) rename {.superpowers => design}/prototype/screens/notifications.html (100%) rename {.superpowers => design}/prototype/screens/notify-data.js (100%) rename {.superpowers => design}/prototype/screens/notify.js (100%) rename {.superpowers => design}/prototype/screens/partners.html (100%) rename {.superpowers => design}/prototype/screens/pay.html (100%) rename {.superpowers => design}/prototype/screens/pricing.html (100%) rename {.superpowers => design}/prototype/screens/product-detail.html (100%) rename {.superpowers => design}/prototype/screens/product-editor.js (100%) rename {.superpowers => design}/prototype/screens/products.html (100%) rename {.superpowers => design}/prototype/screens/public-edit.html (100%) rename {.superpowers => design}/prototype/screens/public-product.html (100%) rename {.superpowers => design}/prototype/screens/public-shop.html (100%) rename {.superpowers => design}/prototype/screens/register.html (100%) rename {.superpowers => design}/prototype/screens/settings.html (100%) rename {.superpowers => design}/prototype/screens/shell.js (100%) rename {.superpowers => design}/prototype/screens/statusbar.js (100%) rename {.superpowers => design}/prototype/screens/stock-in-list.html (100%) rename {.superpowers => design}/prototype/screens/stock-in.html (100%) rename {.superpowers => design}/prototype/screens/stock-in.js (100%) rename {.superpowers => design}/prototype/screens/stock-out-list.html (100%) rename {.superpowers => design}/prototype/screens/stock-out.html (100%) rename {.superpowers => design}/prototype/screens/users.html (100%) rename {.superpowers => design}/prototype/serve.mjs (100%) rename {.superpowers => design}/prototype/tokens.css (100%) rename {.superpowers => design}/prototype/tools/check-ds.mjs (100%) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index d792935..0cc3e83 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -24,7 +24,7 @@ jobs: run: sh scripts/ci/provision-mac.sh - name: 原型设计系统闸(check-ds 12 道) - run: node .superpowers/prototype/tools/check-ds.mjs + run: node design/prototype/tools/check-ds.mjs - name: L1 真相源同源闸(tokens 快照 / icons / 官网 token 值 / web hex) run: node tools/check-l1-sync.mjs diff --git a/.gitignore b/.gitignore index 0d3fb59..a7f322c 100644 --- a/.gitignore +++ b/.gitignore @@ -67,10 +67,8 @@ backend/gencode # iOS 证书私钥(绝不入库) .ios-certs/ -# superpowers 工作目录:brainstorm/sdd 是草稿不入库; -# prototype 是设计像素真源 + 设计系统守门闸(check-ds.mjs),入库供 CI 跑。 -.superpowers/* -!.superpowers/prototype/ +# superpowers 工作目录(草稿不入库)。原型已迁 design/prototype/(2026-07-07)。 +.superpowers/ # design-distill 保真目检对比图(可重生,见 tools/ds-compare.mjs) design/_compare/ diff --git a/CLAUDE.md b/CLAUDE.md index 6b415a7..1c82e9e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -257,7 +257,7 @@ cd client && flutter test ### 设计真相源分层(原型漂移治理,2026-07-04 拍板) -原型(`.superpowers/prototype/`)与真实页面**不追求全量永久同步**,按层分治: +原型(`design/prototype/`)与真实页面**不追求全量永久同步**,按层分治: - **L1 设计系统层**(`tokens.css` / `atoms.css` / `mobile-atoms.css` / `icons.js` + `index.html` 登记):原型是**单一真源**。新增颜色/组件/图标必须**先登记原型再同步**代码与官网(如 `web/_includes/icons.njk`)。闸:pre-commit `check-ds.mjs` 12 道(本地钩子,新机器先跑 `sh scripts/hooks/install.sh`)+ 代码侧 `client/tool/check_ds_code.mjs`。 - **L2 屏级三态**(台账 = `design/CONTRACT.md` 块 4「真相源」列): diff --git a/backend/internal/handler/templates/public_product.html b/backend/internal/handler/templates/public_product.html index 54ff7f0..0a5464b 100644 --- a/backend/internal/handler/templates/public_product.html +++ b/backend/internal/handler/templates/public_product.html @@ -6,7 +6,7 @@ {{.PageTitle}}{{.OGTags}}