nomadweb/redmini/README.md
eric bf7167c185 Rebuild redmini as full offline nomadro product mirror for XHS.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-27 13:04:35 -05:00

37 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# redmini · nomadro 小红书离线镜像(1:1 产品面)
小红书 **miniTool 无法联网**。本目录是 [nomadweb.nomadro.com](https://nomadweb.nomadro.com) 的离线内容镜像:
- 三环导航:探索 / 连接 / 成长(与官网一致)
- 首页:Hero、统计、热门目的地、游民一天、游民心声
- 探索:目的地列表/详情、地图快照、签证、智能匹配、城市对比
- 连接:活动、社区讨论、心声
- 成长:游民学院课时、博客全文、工具箱、费用估算、FAQ
- 我的:收藏、最近浏览、旅居计划清单(本地 Storage)
数据来自 `backend/app/data/mock_data.py` 等官网同源 mock(打包进 `src/data.js`)。
## 打包上传
```bash
cd redmini
# 若 mock 有更新,先重建 data.js(在仓库根目录):
# cd ../backend && python -c "..." # 或复用 scripts 导出
python scripts/assemble.py
python scripts/static_scan.py # 禁止 fetch / XHR / WebSocket
python scripts/pack.py # -> dist/nomadro-redmini.zip
```
用小红书开发者工具上传 zip(根目录含 `index.html`)。
## 目录
| 路径 | 说明 |
|------|------|
| `src/data.js` | 离线数据包 |
| `tool/` | HTML / CSS / JS / xhs-bridge |
| `release/` | assemble 产物 |
| `scripts/` | assemble / static_scan / pack |
本地浏览器预览:直接打开 `tool/index.html`(需先把 `src/data.js` 拷到 `tool/`,或跑 assemble 后打开 `release/index.html`)。