nomadhub/README.md
hackrobot 94cb2ce681 Initial commit: NomadHub digital nomad CRM app.
React 19 + Capacitor Android app with nomadro hub-style UI, interactive globe, people/roster CRM, and settings (disguise, import/export).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-05 21:21:41 +08:00

104 lines
3.0 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.

# NomadHub · 数字游民人际操作系统
面向数字游民的 **业务人脉 + 约会管理** 移动端应用。UI/UX 对齐 [nomadro](https://nomadro.cn) hub 风格:深色玻璃拟态、三色渐变(珊瑚 / 金 / 青)、aurora 背景。
## 功能概览
### 🌍 地球(首页)
- nomadro 同款 **hub-globe**:线框球体、半透明大陆、交叉轨道环、脉冲光点、虚线飞行轨迹
- 浮动 **emoji 城市标签**(🏝️ 巴厘岛 / ☕ 里斯本 / 🏔️ 清迈 风格)
- 全球 → 国家 → 城市 **三级下钻**,点击标签进入详情
- 拖动旋转、滚轮/双指缩放
- 业务 / 约会筛选,待跟进提醒面板
### 👥 人脉
- **Tinder 卡片** + 列表双视图,左右滑收藏/拉黑
- 多维度筛选:性别、年龄、感情、来源、关系进度、职业、搜索
- 收藏 / 待跟进快捷筛选
- 添加人脉表单
### 📋 花名册
- **职业库** · **Coffeechat 候选** · **招募助理 / 简历库**
- 与人脉相同的高级筛选体系
### 📇 资料卡(CRM)
- 关系漏斗:认识 → 聊天 → 互动 → 见面 → 二次见面 → 稳定关系
- 电话 / 微信 / Telegram,备注编辑,聊天日志,标记今日已互动
- 星标 / 黑名单
### ⚙️ 设置
- **首页伪装**:计算器界面,PIN 解锁
- JSON **导入/导出**(localStorage 持久化)
- 黑名单管理、自动互动提醒
## 技术栈
| 层 | 技术 |
|---|---|
| 前端 | React 19 · TypeScript · Vite |
| 动画 | Framer Motion |
| 样式 | nomadro hub design tokens(CSS 变量 + 玻璃卡片) |
| 地球 | SVG/CSS 2D(兼容无 WebGL 环境) |
| 移动端 | Capacitor 8 → Android APK |
| 存储 | localStorage |
## 快速开始
```bash
# 安装依赖
npm install
# 开发(浏览器)
npm run dev
# 默认 http://127.0.0.1:5173
# 生产构建
npm run build
```
## 打包 Android APK
需要 **Android Studio JBR**(Java 21+):
```powershell
$env:JAVA_HOME = "C:\Program Files\Android\Android Studio\jbr"
npm run build
npx cap sync android
cd android
.\gradlew.bat assembleDebug
```
输出路径:`android/app/build/outputs/apk/debug/app-debug.apk`
或使用快捷脚本:
```bash
npm run apk
```
## 项目结构
```
src/
├── App.tsx # 主壳 + Tab 路由 + 伪装锁屏
├── components/
│ ├── Globe/Globe2D.tsx # nomadro hub-globe 交互地球
│ ├── People/ # Tinder 卡片、添加表单
│ ├── ProfileCard/ # 资料卡 overlay
│ ├── Filters/ # 高级筛选面板
│ └── Layout/ # 导航、aurora 背景、PageHeader
├── pages/ # 地球 / 人脉 / 花名册 / 设置
├── store/useContacts.ts # 状态、筛选、导入导出、PIN
├── types/ # Contact、Filters 类型
└── data/mockContacts.ts # 初始 mock 数据
```
## 仓库
- **Git**: https://git.nomadro.cn/hackrobot/nomadhub
- **用户**: `hackrobot`
## License
Private · Nomadro internal use