2022-08-11 10:19:13 +02:00
|
|
|
<div [class]="widget === false ? 'full-container' : ''">
|
2022-07-16 10:44:05 +02:00
|
|
|
|
2022-08-11 10:19:13 +02:00
|
|
|
<div *ngIf="widget">
|
|
|
|
<div class="pool-distribution" *ngIf="(nodesPerAsObservable$ | async) as stats; else loadingReward">
|
|
|
|
<div class="item">
|
2022-10-07 00:54:33 +04:00
|
|
|
<h5 class="card-title d-inline-block" i18n="lightning.clearnet-capacity">Clearnet Capacity</h5>
|
2022-08-16 18:47:45 +02:00
|
|
|
<p class="card-text" i18n-ngbTooltip="lightning.clearnet-capacity-desc"
|
|
|
|
ngbTooltip="How much liquidity is running on nodes advertising at least one clearnet IP address" placement="bottom">
|
|
|
|
<app-amount [satoshis]="stats.clearnetCapacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount>
|
2022-08-11 10:19:13 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
2022-10-07 00:54:33 +04:00
|
|
|
<h5 class="card-title d-inline-block" i18n="lightning.unknown-capacity">Unknown Capacity</h5>
|
2022-08-16 18:47:45 +02:00
|
|
|
<p class="card-text" i18n-ngbTooltip="lightning.unknown-capacity-desc"
|
|
|
|
ngbTooltip="How much liquidity is running on nodes which ISP was not identifiable" placement="bottom">
|
|
|
|
<app-amount [satoshis]="stats.unknownCapacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount>
|
2022-08-11 10:19:13 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2022-08-12 15:35:00 +02:00
|
|
|
<div class="item">
|
2022-10-07 00:54:33 +04:00
|
|
|
<h5 class="card-title d-inline-block" i18n="lightning.tor-capacity">Tor Capacity</h5>
|
2022-08-16 18:47:45 +02:00
|
|
|
<p class="card-text" i18n-ngbTooltip="lightning.tor-capacity-desc"
|
|
|
|
ngbTooltip="How much liquidity is running on nodes advertising only Tor addresses" placement="bottom">
|
|
|
|
<app-amount [satoshis]="stats.torCapacity" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount>
|
2022-08-12 15:35:00 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2022-08-11 10:19:13 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-header" *ngIf="!widget">
|
2022-07-16 23:12:16 +02:00
|
|
|
<div class="d-flex d-md-block align-items-baseline" style="margin-bottom: -5px">
|
2022-08-30 09:10:15 -04:00
|
|
|
<span i18n="lightning.top-100-isp-ln">Top 100 ISPs hosting LN nodes</span>
|
2022-07-16 21:43:16 +02:00
|
|
|
<button class="btn p-0 pl-2" style="margin: 0 0 4px 0px" (click)="onSaveChart()">
|
|
|
|
<fa-icon [icon]="['fas', 'download']" [fixedWidth]="true"></fa-icon>
|
|
|
|
</button>
|
|
|
|
</div>
|
2022-07-27 15:33:25 +02:00
|
|
|
<small class="d-block" style="color: #ffffff66; min-height: 25px" i18n="lightning.tor-nodes-excluded">
|
2022-08-16 18:47:45 +02:00
|
|
|
<span>(Tor nodes excluded)</span>
|
2022-07-27 15:33:25 +02:00
|
|
|
</small>
|
2022-07-16 10:44:05 +02:00
|
|
|
</div>
|
|
|
|
|
2022-08-11 10:19:13 +02:00
|
|
|
<div [class]="!widget ? 'bottom-padding' : 'pb-0'" class="container pb-lg-0">
|
|
|
|
<div [class]="widget ? 'chart-widget' : 'chart'" echarts [initOpts]="chartInitOptions" [options]="chartOptions"
|
|
|
|
(chartInit)="onChartInit($event)">
|
2022-07-16 10:44:05 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-center loadingGraphs" *ngIf="isLoading">
|
|
|
|
<div class="spinner-border text-light"></div>
|
|
|
|
</div>
|
|
|
|
|
2022-08-16 18:47:45 +02:00
|
|
|
<div class="d-flex justify-content-md-end toggle" *ngIf="!widget">
|
|
|
|
<app-toggle [textLeft]="'Sort by nodes'" [textRight]="'capacity'" [checked]="true" (toggleStatusChanged)="onGroupToggleStatusChanged($event)"></app-toggle>
|
2022-07-27 13:20:54 +02:00
|
|
|
</div>
|
|
|
|
|
2022-08-11 10:19:13 +02:00
|
|
|
<table class="table table-borderless text-center m-auto" style="max-width: 900px" *ngIf="!widget">
|
2022-07-16 10:44:05 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2022-07-17 11:17:48 +02:00
|
|
|
<th class="rank text-left pl-0" i18n="mining.rank">Rank</th>
|
|
|
|
<th class="name text-left" i18n="lightning.isp">ISP</th>
|
|
|
|
<th class="share text-right" i18n="lightning.share">Share</th>
|
|
|
|
<th class="nodes text-right" i18n="lightning.nodes-count">Nodes</th>
|
|
|
|
<th class="capacity text-right pr-0" i18n="lightning.capacity">Capacity</th>
|
2022-07-16 10:44:05 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-08-16 18:47:45 +02:00
|
|
|
<tbody [attr.data-cy]="'pools-table'" *ngIf="(nodesPerAsObservable$ | async) as result">
|
|
|
|
<tr *ngFor="let isp of result.ispRanking">
|
|
|
|
<td class="rank text-left pl-0">{{ isp[5] }}</td>
|
2022-07-27 13:20:54 +02:00
|
|
|
<td class="name text-left text-truncate">
|
2022-08-16 18:47:45 +02:00
|
|
|
<a [routerLink]="[('/lightning/nodes/isp/' + isp[0]) | relativeUrl]">{{ isp[1] }}</a>
|
2022-07-17 22:57:29 +02:00
|
|
|
</td>
|
2022-08-16 18:47:45 +02:00
|
|
|
<td class="share text-right">{{ sortBy === 'capacity' ? isp[7] : isp[6] }}%</td>
|
|
|
|
<td class="nodes text-right">{{ isp[4] }}</td>
|
|
|
|
<td class="capacity text-right pr-0"><app-amount [satoshis]="isp[2]" [digitsInfo]="'1.2-2'" [noFiat]="true"></app-amount></td>
|
2022-07-16 10:44:05 +02:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2022-07-17 11:17:48 +02:00
|
|
|
</div>
|
2022-08-11 10:19:13 +02:00
|
|
|
|
|
|
|
<ng-template #loadingReward>
|
|
|
|
<div class="pool-distribution">
|
|
|
|
<div class="item">
|
2022-10-07 00:54:33 +04:00
|
|
|
<h5 class="card-title d-inline-block" i18n="lightning.clearnet-capacity">Clearnet Capacity</h5>
|
2022-08-11 10:19:13 +02:00
|
|
|
<p class="card-text">
|
|
|
|
<span class="skeleton-loader skeleton-loader-big"></span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
2022-10-07 00:54:33 +04:00
|
|
|
<h5 class="card-title d-inline-block" i18n="lightning.unknown-capacity">Unknown Capacity</h5>
|
2022-08-11 10:19:13 +02:00
|
|
|
<p class="card-text">
|
|
|
|
<span class="skeleton-loader skeleton-loader-big"></span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="item">
|
2022-10-07 00:54:33 +04:00
|
|
|
<h5 class="card-title d-inline-block" i18n="lightning.tor-capacity">Tor Capacity</h5>
|
2022-08-11 10:19:13 +02:00
|
|
|
<p class="card-text">
|
|
|
|
<span class="skeleton-loader skeleton-loader-big"></span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|