2022-03-19 23:32:01 +04:00
|
|
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
2022-02-24 20:20:18 +09:00
|
|
|
import { SeoService } from 'src/app/services/seo.service';
|
2022-03-19 23:32:01 +04:00
|
|
|
import { WebsocketService } from 'src/app/services/websocket.service';
|
2022-02-16 17:32:12 +09:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-mining-dashboard',
|
|
|
|
templateUrl: './mining-dashboard.component.html',
|
2022-02-17 17:10:20 +09:00
|
|
|
styleUrls: ['./mining-dashboard.component.scss'],
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
2022-02-16 17:32:12 +09:00
|
|
|
})
|
|
|
|
export class MiningDashboardComponent implements OnInit {
|
2022-03-19 23:32:01 +04:00
|
|
|
constructor(
|
|
|
|
private seoService: SeoService,
|
|
|
|
private websocketService: WebsocketService,
|
2022-03-07 11:22:54 +01:00
|
|
|
) {
|
2022-05-10 17:05:07 +04:00
|
|
|
this.seoService.setTitle($localize`:@@a681a4e2011bb28157689dbaa387de0dd0aa0c11:Mining Dashboard`);
|
2022-02-24 20:20:18 +09:00
|
|
|
}
|
2022-02-16 17:32:12 +09:00
|
|
|
|
|
|
|
ngOnInit(): void {
|
2022-06-13 11:13:00 +02:00
|
|
|
this.websocketService.want(['blocks', 'mempool-blocks', 'stats']);
|
2022-03-07 11:22:54 +01:00
|
|
|
}
|
2022-02-16 17:32:12 +09:00
|
|
|
}
|