nomadro/apps/work
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00
..
overlay Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
scripts Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
.env.example Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
.gitignore Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
docker-compose.yml Ship native /social/work: Planka-shaped boards + Etherpad pads on FastAPI. 2026-11-04 01:06:26 +08:00
README.md Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack. 2026-11-04 02:25:05 +08:00

Remote work — secondary-dev (Next + FastAPI)

读开源 域模型 后自研,模块化进 Nomadro(Fair Use;非 iframe / 非原样塞 upstream UI):

能力 参考源码 UI API
看板 Planka Project / Board / List / Card / Label / Task / Comment / Action / Stopwatch /social/work/boards · src/modules/work FastAPI work_svc /api/work/v1
文档 Etherpad pad + revisions /social/work/pads 同上

本地

pnpm dev:work-api    # uvicorn work_main:app :8021
pnpm dev             # http://localhost:3000/social/work

门户经 src/app/api/work/v1/[[...path]] 同源代理到 WORK_API_URL(默认 http://127.0.0.1:8021)。代理只转发 content-type / authorization,避免把 nginx 的 Connection: upgrade 带给 uvicorn。

生产(.com / 美国机)

pnpm exec next build
python deploy/work/deploy_us.py
  • systemd:nomadro-work → 127.0.0.1:8021
  • nginx:deploy/work/nginx-work-api.conf → location ^~ /api/work/ 直连 8021(与 /api/social/ 同模式)
  • 页面仍走门户 :4003;API 不经过 Next

看板能力(Planka 对齐子集)

  • 列 / 卡片拖拽(@hello-pangea/dnd)
  • 列表重命名 · 配色 · 删除;Archive 列
  • 卡片:标签、截止日期(含完成)、秒表、封面色、成员、清单、评论、附件链接、归档 / 删除
  • 看板背景(Planka gradient id → Nomadro 深色配色)
  • 活动流(createCard / moveCard / addMemberToCard / …)

模块拆分:components/board/* · lib/stopwatch.ts · lib/backgrounds.ts。

数据与参考

  • SQLite:data/work/work.sqlite3(或 WORK_DATA_DIR)
  • Upstream 仅参考:apps/work/upstream/*(pnpm work:fetch)
  • Overlay / Docker 辅助:pnpm work:overlay · work:up(产品 UI 不依赖)

反模式

  • iframe / web-view / micro-app 嵌 Planka·Etherpad
  • 跳 work. / pad. 二级域
  • 把整包 upstream SCSS 硬塞进 Next