From 07f71286b6b574dc5aa8f0285da96eee1cb171ad Mon Sep 17 00:00:00 2001 From: simonkoson <28867558@qq.com> Date: Fri, 3 Jul 2026 09:16:48 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BA=91=E7=AB=AFGitea=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=90=8D=20lanhao=20=E2=86=92=20simonkoson=EF=BC=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=85=A8=E9=83=A8=E6=96=87=E6=A1=A3=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .clinerules | 2 +- CLAUDE.md | 2 +- docs/git_workflow.md | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.clinerules b/.clinerules index 9f663e8..17c1937 100644 --- a/.clinerules +++ b/.clinerules @@ -36,7 +36,7 @@ - **Plan 模式**:MiniMax M2.7(标准版,非 highspeed) - **Act 模式**:MiniMax M2.7 - 双机开发:单位 4090D(E:\tps-dashboard) + 家里电脑,通过腾讯云 Gitea 同步 -- 远程仓库:`http://101.42.29.217:3000/lanhao/tps-dashboard.git` +- 远程仓库:`http://101.42.29.217:3000/simonkoson/tps-dashboard.git` - **开工先 pull、收工必 push、push 前先 pull**——三条铁律,详见 `docs/git_workflow.md` 第 7 章 - API 配置:`base_url = https://api.minimaxi.com/v1`,Model ID = `MiniMax-M2.7` diff --git a/CLAUDE.md b/CLAUDE.md index b9db7cd..1eb86dd 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -63,7 +63,7 @@ - **认证**:**Session + Cookie(不用 JWT)**;CORS 必须 `allow_credentials=True` + 显式列 `allow_origins`(不能 `["*"]`)。 - **其他锁定**:Word 用 docxtpl;甘特图用 frappe-gantt;定时任务 APScheduler。任何「换成 XX 更好」先在 Plan 讨论,绝不直接改。 - **关键目录**:`backend/app/{api,core,services,models,db}`、`backend/sql/`、`frontend/src/{pages,components,services,stores}`、`logs/`、`docs/`。 - - **远程仓库**:`http://101.42.29.217:3000/lanhao/tps-dashboard.git`(腾讯云 Gitea,用户 lanhao)。**双机开发**:单位 4090D + 家里电脑,开工先 `git pull`,收工必 `git push`,详见 `docs/git_workflow.md` 第 7 章。 + - **远程仓库**:`http://101.42.29.217:3000/simonkoson/tps-dashboard.git`(腾讯云 Gitea,用户 simonkoson)。**双机开发**:单位 4090D + 家里电脑,开工先 `git pull`,收工必 `git push`,详见 `docs/git_workflow.md` 第 7 章。 - **本地启动**(开发模式,两个 PowerShell 窗口都别关;仓库根 `E:\tps-dashboard`): - 后端:`cd backend` → 激活虚拟环境 → `uvicorn app.main:app --reload --port 8000`(文档 `/docs`) - 前端:`cd frontend` → `npm run dev`(端口 5173 或 5174) diff --git a/docs/git_workflow.md b/docs/git_workflow.md index afcca78..3600c81 100644 --- a/docs/git_workflow.md +++ b/docs/git_workflow.md @@ -1,7 +1,7 @@ # docs/git_workflow.md — Git 操作手册 > 项目:TPS 中台 -> 仓库:`tps-dashboard`(腾讯云 Gitea: http://101.42.29.217:3000/lanhao/tps-dashboard) +> 仓库:`tps-dashboard`(腾讯云 Gitea: http://101.42.29.217:3000/simonkoson/tps-dashboard) > 文档版本:v3 · 2026-07-03 > 受众:**制片人(不会 Git)** + Cline(自动遵守此规则) @@ -387,7 +387,7 @@ git push origin phase1-complete ```powershell # 在新机器上 clone 云端仓库 -git clone http://101.42.29.217:3000/lanhao/tps-dashboard.git +git clone http://101.42.29.217:3000/simonkoson/tps-dashboard.git cd tps-dashboard # 然后按第 7 章流程开工 ``` @@ -412,10 +412,10 @@ git reset HEAD~1 # 撤回最近一次 commit,文件改动保留 | 项目 | 云端地址 | 说明 | |---|---|---| -| **TPS 工作台(主项目)** | `http://101.42.29.217:3000/lanhao/tps-dashboard.git` | 所有主干代码 + doco/ai-labeling 等子项目目录 | -| **配音工具** | `http://101.42.29.217:3000/lanhao/military-tech-voice3.0.git` | 独立小应用,将来作为 tps-dashboard 子功能合入 | +| **TPS 工作台(主项目)** | `http://101.42.29.217:3000/simonkoson/tps-dashboard.git` | 所有主干代码 + doco/ai-labeling 等子项目目录 | +| **配音工具** | `http://101.42.29.217:3000/simonkoson/military-tech-voice3.0.git` | 独立小应用,将来作为 tps-dashboard 子功能合入 | -云端 Gitea 用户名统一 `lanhao`。 +云端 Gitea 用户名统一 `simonkoson`。 ### 7.1 每天开工铁律(无论在哪台电脑) @@ -457,12 +457,12 @@ git status # 确认干净 ```powershell cd D:\myApp\lanhao2.0 # 家里机器的工作目录(按实际调整) -git clone http://101.42.29.217:3000/lanhao/tps-dashboard.git +git clone http://101.42.29.217:3000/simonkoson/tps-dashboard.git cd tps-dashboard # 克隆完毕,以后按 7.1-7.3 流程开发 ``` -克隆时会要求输入 Gitea 用户名密码(lanhao / 你的密码)。 +克隆时会要求输入 Gitea 用户名密码(simonkoson / 你的密码)。 ### 7.6 .gitignore 不入库的文件(两台电脑都适用)