feat(playlists): Add playlist management - filter, sort, view modes, collage artwork
- Add PlaylistCollage component with Qobuz-style overlapping covers - Add playlist_settings columns (hidden, position) with migration - Add playlist_stats table for play count tracking - Add backend commands for playlist management: - playlist_get_all_settings, playlist_set_hidden - playlist_set_position, playlist_reorder - playlist_get_stats, playlist_get_all_stats - playlist_increment_play_count - Update Sidebar with filter dropdown (All/Visible/Hidden) - Add sort dropdown (Name/Recent/Custom) - Add view toggle between list and grid modes - Fix TypeScript errors in +page.svelte and TitleBar.svelte
This commit is contained in:
1 parent
7affd2bf13
commit
3fb9ee1381
8 files changed
+874
-33
No files matched your search
@@ -6,19 +6,23 @@
|
||||
let isMaximized = $state(false);
|
||||
let appWindow: ReturnType<typeof getCurrentWindow>;
|
||||
|
||||
onMount(async () => {
|
||||
appWindow = getCurrentWindow();
|
||||
onMount(() => {
|
||||
let unlisten: (() => void) | undefined;
|
||||
|
||||
// Check initial maximized state
|
||||
isMaximized = await appWindow.isMaximized();
|
||||
(async () => {
|
||||
appWindow = getCurrentWindow();
|
||||
|
||||
// Listen for window state changes
|
||||
const unlisten = await appWindow.onResized(async () => {
|
||||
// Check initial maximized state
|
||||
isMaximized = await appWindow.isMaximized();
|
||||
});
|
||||
|
||||
// Listen for window state changes
|
||||
unlisten = await appWindow.onResized(async () => {
|
||||
isMaximized = await appWindow.isMaximized();
|
||||
});
|
||||
})();
|
||||
|
||||
return () => {
|
||||
unlisten();
|
||||
unlisten?.();
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user