Commit fd8ff19
committed
feat: 添加自动化 README 截图管线,支持明暗主题双图切换
- 新增 pnpm demo:update 命令:Playwright 无头浏览器截图,Canvas 转 WebP
- 新增 pnpm fixture:fetch 命令:从 Open-Meteo 拉取真实天气数据存为 fixture
- README 改用 <picture> 标签,根据 prefers-color-scheme 切换明暗截图
- 用户截图导出格式从 PNG 改为 WebP(Canvas toBlob),去除外部依赖
- 截图相关组件/页面通过 import.meta.env.DEV 门控,生产构建 tree-shake
- fixture 数据移出 public/,仅通过 dev server 中间件映射,不打进生产包1 parent 519ee0d commit fd8ff19
17 files changed
Lines changed: 803 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
Loading
Loading
Binary file not shown.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
0 commit comments