新增:本地音乐扫描导入功能#1074
Open
Markjinli wants to merge 3 commits into
Open
Conversation
- 新增 src/core/localMusic.ts:扫描核心逻辑 - 新增 settings/LocalMusic/:设置页 UI(文件夹选择、扫描按钮、进度条) - 默认配置、类型定义、设置导航、多语言文本同步更新 - 低侵入性设计,绝大部分为新增代码,便于后续跟随上游更新 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
将 "本地音乐" 改为「本地音乐」避免 Metro/Hermes 解析错误 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
概述
在设置中添加「本地音乐」功能,允许用户选择设备上的本地文件夹,扫描其中的音频文件,并自动在「我的列表」中创建"本地音乐"列表。
变更内容
src/core/localMusic.ts— 核心扫描逻辑:文件夹扫描、音频元数据读取、列表创建src/screens/Home/Views/Setting/settings/LocalMusic/index.tsx— 设置页 UI:文件夹选择、扫描进度、状态提示src/config/defaultSetting.ts— 添加localMusic.folderPath和localMusic.listId配置项src/types/app_setting.d.ts— 添加对应的类型定义src/screens/Home/Views/Setting/Main.tsx和Vertical/Main.tsx— 注册 LocalMusic 设置页src/lang/zh-cn.json、en-us.json、zh-tw.json— 添加多语言字符串设计原则
测试验证
已在真机 Android 设备上验证:
🤖 Generated with Claude Code