2022-01-06 19:59:33 +09:00
|
|
|
<div class="container-xl">
|
2022-01-21 21:50:57 +09:00
|
|
|
<!-- <app-difficulty [showProgress]=false [showHalving]=true></app-difficulty> -->
|
2022-01-17 15:34:34 +09:00
|
|
|
|
2022-01-21 21:50:57 +09:00
|
|
|
<div class="hashrate-pie" echarts [initOpts]="chartInitOptions" [options]="chartOptions"></div>
|
2022-01-17 15:34:34 +09:00
|
|
|
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
|
|
|
<div class="spinner-border text-light"></div>
|
|
|
|
</div>
|
|
|
|
|
2022-01-21 21:50:57 +09:00
|
|
|
<div class="card-header mb-0 mb-lg-4">
|
2022-01-14 18:09:40 +09:00
|
|
|
<form [formGroup]="radioGroupForm" class="formRadioGroup">
|
2022-01-21 11:17:36 +09:00
|
|
|
<div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan">
|
2022-01-06 19:59:33 +09:00
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1d'" [routerLink]="['/pools' | relativeUrl]" fragment="1d"> 1D
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'3d'" [routerLink]="['/pools' | relativeUrl]" fragment="3d"> 3D
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1w'" [routerLink]="['/pools' | relativeUrl]" fragment="1w"> 1W
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1m'" [routerLink]="['/pools' | relativeUrl]" fragment="1m"> 1M
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'3m'" [routerLink]="['/pools' | relativeUrl]" fragment="3m"> 3M
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'6m'" [routerLink]="['/pools' | relativeUrl]" fragment="6m"> 6M
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'1y'" [routerLink]="['/pools' | relativeUrl]" fragment="1y"> 1Y
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'2y'" [routerLink]="['/pools' | relativeUrl]" fragment="2y"> 2Y
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'3y'" [routerLink]="['/pools' | relativeUrl]" fragment="3y"> 3Y
|
|
|
|
</label>
|
|
|
|
<label ngbButtonLabel class="btn-primary btn-sm">
|
|
|
|
<input ngbButton type="radio" [value]="'all'" [routerLink]="['/pools' | relativeUrl]" fragment="all"> ALL
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2022-01-21 21:50:57 +09:00
|
|
|
<table class="table table-borderless text-center pools-table" [alwaysCallback]="true" infiniteScroll [infiniteScrollDistance]="1.5" [infiniteScrollUpDistance]="1.5" [infiniteScrollThrottle]="50">
|
2022-01-06 19:59:33 +09:00
|
|
|
<thead>
|
2022-01-21 21:50:57 +09:00
|
|
|
<tr>
|
|
|
|
<th class="d-none d-md-block" i18n="latest-blocks.height">Rank</th>
|
|
|
|
<th class=""></th>
|
|
|
|
<th class="" i18n="latest-blocks.poolName">Name</th>
|
|
|
|
<th class="" *ngIf="this.poolsWindowPreference === '1d'" i18n="latest-blocks.timestamp">Hashrate</th>
|
|
|
|
<th class="" i18n="latest-blocks.mined">Blocks</th>
|
|
|
|
<th class="d-none d-md-block" i18n="latest-blocks.transactions">Empty Blocks</th>
|
|
|
|
</tr>
|
2022-01-06 19:59:33 +09:00
|
|
|
</thead>
|
2022-01-21 11:17:36 +09:00
|
|
|
<tbody *ngIf="(miningStatsObservable$ | async) as miningStats">
|
2022-01-06 19:59:33 +09:00
|
|
|
<tr>
|
2022-01-17 15:34:34 +09:00
|
|
|
<td class="d-none d-md-block">-</td>
|
2022-01-21 21:50:57 +09:00
|
|
|
<td class="text-right"><img width="25" height="25" src="./resources/mining-pools/default.svg"></td>
|
|
|
|
<td class="">All miners</td>
|
|
|
|
<td class="" *ngIf="this.poolsWindowPreference === '1d'">{{ miningStats.lastEstimatedHashrate}} {{ miningStats.miningUnits.hashrateUnit }}</td>
|
|
|
|
<td class="">{{ miningStats.blockCount }}</td>
|
2022-01-17 15:34:34 +09:00
|
|
|
<td class="d-none d-md-block">{{ miningStats.totalEmptyBlock }} ({{ miningStats.totalEmptyBlockRatio }}%)</td>
|
2022-01-14 18:09:40 +09:00
|
|
|
</tr>
|
|
|
|
<tr *ngFor="let pool of miningStats.pools">
|
2022-01-17 15:34:34 +09:00
|
|
|
<td class="d-none d-md-block">{{ pool.rank }}</td>
|
2022-01-21 21:50:57 +09:00
|
|
|
<td class="text-right"><img width="25" height="25" src="{{ pool.logo }}" onError="this.src = './resources/mining-pools/default.svg'"></td>
|
|
|
|
<td class=""><a target="#" href="{{ pool.link }}">{{ pool.name }}</a></td>
|
|
|
|
<td class="" *ngIf="this.poolsWindowPreference === '1d'">{{ pool.lastEstimatedHashrate }} {{ miningStats.miningUnits.hashrateUnit }}</td>
|
|
|
|
<td class="">{{ pool['blockText'] }}</td>
|
2022-01-17 15:34:34 +09:00
|
|
|
<td class="d-none d-md-block">{{ pool.emptyBlocks }} ({{ pool.emptyBlockRatio }}%)</td>
|
2022-01-06 19:59:33 +09:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|