From 6c55117c0d6a5d4b39d8f84936ee0ef149ae9627 Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Fri, 5 May 2017 04:25:38 +0200 Subject: [PATCH] Add Artist stats --- dashboard/src/app/artist.component.html | 62 ++++++++++++++++++++++- dashboard/src/app/dashboard.component.css | 5 ++ 2 files changed, 65 insertions(+), 2 deletions(-) diff --git a/dashboard/src/app/artist.component.html b/dashboard/src/app/artist.component.html index 4c20545..cac0a67 100644 --- a/dashboard/src/app/artist.component.html +++ b/dashboard/src/app/artist.component.html @@ -1,11 +1,33 @@ -

{{albumName}}

+
+

{{artistName}}

Debug Zone

Returned song: {{songs.length}}
+ Theorical song: {{ artist ? artist['Track Count'] : "" }} + +
+
+
+
+
+
+ +
+
+
+

+

{{artist.Rating}}/100

+
+

Rating
+
+
+
+
+
@@ -18,7 +40,43 @@

{{artist.Album?.length}}

-

albums
+

Albums
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+

+

{{artist['Track Count']}}

+
+

Songs
+
+
+
+
+
+
+
+
+
+
+ +
+
+
+

+

{{artist['Play Count']}} list.

+
+

~{{artist['Play Count'] / artist['Track Count'] | number:'1.0-0'}} listening avg.
diff --git a/dashboard/src/app/dashboard.component.css b/dashboard/src/app/dashboard.component.css index 9c5e289..77825c4 100644 --- a/dashboard/src/app/dashboard.component.css +++ b/dashboard/src/app/dashboard.component.css @@ -16,6 +16,11 @@ color:white; } +.panel-purple { + background-color: #9b59b6; + color:white; +} + .panel-blue { background-color: #3498db; color:white;