-
1; else noDropdown">
-
-
-
-
+
+
+
-
+
-
+
+
+
+
+
+
Channels ({{ channelsListStatus === 'open' ? node.channel_active_count : node.channel_closed_count }})
+
+ List
+
+ Map
+
+
+
+
+
+
-
-
-
-
Channels ({{ node.channel_count }})
-
- List
-
- Map
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/frontend/src/app/lightning/node/node.component.ts b/frontend/src/app/lightning/node/node.component.ts
index a286aa987..c70983b54 100644
--- a/frontend/src/app/lightning/node/node.component.ts
+++ b/frontend/src/app/lightning/node/node.component.ts
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { ActivatedRoute, ParamMap } from '@angular/router';
import { Observable } from 'rxjs';
-import { map, switchMap } from 'rxjs/operators';
+import { catchError, map, switchMap } from 'rxjs/operators';
import { SeoService } from 'src/app/services/seo.service';
import { LightningApiService } from '../lightning-api.service';
@@ -18,6 +18,9 @@ export class NodeComponent implements OnInit {
selectedSocketIndex = 0;
qrCodeVisible = false;
channelsListMode = 'list';
+ channelsListStatus: string;
+ error: Error;
+ publicKey: string;
constructor(
private lightningApiService: LightningApiService,
@@ -29,6 +32,7 @@ export class NodeComponent implements OnInit {
this.node$ = this.activatedRoute.paramMap
.pipe(
switchMap((params: ParamMap) => {
+ this.publicKey = params.get('public_key');
return this.lightningApiService.getNode$(params.get('public_key'));
}),
map((node) => {
@@ -55,6 +59,13 @@ export class NodeComponent implements OnInit {
node.socketsObject = socketsObject;
return node;
}),
+ catchError(err => {
+ this.error = err;
+ return [{
+ alias: this.publicKey,
+ public_key: this.publicKey,
+ }];
+ })
);
}
@@ -69,4 +80,8 @@ export class NodeComponent implements OnInit {
this.channelsListMode = 'list';
}
}
+
+ onChannelsListStatusChanged(e) {
+ this.channelsListStatus = e;
+ }
}
diff --git a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts
index fd9956d38..7963cf544 100644
--- a/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts
+++ b/frontend/src/app/lightning/nodes-channels-map/nodes-channels-map.component.ts
@@ -57,20 +57,26 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
const channelsLoc = [];
const nodes = [];
+ const nodesPubkeys = {};
for (const channel of data[1]) {
channelsLoc.push([[channel[2], channel[3]], [channel[6], channel[7]]]);
- nodes.push({
- publicKey: channel[0],
- name: channel[1],
- value: [channel[2], channel[3]],
- });
- nodes.push({
- publicKey: channel[4],
- name: channel[5],
- value: [channel[6], channel[7]],
- });
+ if (!nodesPubkeys[channel[0]]) {
+ nodes.push({
+ publicKey: channel[0],
+ name: channel[1],
+ value: [channel[2], channel[3]],
+ });
+ nodesPubkeys[channel[0]] = true;
+ }
+ if (!nodesPubkeys[channel[4]]) {
+ nodes.push({
+ publicKey: channel[4],
+ name: channel[5],
+ value: [channel[6], channel[7]],
+ });
+ nodesPubkeys[channel[4]] = true;
+ }
}
-
this.prepareChartOptions(nodes, channelsLoc);
}));
})
@@ -100,7 +106,7 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
postEffect: {
enable: true,
bloom: {
- intensity: this.style === 'nodepage' ? 0.1 : 0.01,
+ intensity: 0.1,
}
},
viewControl: {
@@ -113,10 +119,10 @@ export class NodesChannelsMap implements OnInit, OnDestroy {
zoomSensivity: 0.5,
},
itemStyle: {
- color: '#FFFFFF',
+ color: 'white',
opacity: 0.02,
borderWidth: 1,
- borderColor: '#00000050',
+ borderColor: 'black',
},
regionHeight: 0.01,
},
diff --git a/frontend/src/locale/messages.pl.xlf b/frontend/src/locale/messages.pl.xlf
index 67e48fcf7..a2be50b95 100644
--- a/frontend/src/locale/messages.pl.xlf
+++ b/frontend/src/locale/messages.pl.xlf
@@ -1997,6 +1997,7 @@
At block:
+ W bloku:
src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.ts
188
@@ -2020,6 +2021,7 @@
Around block:
+ W okolicu bloku:
src/app/components/block-fee-rates-graph/block-fee-rates-graph.component.ts
190
@@ -2234,6 +2236,7 @@
Block Prediction Accuracy
+ Dokładność prognoz bloków
src/app/components/block-prediction-graph/block-prediction-graph.component.html
5,7
@@ -2250,6 +2253,7 @@
Match rate
+ Częstość trafień
src/app/components/block-prediction-graph/block-prediction-graph.component.ts
176,174
@@ -2867,6 +2871,7 @@
Usually places your transaction in between the second and third mempool blocks
+ Zazwyczaj umieszcza Twoją transakcje między drugim a trzecim blokiem w mempool
src/app/components/fees-box/fees-box.component.html
8,9
@@ -2888,6 +2893,7 @@
Usually places your transaction in between the first and second mempool blocks
+ Zazwyczaj umieszcza Twoją transakcje między pierwszym a drugim blokiem w mempool
src/app/components/fees-box/fees-box.component.html
9,10
@@ -3072,6 +3078,7 @@
Hashrate (MA)
+ Prędkość haszowania (MA)
src/app/components/hashrate-chart/hashrate-chart.component.ts
288,287
@@ -3244,6 +3251,7 @@
Pools luck (1 week)
+ Szczęście kolektywu (1 tydzień)
src/app/components/pool-ranking/pool-ranking.component.html
9
@@ -3252,6 +3260,7 @@
Pools luck
+ Szczęście kolektywu
src/app/components/pool-ranking/pool-ranking.component.html
9,11
@@ -3260,6 +3269,7 @@
The overall luck of all mining pools over the past week. A luck bigger than 100% means the average block time for the current epoch is less than 10 minutes.
+ Ogólne szczęście wszystkich kolektywów wydobywczych w ciągu ostatniego tygodnia. Szczęście większe niż 100% oznacza, że średni czas bloku dla danej epoki jest mniejszy niż 10 minut.
src/app/components/pool-ranking/pool-ranking.component.html
11,15
@@ -3268,6 +3278,7 @@
Pools count (1w)
+ Liczba kolektywów (1t)
src/app/components/pool-ranking/pool-ranking.component.html
17
@@ -3276,6 +3287,7 @@
Pools count
+ Liczba kolektywów
src/app/components/pool-ranking/pool-ranking.component.html
17,19
@@ -3284,6 +3296,7 @@
How many unique pools found at least one block over the past week.
+ Ile unikatowych kolektywów znalazło conajmniej jeden blok w ciągu ostatniego tygodnia.
src/app/components/pool-ranking/pool-ranking.component.html
19,23
@@ -3309,6 +3322,7 @@
The number of blocks found over the past week.
+ Liczba bloków znalezionych w ciągu ostatniego tygodnia.
src/app/components/pool-ranking/pool-ranking.component.html
27,31
@@ -4465,6 +4479,7 @@
REST API service
+ Usługa REST API
src/app/docs/api-docs/api-docs.component.html
34,35