From 0c71d505f2aa0d3bc8fe5d54c656c8ded04e6287 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 29 Aug 2022 14:06:50 +0200 Subject: [PATCH] Node and Channel page skeleton loaders --- .../lightning/channel/channel.component.html | 56 +++++++++++- .../lightning/channel/channel.component.ts | 5 +- .../app/lightning/node/node.component.html | 91 ++++++++++++++++++- 3 files changed, 147 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/lightning/channel/channel.component.html b/frontend/src/app/lightning/channel/channel.component.html index 50bb52eaa..e791dbe12 100644 --- a/frontend/src/app/lightning/channel/channel.component.html +++ b/frontend/src/app/lightning/channel/channel.component.html @@ -1,4 +1,4 @@ -
+
Lightning channel

{{ channel.short_id }}

@@ -86,4 +86,58 @@

{{ error.status }}: {{ error.error }}
+ + + +
+
Lightning channel
+
+

+ + + +
+
+ +
+ +
+ +
+ +
+ +
+ +
+
+ + + + + + + + + + + +
+
+
+
+ + + + + + + +
+
+
+ +
+ +
\ No newline at end of file diff --git a/frontend/src/app/lightning/channel/channel.component.ts b/frontend/src/app/lightning/channel/channel.component.ts index 553173052..b1e39dda7 100644 --- a/frontend/src/app/lightning/channel/channel.component.ts +++ b/frontend/src/app/lightning/channel/channel.component.ts @@ -1,9 +1,8 @@ import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; import { ActivatedRoute, ParamMap } from '@angular/router'; -import { forkJoin, Observable, of, share, zip } from 'rxjs'; -import { catchError, map, shareReplay, switchMap, tap } from 'rxjs/operators'; +import { Observable, of, zip } from 'rxjs'; +import { catchError, map, shareReplay, switchMap } from 'rxjs/operators'; import { IChannel } from 'src/app/interfaces/node-api.interface'; -import { ApiService } from 'src/app/services/api.service'; import { ElectrsApiService } from 'src/app/services/electrs-api.service'; import { SeoService } from 'src/app/services/seo.service'; import { LightningApiService } from '../lightning-api.service'; diff --git a/frontend/src/app/lightning/node/node.component.html b/frontend/src/app/lightning/node/node.component.html index def6e28e6..b08f3ccb2 100644 --- a/frontend/src/app/lightning/node/node.component.html +++ b/frontend/src/app/lightning/node/node.component.html @@ -1,4 +1,4 @@ -
+
Lightning node

{{ node.alias }}

@@ -153,4 +153,93 @@
+ +
+
Lightning node
+
+

+ + + +
+ +
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + +
+
+
+ +
+ +
+ + + + +
+ +
+ +
+
+
+
+
+
+
+
+ +
+
+