feat(plugin): 增强插件系统能力,支持稳定 ID 与播放栏按钮#56
Open
laoshuikaixue wants to merge 5 commits into
Open
Conversation
- 添加 apiLevel 3 支持播放栏按钮注册 - 实现插件安全曲目快照传递给按钮命令处理器 - 添加六种按钮图标支持 (send, upload, radio, external-link, bookmark, heart) - 限制每个插件最多4个播放栏按钮 - 实现按钮点击时的加载状态和结果提示 - 添加 UI 命令超时处理机制 - 更新文档说明播放栏按钮的使用方法和限制
- 修改示例为更通用的“稍后听”场景,适用于同步、收藏、待办类插件 - 将按钮ID从"submit"改为"listen-later",标签改为"稍后听",图标改为书签 - 更新命令处理器从"submit"到"listen-later" - 修改API端点路径为/api/open/listen-later - 请求数据结构从trackId改为musicPlatform和musicId - 成功消息从"已完成"改为"已加入稍后听"
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.
改动类型
是否包含破坏性变更
改动说明
本次 PR 主要完善 SPlayer 的插件体系,重点包括:
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交