From e9e466bcb5c1d089401ef852a59ec77c068e110f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Thu, 17 Oct 2019 14:15:33 +0200 Subject: [PATCH] Added placeholders across the application --- changes/changelog.d/750.enhancement | 1 + front/src/components/audio/album/Widget.vue | 9 +- front/src/components/audio/track/Widget.vue | 13 +- front/src/components/favorites/List.vue | 15 +- front/src/components/library/Albums.vue | 17 + front/src/components/library/Artists.vue | 17 + front/src/components/library/Radios.vue | 19 +- .../manage/moderation/DomainsTable.vue | 8 +- .../playlists/PlaceholderWidget.vue | 18 - .../components/playlists/PlaylistModal.vue | 12 + front/src/components/playlists/Widget.vue | 25 +- .../views/content/libraries/FilesTable.vue | 319 +++++++++++------- front/src/views/playlists/Detail.vue | 14 +- front/src/views/playlists/List.vue | 19 +- front/src/views/radios/Detail.vue | 17 +- 15 files changed, 369 insertions(+), 154 deletions(-) create mode 100644 changes/changelog.d/750.enhancement delete mode 100644 front/src/components/playlists/PlaceholderWidget.vue diff --git a/changes/changelog.d/750.enhancement b/changes/changelog.d/750.enhancement new file mode 100644 index 000000000..5c66ad162 --- /dev/null +++ b/changes/changelog.d/750.enhancement @@ -0,0 +1 @@ +Placeholders will now be shown if no content is available across the application (#750) \ No newline at end of file diff --git a/front/src/components/audio/album/Widget.vue b/front/src/components/audio/album/Widget.vue index c9e395f3c..e5ee7f742 100644 --- a/front/src/components/audio/album/Widget.vue +++ b/front/src/components/audio/album/Widget.vue @@ -35,7 +35,14 @@ -
No results matching your query.
+ diff --git a/front/src/components/audio/track/Widget.vue b/front/src/components/audio/track/Widget.vue index 788d279d0..235659564 100644 --- a/front/src/components/audio/track/Widget.vue +++ b/front/src/components/audio/track/Widget.vue @@ -7,7 +7,7 @@ -
+
@@ -51,6 +51,17 @@
+
+
+ + + Nothing found + +
+
+
+
+
diff --git a/front/src/components/favorites/List.vue b/front/src/components/favorites/List.vue index 6402d417f..f7d37369c 100644 --- a/front/src/components/favorites/List.vue +++ b/front/src/components/favorites/List.vue @@ -18,7 +18,7 @@ -
+
@@ -46,7 +46,6 @@
-
+
+
+ + No tracks have been added to your favorites yet +
+ + + Browse the library + +
diff --git a/front/src/components/library/Albums.vue b/front/src/components/library/Albums.vue index 7aad836f0..07e20b22e 100644 --- a/front/src/components/library/Albums.vue +++ b/front/src/components/library/Albums.vue @@ -59,6 +59,23 @@ :key="album.id" :album="album">
+
+
+ + + No results matching your query + +
+ + + + Add some music + + +
+
+
+ + + No results matching your query + +
+ + + + Add some music + + +
+
+
+ + + No results matching your query + +
+ + + + Create a radio + + +
-
+
-
+
@@ -90,6 +90,12 @@
+
+
+ + No interactions with other pods yet +
+
diff --git a/front/src/views/playlists/Detail.vue b/front/src/views/playlists/Detail.vue index 3b6b9000b..5dc99e78b 100644 --- a/front/src/views/playlists/Detail.vue +++ b/front/src/views/playlists/Detail.vue @@ -55,7 +55,6 @@
-
@@ -64,7 +63,6 @@
-
- diff --git a/front/src/views/playlists/List.vue b/front/src/views/playlists/List.vue index 1ff56b5d5..9fb53fd66 100644 --- a/front/src/views/playlists/List.vue +++ b/front/src/views/playlists/List.vue @@ -40,7 +40,24 @@
- + +
+
+ + + No results matching your query + +
+ +
-
+

Tracks

@@ -44,6 +44,21 @@ >
+
+
+ + No tracks have been added to this radio yet +
+ + + Edit… + +