Integrate GeoIP2 ISP database

This commit is contained in:
nymkappa
2022-07-23 23:33:13 +02:00
parent ecbdee0087
commit 6795f69343
7 changed files with 42 additions and 18 deletions

View File

@@ -34,7 +34,7 @@
<tbody [attr.data-cy]="'pools-table'" *ngIf="(nodesPerAsObservable$ | async) as asList">
<tr *ngFor="let asEntry of asList">
<td class="rank text-left pl-0">{{ asEntry.rank }}</td>
<td class="name text-left text-truncate" style="max-width: 100px">
<td class="name text-left text-truncate" style="max-width: 250px">
<a [routerLink]="[('/lightning/nodes/isp/' + asEntry.ispId) | relativeUrl]">{{ asEntry.name }}</a>
</td>
<td class="share text-right">{{ asEntry.share }}%</td>

View File

@@ -36,14 +36,14 @@
}
.rank {
width: 20%;
width: 15%;
@media (max-width: 576px) {
display: none
}
}
.name {
width: 20%;
width: 25%;
@media (max-width: 576px) {
width: 80%;
max-width: 150px;

View File

@@ -61,7 +61,7 @@ export class NodesPerISPChartComponent implements OnInit {
}
generateChartSerieData(as) {
const shareThreshold = this.isMobile() ? 2 : 1;
const shareThreshold = this.isMobile() ? 2 : 0.5;
const data: object[] = [];
let totalShareOther = 0;
let totalNodeOther = 0;
@@ -155,7 +155,7 @@ export class NodesPerISPChartComponent implements OnInit {
series: [
{
zlevel: 0,
minShowLabelAngle: 3.6,
minShowLabelAngle: 1.8,
name: 'Lightning nodes',
type: 'pie',
radius: pieSize,