用户能感知的只有一件:设置页同一行里输入框 33px、按钮 24px 的 9px 落差没有了。 控件等高 - 新增 --iwb-control-h: 30px。输入框竖内边距 7→6(13px 字 + 6×2 + 2 描边 = 30), 默认按钮 24→30(align-items:center 自带居中)。 - 渠道卡片显式 height:auto —— 它是「卡片里的卡片」,固定高度会顶住上下分隔线。 - 不动全局 .iwb-input(28px):改它会让画布/停靠栏/节点里每个输入框都长 2px,不属于本批。 字号 - 设置页正文 14→13、标题 16→15(与同屏 section-title 同档);13.5×8→md、12.5×2→sm。 删 21 条死规则 - setcell(+hover/on/label)/setgrid/setopen/ratio-mini(-auto)/ratio-box/set-page-head(-headtext)/ set-row(两处定义,一 grid 一 flex)/set-row-*/pop-anchor .setcell/appear-val/appear-note-only 在 dist/app.js 与 plugins/** 里都是 0 次。 两条「写了但从未生效」的声明 - .iwb-set-nav-item 的 padding: 7px 9px 被 .iwb-settings-modal .iwb-tab(两个类)按 specificity 压掉,实测一直是 8/16 —— 改它毫无反应。同类:.iwb-appear-range 写两遍,前者 flex 被后者覆盖。 守卫(tests/settings-scope-test.js,进 test:unit) - 控件必须共用 control-h、范围内禁半像素字号、9 个死类名不许复现、引用的 token 必须存在。 - 最后一条是本批真踩到的:--iwb-radius-pill 拼错(真名 --iwb-radius-full)会让声明整条失效、 圆角静默变 0,亮色基线看不出来。 验收 - 计算样式 diff:设置页 16 个元素 + 外观 15 个元素,18 项变化全部预期,无「没打算改却被改」。 - 12 张视觉基线:只有设置弹窗亮/暗 2 张变化(已核对无裁切/溢出),其余 10 张 0 diff。 - 审计:字号写死 243→212、间距 548→483、圆角 139→128、style.css 2339→2314; 「引用了但从未定义」保持 0。verify:ci 全绿。
52 lines
6.8 KiB
JSON
52 lines
6.8 KiB
JSON
{
|
|
"name": "image-workbench-web",
|
|
"private": true,
|
|
"version": "3.26.47",
|
|
"description": "Browser-based node canvas image workbench",
|
|
"scripts": {
|
|
"build": "node scripts/build.js && node scripts/copy-plugins.js",
|
|
"tauri": "tauri",
|
|
"app:dev": "tauri dev",
|
|
"app:build": "tauri build",
|
|
"lint": "eslint src app.js",
|
|
"test": "node tests/relay-task-graph-fixture-test.js && node tests/plugin-style-node-test.js && node tests/inherit-text-test.js",
|
|
"test:unit": "node tests/plugin-archive-test.js && node tests/plugin-files-policy-test.js && node tests/theme-plugin-tokens-test.js && node tests/theme-static-snapshot-test.js && node tests/overlay-layer-test.js && node tests/settings-scope-test.js && node tests/appearance-v2-test.js && node tests/image-prompt-cover-test.js && node tests/unit-test.js && node tests/canvas-actions-test.js && node tests/canvas-performance-test.js && node tests/canvas-drag-performance-test.js && node tests/resize-observer-performance-test.js && node tests/node-drag-jank-test.js && node tests/edge-graph-performance-test.js && node tests/persistence-export-images-test.js && node tests/settings-hotkeys-size-presets-test.js && node tests/custom-size-validation-test.js && node tests/image-node-performance-test.js && node tests/drag-frame-performance-test.js && node tests/canvas-edge-memo-test.js && node tests/canvas-node-transform-test.js && node tests/canvas-dot-zoom-test.js && node tests/duplicate-ws-fresh-source-test.js && node tests/single-canvas-shell-test.js && node tests/navigation-layout-test.js && node tests/home-canvas-library-test.js && node tests/left-resource-layout-test.js && node tests/interface-hierarchy-test.js && node tests/three-page-layout-test.js && node tests/page-chrome-regression-test.js && node tests/task-cache-test.js && node tests/storage-config-shape-test.js && node tests/storage-zip-test.js && node tests/canvas-node-factory-test.js && node tests/runtime-error-test.js && node tests/runtime-lifecycle-test.js && node tests/runtime-fetch-test.js && node tests/runtime-channel-test.js && node tests/runtime-boundary-test.js && node tests/runtime-record-test.js && node tests/runtime-recovery-test.js && node tests/runtime-diagnostic-record-test.js && node tests/runtime-metrics-test.js && node tests/runtime-run-context-test.js && node tests/runtime-execution-context-test.js && node tests/storage-gc-canvas-refs-test.js && node tests/storage-health-test.js && node tests/generation-state-test.js && node tests/canvas-store-test.js && node tests/storage-result-test.js && node tests/storage-local-test.js && node tests/storage-domain-test.js && node tests/storage-runtime-test.js && node tests/storage-indexeddb-test.js && node tests/generation-scheduler-test.js && node tests/gallery-query-test.js && node tests/gallery-hydration-test.js && node tests/image-blob-store-test.js && node tests/image-preview-derive-test.js && node tests/image-format-test.js && node tests/clipboard-graph-test.js && node tests/clipboard-graph-fallback-test.js && node tests/image-admit-test.js && node tests/image-dedupe-test.js && node tests/clipboard-kind-test.js && node tests/clipboard-paste-test.js && node tests/clipboard-copy-test.js && node tests/paste-once-test.js && node tests/list-e2e-specs-test.js && node tests/desktop-csp-loopback-test.js && node tests/architecture-boundary-guard-test.js && node tests/plugin-host-test.js && node tests/plugin-data-test.js && node tests/plugin-loader-test.js && node tests/plugin-bundle-test.js && node tests/plugin-install-test.js && node tests/plugin-gallery-render-test.js && node tests/plugin-gallery-recovery-test.js && node tests/plugin-gallery-ux-test.js && node tests/plugin-grouplib-render-test.js && node tests/plugin-promptlib-render-test.js && node tests/image-compress-test.js && node tests/storage-fallback-indexeddb-test.js && node tests/canvas-normalize-test.js && node tests/canvas-geometry-test.js && node tests/canvas-history-test.js && node tests/canvas-ops-test.js && node tests/canvas-text-test.js && node tests/history-store-test.js && node tests/plugin-integrity-test.js && node tests/workspace-sessions-store-test.js && node tests/workspace-list-test.js && node tests/workspace-purge-test.js && node tests/provider-ping-test.js && node tests/runtime-diagnostics-hotpath-test.js && node tests/storage-log-failure-test.js && node tests/storage-convergence-test.js && node tests/swallow-wiring-test.js && node tests/workbench-logic-test.js && node tests/storage-autobackup-test.js && node tests/storage-outputs-mutate-test.js && node tests/sync-facts-guard-test.js && node tests/e2e-fixed-waits-ratchet-test.js && node tests/shell-render-behavior-test.js && node tests/canvas-meta-notice-behavior-test.js && node tests/source-text-ratchet-test.js && node tests/plugin-theme-contract-test.js && node tests/prompt-md-roundtrip-test.js && node tests/generation-results-store-test.js && node tests/out-groups-order-test.js && node tests/native-overlay-park-test.js && node tests/ui-dock-sanitize-test.js && node tests/ui-minimap-fit-test.js && node tests/ui-workbench-hooks-test.js",
|
|
"test:diagnostics": "node tests/runtime-diagnostics-hotpath-test.js",
|
|
"test:facts": "node tests/architecture-facts-guard-test.js && node tests/release-records-test.js",
|
|
"plugins:gc": "node scripts/plugins-publish.mjs --gc",
|
|
"coverage:browser": "npm run build && node scripts/coverage-browser.js",
|
|
"audit:pins": "node scripts/audit-source-pins.js",
|
|
"tokens:write": "node scripts/gen-tokens.js --write",
|
|
"tokens:check": "node scripts/gen-tokens.js --check",
|
|
"audit:tokens": "node scripts/token-audit.js",
|
|
"audit:tokens:contrast": "node scripts/token-audit.js --contrast",
|
|
"test:visual": "npx playwright test _visual-tokens",
|
|
"test:visual:update": "npx playwright test _visual-tokens --update-snapshots",
|
|
"test:e2e": "npm run build && node scripts/serve-test.js",
|
|
"test:e2e:local": "node scripts/serve-test.js",
|
|
"verify:ci": "npm run build && node --check app.js && node --check dist/app.js && node scripts/check-dist.js && npm run tokens:check && npm run lint && npm run typecheck && npm run test:unit && npm test && npm run test:facts",
|
|
"verify": "npm run verify:ci && npm run test:e2e",
|
|
"verify:release": "node scripts/verify-release.js",
|
|
"coverage:e2e": "node scripts/coverage-e2e.js",
|
|
"sync:facts": "node scripts/sync-facts.js",
|
|
"sync:facts:write": "node scripts/sync-facts.js --write",
|
|
"typecheck": "tsc -p tsconfig.json",
|
|
"release:desktop": "bash scripts/release.sh"
|
|
},
|
|
"devDependencies": {
|
|
"@playwright/test": "^1.64.1",
|
|
"@tauri-apps/cli": "^2.12.4",
|
|
"esbuild": "0.28.2",
|
|
"eslint": "^10.13.0",
|
|
"globals": "^17.13.0",
|
|
"jsdom": "^24.1.3",
|
|
"playwright": "^1.64.1",
|
|
"typescript": "^5.9.3"
|
|
},
|
|
"dependencies": {
|
|
"@tauri-apps/plugin-dialog": "^2.8.4",
|
|
"@tauri-apps/plugin-fs": "^2.7.1",
|
|
"@tauri-apps/plugin-http": "^2.9.0"
|
|
}
|
|
}
|