rename clock components
This commit is contained in:
		
							parent
							
								
									1fccd70379
								
							
						
					
					
						commit
						19353fc1d0
					
				| @ -4,8 +4,8 @@ import { AppPreloadingStrategy } from './app.preloading-strategy' | |||||||
| import { StartComponent } from './components/start/start.component'; | import { StartComponent } from './components/start/start.component'; | ||||||
| import { TransactionComponent } from './components/transaction/transaction.component'; | import { TransactionComponent } from './components/transaction/transaction.component'; | ||||||
| import { BlockComponent } from './components/block/block.component'; | import { BlockComponent } from './components/block/block.component'; | ||||||
| import { ClockAComponent } from './components/clock/clock-a.component'; | import { ClockMinedComponent as ClockMinedComponent } from './components/clock/clock-mined.component'; | ||||||
| import { ClockBComponent } from './components/clock/clock-b.component'; | import { ClockMempoolComponent as ClockMempoolComponent } from './components/clock/clock-mempool.component'; | ||||||
| import { AddressComponent } from './components/address/address.component'; | import { AddressComponent } from './components/address/address.component'; | ||||||
| import { MasterPageComponent } from './components/master-page/master-page.component'; | import { MasterPageComponent } from './components/master-page/master-page.component'; | ||||||
| import { AboutComponent } from './components/about/about.component'; | import { AboutComponent } from './components/about/about.component'; | ||||||
| @ -358,12 +358,12 @@ let routes: Routes = [ | |||||||
|     ], |     ], | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     path: 'clock-face-a', |     path: 'clock-mined', | ||||||
|     component: ClockAComponent, |     component: ClockMinedComponent, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     path: 'clock-face-b', |     path: 'clock-mempool', | ||||||
|     component: ClockBComponent, |     component: ClockMempoolComponent, | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|     path: 'status', |     path: 'status', | ||||||
|  | |||||||
| @ -39,7 +39,6 @@ export class ClockFaceComponent implements OnInit, OnChanges, OnDestroy { | |||||||
|         this.updateTime(); |         this.updateTime(); | ||||||
|       }) |       }) | ||||||
|     ).subscribe(); |     ).subscribe(); | ||||||
|     this.websocketService.want(['blocks']); |  | ||||||
|     this.blocksSubscription = this.stateService.blocks$ |     this.blocksSubscription = this.stateService.blocks$ | ||||||
|       .subscribe(([block]) => { |       .subscribe(([block]) => { | ||||||
|         if (block) { |         if (block) { | ||||||
|  | |||||||
| @ -1,7 +0,0 @@ | |||||||
| import { Component } from '@angular/core'; |  | ||||||
| 
 |  | ||||||
| @Component({ |  | ||||||
|   selector: 'app-clock-a', |  | ||||||
|   templateUrl: './clock-a.component.html', |  | ||||||
| }) |  | ||||||
| export class ClockAComponent {} |  | ||||||
| @ -1,7 +0,0 @@ | |||||||
| import { Component } from '@angular/core'; |  | ||||||
| 
 |  | ||||||
| @Component({ |  | ||||||
|   selector: 'app-clock-b', |  | ||||||
|   templateUrl: './clock-b.component.html', |  | ||||||
| }) |  | ||||||
| export class ClockBComponent {} |  | ||||||
| @ -0,0 +1,7 @@ | |||||||
|  | import { Component } from '@angular/core'; | ||||||
|  | 
 | ||||||
|  | @Component({ | ||||||
|  |   selector: 'app-clock-mempool', | ||||||
|  |   templateUrl: './clock-mempool.component.html', | ||||||
|  | }) | ||||||
|  | export class ClockMempoolComponent {} | ||||||
| @ -0,0 +1,7 @@ | |||||||
|  | import { Component } from '@angular/core'; | ||||||
|  | 
 | ||||||
|  | @Component({ | ||||||
|  |   selector: 'app-clock-mined', | ||||||
|  |   templateUrl: './clock-mined.component.html', | ||||||
|  | }) | ||||||
|  | export class ClockMinedComponent {} | ||||||
| @ -42,11 +42,11 @@ | |||||||
|       <p i18n="clock.priority-rate|priority fee rate">priority rate</p> |       <p i18n="clock.priority-rate|priority fee rate">priority rate</p> | ||||||
|       <p *ngIf="recommendedFees$ | async as recommendedFees;" i18n="shared.sat-vbyte|sat/vB">{{ recommendedFees.fastestFee }} sat/vB</p> |       <p *ngIf="recommendedFees$ | async as recommendedFees;" i18n="shared.sat-vbyte|sat/vB">{{ recommendedFees.fastestFee }} sat/vB</p> | ||||||
|     </div> |     </div> | ||||||
|     <div *ngIf="mode !== 'mempool'" class="stats bottom left"> |     <div *ngIf="mode !== 'mempool' && block" class="stats bottom left"> | ||||||
|       <p [innerHTML]="block.size | bytes: 2"></p> |       <p [innerHTML]="block.size | bytes: 2"></p> | ||||||
|       <p i18n="clock.block-size">block size</p> |       <p i18n="clock.block-size">block size</p> | ||||||
|     </div> |     </div> | ||||||
|     <div *ngIf="mode !== 'mempool'" class="stats bottom right"> |     <div *ngIf="mode !== 'mempool' && block" class="stats bottom right"> | ||||||
|       <p class="force-wrap"> |       <p class="force-wrap"> | ||||||
|         <ng-container *ngTemplateOutlet="block.tx_count === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: block.tx_count | number}"></ng-container> |         <ng-container *ngTemplateOutlet="block.tx_count === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: block.tx_count | number}"></ng-container> | ||||||
|         <ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template> |         <ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template> | ||||||
|  | |||||||
| @ -50,7 +50,7 @@ | |||||||
|       opacity: 0.8; |       opacity: 0.8; | ||||||
| 
 | 
 | ||||||
|       &.force-wrap { |       &.force-wrap { | ||||||
|         word-spacing: 1000px; |         word-spacing: 10000px; | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|       ::ng-deep .symbol { |       ::ng-deep .symbol { | ||||||
|  | |||||||
| @ -94,8 +94,8 @@ import { MempoolBlockOverviewComponent } from '../components/mempool-block-overv | |||||||
| import { ClockchainComponent } from '../components/clockchain/clockchain.component'; | import { ClockchainComponent } from '../components/clockchain/clockchain.component'; | ||||||
| import { ClockFaceComponent } from '../components/clock-face/clock-face.component'; | import { ClockFaceComponent } from '../components/clock-face/clock-face.component'; | ||||||
| import { ClockComponent } from '../components/clock/clock.component'; | import { ClockComponent } from '../components/clock/clock.component'; | ||||||
| import { ClockAComponent } from '../components/clock/clock-a.component'; | import { ClockMinedComponent } from '../components/clock/clock-mined.component'; | ||||||
| import { ClockBComponent } from '../components/clock/clock-b.component'; | import { ClockMempoolComponent } from '../components/clock/clock-mempool.component'; | ||||||
| 
 | 
 | ||||||
| @NgModule({ | @NgModule({ | ||||||
|   declarations: [ |   declarations: [ | ||||||
| @ -183,8 +183,8 @@ import { ClockBComponent } from '../components/clock/clock-b.component'; | |||||||
|     MempoolBlockOverviewComponent, |     MempoolBlockOverviewComponent, | ||||||
|     ClockchainComponent, |     ClockchainComponent, | ||||||
|     ClockComponent, |     ClockComponent, | ||||||
|     ClockAComponent, |     ClockMinedComponent, | ||||||
|     ClockBComponent, |     ClockMempoolComponent, | ||||||
|     ClockFaceComponent, |     ClockFaceComponent, | ||||||
|   ], |   ], | ||||||
|   imports: [ |   imports: [ | ||||||
| @ -297,8 +297,8 @@ import { ClockBComponent } from '../components/clock/clock-b.component'; | |||||||
|     MempoolBlockOverviewComponent, |     MempoolBlockOverviewComponent, | ||||||
|     ClockchainComponent, |     ClockchainComponent, | ||||||
|     ClockComponent, |     ClockComponent, | ||||||
|     ClockAComponent, |     ClockMinedComponent, | ||||||
|     ClockBComponent, |     ClockMempoolComponent, | ||||||
|     ClockFaceComponent, |     ClockFaceComponent, | ||||||
|   ] |   ] | ||||||
| }) | }) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user