mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 17:24:25 +01:00
Rearranged dashboard graphs.
This commit is contained in:
parent
677cea329c
commit
dbc2f9e2dd
@ -9,28 +9,51 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col mb-4">
|
|
||||||
|
<div class="col mb-4" *ngIf="(network$ | async) !== 'liquid'; else emptyBlock">
|
||||||
<div class="card text-center">
|
<div class="card text-center">
|
||||||
<div class="card-body">
|
<div class="card-body more-padding">
|
||||||
<table style="width: 100%;">
|
<h5 class="card-title">Difficulty adjustment</h5>
|
||||||
<tr>
|
<div class="progress" *ngIf="(difficultyEpoch$ | async) as epochData; else loading">
|
||||||
<td>
|
<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>
|
||||||
<h5 class="card-title">Mempool size</h5>
|
<div class="progress-bar bg-success" role="progressbar" style="width: 0%" [ngStyle]="{'width': epochData.green}"></div>
|
||||||
<p class="card-text" *ngIf="(mempoolBlocksData$ | async) as mempoolBlocksData; else loading">
|
<div class="progress-bar bg-danger" role="progressbar" style="width: 1%; background-color: #f14d80;" [ngStyle]="{'width': epochData.red}"></div>
|
||||||
{{ mempoolBlocksData.size | bytes }} ({{ mempoolBlocksData.blocks }} block<span [hidden]="mempoolBlocksData.blocks <= 1">s</span>)
|
</div>
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<h5 class="card-title">Unconfirmed</h5>
|
|
||||||
<p class="card-text" *ngIf="mempoolInfoData.value; else loading">
|
|
||||||
{{ mempoolInfoData.value.memPoolInfo.size | number }}
|
|
||||||
</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col mb-4">
|
||||||
|
<div class="card text-center">
|
||||||
|
<div class="card-body pl-0">
|
||||||
|
<div style="padding-left: 1.25rem;">
|
||||||
|
<table style="width: 100%;">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<h5 class="card-title">Mempool size</h5>
|
||||||
|
<p class="card-text" *ngIf="(mempoolBlocksData$ | async) as mempoolBlocksData; else loading">
|
||||||
|
{{ mempoolBlocksData.size | bytes }} ({{ mempoolBlocksData.blocks }} block<span [hidden]="mempoolBlocksData.blocks <= 1">s</span>)
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<h5 class="card-title">Unconfirmed</h5>
|
||||||
|
<p class="card-text" *ngIf="mempoolInfoData.value; else loading">
|
||||||
|
{{ mempoolInfoData.value.memPoolInfo.size | number }}
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</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 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,44 +68,16 @@
|
|||||||
</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 style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
||||||
<div class="card text-center">
|
<app-chartist
|
||||||
<div class="card-body">
|
[data]="mempoolStats.weightPerSecond"
|
||||||
<h5 class="card-title">Tx weight per second</h5>
|
[type]="'Line'"
|
||||||
<div style="height: 250px;" *ngIf="(mempoolStats$ | async) as mempoolStats">
|
[options]="transactionsWeightPerSecondOptions">
|
||||||
<app-chartist
|
</app-chartist>
|
||||||
[data]="mempoolStats.weightPerSecond"
|
</div>
|
||||||
[type]="'Line'"
|
|
||||||
[options]="transactionsWeightPerSecondOptions">
|
|
||||||
</app-chartist>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user