From 06be5d3299f91a1925b46781880df8b7ba5d36c4 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Fri, 16 Feb 2024 17:22:15 -0500 Subject: [PATCH] highscores --- .../components/splash/splash.component.html | 55 +++++++++++++++++++ src/app/components/splash/splash.component.ts | 2 + 2 files changed, 57 insertions(+) diff --git a/src/app/components/splash/splash.component.html b/src/app/components/splash/splash.component.html index cee89b9..a19a1f7 100644 --- a/src/app/components/splash/splash.component.html +++ b/src/app/components/splash/splash.component.html @@ -130,6 +130,61 @@ + +
+
+

High Scores

+ + + + + Difficulty + Device + When + + + + + + {{ highScore.bestDifficulty | numberSuffix }} + {{ highScore.bestDifficultyUserAgent }} + {{ highScore.updatedAt | dateAgo}} + + + +
+ = Open Source Software & Hardware +
+
+ + + + + Device + Currently Working + Total Hash Rate + Best Difficulty + + + + + + + + + + + + + + +
+
+ + + +

Found Blocks

diff --git a/src/app/components/splash/splash.component.ts b/src/app/components/splash/splash.component.ts index fbbc06d..f3712d5 100644 --- a/src/app/components/splash/splash.component.ts +++ b/src/app/components/splash/splash.component.ts @@ -19,6 +19,7 @@ export class SplashComponent { public chartData$: Observable; public blockData$: Observable; public userAgents$: Observable; + public highScores$: Observable; public uptime$: Observable; public chartOptions: any; @@ -38,6 +39,7 @@ export class SplashComponent { this.blockData$ = info$.pipe(map(info => info.blockData)); this.userAgents$ = info$.pipe(map(info => info.userAgents)); + this.highScores$ = info$.pipe(map(info => info.highScores)); this.uptime$ = info$.pipe(map(info => info.uptime)) this.chartData$ = this.appService.getInfoChart().pipe(