Commit Graph

74 Commits

Author SHA1 Message Date
d89dd55a51
feat: 处理暂停 2025-08-22 18:55:39 +10:00
f42ba2662b
feat: 暂停与续播 2025-08-22 17:41:33 +10:00
35f7332bff
lint: format 2025-08-19 13:30:12 +10:00
60740274b7
refactor: replace console statements with debug instances
- Replace all console.log/error/warn statements with appropriate debug instances
- Add debug utils with modular debug instances for different components
- Use debugUI for UI components (pages and components)
- Use debugStore for store files
- Use debugUtils for utility functions
- Use debugPlayroom for Playroom specific debugging
- Use debugLyrics for lyrics-related debugging
- Use debugVisualizer for audio visualization debugging
- Use debugResource for resource checking debugging
- Maintain original message content with Chinese descriptions
- Preserve Tab indentation throughout all files

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 13:24:39 +10:00
210700bc0d
chore: 重构播放列表 2025-08-19 13:07:41 +10:00
612d673cbb
style: add text-xs classes to playroom time displays for consistency
Some checks failed
构建扩展程序 / 发布至 Chrome 应用商店 (push) Blocked by required conditions
构建扩展程序 / 发布至 Firefox 附加组件库 (push) Blocked by required conditions
构建扩展程序 / 发布至 Edge 附加组件商店 (push) Blocked by required conditions
构建扩展程序 / 构建 Chrome 扩展程序 (push) Failing after 11m32s
构建扩展程序 / 构建 Firefox 附加组件 (push) Failing after 11m28s
Ensure consistent font sizing across different browsers by applying
Tailwind's text-xs utility classes to current time, format detector,
and duration display elements in the playroom interface.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 21:07:38 +10:00
1c5ee95086
refactor: improve code quality in Playroom.vue
- Use Number.isNaN instead of isNaN for better type safety
- Convert anonymous function to arrow function for consistency
- Add explicit braces to single-line if statement for clarity

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 21:07:19 +10:00
92093ef80d
fix: resolve playroom UI state inconsistency when page loses focus
When lyrics are enabled and the page loses focus while playing a song without lyrics,
then plays a song with lyrics, returning to the page caused controller and lyrics
layout to become misaligned. Added page focus handlers to sync UI state correctly.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-04 20:54:54 +10:00
bfd68e1faa
fix: update lyrics tooltip condition to handle null track safely
All checks were successful
构建扩展程序 / 构建扩展程序 (push) Successful in 48s
构建扩展程序 / 发布至 Chrome 应用商店 (push) Successful in 33s
2025-05-28 16:59:22 +10:00
1239dbbf86
feat: handle empty play queue gracefully and enhance UI responsiveness
Some checks failed
构建扩展程序 / 构建扩展程序 (push) Successful in 54s
构建扩展程序 / 发布至 Chrome 应用商店 (push) Failing after 33s
2025-05-28 15:25:13 +10:00
84aca02fc0
feat(PlayQueue): disable shuffle mode when playing album or list 2025-05-28 11:34:43 +10:00
c02c3edce9
feat(Playroom): update lyrics tooltip styling for improved visibility and aesthetics 2025-05-28 11:33:02 +10:00
b9a8ca7ae4
feat(Player, Playroom): add volume control functionality with persistent settings 2025-05-28 11:30:12 +10:00
1cecf52dfd
feat(Playroom): implement toggle functionality for more options dialog with animations 2025-05-28 11:14:53 +10:00
3df5b1527d
feat(Playroom): add new icons for audio quality and Chromecast options in more options dialog 2025-05-28 11:11:38 +10:00
ab67e07384
feat(PlayListItem, Library): add PlayListItem component and integrate into Library page 2025-05-28 10:45:16 +10:00
0cfd82d34a
feat(AlbumDetail, Player, Library): enhance playback functionality and improve user prompts 2025-05-28 10:18:05 +10:00
65e3520ecf
feat(Library): add Library page and integrate favourites functionality
refactor(useFavourites): switch from chrome.storage.sync to chrome.storage.local and normalize favourites data
2025-05-28 09:46:43 +10:00
6a5d6369fa
feat(Favourites): implement favourites store for managing user favourites 2025-05-27 22:04:21 +10:00
8eee570200
feat(PlayQueue): implement PlayQueueItem component for better queue management and UI 2025-05-27 21:12:52 +10:00
35cb800d64
fix(Playroom): update background overlay for improved visibility 2025-05-27 19:24:33 +10:00
34aedfdb24
feat(Home): add AlbumDetailDialog component for album details display 2025-05-27 15:01:37 +10:00
096e74a9bd
fix(Playroom): add tooltip for lyrics button with fade transition on hover 2025-05-27 12:08:34 +10:00
ee5c8c22d2
fix(Playroom): adjust album cover scaling effect for improved visual consistency 2025-05-27 09:32:42 +10:00
f44c718e2d
fix(Playroom): enhance album cover hover effect with dynamic scaling based on playback state 2025-05-26 21:28:20 +10:00
9f4c5fc0f6
fix(Playroom): remove unnecessary animations from shuffle and repeat button toggles for cleaner functionality 2025-05-26 20:45:35 +10:00
ff51653326
fix(Playroom): add overflow hidden to album cover container for improved layout 2025-05-26 20:42:05 +10:00
bb40342725
fix(Playroom): enhance album cover display with scaling effect 2025-05-26 20:36:52 +10:00
5a200edd11
fix(Playroom): correct script source path and add ChatBubbleQuoteFull icon for improved lyrics display 2025-05-26 19:49:36 +10:00
588182e888
feat(Playroom): add lyrics display functionality with animations and preferences management 2025-05-26 19:34:13 +10:00
145a2d2dbb
fix: storage / network permission issue 2025-05-26 18:44:25 +10:00
8a16f3cde8
style(ScrollingLyrics): adjust layout and improve animations for better user experience 2025-05-26 18:23:24 +10:00
6bf9c493aa
feat(ScrollingLyrics): enhance lyrics display with scroll indicators, loading states, and user interactions 2025-05-26 17:49:26 +10:00
7ecc38dda8
feat(歌词): 添加滚动歌词组件和接口定义
新增 ScrollingLyrics.vue 组件实现歌词滚动显示功能,包括:
1. 解析 LRC 格式歌词文本
2. 根据当前播放时间高亮对应歌词行
3. 支持歌词和间隔时间的处理

