mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 09:14:26 +01:00
Mining dashboard layout matches main dashboard layout
This commit is contained in:
parent
16331d1be7
commit
b2dec5e20a
@ -1,4 +1,4 @@
|
||||
<div class="main-title" i18n="dashboard.difficulty-adjustment">Difficulty Adjustment</div>
|
||||
<div *ngIf="showTitle" class="main-title" i18n="dashboard.difficulty-adjustment">Difficulty Adjustment</div>
|
||||
<div class="card-wrapper">
|
||||
<div class="card">
|
||||
<div class="card-body more-padding">
|
||||
|
@ -28,8 +28,9 @@ export class DifficultyComponent implements OnInit {
|
||||
isLoadingWebSocket$: Observable<boolean>;
|
||||
difficultyEpoch$: Observable<EpochProgress>;
|
||||
|
||||
@Input() showProgress: boolean = true;
|
||||
@Input() showHalving: boolean = false;
|
||||
@Input() showProgress = true;
|
||||
@Input() showHalving = false;
|
||||
@Input() showTitle = true;
|
||||
|
||||
constructor(
|
||||
public stateService: StateService,
|
||||
|
@ -29,7 +29,7 @@
|
||||
.chart-widget {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 275px;
|
||||
max-height: 325px;
|
||||
}
|
||||
|
||||
.formRadioGroup {
|
||||
|
@ -27,7 +27,7 @@
|
||||
|
||||
<div *ngIf="hashrateObservable$ | async" [class]="!widget ? 'chart' : 'chart-widget'"
|
||||
echarts [initOpts]="chartInitOptions" [options]="chartOptions"></div>
|
||||
<div class="text-center loadingGraphs" [class]="widget ? 'widget' : ''" *ngIf="isLoading">
|
||||
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
||||
<div class="spinner-border text-light"></div>
|
||||
</div>
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
||||
.chart-widget {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 275px;
|
||||
max-height: 325px;
|
||||
}
|
||||
|
||||
.formRadioGroup {
|
||||
|
@ -3,26 +3,37 @@
|
||||
<div class="row row-cols-1 row-cols-md-2">
|
||||
|
||||
<div class="col">
|
||||
<div class="card double">
|
||||
<div class="card-body">
|
||||
<div class="main-title">Placeholder</div>
|
||||
<div class="card" style="height: 123px">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- difficulty adjustment -->
|
||||
<div class="col">
|
||||
<div class="main-title" i18n="dashboard.difficulty-adjustment">Difficulty Adjustment</div>
|
||||
<div class="card" style="height: 123px">
|
||||
<app-difficulty [showTitle]="false"></app-difficulty>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- pool distribution -->
|
||||
<div class="col">
|
||||
<div class="card" style="height: 385px">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a href="" [routerLink]="['/mining/pools' | relativeUrl]" i18n="mining.pool-share">
|
||||
Mining Pools Share (1w)
|
||||
</a>
|
||||
</h5>
|
||||
<app-pool-ranking [widget]=true></app-pool-ranking>
|
||||
|
||||
<!-- pools hashrate -->
|
||||
<app-hashrate-chart-pools [widget]=true></app-hashrate-chart-pools>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<!-- hashrate -->
|
||||
<div class="col">
|
||||
<div class="card" style="height: 385px">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a class="link" href="" [routerLink]="['/mining/hashrate' | relativeUrl]" i18n="mining.hashrate">
|
||||
Hashrate (1y)
|
||||
@ -33,5 +44,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- pools hashrate -->
|
||||
<div class="col">
|
||||
<div class="card" style="height: 385px">
|
||||
<div class="card-body">
|
||||
<!-- pool dominance -->
|
||||
<h5 class="card-title">
|
||||
<a href="" [routerLink]="['/mining/hashrate/pools' | relativeUrl]" i18n="mining.pool-historical-dominance">
|
||||
Mining Pools Dominance (1y)
|
||||
</a>
|
||||
</h5>
|
||||
<app-hashrate-chart-pools [widget]=true></app-hashrate-chart-pools>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
@ -12,10 +12,6 @@
|
||||
|
||||
.card {
|
||||
background-color: #1d1f31;
|
||||
height: 340px;
|
||||
}
|
||||
.card.double {
|
||||
height: 620px;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<div [class]="widget ? 'chart-widget' : 'chart'"
|
||||
echarts [initOpts]="chartInitOptions" [options]="chartOptions" (chartInit)="onChartInit($event)"></div>
|
||||
<div class="text-center loadingGraphs" [class]="widget ? 'widget' : ''" *ngIf="isLoading">
|
||||
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
||||
<div class="spinner-border text-light"></div>
|
||||
</div>
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
.chart-widget {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
max-height: 275px;
|
||||
max-height: 325px;
|
||||
}
|
||||
|
||||
.formRadioGroup {
|
||||
|
Loading…
Reference in New Issue
Block a user