nomadro/apps/navmini/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

67 lines
1.5 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.

# Navmini · 游民导航
移动端优先的 **Link 导航** H5,内容对齐 [nav.hackrobot.cn](https://nav.hackrobot.cn/)。效果认可后再做微信 / 抖音 / 小红书小程序。
## 本地预览
```bash
npm install
npm run dev
```
手机或浏览器窄屏预览最佳。
```bash
npm run build
npm run preview
```
## 能力
- **移动端**:整页长滚动 + 左侧抽屉跳转分类
- **PC(≥960px)**:左侧常驻分类栏、加宽内容区、4~5 列入口网格
- 顶栏随滚动显示当前分类
- 浅色 / 深色主题记忆
- 回到顶部
## 图标
图标已离线压缩到 [`public/icons/`](public/icons/)(96×96 WebP)。`links.json` 引用 `/icons/{id}.webp`。
重新拉取并压缩:
```bash
npm run icons
```
编辑 [`src/data/links.json`](src/data/links.json):
```
categories[] → groups[] → links[]
id / title / subtitle / href / icon / action?
```
`action` 默认 `open`;设为 `copy` 时写入剪贴板。
## 小程序
三端 link 图标均打包在各自目录的 `icons/`,**不走 CDN**。改 H5 数据后一键同步:
```bash
npm run mini:sync
```
| 目录 | 平台 | 说明 |
|------|------|------|
| [`weapp/`](weapp/) | 微信 | 抽屉 + 长列表,一键复制网址 |
| [`tt/`](tt/) | 抖音 | 同上(`tt` API) |
| [`xhs/`](xhs/) | 小红书 | 离线小工具,手动选中复制 |
也可单独:`npm run weapp:sync` / `tt:sync` / `xhs:sync`。
## 仓库
- Gitea:https://git.nomadro.cn/hackrobot/navmini
- Clone:`git clone https://git.nomadro.cn/hackrobot/navmini.git`