Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ SPlayer-Next 是基于 **Electron + Vue 3 + TypeScript** 的桌面音乐播放
| `@/*` | `src/*` | 渲染进程 |
| `@shared/*` | `shared/*` | 主进程 + 渲染进程 + 原生类型 |
| `@main/*` | `electron/main/*` | 主进程 |
| `@server/*` | `electron/server/*` | 主进程 |
| `@windows/*` | `windows/*` | 三个独立歌词窗口(复用 `windows/shared/`) |
| `@splayer/audio-engine` | `native/audio-engine` | 主进程,类型从自动生成的 `index.d.ts` 导入 |
| `@splayer/media-ctrl` | `native/media-ctrl` | 同上 |
Expand Down
5 changes: 3 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ Two-tier position tracking to separate high-frequency animation from low-frequen

### Type System

- **`src/types/song.ts`** — `Track` (playlist-friendly, lightweight), `TrackDetail` (on-demand), `Artist`, `Album`, `AudioQuality`, `OnlineMatch`, `ExternalLyric`
- **`src/types/player.ts`** — `PlayerState`, `PlayerStatus`, `PlayerEvent`, `LoadResult`, `PlayerApi`, `IpcResponse`
- **`shared/types/player.ts`** — `Track` (playlist-friendly, lightweight), `TrackDetail` (on-demand), `Artist`, `Album`, `AudioQuality`, `PlayerState`, `PlayerStatus`, `PlayerEvent`, `LoadResult`, `PlayerApi`, `IpcResponse`
- **`shared/types/lyrics.ts`** — `LyricFormat`, `LyricSource`(`"external" | "embedded" | "online"`), `LyricData`(当前激活歌词描述:source + format + 可选 platform), `LyricLine`, `LyricWord`, `LyricSpan`
- **`shared/types/platform.ts`** — `Platform`(`"netease" | "qqmusic" | "kugou"`)

`Track` is designed for playlist storage (no lyrics/heavy data). `TrackDetail` is loaded on demand when a track becomes active.

Expand Down
8 changes: 8 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,24 @@ declare module 'vue' {
DropdownMenuTrigger: typeof import('reka-ui')['DropdownMenuTrigger']
EffectsLyrics: typeof import('./src/components/player/EffectsLyrics/index.vue')['default']
FullPlayer: typeof import('./src/components/player/FullPlayer/index.vue')['default']
IconLucideArrowUpCircle: typeof import('~icons/lucide/arrow-up-circle')['default']
IconLucideCheck: typeof import('~icons/lucide/check')['default']
IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default']
IconLucideChevronLeft: typeof import('~icons/lucide/chevron-left')['default']
IconLucideChevronRight: typeof import('~icons/lucide/chevron-right')['default']
IconLucideChevronUp: typeof import('~icons/lucide/chevron-up')['default']
IconLucideCircleCheck: typeof import('~icons/lucide/circle-check')['default']
IconLucideCircleX: typeof import('~icons/lucide/circle-x')['default']
IconLucideDatabase: typeof import('~icons/lucide/database')['default']
IconLucideDisc3: typeof import('~icons/lucide/disc3')['default']
IconLucideEllipsis: typeof import('~icons/lucide/ellipsis')['default']
IconLucideExternalLink: typeof import('~icons/lucide/external-link')['default']
IconLucideFolder: typeof import('~icons/lucide/folder')['default']
IconLucideFolderOpen: typeof import('~icons/lucide/folder-open')['default']
IconLucideFolderPlus: typeof import('~icons/lucide/folder-plus')['default']
IconLucideHardDrive: typeof import('~icons/lucide/hard-drive')['default']
IconLucideInfo: typeof import('~icons/lucide/info')['default']
IconLucideLink: typeof import('~icons/lucide/link')['default']
IconLucideListMusic: typeof import('~icons/lucide/list-music')['default']
IconLucideLocate: typeof import('~icons/lucide/locate')['default']
IconLucideLock: typeof import('~icons/lucide/lock')['default']
Expand All @@ -64,6 +69,8 @@ declare module 'vue' {
IconLucideMusic: typeof import('~icons/lucide/music')['default']
IconLucidePause: typeof import('~icons/lucide/pause')['default']
IconLucidePlay: typeof import('~icons/lucide/play')['default']
IconLucidePower: typeof import('~icons/lucide/power')['default']
IconLucidePuzzle: typeof import('~icons/lucide/puzzle')['default']
IconLucideRefreshCw: typeof import('~icons/lucide/refresh-cw')['default']
IconLucideRepeat: typeof import('~icons/lucide/repeat')['default']
IconLucideRepeat1: typeof import('~icons/lucide/repeat1')['default']
Expand All @@ -89,6 +96,7 @@ declare module 'vue' {
PlayerCover: typeof import('./src/components/player/FullPlayer/PlayerCover.vue')['default']
PlayerData: typeof import('./src/components/player/FullPlayer/PlayerData.vue')['default']
PlaylistPanel: typeof import('./src/components/list/PlaylistPanel.vue')['default']
PluginManager: typeof import('./src/components/settings/custom/PluginManager.vue')['default']
PopoverArrow: typeof import('reka-ui')['PopoverArrow']
PopoverContent: typeof import('reka-ui')['PopoverContent']
PopoverPortal: typeof import('reka-ui')['PopoverPortal']
Expand Down
2 changes: 1 addition & 1 deletion demo/audio-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ Rust 编译为 WASM,通过 `wasm-bindgen` 暴露给前端。
| ----- | ---------- | --------------- | --------------------------------- |
| LRC | `lrc.rs` | nom | 标准时间标签格式 `[mm:ss.ms]text` |
| TTML | `ttml/` | quick-xml + nom | Apple Music 格式,逐字时间 |
| YRC | `yrc.rs` | nom | 网易云格式,base64 编码 |
| YRC | `yrc.rs` | nom | Netease 格式,base64 编码 |
| QRC | `qrc.rs` | nom | QQ 音乐格式,加密 |
| EQRC | `eqrc/` | nom | QRC 加密变体 |
| LYS | `lys.rs` | nom | 荔枝 FM 格式 |
Expand Down
Loading
Loading