nomadro/apps/com/admin/README.md
Eric 1058eca8af Wire Hub API aliases, Next proxy, and .com admin cn lane for /hub.
Include hub Next API routes and admin module select so the China-only Hub ship can build and mount on nomadro.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-29 00:03:33 +08:00

40 lines
1.7 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.

# admin.nomadro.com(Web 运营台)
包名:`@nomadro/admin-com`。源码在 `apps/com/admin`,与 `apps/admin`(`.cn` 微信/抖音)及 `apps/hackrobot`(VIP)隔离。
**生产**:美国机 `admin.nomadro.com` + `api.nomadro.com` / `nomadro.com`。
## 受众真分轨(强制)
登录 → **全屏选轨** → 进入该轨壳。两轨 **互不混挂** 对方社区后台;误入路径自动改写。
| 轨 | 路径前缀 | 默认指挥台 | 社区产品 | 门户对照 |
|---|---|---|---|---|
| **中文 cn** | `/cn/*` | `/cn/hub/overview` | **Hub** `/hub` | `/portal` · 三大模块(导航/小册/Hub) |
| **国际 intl** | `/intl/*` | `/intl/social/overview` | **Social** `/social` | `/social/home` |
- 侧栏 SoT:`src/lib/adminNav.ts`(cn 只挂 Hub 树;intl 只挂 Social 树)
- 默认首页:`src/lib/laneHome.ts`
- 切轨(顶栏 / Alt+1/2):`social` ↔ `hub` 路径互映射(`WebLayout.switchLane`)
- 路由门禁:`RequireCommunity`(cn 进 `/social/*` → `/hub/*`;intl 进 `/hub/*` → `/social/*`)
- 页面开关:cn 优先展示 Hub 模块键;intl 优先 Social
## 其它能力
响应式深浅主题、可搜索导航、移动菜单、路由错误恢复、`/:lane/operations` 服务监控;配置页版本防覆盖;订单分页与 CSV 导出。
| 页 | 路径 | 说明 |
|---|---|---|
| 选轨 | `/modules` | 登录后中间页(无侧栏) |
| 中文 | `/cn/hub/*` · `/cn/switches` … | Hub 运营 + 门户开关 / 价格 / 增长 |
| 国际 | `/intl/social/*` · `/intl/switches` … | Social 运营 + 同上 |
## 部署
```bash
pnpm build:admin-com
python apps/admin/deploy/_deploy_admin_com_us.py
```
本地:`pnpm dev:admin-com`。门户联调见 [`apps/com/README.md`](../README.md)。