feat: integrate lyrics module with UI
- Add lyricsStore for frontend state management with LRC parsing - Wire LyricsSidebar to main layout with toggle button in NowPlayingBar - Fix Rust compile errors (add Clone to LrclibItem, remove unused import) - Add lyrics active line tracking with binary search - Auto-start/stop lyrics updates based on playback state
This commit is contained in:
1 parent
a3a766ba34
commit
80ff8afa3a
6 files changed
+533
-6
No files matched your search
@@ -7,7 +7,6 @@ pub mod commands;
|
||||
pub mod providers;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ pub struct LyricsData {
|
||||
pub provider: LyricsProvider,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
struct LrclibItem {
|
||||
#[serde(default)]
|
||||
|
||||
Reference in new issue
Block a user