feat: 新增完整的评论功能模块,包括独立页面、全屏内嵌面板和「主创说」特性#101
Open
WindDrift wants to merge 6 commits into
Open
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.
改动类型
是否包含破坏性变更
改动说明
升级歌曲评论体验:新增独立评论路由页、全屏播放器内嵌评论面板和「主创说」功能,重构评论组件系统。
主要变更
新增「主创说」功能:识别歌曲关联歌手在网易云音乐评论区发表的评论,顶部独立分区展示,带主创徽章。主进程新增
creator.ts服务(LRU 缓存 + 账号解析 + 评论筛选 + 翻页策略),IPC 通道comments:creator。新增独立评论页 (
/comments/:source/:id):瀑布流多列自适应布局,冻结快照模式不跟随播放切换,滚动折叠头部,热门/最新/源切换/分页完整可用。全屏播放器内嵌评论:双模式布局——半屏(左 50% 评论 + 右侧歌词)与全屏(无歌词 + 自动居中封面时铺满),
fullCommentMode按coverLayout / hasLyric / autoCenterCover决策;与播放队列互斥。重构评论组件系统:抽取
useMusicCommentscomposable(token + epoch + creatorEpoch 三重竞态保护、主创去重)、CommentCard.vue、CommentList.vue(CSS Grid 瀑布流)。旧弹窗降级:
MusicCommentsDialog.vue添加@deprecated标记,保留挂载兼容旧入口,不再扩展新功能。破坏性变更
/comments/:source/:idstatus.showComments()的功能失效关联 Issue
无
截图 / 录屏
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交