2022-05-10 14:57:43 +02:00
< app-indexing-progress * ngIf = "!widget" ></ app-indexing-progress >
2022-05-02 17:28:58 +09:00
2022-02-21 14:02:41 +09:00
< div [ class ]=" widget = == false ? ' full-container ' : ''" >
2022-02-19 22:09:35 +09:00
2022-03-14 20:00:19 +01:00
< div * ngIf = "widget" >
< div class = "pool-distribution" * ngIf = "(hashrateObservable$ | async) as hashrates; else loadingStats" >
< div class = "item" >
< h5 class = "card-title" i18n = "mining.hashrate" > Hashrate</ h5 >
< p class = "card-text" >
2022-04-30 17:19:03 +09:00
{{ hashrates.currentHashrate | amountShortener: 1 : 'H/s' }}
2022-03-14 20:00:19 +01:00
</ p >
</ div >
< div class = "item" >
2022-05-18 03:06:31 +04:00
< h5 class = "card-title" i18n = "block.difficulty" > Difficulty</ h5 >
2022-07-10 14:32:15 +02:00
< p class = "card-text" * ngIf = "network === 'signet'" >
{{ hashrates.currentDifficulty | amountShortener : 5 }}
</ p >
< p class = "card-text" * ngIf = "network !== 'signet'" >
{{ hashrates.currentDifficulty | amountShortener : 2 }}
2022-03-14 20:00:19 +01:00
</ p >
</ div >
</ div >
</ div >
2022-03-09 21:21:44 +01:00
< div class = "card-header mb-0 mb-md-4" [ style ]=" widget ? ' display:none ' : ''" >
2022-07-16 21:37:45 +02:00
< div class = "d-flex d-md-block align-items-baseline" >
< span i18n = "mining.hashrate-difficulty" > Hashrate & Difficulty</ span >
< button class = "btn p-0 pl-2" style = "margin: 0 0 4px 0px" ( click )=" onSaveChart ()" >
< fa-icon [ icon ]="[' fas ', ' download ']" [ fixedWidth ]=" true " ></ fa-icon >
</ button >
</ div >
2022-05-05 16:18:28 +09:00
2022-04-11 18:17:36 +09:00
< form [ formGroup ]=" radioGroupForm " class = "formRadioGroup" * ngIf = "(hashrateObservable$ | async) as stats" >
2023-02-21 18:48:09 +09:00
< div class = "btn-group btn-group-toggle" name = "radioBasic" [ class ]="{' disabled ' : isLoading }" >
2022-11-28 16:00:50 +09:00
< label class = "btn btn-primary btn-sm" * ngIf = "stats.blockCount >= 12960" [ class . active ]=" radioGroupForm . get (' dateSpan '). value = == ' 3m '" >
< input type = "radio" [ value ]="' 3m '" fragment = "3m" [ routerLink ]="['/ graphs / mining / hashrate-difficulty ' | relativeUrl ]" [ attr . data-cy ]="' 3m '" formControlName = "dateSpan" > 3M
2022-02-19 22:09:35 +09:00
</ label >
2022-11-28 16:00:50 +09:00
< label class = "btn btn-primary btn-sm" * ngIf = "stats.blockCount >= 25920" [ class . active ]=" radioGroupForm . get (' dateSpan '). value = == ' 6m '" >
< input type = "radio" [ value ]="' 6m '" fragment = "6m" [ routerLink ]="['/ graphs / mining / hashrate-difficulty ' | relativeUrl ]" [ attr . data-cy ]="' 6m '" formControlName = "dateSpan" > 6M
2022-02-19 22:09:35 +09:00
</ label >
2022-11-28 16:00:50 +09:00
< label class = "btn btn-primary btn-sm" * ngIf = "stats.blockCount >= 52560" [ class . active ]=" radioGroupForm . get (' dateSpan '). value = == ' 1y '" >
< input type = "radio" [ value ]="' 1y '" fragment = "1y" [ routerLink ]="['/ graphs / mining / hashrate-difficulty ' | relativeUrl ]" [ attr . data-cy ]="' 1y '" formControlName = "dateSpan" > 1Y
2022-02-19 22:09:35 +09:00
</ label >
2022-11-28 16:00:50 +09:00
< label class = "btn btn-primary btn-sm" * ngIf = "stats.blockCount >= 105120" [ class . active ]=" radioGroupForm . get (' dateSpan '). value = == ' 2y '" >
< input type = "radio" [ value ]="' 2y '" fragment = "2y" [ routerLink ]="['/ graphs / mining / hashrate-difficulty ' | relativeUrl ]" [ attr . data-cy ]="' 2y '" formControlName = "dateSpan" > 2Y
2022-02-19 22:09:35 +09:00
</ label >
2022-11-28 16:00:50 +09:00
< label class = "btn btn-primary btn-sm" * ngIf = "stats.blockCount >= 157680" [ class . active ]=" radioGroupForm . get (' dateSpan '). value = == ' 3y '" >
< input type = "radio" [ value ]="' 3y '" fragment = "3y" [ routerLink ]="['/ graphs / mining / hashrate-difficulty ' | relativeUrl ]" [ attr . data-cy ]="' 3y '" formControlName = "dateSpan" > 3Y
2022-04-11 18:17:36 +09:00
</ label >
2022-11-28 16:00:50 +09:00
< label class = "btn btn-primary btn-sm" [ class . active ]=" radioGroupForm . get (' dateSpan '). value = == ' all '" >
< input type = "radio" [ value ]="' all '" fragment = "all" [ routerLink ]="['/ graphs / mining / hashrate-difficulty ' | relativeUrl ]" [ attr . data-cy ]="' all '" formControlName = "dateSpan" > ALL
2022-02-19 22:09:35 +09:00
</ label >
</ div >
</ form >
</ div >
2022-02-21 14:02:41 +09:00
2022-05-05 16:18:28 +09:00
< div [ class ]="! widget ? ' chart ' : ' chart-widget '" echarts [ initOpts ]=" chartInitOptions " [ options ]=" chartOptions "
( chartInit )=" onChartInit ($ event )" >
2022-03-31 18:14:07 +09:00
</ div >
2022-03-09 21:21:44 +01:00
< div class = "text-center loadingGraphs" * ngIf = "isLoading" >
2022-02-21 14:02:41 +09:00
< div class = "spinner-border text-light" ></ div >
</ div >
2022-03-31 18:14:07 +09:00
2022-02-19 22:09:35 +09:00
</ div >
2022-03-14 20:00:19 +01:00
< ng-template # loadingStats >
< div class = "pool-distribution" >
< div class = "item" >
2022-05-18 03:06:31 +04:00
< h5 class = "card-title" i18n = "mining.hashrate" > Hashrate</ h5 >
2022-03-14 20:00:19 +01:00
< p class = "card-text" >
< span class = "skeleton-loader skeleton-loader-big" ></ span >
</ p >
</ div >
< div class = "item" >
2022-05-18 03:06:31 +04:00
< h5 class = "card-title" i18n = "block.difficulty" > Difficulty</ h5 >
2022-03-14 20:00:19 +01:00
< p class = "card-text" >
< span class = "skeleton-loader skeleton-loader-big" ></ span >
</ p >
</ div >
</ div >
2022-04-11 20:57:13 +09:00
</ ng-template >