From 688e7d828255d48ce58ebe49f314816c63733966 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Mon, 2 Jan 2023 15:29:40 +0300 Subject: [PATCH] refactor the "SEE ALL" button into a component --- src/assets/scss/Global/album-grid.scss | 2 +- src/components/AlbumView/ArtistAlbums.vue | 18 ++----- src/components/ArtistView/Albums.vue | 53 --------------------- src/components/ArtistView/TopTracks.vue | 14 +----- src/components/FolderView/FolderList.vue | 9 ++-- src/components/PlaylistView/ArtistsList.vue | 11 +++-- src/components/shared/SeeAll.vue | 23 +++++++++ src/router/routes.ts | 8 ++++ src/settings/strings.ts | 4 ++ src/views/AlbumsGrid.vue | 4 +- src/views/ArtistView/Main.vue | 4 -- src/views/FavoriteAlbums.vue | 4 +- src/views/FavoriteArtists.vue | 25 ++++++++++ src/views/Favorites.vue | 6 +-- 14 files changed, 84 insertions(+), 101 deletions(-) delete mode 100644 src/components/ArtistView/Albums.vue create mode 100644 src/components/shared/SeeAll.vue create mode 100644 src/views/FavoriteArtists.vue diff --git a/src/assets/scss/Global/album-grid.scss b/src/assets/scss/Global/album-grid.scss index 607941bb..21131380 100644 --- a/src/assets/scss/Global/album-grid.scss +++ b/src/assets/scss/Global/album-grid.scss @@ -1,4 +1,4 @@ -.album-grid-view { +.card-grid-view { height: 100%; .scrollable { diff --git a/src/components/AlbumView/ArtistAlbums.vue b/src/components/AlbumView/ArtistAlbums.vue index 2866c1c7..db5b9047 100644 --- a/src/components/AlbumView/ArtistAlbums.vue +++ b/src/components/AlbumView/ArtistAlbums.vue @@ -2,15 +2,13 @@

{{ title }} - - SEE ALL - + />

@@ -25,6 +23,7 @@ import { discographyAlbumTypes } from "@/composables/enums"; import useArtistDiscographyStore from "@/stores/pages/artistDiscog"; import AlbumCard from "../shared/AlbumCard.vue"; +import SeeAll from "../shared/SeeAll.vue"; defineProps<{ title: string; @@ -45,15 +44,6 @@ defineProps<{ align-items: center; padding: 0 $medium; margin-bottom: $small; - - .see-all { - font-size: $medium; - - a:hover { - text-decoration: underline; - cursor: pointer !important; - } - } } .cards { diff --git a/src/components/ArtistView/Albums.vue b/src/components/ArtistView/Albums.vue deleted file mode 100644 index 79906a63..00000000 --- a/src/components/ArtistView/Albums.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - diff --git a/src/components/ArtistView/TopTracks.vue b/src/components/ArtistView/TopTracks.vue index fc027814..8535330d 100644 --- a/src/components/ArtistView/TopTracks.vue +++ b/src/components/ArtistView/TopTracks.vue @@ -2,9 +2,7 @@

{{ title }} - - SEE ALL - +

diff --git a/src/components/FolderView/FolderList.vue b/src/components/FolderView/FolderList.vue index 8d540b12..c4398d35 100644 --- a/src/components/FolderView/FolderList.vue +++ b/src/components/FolderView/FolderList.vue @@ -1,6 +1,6 @@