mirror of
https://github.com/benjamin-wilson/public-pool-ui.git
synced 2025-07-13 08:22:18 +02:00
last seen
This commit is contained in:
@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<p-table [rowHover]="true" groupRowsBy="name" dataKey="name" rowGroupMode="subheader"
|
<p-table [rowHover]="true" groupRowsBy="name" dataKey="name" rowGroupMode="subheader"
|
||||||
[value]="clientInfo.workers" [tableStyle]="{ 'min-width': '50rem' }">
|
[value]="clientInfo.workers" [tableStyle]="{ 'min-width': '50rem' }" dataKey="sessionId">
|
||||||
|
|
||||||
|
|
||||||
<ng-template pTemplate="header">
|
<ng-template pTemplate="header">
|
||||||
@ -87,6 +87,7 @@
|
|||||||
<th>Hash Rate</th>
|
<th>Hash Rate</th>
|
||||||
<th>Session Best Difficulty</th>
|
<th>Session Best Difficulty</th>
|
||||||
<th>Uptime</th>
|
<th>Uptime</th>
|
||||||
|
<th>Last Seen</th>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
@ -111,8 +112,9 @@
|
|||||||
{{getBestDifficulty(worker.name, clientInfo.workers) | numberSuffix}}
|
{{getBestDifficulty(worker.name, clientInfo.workers) | numberSuffix}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{getTotalUptime(worker.name, clientInfo.workers) | dateAgo}} (cumulative)
|
|
||||||
</td>
|
</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
@ -124,6 +126,7 @@
|
|||||||
<td>{{worker.hashRate | hashSuffix}}</td>
|
<td>{{worker.hashRate | hashSuffix}}</td>
|
||||||
<td>{{worker.bestDifficulty | numberSuffix}}</td>
|
<td>{{worker.bestDifficulty | numberSuffix}}</td>
|
||||||
<td>{{worker.startTime | dateAgo}}</td>
|
<td>{{worker.startTime | dateAgo}}</td>
|
||||||
|
<td>{{worker.lastSeen | dateAgo}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ export class DashboardComponent {
|
|||||||
|
|
||||||
public networkInfo$: Observable<any>;
|
public networkInfo$: Observable<any>;
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private clientService: ClientService,
|
private clientService: ClientService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
@ -34,7 +35,7 @@ export class DashboardComponent {
|
|||||||
this.address = this.route.snapshot.params['address'];
|
this.address = this.route.snapshot.params['address'];
|
||||||
this.clientInfo$ = this.clientService.getClientInfo(this.address).pipe(
|
this.clientInfo$ = this.clientService.getClientInfo(this.address).pipe(
|
||||||
shareReplay({ refCount: true, bufferSize: 1 })
|
shareReplay({ refCount: true, bufferSize: 1 })
|
||||||
)
|
);
|
||||||
|
|
||||||
|
|
||||||
const documentStyle = getComputedStyle(document.documentElement);
|
const documentStyle = getComputedStyle(document.documentElement);
|
||||||
@ -98,6 +99,7 @@ export class DashboardComponent {
|
|||||||
|
|
||||||
|
|
||||||
this.chartOptions = {
|
this.chartOptions = {
|
||||||
|
maintainAspectRatio: false,
|
||||||
plugins: {
|
plugins: {
|
||||||
legend: {
|
legend: {
|
||||||
labels: {
|
labels: {
|
||||||
|
@ -52,6 +52,7 @@ export class WorkerGroupComponent {
|
|||||||
|
|
||||||
|
|
||||||
this.chartOptions = {
|
this.chartOptions = {
|
||||||
|
maintainAspectRatio: false,
|
||||||
plugins: {
|
plugins: {
|
||||||
legend: {
|
legend: {
|
||||||
labels: {
|
labels: {
|
||||||
|
@ -52,6 +52,7 @@ export class WorkerComponent {
|
|||||||
|
|
||||||
|
|
||||||
this.chartOptions = {
|
this.chartOptions = {
|
||||||
|
maintainAspectRatio: false,
|
||||||
plugins: {
|
plugins: {
|
||||||
legend: {
|
legend: {
|
||||||
labels: {
|
labels: {
|
||||||
|
Reference in New Issue
Block a user