Node qr code

This commit is contained in:
softsimon
2022-05-06 00:52:25 +04:00
parent 79aa4461f3
commit 9aa6455ef8
5 changed files with 49 additions and 9 deletions

View File

@@ -15,6 +15,7 @@ export class NodeComponent implements OnInit {
statistics$: Observable<any>;
publicKey$: Observable<string>;
selectedSocketIndex = 0;
qrCodeVisible = false;
constructor(
private lightningApiService: LightningApiService,
@@ -30,6 +31,9 @@ export class NodeComponent implements OnInit {
map((node) => {
const socketsObject = [];
for (const socket of node.sockets.split(',')) {
if (socket === '') {
continue;
}
let label = '';
if (socket.match(/(?:[0-9]{1,3}\.){3}[0-9]{1,3}/)) {
label = 'IPv4';