Mempool node group page

This commit is contained in:
softsimon
2022-09-17 01:26:32 +02:00
parent 0694e71b14
commit a43f0454f9
10 changed files with 336 additions and 1 deletions

View File

@@ -84,3 +84,10 @@
</div>
</div>
<div class="text-small text-center mt-1" *ngIf="officialMempoolSpace">
<a [routerLink]="['/lightning/group/mempool.space' | relativeUrl]">Connect to our nodes</a>
</div>
<br>

View File

@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
import { share } from 'rxjs/operators';
import { INodesRanking } from 'src/app/interfaces/node-api.interface';
import { SeoService } from 'src/app/services/seo.service';
import { StateService } from 'src/app/services/state.service';
import { LightningApiService } from '../lightning-api.service';
@Component({
@@ -14,10 +15,12 @@ import { LightningApiService } from '../lightning-api.service';
export class LightningDashboardComponent implements OnInit {
statistics$: Observable<any>;
nodesRanking$: Observable<INodesRanking>;
officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
constructor(
private lightningApiService: LightningApiService,
private seoService: SeoService,
private stateService: StateService,
) { }
ngOnInit(): void {