added MPRE* support

+ a few strings from #139
+ minor cleanup
This commit is contained in:
Shiny Nematoda 2023-08-12 07:58:58 +00:00
parent d673c0d998
commit d4eee69077
11 changed files with 30 additions and 29 deletions

View file

@ -23,9 +23,7 @@ import Artist from '@/components/Artist.vue';
/* Async Components */
const Genres = defineAsyncComponent(() => import('@/components/Genres.vue')),
Charts = defineAsyncComponent(() => import('@/components/Charts.vue')),
NewPlaylist = defineAsyncComponent(() =>
import('@/components/NewPlaylist.vue'),
),
Library = defineAsyncComponent(() => import('@/components/Library.vue')),
Prefs = defineAsyncComponent(() => import('@/components/Prefs.vue'));
/* Composables */
@ -77,6 +75,9 @@ function parseUrl() {
genreid.value = loc[2];
nav.state.page = 'explore';
break;
case 'browse':
if (loc[2].startsWith('MPRE')) results.getAlbum('?list=' + loc[2]);
break;
case 'charts':
nav.state.page = 'charts';
break;
@ -171,7 +172,7 @@ onMounted(() => {
<Charts v-if="nav.state.page == 'charts'" @play-urls="playList" />
</KeepAlive>
<NewPlaylist
<Library
v-if="nav.state.page == 'library'"
@play-urls="playList"
@open-playlist="results.getAlbum" />