feat: wire up discover playlists browse page with navigation and i18n
This commit is contained in:
1 parent
0f8bba5f89
commit
b76b369d9b
7 files changed
+38
-6
No files matched your search
@@ -127,6 +127,7 @@
|
||||
onNavigateQobuzissimes?: () => void;
|
||||
onNavigateAlbumsOfTheWeek?: () => void;
|
||||
onNavigatePressAccolades?: () => void;
|
||||
onNavigateQobuzPlaylists?: () => void;
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -172,6 +173,7 @@
|
||||
onNavigateQobuzissimes,
|
||||
onNavigateAlbumsOfTheWeek,
|
||||
onNavigatePressAccolades,
|
||||
onNavigateQobuzPlaylists,
|
||||
}: Props = $props();
|
||||
|
||||
// Home settings state
|
||||
@@ -1151,7 +1153,12 @@
|
||||
{:else if qobuzPlaylists.length > 0}
|
||||
<HorizontalScrollRow>
|
||||
{#snippet header()}
|
||||
<h2 class="section-title">{$t('home.qobuzPlaylists')}</h2>
|
||||
<div class="section-header-group">
|
||||
<h2 class="section-title">{$t('home.qobuzPlaylists')}</h2>
|
||||
{#if onNavigateQobuzPlaylists}
|
||||
<button class="see-all-link" onclick={onNavigateQobuzPlaylists}>{$t('home.seeAll')}<ArrowRight size={14} /></button>
|
||||
{/if}
|
||||
</div>
|
||||
{#if playlistTags.length > 0}
|
||||
<PlaylistTagFilter
|
||||
tags={playlistTags}
|
||||
|
||||
@@ -56,7 +56,10 @@
|
||||
"backToHome": "Zurück zur Startseite",
|
||||
"qobuzissimes": "Qobuzissimes",
|
||||
"albumsOfTheWeek": "Alben der Woche",
|
||||
"pressAccolades": "Presseauszeichnungen"
|
||||
"pressAccolades": "Presseauszeichnungen",
|
||||
"qobuzPlaylists": "Qobuz-Playlists",
|
||||
"searchPlaylistsPlaceholder": "Playlists suchen...",
|
||||
"noPlaylistResults": "Keine Playlists gefunden"
|
||||
},
|
||||
"search": {
|
||||
"title": "Suchen",
|
||||
|
||||
@@ -59,7 +59,10 @@
|
||||
"backToHome": "Back to Home",
|
||||
"qobuzissimes": "Qobuzissimes",
|
||||
"albumsOfTheWeek": "Albums of the Week",
|
||||
"pressAccolades": "Press Accolades"
|
||||
"pressAccolades": "Press Accolades",
|
||||
"qobuzPlaylists": "Qobuz Playlists",
|
||||
"searchPlaylistsPlaceholder": "Search playlists...",
|
||||
"noPlaylistResults": "No playlists found"
|
||||
},
|
||||
"search": {
|
||||
"title": "Search",
|
||||
|
||||
@@ -59,7 +59,10 @@
|
||||
"backToHome": "Volver al Inicio",
|
||||
"qobuzissimes": "Qobuzissimes",
|
||||
"albumsOfTheWeek": "Álbumes de la Semana",
|
||||
"pressAccolades": "Reconocimientos de Prensa"
|
||||
"pressAccolades": "Reconocimientos de Prensa",
|
||||
"qobuzPlaylists": "Playlists de Qobuz",
|
||||
"searchPlaylistsPlaceholder": "Buscar playlists...",
|
||||
"noPlaylistResults": "No se encontraron playlists"
|
||||
},
|
||||
"search": {
|
||||
"title": "Buscar",
|
||||
|
||||
@@ -56,7 +56,10 @@
|
||||
"backToHome": "Retour à l'accueil",
|
||||
"qobuzissimes": "Qobuzissimes",
|
||||
"albumsOfTheWeek": "Albums de la semaine",
|
||||
"pressAccolades": "Distinctions de la presse"
|
||||
"pressAccolades": "Distinctions de la presse",
|
||||
"qobuzPlaylists": "Playlists Qobuz",
|
||||
"searchPlaylistsPlaceholder": "Rechercher des playlists...",
|
||||
"noPlaylistResults": "Aucune playlist trouvée"
|
||||
},
|
||||
"search": {
|
||||
"title": "Recherche",
|
||||
|
||||
@@ -28,7 +28,8 @@ export type ViewType =
|
||||
| 'discover-top-albums'
|
||||
| 'discover-qobuzissimes'
|
||||
| 'discover-albums-of-the-week'
|
||||
| 'discover-press-accolades';
|
||||
| 'discover-press-accolades'
|
||||
| 'discover-playlists';
|
||||
export type FavoritesTab = 'tracks' | 'albums' | 'artists' | 'playlists';
|
||||
|
||||
// Navigation state
|
||||
|
||||
@@ -315,6 +315,7 @@
|
||||
import PlaylistManagerView from '$lib/components/views/PlaylistManagerView.svelte';
|
||||
import BlacklistManagerView from '$lib/components/views/BlacklistManagerView.svelte';
|
||||
import DiscoverBrowseView from '$lib/components/views/DiscoverBrowseView.svelte';
|
||||
import DiscoverPlaylistsBrowseView from '$lib/components/views/DiscoverPlaylistsBrowseView.svelte';
|
||||
|
||||
// Overlays
|
||||
import QueuePanel from '$lib/components/QueuePanel.svelte';
|
||||
@@ -3121,6 +3122,7 @@
|
||||
onNavigateQobuzissimes={() => navigateTo('discover-qobuzissimes')}
|
||||
onNavigateAlbumsOfTheWeek={() => navigateTo('discover-albums-of-the-week')}
|
||||
onNavigatePressAccolades={() => navigateTo('discover-press-accolades')}
|
||||
onNavigateQobuzPlaylists={() => navigateTo('discover-playlists')}
|
||||
/>
|
||||
{/if}
|
||||
{:else if activeView === 'search'}
|
||||
@@ -3517,6 +3519,16 @@
|
||||
{downloadStateVersion}
|
||||
onArtistClick={handleArtistClick}
|
||||
/>
|
||||
{:else if activeView === 'discover-playlists'}
|
||||
<DiscoverPlaylistsBrowseView
|
||||
onBack={navGoBack}
|
||||
onPlaylistClick={selectPlaylist}
|
||||
onPlaylistPlay={playPlaylistById}
|
||||
onPlaylistPlayNext={queuePlaylistNextById}
|
||||
onPlaylistPlayLater={queuePlaylistLaterById}
|
||||
onPlaylistCopyToLibrary={copyPlaylistToLibraryById}
|
||||
onPlaylistShareQobuz={sharePlaylistQobuzLinkById}
|
||||
/>
|
||||
{/if}
|
||||
</main>
|
||||
|
||||
|
||||
Reference in new issue
Block a user