feat: 插件歌词优先偏好配置 & 音源插件图形化配置 - #203
Merged
Merged
Conversation
kid141252010
force-pushed
the
feat/prefer-plugin-lyric
branch
2 times, most recently
from
August 25, 2026 09:48
7bfe0fe to
f325984
Compare
imsyy
requested changes
Aug 27, 2026
| * @param track - 歌曲信息 | ||
| * @returns 命中的插件歌词,未开启或未命中返回 null | ||
| */ | ||
| export const resolvePreferredPluginLyric = async (track: Track): Promise<ResolvedLyric | null> => { |
| * @param track - 歌曲信息 | ||
| * @returns 是否已提交有效歌词 | ||
| */ | ||
| const tryPreferredPlugin = async (token: number, track: Track): Promise<boolean> => { |
Member
There was a problem hiding this comment.
按照新方案,该函数需要删除;在现有的 loader.ts 中,若插件优选开启,则改为:在线平台和插件同时请求,先到先 commit
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.
改动类型
是否包含破坏性变更
改动说明
PluginList.vue中配置弹窗原本限定仅在controlPlugins中检索 Schema 的问题,使其扩展为在全量已安装插件中检索,确保包含音源类在内的所有插件均可渲染图形化配置项。preferPluginLyric开关,打通loader/resolve/download歌词服务层,开启时插件歌词优先于内置在线平台执行,关闭时作为兜底。测试情况
pnpm build:win打包完整安装包并验证。text/select等类型控件。截图 / 录屏
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交