| 
									
										
										
										
											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"> | 
					
						
							|  |  |  |         <h5 class="card-title" i18n="master-page.blocks">Difficulty</h5> | 
					
						
							|  |  |  |         <p class="card-text"> | 
					
						
							|  |  |  |           {{ hashrates.currentDifficulty | amountShortener }} | 
					
						
							|  |  |  |         </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-04-09 01:07:13 +09:00
										 |  |  |     <span i18n="mining.hashrate-difficulty">Hashrate & Difficulty</span> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |     <form [formGroup]="radioGroupForm" class="formRadioGroup" *ngIf="(hashrateObservable$ | async) as stats"> | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |       <div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan"> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 4320"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'1m'" fragment="1m"> 1M | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |         </label> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 12960"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'3m'" fragment="3m"> 3M | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |         </label> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 25920"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'6m'" fragment="6m"> 6M | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |         </label> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 52560"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'1y'" fragment="1y"> 1Y | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |         </label> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 105120"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'2y'" fragment="2y"> 2Y | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |         </label> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount >= 157680"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'3y'" fragment="3y"> 3Y | 
					
						
							|  |  |  |         </label> | 
					
						
							| 
									
										
										
										
											2022-04-15 20:43:10 +09:00
										 |  |  |         <label ngbButtonLabel class="btn-primary btn-sm" *ngIf="stats.blockCount > 157680"> | 
					
						
							| 
									
										
										
										
											2022-04-11 18:17:36 +09:00
										 |  |  |           <input ngbButton type="radio" [value]="'all'" fragment="all"> ALL | 
					
						
							| 
									
										
										
										
											2022-02-19 22:09:35 +09:00
										 |  |  |         </label> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </form> | 
					
						
							|  |  |  |   </div> | 
					
						
							| 
									
										
										
										
											2022-02-21 14:02:41 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-31 18:14:07 +09:00
										 |  |  |   <div [class]="!widget ? 'chart' : 'chart-widget'" echarts [initOpts]="chartInitOptions" [options]="chartOptions"> | 
					
						
							|  |  |  |   </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"> | 
					
						
							|  |  |  |       <h5 class="card-title" i18n="mining.miners-luck">Hashrate</h5> | 
					
						
							|  |  |  |       <p class="card-text"> | 
					
						
							|  |  |  |         <span class="skeleton-loader skeleton-loader-big"></span> | 
					
						
							|  |  |  |       </p> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="item"> | 
					
						
							|  |  |  |       <h5 class="card-title" i18n="master-page.blocks">Difficulty</h5> | 
					
						
							|  |  |  |       <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> |