| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  | <div class="container-xl" *ngIf="(node$ | async) as node"> | 
					
						
							|  |  |  |   <div class="title-container mb-2"> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |     <h1 class="mb-0">{{ node.alias }}</h1> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |     <span class="tx-link"> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |       <a [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">{{ node.public_key | shortenString : 12 }}</a> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |       <app-clipboard [text]="node.public_key"></app-clipboard> | 
					
						
							|  |  |  |     </span> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <div class="clearfix"></div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <div class="box"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <div class="row"> | 
					
						
							| 
									
										
										
										
											2022-05-15 16:48:38 +04:00
										 |  |  |         <div class="col-md"> | 
					
						
							|  |  |  |           <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |             <tbody> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-received">Total capacity</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |                   <app-sats [satoshis]="node.capacity"></app-sats><app-fiat [value]="node.capacity" digitsInfo="1.0-0"></app-fiat> | 
					
						
							| 
									
										
										
										
											2022-05-15 16:48:38 +04:00
										 |  |  |                 </td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-sent">Total channels</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							| 
									
										
										
										
											2022-07-24 11:51:05 +02:00
										 |  |  |                   {{ node.channel_active_count }} | 
					
						
							| 
									
										
										
										
											2022-05-15 16:48:38 +04:00
										 |  |  |                 </td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.total-received">Average channel size</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |                   <app-sats [satoshis]="node.channels_capacity_avg"></app-sats><app-fiat [value]="node.channels_capacity_avg" digitsInfo="1.0-0"></app-fiat> | 
					
						
							| 
									
										
										
										
											2022-05-15 16:48:38 +04:00
										 |  |  |                 </td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							| 
									
										
										
										
											2022-07-12 21:28:02 +02:00
										 |  |  |               <tr *ngIf="node.country && node.city && node.subdivision"> | 
					
						
							| 
									
										
										
										
											2022-07-12 21:07:38 +02:00
										 |  |  |                 <td i18n="location">Location</td> | 
					
						
							| 
									
										
										
										
											2022-07-12 21:28:02 +02:00
										 |  |  |                 <td>{{ node.city.en }}, {{ node.subdivision.en }}<br>{{ node.country.en }}</td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							|  |  |  |               <tr *ngIf="node.country && !node.city"> | 
					
						
							|  |  |  |                 <td i18n="location">Location</td> | 
					
						
							|  |  |  |                 <td>{{ node.country.en }}</td> | 
					
						
							| 
									
										
										
										
											2022-07-12 21:07:38 +02:00
										 |  |  |               </tr> | 
					
						
							| 
									
										
										
										
											2022-05-15 16:48:38 +04:00
										 |  |  |             </tbody> | 
					
						
							|  |  |  |           </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2022-05-15 19:22:14 +04:00
										 |  |  |         <div class="w-100 d-block d-md-none"></div> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |         <div class="col-md"> | 
					
						
							|  |  |  |           <table class="table table-borderless table-striped"> | 
					
						
							|  |  |  |             <tbody> | 
					
						
							|  |  |  |               <tr> | 
					
						
							| 
									
										
										
										
											2022-05-05 23:19:24 +04:00
										 |  |  |                 <td i18n="address.total-received">First seen</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							| 
									
										
										
										
											2022-07-01 18:06:48 +02:00
										 |  |  |                   <app-timestamp [dateString]="node.first_seen"></app-timestamp> | 
					
						
							| 
									
										
										
										
											2022-05-05 23:19:24 +04:00
										 |  |  |                 </td> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               </tr> | 
					
						
							|  |  |  |               <tr> | 
					
						
							| 
									
										
										
										
											2022-05-05 23:19:24 +04:00
										 |  |  |                 <td i18n="address.total-sent">Last update</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							| 
									
										
										
										
											2022-07-01 18:06:48 +02:00
										 |  |  |                   <app-timestamp [dateString]="node.updated_at"></app-timestamp> | 
					
						
							| 
									
										
										
										
											2022-05-05 23:19:24 +04:00
										 |  |  |                 </td> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |               </tr> | 
					
						
							|  |  |  |               <tr> | 
					
						
							|  |  |  |                 <td i18n="address.balance">Color</td> | 
					
						
							|  |  |  |                 <td><div [ngStyle]="{'color': node.color}">{{ node.color }}</div></td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							| 
									
										
										
										
											2022-07-12 21:07:38 +02:00
										 |  |  |               <tr *ngIf="node.country"> | 
					
						
							|  |  |  |                 <td i18n="isp">ISP</td> | 
					
						
							|  |  |  |                 <td> | 
					
						
							| 
									
										
										
										
											2022-07-12 21:28:02 +02:00
										 |  |  |                   {{ node.as_organization }} [ASN {{node.as_number}}] | 
					
						
							| 
									
										
										
										
											2022-07-12 21:07:38 +02:00
										 |  |  |                 </td> | 
					
						
							|  |  |  |               </tr> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |             </tbody> | 
					
						
							|  |  |  |           </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2022-05-06 00:20:14 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-06 00:52:25 +04:00
										 |  |  |     <div class="input-group mb-3" *ngIf="node.socketsObject.length"> | 
					
						
							|  |  |  |       <div class="d-inline-block" ngbDropdown #myDrop="ngbDropdown" *ngIf="node.socketsObject.length > 1; else noDropdown"> | 
					
						
							|  |  |  |         <button class="btn btn-secondary dropdown-toggle" type="button" aria-expanded="false" ngbDropdownAnchor (focus)="myDrop.open()"><div class="dropdownLabel">{{ node.socketsObject[selectedSocketIndex].label }}</div></button> | 
					
						
							| 
									
										
										
										
											2022-05-06 00:20:14 +04:00
										 |  |  |         <div ngbDropdownMenu aria-labelledby="dropdownManual"> | 
					
						
							|  |  |  |           <button *ngFor="let socket of node.socketsObject; let i = index;" ngbDropdownItem (click)="changeSocket(i)">{{ socket.label }}</button> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |       <ng-template #noDropdown> | 
					
						
							|  |  |  |         <span class="input-group-text" id="basic-addon3">{{ node.socketsObject[selectedSocketIndex].label }}</span> | 
					
						
							|  |  |  |       </ng-template> | 
					
						
							|  |  |  |       <input type="text" class="form-control" aria-label="Text input with dropdown button" [value]="node.socketsObject[selectedSocketIndex].socket"> | 
					
						
							| 
									
										
										
										
											2022-05-06 00:52:25 +04:00
										 |  |  |       <button class="btn btn-secondary ml-1" type="button" id="inputGroupFileAddon04" (mouseover)="qrCodeVisible = true" (mouseout)="qrCodeVisible = false"> | 
					
						
							|  |  |  |         <fa-icon [icon]="['fas', 'qrcode']" [fixedWidth]="true"></fa-icon> | 
					
						
							|  |  |  |         <div class="qr-wrapper" [hidden]="!qrCodeVisible"> | 
					
						
							|  |  |  |           <app-qrcode [size]="200" [data]="node.socketsObject[selectedSocketIndex].socket"></app-qrcode> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |       <button class="btn btn-secondary ml-1" type="button" id="inputGroupFileAddon04"> | 
					
						
							| 
									
										
										
										
											2022-05-06 00:20:14 +04:00
										 |  |  |         <app-clipboard [text]="node.socketsObject[selectedSocketIndex].socket"></app-clipboard> | 
					
						
							|  |  |  |       </button> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2022-07-02 16:46:57 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <app-node-statistics-chart [publicKey]="node.public_key"></app-node-statistics-chart> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  |      | 
					
						
							|  |  |  |     <br> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-23 15:43:38 +02:00
										 |  |  |     <div class="d-flex justify-content-between"> | 
					
						
							| 
									
										
										
										
											2022-07-24 11:51:05 +02:00
										 |  |  |       <h2>Channels ({{ channelsListStatus === 'open' ? node.channel_active_count : node.channel_closed_count }})</h2> | 
					
						
							| 
									
										
										
										
											2022-07-23 15:43:38 +02:00
										 |  |  |       <div class="d-flex align-items-center justify-content-end"> | 
					
						
							|  |  |  |         <span style="margin-bottom: 0.5rem">List</span>  | 
					
						
							|  |  |  |         <label class="switch"> | 
					
						
							|  |  |  |           <input type="checkbox" (change)="channelsListModeChange($event)"> | 
					
						
							|  |  |  |           <span class="slider round"></span> | 
					
						
							|  |  |  |         </label> | 
					
						
							|  |  |  |          <span style="margin-bottom: 0.5rem">Map</span> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <app-nodes-channels-map *ngIf="channelsListMode === 'map'" [style]="'nodepage'" [publicKey]="node.public_key"></app-nodes-channels-map> | 
					
						
							| 
									
										
										
										
											2022-07-24 11:51:05 +02:00
										 |  |  |     <app-channels-list *ngIf="channelsListMode === 'list'" [publicKey]="node.public_key" | 
					
						
							|  |  |  |       (channelsStatusChangedEvent)="onChannelsListStatusChanged($event)"></app-channels-list> | 
					
						
							| 
									
										
										
										
											2022-05-01 03:01:27 +04:00
										 |  |  | 
 | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <br> |