Open
Conversation
Owner
|
在0.7版本中,页面的结构发生了超大改变,已经没有VideoView.vue这种独立页面了( |
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.
feat: 添加递归导入文件夹视频文件功能
摘要
变更文件
ipc/file-handlers.jspreload.jssrc/core/VideoManager.tssrc/composables/useVideoManagement.tssrc/components/common/Toolbar.vuesrc/views/VideoView.vue关键改动
IPC 主进程 (
ipc/file-handlers.js)scan-directory-recursively处理程序,使用深度优先搜索 (DFS) 算法递归读取目录结构,返回符合扩展名要求的文件路径列表。核心逻辑 (
VideoManager.ts&useVideoManagement.ts)VideoManager新增scanDirectoryForNewVideos:调用底层扫描接口,并比对现有库数据进行去重。useVideoManagement封装importFromDirectory:处理用户交互(选择文件夹)、调用扫描、批量入库以及 UI 反馈(Toast 通知)。UI 更新 (
VideoView.vue&Toolbar.vue)Toolbar组件支持通过配置显示“导入文件夹”按钮。VideoView传入importFolderButtonText配置,并绑定导入事件。验证
Checklist