diff --git a/README.md b/README.md index 244ffe6..95ca658 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,14 @@ npm run deploy:github npm run deploy:gitee ``` +### 新增工具流程 + +1. 更新运行截图 `public/assets/screenshots_raw/xxx_{light,dark}.png` +2. 更新二维码资源 `public/assets/screenshots_raw/xxx_qrcode.png` + 2.1 [小程序码生成](https://mp.weixin.qq.com/wxamp/wxaqrcode/weappcode) 官方工具,页面路径格式为 `page/home/index?share=xxx`,具体参考 `project.private.config.json` +3. 更新 pages.ts +4. 更新 VerticalFeatures.tsx + ### 更新图片资源 创建`.env.local`环境变量文件,并保存 tinypng 站点申请的秘钥 @@ -40,12 +48,13 @@ TINYPNG_API_KEY= # 2.执行下面脚本,全量压缩图片 npm run update-assets -# 增量压缩图片,仅 --since 日期之后新增的图片会被压缩 +# 增量压缩图片,仅 --since 日期之后新增的图片会被压缩(日期是本地时区,无需换算) npm run update-assets -- --since='2024-04-29T10:00:00' ``` > 脚本依赖 zx 工具,请先确保全局安装`npm install -g zx` + ### Gitee 为了方便国内用户访问,仓库也同步一份到 Gitee 上 [xiaohui_hubei/ucalc-website](https://gitee.com/xiaohui_hubei/ucalc-website) diff --git a/public/assets/screenshots/qrcode_dark.png b/public/assets/screenshots/qrcode_dark.png new file mode 100644 index 0000000..525f70b Binary files /dev/null and b/public/assets/screenshots/qrcode_dark.png differ diff --git a/public/assets/screenshots/qrcode_light.png b/public/assets/screenshots/qrcode_light.png new file mode 100644 index 0000000..204846b Binary files /dev/null and b/public/assets/screenshots/qrcode_light.png differ diff --git a/public/assets/screenshots/qrcode_qrcode.png b/public/assets/screenshots/qrcode_qrcode.png new file mode 100644 index 0000000..fdd0979 Binary files /dev/null and b/public/assets/screenshots/qrcode_qrcode.png differ diff --git a/public/assets/screenshots_raw/qrcode_dark.PNG b/public/assets/screenshots_raw/qrcode_dark.PNG new file mode 100644 index 0000000..3b0fb8c Binary files /dev/null and b/public/assets/screenshots_raw/qrcode_dark.PNG differ diff --git a/public/assets/screenshots_raw/qrcode_light.PNG b/public/assets/screenshots_raw/qrcode_light.PNG new file mode 100644 index 0000000..be5ea99 Binary files /dev/null and b/public/assets/screenshots_raw/qrcode_light.PNG differ diff --git a/public/assets/screenshots_raw/qrcode_qrcode.png b/public/assets/screenshots_raw/qrcode_qrcode.png new file mode 100644 index 0000000..f182de7 Binary files /dev/null and b/public/assets/screenshots_raw/qrcode_qrcode.png differ diff --git a/src/templates/VerticalFeatures.tsx b/src/templates/VerticalFeatures.tsx index 8cc5a7a..1cb26d1 100644 --- a/src/templates/VerticalFeatures.tsx +++ b/src/templates/VerticalFeatures.tsx @@ -44,6 +44,10 @@ const VerticalFeatures = () => ( description="输入身高和体重后,自动计算 BMI 指数,估算肥胖程度和疾病风险,迈向健康生活!" reverse /> +