feat: 新增实验性微信卡片分享与自动部署能力

补充 Cloudflare Worker、R2 存储、微信 JS-SDK 签名与上传鉴权
增加自动部署 Skill 和配置引导文档
优化报告工具栏、微信卡片弹窗及窄屏响应式布局
补充 Worker 鉴权、卡片生成、过期清理与安全转义测试
This commit is contained in:
Wxw-Gu
2026-08-13 10:48:07 +08:00
parent d439b4b749
commit 4436d7c8ce
45 changed files with 3832 additions and 69 deletions
+26
View File
@@ -0,0 +1,26 @@
# WechatExplorer share-card worker
Cloudflare Worker + private R2 service for temporary WeChat report cards.
This is an experimental, self-hosted feature. See the complete Chinese deployment guide:
- `../../docs/deployment/experimental-wechat-share-card.md`
Required encrypted secrets:
- `WECHAT_APP_ID`
- `WECHAT_APP_SECRET`
- `UPLOAD_TOKEN` (random 32+ character token also saved in WechatExplorer's secure settings)
Create the private bucket, set secrets, and deploy:
```bash
npx wrangler r2 bucket create wechatexplorer-share-reports
npx wrangler secret put WECHAT_APP_ID
npx wrangler secret put WECHAT_APP_SECRET
npx wrangler secret put UPLOAD_TOKEN
npx wrangler deploy
```
Keep the R2 public development URL disabled. All reads go through the Worker and expire with
the card.