diff --git a/src/app/api/types/level.ts b/src/app/api/types/level.ts index 82a8ba5..4438d73 100644 --- a/src/app/api/types/level.ts +++ b/src/app/api/types/level.ts @@ -14,4 +14,5 @@ export interface Level { publisher: User teamPicked: boolean gameVersion: number + score: number } diff --git a/src/app/components/level-statistics/level-statistics.component.html b/src/app/components/level-statistics/level-statistics.component.html index c9ed6c8..1678627 100644 --- a/src/app/components/level-statistics/level-statistics.component.html +++ b/src/app/components/level-statistics/level-statistics.component.html @@ -1,18 +1,22 @@
-
- - {{level.yayRatings}} -
-
- - {{level.booRatings}} -
-
- - {{level.hearts}} -
-
- - {{level.uniquePlays}} -
+
+ + {{level.yayRatings}} +
+
+ + {{level.booRatings}} +
+
+ + {{level.hearts}} +
+
+ + {{level.uniquePlays}} +
+
+ + {{level.score | number:'1.0-1'}} +
diff --git a/src/app/components/level-statistics/level-statistics.component.ts b/src/app/components/level-statistics/level-statistics.component.ts index f6476fc..c03c9c4 100644 --- a/src/app/components/level-statistics/level-statistics.component.ts +++ b/src/app/components/level-statistics/level-statistics.component.ts @@ -1,5 +1,5 @@ import {Component, Input} from '@angular/core'; -import {faHeart, faPlay, faThumbsDown, faThumbsUp} from "@fortawesome/free-solid-svg-icons"; +import {faHeart, faPlay, faStar, faThumbsDown, faThumbsUp} from "@fortawesome/free-solid-svg-icons"; import {Level} from "../../api/types/level"; @Component({ @@ -13,4 +13,5 @@ export class LevelStatisticsComponent { protected readonly faPlay = faPlay; protected readonly faThumbsUp = faThumbsUp; protected readonly faThumbsDown = faThumbsDown; + protected readonly faStar = faStar; }