mirror of
https://github.com/mempool/mempool.git
synced 2024-12-29 09:44:26 +01:00
Rearranged dashboard graphs.
This commit is contained in:
parent
677cea329c
commit
dbc2f9e2dd
@ -9,9 +9,24 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col mb-4" *ngIf="(network$ | async) !== 'liquid'; else emptyBlock">
|
||||||
|
<div class="card text-center">
|
||||||
|
<div class="card-body more-padding">
|
||||||
|
<h5 class="card-title">Difficulty adjustment</h5>
|
||||||
|
<div class="progress" *ngIf="(difficultyEpoch$ | async) as epochData; else loading">
|
||||||
|
<div class="progress-bar" role="progressbar" style="width: 15%; background-color: #105fb0" [ngStyle]="{'width': epochData.base}"><ng-template [ngIf]="epochData.change > 0">+</ng-template>{{ epochData.change | number: '1.0-2' }}%</div>
|
||||||
|
<div class="progress-bar bg-success" role="progressbar" style="width: 0%" [ngStyle]="{'width': epochData.green}"></div>
|
||||||
|
<div class="progress-bar bg-danger" role="progressbar" style="width: 1%; background-color: #f14d80;" [ngStyle]="{'width': epochData.red}"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col mb-4">
|
<div class="col mb-4">
|
||||||
<div class="card text-center">
|
<div class="card text-center">
|
||||||
<div class="card-body">
|
<div class="card-body pl-0">
|
||||||
|
<div style="padding-left: 1.25rem;">
|
||||||
<table style="width: 100%;">
|
<table style="width: 100%;">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@ -29,8 +44,16 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
||||||
|
<app-mempool-graph [data]="mempoolStats.mempool" [showLegend]="false" [offsetX]="10"></app-mempool-graph>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="col mb-4">
|
<div class="col mb-4">
|
||||||
<div class="card text-center">
|
<div class="card text-center">
|
||||||
<div class="card-body more-padding">
|
<div class="card-body more-padding">
|
||||||
@ -45,37 +68,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col mb-4" *ngIf="(network$ | async) !== 'liquid'; else emptyBlock">
|
|
||||||
<div class="card text-center">
|
|
||||||
<div class="card-body more-padding">
|
|
||||||
<h5 class="card-title">Difficulty adjustment</h5>
|
|
||||||
<div class="progress" *ngIf="(difficultyEpoch$ | async) as epochData; else loading">
|
|
||||||
<div class="progress-bar" role="progressbar" style="width: 15%; background-color: #105fb0" [ngStyle]="{'width': epochData.base}"><ng-template [ngIf]="epochData.change > 0">+</ng-template>{{ epochData.change | number: '1.0-2' }}%</div>
|
|
||||||
<div class="progress-bar bg-success" role="progressbar" style="width: 0%" [ngStyle]="{'width': epochData.green}"></div>
|
|
||||||
<div class="progress-bar bg-danger" role="progressbar" style="width: 1%; background-color: #f14d80;" [ngStyle]="{'width': epochData.red}"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col mb-4">
|
<br><br>
|
||||||
<div class="card text-center">
|
|
||||||
<div class="card-body pl-0">
|
|
||||||
<h5 class="card-title">Mempool by vBytes</h5>
|
|
||||||
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
|
||||||
<app-mempool-graph [data]="mempoolStats.mempool" [showLegend]="false" [offsetX]="10"></app-mempool-graph>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col mb-4">
|
|
||||||
<div class="card text-center">
|
|
||||||
<div class="card-body">
|
|
||||||
<h5 class="card-title">Tx weight per second</h5>
|
|
||||||
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
||||||
<app-chartist
|
<app-chartist
|
||||||
[data]="mempoolStats.weightPerSecond"
|
[data]="mempoolStats.weightPerSecond"
|
||||||
|
Loading…
Reference in New Issue
Block a user