feat: Implement offline library synchronization with IndexedDB

- Added `useOfflineLibrarySync` hook for managing offline library sync operations.
- Created `OfflineLibrarySync` component for UI integration.
- Developed `offlineLibraryDB` for IndexedDB interactions, including storing and retrieving albums, artists, songs, and playlists.
- Implemented sync operations for starred items, playlists, and scrobbling.
- Added auto-sync functionality when coming back online.
- Included metadata management for sync settings and statistics.
- Enhanced error handling and user feedback through toasts.
This commit is contained in:
2025-08-08 20:04:06 +00:00
committed by GitHub
parent 0a0feb3748
commit 3839a1be2d
13 changed files with 2102 additions and 113 deletions

35
.vscode/launch.json vendored
View File

@@ -17,7 +17,34 @@
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
]
],
"serverReadyAction": {
"action": "openExternally",
"pattern": "http://localhost:40625"
}
},
{
"name": "Debug: Development (Verbose)",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "dev"],
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "development",
"DEBUG": "*",
"NEXT_TELEMETRY_DISABLED": "1"
},
"console": "integratedTerminal",
"skipFiles": ["<node_internals>/**"],
"resolveSourceMapLocations": [
"${workspaceFolder}/**",
"!**/node_modules/**"
],
"serverReadyAction": {
"action": "openExternally",
"pattern": "http://localhost:40625"
}
},
{
"name": "Debug: Next.js Production",
@@ -32,7 +59,11 @@
"preLaunchTask": "Build: Production Build Only",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "start"],
"skipFiles": ["<node_internals>/**"]
"skipFiles": ["<node_internals>/**"],
"serverReadyAction": {
"action": "openExternally",
"pattern": "http://localhost:40625"
}
}
]
}