mirror of
https://github.com/mempool/mempool.git
synced 2025-03-01 09:10:02 +01:00
22 lines
779 B
TypeScript
22 lines
779 B
TypeScript
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
|
import { SeoService } from '../../services/seo.service';
|
|
import { WebsocketService } from '../../services/websocket.service';
|
|
|
|
@Component({
|
|
selector: 'app-mining-dashboard',
|
|
templateUrl: './mining-dashboard.component.html',
|
|
styleUrls: ['./mining-dashboard.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class MiningDashboardComponent implements OnInit {
|
|
constructor(
|
|
private seoService: SeoService,
|
|
private websocketService: WebsocketService,
|
|
) {
|
|
this.seoService.setTitle($localize`:@@a681a4e2011bb28157689dbaa387de0dd0aa0c11:Mining Dashboard`);
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
this.websocketService.want(['blocks', 'mempool-blocks', 'stats']);
|
|
}
|
|
}
|