同时在 vite-env.d.ts 中新增 LyricsLine 和 GapLine 接口定义,并在 Playroom.vue 中集成歌词组件
2025-05-26 17:29:31 +10:00
3a5377595b
style(页面布局): 调整多个页面的顶部间距和导航栏样式
- 为Home和AlbumDetail页面添加统一的顶部间距
- 修改App.vue导航栏为绝对定位并增加z-index
- 在Playroom页面实现控制器元素的粘性定位并动态计算位置
2025-05-26 17:00:24 +10:00
2ce63f5daa
style(Playroom): 为歌曲信息文本添加固定宽度限制
防止文本过长导致布局问题,为歌曲名称和艺术家信息设置固定宽度
2025-05-26 15:24:06 +10:00
32ab4574dd
feat(偏好设置): 添加浏览器扩展存储支持及时间显示偏好功能
添加 webextension-polyfill 依赖以支持浏览器扩展存储 API
创建 usePreferences store 管理用户偏好设置
将 Playroom 页面的时间显示切换功能迁移至偏好设置 store
2025-05-26 14:50:53 +10:00
4a8f68346a
style(Playroom): 优化代码格式和布局间距
- 移除多余的空格和换行符
- 统一按钮和布局的样式
- 调整元素间距提升视觉一致性
2025-05-26 14:14:03 +10:00
4da52e7f95
feat(播放器): 添加循环播放模式功能
实现三种循环播放模式:关闭、全部循环和单曲循环。修改播放逻辑以支持不同模式:
- 关闭模式:播放到队列末尾时停止
- 全部循环:播放到队列末尾时从头开始
- 单曲循环:当前歌曲播放结束后自动重播

