Skeleton loader updates
This commit is contained in:
		
							parent
							
								
									0c71d505f2
								
							
						
					
					
						commit
						dd9ff41fde
					
				@ -103,7 +103,11 @@
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
    <div class="clearfix"></div>
 | 
					    <div class="clearfix"></div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div style="height: 413px;  padding: 15px;"><span class="skeleton-loader" style="height: 398px;"></span></div>
 | 
					    <div style="height: 413px;  padding: 15px;">
 | 
				
			||||||
 | 
					      <div class="text-center loading-spinner">
 | 
				
			||||||
 | 
					        <div class="spinner-border text-light"></div>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <br>
 | 
					    <br>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -56,3 +56,15 @@ app-fiat {
 | 
				
			|||||||
    font-size: 1.4rem;
 | 
					    font-size: 1.4rem;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.loading-spinner {
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					  top: 400px;
 | 
				
			||||||
 | 
					  z-index: 100;
 | 
				
			||||||
 | 
					  width: 100%;
 | 
				
			||||||
 | 
					  left: 0;
 | 
				
			||||||
 | 
					  @media (max-width: 767.98px) {
 | 
				
			||||||
 | 
					    top: 450px;
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@ -4,7 +4,8 @@
 | 
				
			|||||||
    <h1 class="mb-0 text-truncate">{{ node.alias }}</h1>
 | 
					    <h1 class="mb-0 text-truncate">{{ node.alias }}</h1>
 | 
				
			||||||
    <span class="tx-link">
 | 
					    <span class="tx-link">
 | 
				
			||||||
      <a [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">
 | 
					      <a [routerLink]="['/lightning/node' | relativeUrl, node.public_key]">
 | 
				
			||||||
        {{ node.public_key | shortenString : publicKeySize }}
 | 
					        <span class="d-inline d-lg-none">{{ node.public_key | shortenString : 24 }}</span>
 | 
				
			||||||
 | 
					        <span class="d-none d-lg-inline">{{ node.public_key }}</span>
 | 
				
			||||||
      </a>
 | 
					      </a>
 | 
				
			||||||
      <app-clipboard [text]="node.public_key"></app-clipboard>
 | 
					      <app-clipboard [text]="node.public_key"></app-clipboard>
 | 
				
			||||||
    </span>
 | 
					    </span>
 | 
				
			||||||
@ -157,7 +158,7 @@
 | 
				
			|||||||
  <div class="container-xl">
 | 
					  <div class="container-xl">
 | 
				
			||||||
    <h5 class="mb-0" style="color: #ffffff66" i18n="lightning.node">Lightning node</h5>
 | 
					    <h5 class="mb-0" style="color: #ffffff66" i18n="lightning.node">Lightning node</h5>
 | 
				
			||||||
    <div class="title-container mb-2">
 | 
					    <div class="title-container mb-2">
 | 
				
			||||||
      <h1 class="mb-0"><span class="skeleton-loader" style="width: 250px; height: 25px;"></span></h1>
 | 
					      <h1 class="mb-0"><span class="skeleton-loader" style="width: 250px; height: 36px;"></span></h1>
 | 
				
			||||||
      <span class="tx-link">
 | 
					      <span class="tx-link">
 | 
				
			||||||
        <span class="skeleton-loader" style="margin-bottom: 5px; width: 80%;"></span>
 | 
					        <span class="skeleton-loader" style="margin-bottom: 5px; width: 80%;"></span>
 | 
				
			||||||
      </span>
 | 
					      </span>
 | 
				
			||||||
@ -219,7 +220,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <div class="input-group mt-3" >
 | 
					    <div class="input-group mt-3" >
 | 
				
			||||||
    <span class="input-group-text" id="basic-addon3"><span class="skeleton-loader" style="width: 75px;"></span></span>
 | 
					    <span class="input-group-text" id="basic-addon3"><span class="skeleton-loader" style="width: 75px;"></span></span>
 | 
				
			||||||
      <input type="text" class="form-control" disabled>
 | 
					      <input type="text" class="form-control" disabled style="opacity: 0.3;">
 | 
				
			||||||
      <button class="btn btn-secondary ml-1" type="button" id="inputGroupFileAddon04" [disabled]="true">
 | 
					      <button class="btn btn-secondary ml-1" type="button" id="inputGroupFileAddon04" [disabled]="true">
 | 
				
			||||||
        <fa-icon [icon]="['fas', 'qrcode']" [fixedWidth]="true"></fa-icon>
 | 
					        <fa-icon [icon]="['fas', 'qrcode']" [fixedWidth]="true"></fa-icon>
 | 
				
			||||||
      </button>
 | 
					      </button>
 | 
				
			||||||
@ -232,10 +233,18 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <div class="row">
 | 
					    <div class="row">
 | 
				
			||||||
      <div class="col-sm">
 | 
					      <div class="col-sm">
 | 
				
			||||||
        <div style="height: 400px;"><span class="skeleton-loader" style="height: 400px;"></span></div>
 | 
					        <div style="height: 400px;">
 | 
				
			||||||
 | 
					          <div class="text-center loadingGraphs">
 | 
				
			||||||
 | 
					            <div class="spinner-border text-light"></div>
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div class="col-sm">
 | 
					      <div class="col-sm">
 | 
				
			||||||
        <div style="height: 400px;"><span class="skeleton-loader" style="height: 400px;"></span></div>
 | 
					        <div style="height: 400px;">
 | 
				
			||||||
 | 
					          <div class="text-center loadingGraphs">
 | 
				
			||||||
 | 
					            <div class="spinner-border text-light"></div>
 | 
				
			||||||
 | 
					          </div>
 | 
				
			||||||
 | 
					        </div>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -70,3 +70,10 @@ app-fiat {
 | 
				
			|||||||
    height: 1.5rem;
 | 
					    height: 1.5rem;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.loadingGraphs {
 | 
				
			||||||
 | 
					  position: absolute;
 | 
				
			||||||
 | 
					  top: 50%;
 | 
				
			||||||
 | 
					  left: calc(50% - 15px);
 | 
				
			||||||
 | 
					  z-index: 100;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -4,7 +4,6 @@ import { Observable } from 'rxjs';
 | 
				
			|||||||
import { catchError, map, switchMap } from 'rxjs/operators';
 | 
					import { catchError, map, switchMap } from 'rxjs/operators';
 | 
				
			||||||
import { SeoService } from 'src/app/services/seo.service';
 | 
					import { SeoService } from 'src/app/services/seo.service';
 | 
				
			||||||
import { LightningApiService } from '../lightning-api.service';
 | 
					import { LightningApiService } from '../lightning-api.service';
 | 
				
			||||||
import { isMobile } from '../../shared/common.utils';
 | 
					 | 
				
			||||||
import { GeolocationData } from 'src/app/shared/components/geolocation/geolocation.component';
 | 
					import { GeolocationData } from 'src/app/shared/components/geolocation/geolocation.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
@ -23,17 +22,12 @@ export class NodeComponent implements OnInit {
 | 
				
			|||||||
  error: Error;
 | 
					  error: Error;
 | 
				
			||||||
  publicKey: string;
 | 
					  publicKey: string;
 | 
				
			||||||
  channelListLoading = false;
 | 
					  channelListLoading = false;
 | 
				
			||||||
  publicKeySize = 99;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(
 | 
					  constructor(
 | 
				
			||||||
    private lightningApiService: LightningApiService,
 | 
					    private lightningApiService: LightningApiService,
 | 
				
			||||||
    private activatedRoute: ActivatedRoute,
 | 
					    private activatedRoute: ActivatedRoute,
 | 
				
			||||||
    private seoService: SeoService,
 | 
					    private seoService: SeoService,
 | 
				
			||||||
  ) {
 | 
					  ) { }
 | 
				
			||||||
    if (isMobile()) {
 | 
					 | 
				
			||||||
      this.publicKeySize = 12;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ngOnInit(): void {
 | 
					  ngOnInit(): void {
 | 
				
			||||||
    this.node$ = this.activatedRoute.paramMap
 | 
					    this.node$ = this.activatedRoute.paramMap
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user