docs(plans): K100 剧集批量上传计划与执行留痕
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
97c2153c2e
commit
3a581163aa
3 files changed
+205
-76
No files matched your search
@@ -24360,3 +24360,108 @@ Running Gradle task 'assembleDebug'... 26.2s
|
||||
|
||||
解读:静态分析零告警,559 项全量测试通过,debug APK 构建成功;
|
||||
`pubspec.lock` 已还原,无依赖变更,未安装或操作真机。
|
||||
|
||||
## 2026-10-21 K100 后台剧集多选上传
|
||||
|
||||
### 动作 0:开工前置 — 已读以上文档
|
||||
|
||||
已逐份 Read:
|
||||
- `AGENTS.md`
|
||||
- `CODING_STANDARDS.md`
|
||||
- `GIT_WORKFLOW.md`
|
||||
- `FruitServer/docs/plans/INBOX.md`
|
||||
- `ReelShortWeb/src/utils/uploader.ts`
|
||||
- `ReelShortWeb/src/api/admin/media.ts`
|
||||
- `ReelShortWeb/src/api/admin/episode.ts`
|
||||
- `ReelShortWeb/src/views/contentManagement/EpisodeManagementView.vue`
|
||||
|
||||
解读:后端分片接口与 `uploadFile`/`resumeUpload` 可复用;剧集页仅有单文件 `el-upload`;本轮只改 ReelShortWeb,严格按 INBOX A~F 落地队列/续传/批量建集/组件拆分/i18n/门禁。
|
||||
|
||||
|
||||
### 动作 1:写计划 + 拉 feature 分支
|
||||
|
||||
```
|
||||
$ git checkout develop && git pull --ff-only origin develop && git checkout -b feature/episode-batch-upload
|
||||
Already on 'develop'
|
||||
Your branch is up to date with 'origin/develop'.
|
||||
Already up to date.
|
||||
Switched to a new branch 'feature/episode-batch-upload'
|
||||
## feature/episode-batch-upload
|
||||
8e1a02a chore(web): 忽略本机启动脚本与运行日志
|
||||
```
|
||||
|
||||
解读:已写计划 `2026-10-21-K100-episode-batch-upload.md`;分支自最新 develop 拉出,工作区干净,可开始编码。
|
||||
|
||||
|
||||
### 动作 2:实现 A~E 源码
|
||||
|
||||
已新增/修改:
|
||||
- `upload/uploadSessions.ts`、`useUploadQueue.ts`
|
||||
- `UploadTaskRow.vue`、`BatchUploadDialog.vue`、`CreateEpisodesDialog.vue`
|
||||
- `EpisodeManagementView.vue`(批量上传入口 + 进页续传打开弹窗)
|
||||
- `locales/zh-CN.ts`、`en.ts`(`episodeBatch` 文案)
|
||||
|
||||
解读:队列文件并发 2、分片并发 3、字节加权进度、localStorage 续传、批量建集弹窗与 i18n 已落地;未改后端与契约。
|
||||
|
||||
|
||||
### 动作 3:门禁 pnpm lint:eslint
|
||||
|
||||
```
|
||||
$ pnpm lint:eslint
|
||||
|
||||
> fruitshorts-admin@1.0.0 lint:eslint /Users/jianghaifeng/Desktop/ReelShort/ReelShortWeb
|
||||
> eslint --fix --ext .js,.ts,.vue ./src
|
||||
|
||||
```
|
||||
|
||||
解读:eslint 零错误(--fix 后无残留报错输出)。
|
||||
|
||||
|
||||
### 动作 4:门禁 pnpm build:dev
|
||||
|
||||
```
|
||||
$ pnpm build:dev
|
||||
|
||||
> fruitshorts-admin@1.0.0 build:dev /Users/jianghaifeng/Desktop/ReelShort/ReelShortWeb
|
||||
> VITE_CJS_IGNORE_WARNING=1 vite build --mode dev
|
||||
|
||||
[warn] Circular chunk: element-plus -> vue-chunks -> element-plus. Please adjust the manual chunk logic for these chunks.
|
||||
|
||||
Build successful. Please see dist-dev directory
|
||||
```
|
||||
|
||||
解读:构建成功;element-plus 循环 chunk 为既有告警,非本轮引入。
|
||||
|
||||
|
||||
### 动作 5:复跑门禁(修 duplicate import / CreateEpisodes 微调后)
|
||||
|
||||
```
|
||||
$ pnpm lint:eslint
|
||||
> eslint --fix --ext .js,.ts,.vue ./src
|
||||
(无错误输出)
|
||||
|
||||
$ pnpm build:dev
|
||||
Build successful. Please see dist-dev directory
|
||||
```
|
||||
|
||||
解读:二次门禁仍全绿,可提交。
|
||||
|
||||
|
||||
### 动作 6:ReelShortWeb 提交并合入 develop
|
||||
|
||||
```
|
||||
$ git commit # feature/episode-batch-upload
|
||||
[feature/episode-batch-upload 6b3620c] feat(admin): 剧集多选分片上传与断点续传
|
||||
9 files changed, 1210 insertions(+), 8 deletions(-)
|
||||
|
||||
$ git merge --no-ff feature/episode-batch-upload
|
||||
(commit-msg 拒收 merge: 前缀,改用 chore(admin): …)
|
||||
[develop 7d39e3c] chore(admin): 合并剧集多选分片上传与断点续传
|
||||
|
||||
$ git push origin develop && git push origin feature/episode-batch-upload
|
||||
8e1a02a..7d39e3c develop -> develop
|
||||
* [new branch] feature/episode-batch-upload -> feature/episode-batch-upload
|
||||
```
|
||||
|
||||
解读:功能提交作者 Zhou Weidong;已 --no-ff 合入 develop 并 push;停住等 PM 验收。
|
||||
|
||||
Reference in new issue
Block a user