新增单曲循环图标组件,并优化播放控制按钮的UI交互。
2025-05-26 13:39:47 +10:00
0db105705b
fix(播放队列): 修复随机播放模式下的状态重置问题
在Player组件中重置shuffleCurrent状态,确保随机播放逻辑正确执行。同时在AlbumDetail页面为随机播放按钮添加点击事件,正确设置随机播放状态。
2025-05-26 13:23:22 +10:00
d99ae28f8c
feat(播放器): 添加随机播放功能
实现播放队列的随机播放模式,包括:
1. 在 store 中添加 shuffleList 和 playMode 状态
2. 修改播放器组件以支持随机播放时的歌曲切换
3. 更新播放界面以显示随机播放队列
4. 添加随机播放按钮交互逻辑

当开启随机播放时,会生成随机播放列表并保持当前播放歌曲不变,关闭时可恢复原播放顺序。
2025-05-26 13:20:08 +10:00
b6574d8093
feat(播放界面): 新增音量图标并优化播放器布局
- 添加新的音量图标组件 speaker.vue
- 调整播放器界面布局,将歌曲信息与操作按钮重新排列
- 优化播放控制按钮的视觉效果,统一模糊效果实现方式
2025-05-26 12:18:06 +10:00
c07f430009
feat(Playroom): 优化播放界面样式并添加视觉层次效果
- 替换列表箭头图标为循环双箭头图标
- 背景不再使用降低亮度的蒙版
- 为文本和按钮添加阴影和模糊背景效果
- 统一调整按钮尺寸和交互样式
- 优化时间显示布局和切换功能
2025-05-26 12:04:19 +10:00
67f466d43c
refactor(Playroom): 优化播放队列列表的代码格式和点击逻辑
- 调整代码缩进和换行以提升可读性
- 修改播放队列项的点击逻辑,避免重复触发相同索引的播放
- 统一格式化字符串模板和条件判断的写法
2025-05-26 08:33:35 +10:00
fec29b01a4
feat(Playroom): 为播放队列中的歌曲添加点击播放功能
点击播放队列中的歌曲时,设置当前播放索引并开始播放
2025-05-26 08:31:33 +10:00
cc6c6e311e
feat(播放控制): 为曲目列表添加点击播放功能
- 在 TrackItem 组件中添加 playfrom 属性,用于接收播放函数
- 修改 playTheAlbum 函数支持从指定索引开始播放
- 为 TrackItem 按钮添加点击事件,点击时调用 playfrom 函数
2025-05-26 08:28:47 +10:00
9d9b32d47d
style(Playroom): 为歌曲名称和艺术家信息添加截断样式
refactor(audioVisualizer): 调整音频可视化频率范围分段

为 Playroom 页面的歌曲名称和艺术家信息添加 truncate 样式,防止文本溢出
重构音频可视化频率范围分段,使其更符合人耳感知特性
2025-05-26 08:14:14 +10:00
427fc5905c
fix(Playroom): 默认隐藏播放队列对话框并优化歌曲信息显示
默认隐藏播放队列对话框以避免不必要的干扰,并优化歌曲信息显示,防止文本溢出
2025-05-25 20:27:48 +10:00
73aaef1662
feat(音频可视化): 添加音频可视化功能并优化播放队列显示
引入音频可视化器模块,用于实时显示音频频谱。在播放队列中添加可视化效果,并优化播放队列的UI显示。同时,更新播放队列的标题为“播放队列”以提升用户体验。
2025-05-25 20:22:05 +10:00
519816c050
feat(Playroom): 添加新的图标组件并更新播放队列对话框
在播放队列对话框中添加了新的图标组件(XIcon、ShuffleIcon、ListArrowIcon),并更新了对话框的布局和样式
2025-05-25 19:03:54 +10:00