mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-08 12:15:39 +00:00
refactor simple nav componnents
+ add nav for favorite artists
This commit is contained in:
parent
688e7d8282
commit
a8dc816d0b
@ -15,10 +15,26 @@
|
|||||||
<ArtistDiscographyTitle
|
<ArtistDiscographyTitle
|
||||||
v-if="$route.name == Routes.artistDiscography"
|
v-if="$route.name == Routes.artistDiscography"
|
||||||
/>
|
/>
|
||||||
<ArtistTracksTitle v-if="$route.name == Routes.artistTracks" />
|
<SimpleNav
|
||||||
<FavoritesNav v-if="$route.name === Routes.favorites" />
|
v-if="$route.name == Routes.artistTracks"
|
||||||
<FavoriteAlbumsNav v-if="$route.name === Routes.favoriteAlbums" />
|
:text="$route.query.artist as string || 'Artist Tracks'"
|
||||||
<FavoriteTracksNav v-if="$route.name === Routes.favoriteTracks" />
|
/>
|
||||||
|
<SimpleNav
|
||||||
|
v-if="$route.name === Routes.favorites"
|
||||||
|
:text="'Favorites ❤️'"
|
||||||
|
/>
|
||||||
|
<SimpleNav
|
||||||
|
v-if="$route.name === Routes.favoriteAlbums"
|
||||||
|
:text="'Favorite Albums ❤️'"
|
||||||
|
/>
|
||||||
|
<SimpleNav
|
||||||
|
v-if="$route.name === Routes.favoriteArtists"
|
||||||
|
:text="'Favorite Artists ❤️'"
|
||||||
|
/>
|
||||||
|
<SimpleNav
|
||||||
|
v-if="$route.name === Routes.favoriteTracks"
|
||||||
|
:text="'Favorite Tracks ❤️'"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -35,18 +51,14 @@ import { createSubPaths } from "@/utils";
|
|||||||
import NavButtons from "./NavButtons.vue";
|
import NavButtons from "./NavButtons.vue";
|
||||||
|
|
||||||
import FolderTitle from "./Titles/Folder.vue";
|
import FolderTitle from "./Titles/Folder.vue";
|
||||||
|
import SimpleNav from "./Titles/SimpleNav.vue";
|
||||||
import PlaylistsTitle from "./Titles/PlaylistsTitle.vue";
|
import PlaylistsTitle from "./Titles/PlaylistsTitle.vue";
|
||||||
import QueueTitle from "./Titles/QueueTitle.vue";
|
import QueueTitle from "./Titles/QueueTitle.vue";
|
||||||
import SearchTitle from "./Titles/SearchTitle.vue";
|
import SearchTitle from "./Titles/SearchTitle.vue";
|
||||||
import SettingsTitle from "./Titles/SettingsTitle.vue";
|
import SettingsTitle from "./Titles/SettingsTitle.vue";
|
||||||
import ArtistDiscographyTitle from "./Titles/ArtistDiscographyTitle.vue";
|
import ArtistDiscographyTitle from "./Titles/ArtistDiscographyTitle.vue";
|
||||||
import ArtistTracksTitle from "./Titles/ArtistTracksTitle.vue";
|
|
||||||
import FavoritesNav from "./Titles/FavoritesNav.vue";
|
|
||||||
import FavoriteAlbumsNav from "./Titles/FavoriteAlbumsNav.vue";
|
|
||||||
import FavoriteTracksNav from "./Titles/FavoriteTracksNav.vue";
|
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const subPaths = ref<subPath[]>([]);
|
const subPaths = ref<subPath[]>([]);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="artist-tracks-nav">
|
|
||||||
<h2 style="margin: 0">{{ $route.query.artist }}</h2>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
@ -1,3 +0,0 @@
|
|||||||
<template>
|
|
||||||
<h2 style="margin: 0">Favorite albums ❤️</h2>
|
|
||||||
</template>
|
|
@ -1,3 +0,0 @@
|
|||||||
<template>
|
|
||||||
<h2 style="margin: 0">Favorite Tracks ❤️</h2>
|
|
||||||
</template>
|
|
@ -1,3 +0,0 @@
|
|||||||
<template>
|
|
||||||
<h2 style="margin: 0">Favorites</h2>
|
|
||||||
</template>
|
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="playlists-nav">
|
<div class="playlists-nav">
|
||||||
<SimpleTitle :text="'Playlists'" />
|
<SimpleNav :text="'Playlists'" />
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button @click="showNewPlaylistModal()"><PlusSvg /> New Playlist</button>
|
<button @click="showNewPlaylistModal()"><PlusSvg /> New Playlist</button>
|
||||||
</div>
|
</div>
|
||||||
@ -8,7 +8,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SimpleTitle from "./SimpleTitle.vue";
|
import SimpleNav from "./SimpleNav.vue";
|
||||||
import PlusSvg from "../../../assets/icons/plus.svg";
|
import PlusSvg from "../../../assets/icons/plus.svg";
|
||||||
|
|
||||||
import useModalStore from "@/stores/modal";
|
import useModalStore from "@/stores/modal";
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="settings-nav">
|
<div class="settings-nav">
|
||||||
<SimpleTitle :text="'Settings'" />
|
<SimpleNav :text="'Settings'" />
|
||||||
<Nav />
|
<Nav />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SimpleTitle from "./SimpleTitle.vue";
|
import SimpleNav from "./SimpleNav.vue";
|
||||||
import Nav from "@/components/SettingsView/Nav.vue";
|
import Nav from "@/components/SettingsView/Nav.vue";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="title">{{ text }}</div>
|
<h2 style="margin: 0">{{ text }}</h2>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
Loading…
x
Reference in New Issue
Block a user