nomadro/apps/navmini/tt/README.md
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

39 lines
1.0 KiB
Markdown
Raw Permalink 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.

# 游民导航 · 抖音小程序
原生抖音小程序,数据与图标同步自仓库 H5:`src/data/links.json`、`public/icons/`。
**图标全部打包在 `tt/icons/` 本地目录**,运行时不走 CDN。
交互对齐微信版:左侧抽屉跳转分类、整页长列表、浅/深色主题、回到顶部。点击入口弹出底部面板,**一键复制网址**后到浏览器打开。
## 本地预览
1. 同步数据与图标:
```bash
npm run tt:sync
```
或在 `tt/` 下:
```powershell
python scripts/sync_data.py
```
2. 打开 **抖音开发者工具** → 导入项目 → 目录选本仓库的 **`tt/`**。
3. 把 `project.config.json` 里的 `touristappid` 换成你的抖音小程序 AppID。
4. 详情 → 本地设置 → **不校验合法域名**(开发期)。
## 目录
```
tt/
├── app.js / app.json / app.ttss
├── data/links.js # sync 生成
├── icons/*.webp # sync 从 public/icons 拷贝
├── pages/index/
└── scripts/sync_data.py
```