diff --git a/src/app/components/dashboard/dashboard.component.html b/src/app/components/dashboard/dashboard.component.html index 0b7af4c..7042fee 100644 --- a/src/app/components/dashboard/dashboard.component.html +++ b/src/app/components/dashboard/dashboard.component.html @@ -1,4 +1,4 @@ - +
@@ -8,7 +8,14 @@ Your Best Difficulty -
{{clientInfo.bestDifficulty | numberSuffix}} +
+ + {{clientInfo.bestDifficulty | + numberSuffix}} + + +
- {{clientInfo.bestDifficulty | number}} + + + {{clientInfo.bestDifficulty | + number}} + + + +
- +
Network Difficulty -
{{networkInfo.difficulty | numberSuffix}} +
+ {{networkInfo.difficulty | + numberSuffix}} +
+
- {{networkInfo.difficulty | number}} + + + {{networkInfo.difficulty + | number}} + +
@@ -44,7 +68,10 @@
Network Hash Rate -
{{networkInfo.networkhashps | hashSuffix}} +
+ + {{networkInfo.networkhashps | hashSuffix}} +
- Weight: {{networkInfo.currentblockweight | number}} + Weight: + + {{networkInfo.currentblockweight | number}} + +
- + + - - - Name - Session ID - Hash Rate - Session Best Difficulty - Uptime - Last Seen - - + + + Name + Session ID + Hash Rate + Session Best Difficulty + Uptime + Last Seen + + - - - - + + + + - {{worker.name}} + {{worker.name}} - - - {{getSessionCount(worker.name, clientInfo.workers)}} Sessions - - - {{getTotalHashRate(worker.name, clientInfo.workers) | hashSuffix}} - - - {{getBestDifficulty(worker.name, clientInfo.workers) | numberSuffix}} - - + + + {{getSessionCount(worker.name, clientInfo.workers)}} Sessions + + + {{getTotalHashRate(worker.name, clientInfo.workers) | hashSuffix}} + + + {{getBestDifficulty(worker.name, clientInfo.workers) | numberSuffix}} + + - - - - + + + + - - - - {{worker.sessionId}} - {{worker.hashRate | hashSuffix}} - {{worker.bestDifficulty | numberSuffix}} - {{worker.startTime | dateAgo}} - {{worker.lastSeen | dateAgo}} - - + + + + {{worker.sessionId}} + {{worker.hashRate | hashSuffix}} + {{worker.bestDifficulty | numberSuffix}} + {{worker.startTime | dateAgo}} + {{worker.lastSeen | dateAgo}} + + - + + + + + + + + + Name + Session ID + Hash Rate + Session Best Difficulty + Uptime + Last Seen + + + + + + + + + + {{worker.name}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -139,11 +233,14 @@
-
-
+ +
+ -
+ + + + +
- - \ No newline at end of file diff --git a/src/app/components/dashboard/dashboard.component.ts b/src/app/components/dashboard/dashboard.component.ts index 479612a..d1331a4 100644 --- a/src/app/components/dashboard/dashboard.component.ts +++ b/src/app/components/dashboard/dashboard.component.ts @@ -37,7 +37,9 @@ export class DashboardComponent implements AfterViewInit { - this.networkInfo$ = this.appService.getNetworkInfo(); + this.networkInfo$ = this.appService.getNetworkInfo().pipe( + shareReplay({ refCount: true, bufferSize: 1 }) + ); this.address = this.route.snapshot.params['address']; this.clientInfo$ = this.clientService.getClientInfo(this.address).pipe( diff --git a/src/app/components/splash/splash.component.html b/src/app/components/splash/splash.component.html index d11866f..ca6c5ea 100644 --- a/src/app/components/splash/splash.component.html +++ b/src/app/components/splash/splash.component.html @@ -58,43 +58,73 @@
-
+
Uptime: {{uptime$ | async | dateAgo}}
+ + - + + + +
-
+

Online Devices

- - - - Device - Currently Working - Total Hash Rate - Best Difficulty - - - - - - {{ userAgent.userAgent | userAgent }} - {{ userAgent.count }} - {{ userAgent.totalHashRate | hashSuffix }} - {{ userAgent.bestDifficulty | numberSuffix}} - - - - + + + + + Device + Currently Working + Total Hash Rate + Best Difficulty + + + + + + + {{ userAgent.userAgent | userAgent }} + {{ userAgent.count }} + {{ userAgent.totalHashRate | hashSuffix }} + {{ userAgent.bestDifficulty | numberSuffix}} + + + + + + + + + Device + Currently Working + Total Hash Rate + Best Difficulty + + + + + + + + + + + + + +
diff --git a/src/prime-ng.module.ts b/src/prime-ng.module.ts index 35d3d0a..979f1cd 100644 --- a/src/prime-ng.module.ts +++ b/src/prime-ng.module.ts @@ -3,6 +3,7 @@ import { ConfirmationService, MessageService } from 'primeng/api'; import { ButtonModule } from 'primeng/button'; import { ChartModule } from 'primeng/chart'; import { InputSwitchModule } from 'primeng/inputswitch'; +import { SkeletonModule } from 'primeng/skeleton'; import { TableModule } from 'primeng/table'; import { TooltipModule } from 'primeng/tooltip'; @@ -16,7 +17,8 @@ const primeNgModules = [ ChartModule, InputSwitchModule, ButtonModule, - TooltipModule + TooltipModule, + SkeletonModule // DropdownModule, // ToastModule, // CheckboxModule,