feat(frontend): add batch note workflow and note management - #441
Open
Shibo-Zhu wants to merge 4 commits into
Open
feat(frontend): add batch note workflow and note management#441Shibo-Zhu wants to merge 4 commits into
Shibo-Zhu wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
B 站课程经常以多 P 视频组织。当前用户需要逐集重复粘贴链接并等待生成,生成后的大量课程笔记也缺少分类、排序和后续编辑能力。本 PR 将这条学习工作流补齐:按分集范围并行生成独立笔记,再按项目管理、编辑和浏览。
已有 PR #408 面向 YouTube playlist;本 PR 面向 Bilibili 多 P 视频,并沿用现有首页和任务历史。
改动内容
Bilibili 分集范围批量生成
P2-P5,后端校验课程总集数后为每集创建独立任务。/api/generate_note_batch,批量任务共享受控线程池,默认最多并行 3 个,可由TASK_MAX_WORKERS调整。p参数,并清理分享链接中的追踪参数。历史项目与排序
Markdown 编辑和图片管理
backend/data/note_images,也可选择本地目录。阅读和数据安全
测试
npm run build:通过(Vite 生产构建)。python -m py_compile:新增/修改的后端模块通过。python -m unittest tests.test_note_batch tests.test_note_image tests.test_task_serial_executor tests.test_video_url_support -v:10 项通过。scrollTop = 0。仓库目前没有
typecheckscript;直接运行tsc --noEmit会被主分支既有 TypeScript 错误阻断,因此本 PR 以仓库可用的 Vite build 作为前端编译验证。风险与部署说明
TASK_MAX_WORKERS=1。cid;相关下载逻辑是本 PR 的主要回归关注点。