Format files with prettier.
This commit is contained in:
parent
67b84a233b
commit
10beaea9be
@ -6,7 +6,7 @@ import {
|
|||||||
TransactionService,
|
TransactionService,
|
||||||
} from '@app/_services';
|
} from '@app/_services';
|
||||||
import { catchError } from 'rxjs/operators';
|
import { catchError } from 'rxjs/operators';
|
||||||
import {SwUpdate} from '@angular/service-worker';
|
import { SwUpdate } from '@angular/service-worker';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
@ -32,7 +32,7 @@ import { ServiceWorkerModule } from '@angular/service-worker';
|
|||||||
serverLoggingUrl: `${environment.loggingUrl}/api/logs/`,
|
serverLoggingUrl: `${environment.loggingUrl}/api/logs/`,
|
||||||
disableConsoleLogging: false,
|
disableConsoleLogging: false,
|
||||||
}),
|
}),
|
||||||
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
|
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }),
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
AuthGuard,
|
AuthGuard,
|
||||||
|
@ -8,9 +8,8 @@ describe('NetworkStatusComponent', () => {
|
|||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ NetworkStatusComponent ]
|
declarations: [NetworkStatusComponent],
|
||||||
})
|
}).compileComponents();
|
||||||
.compileComponents();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
@ -1,22 +1,19 @@
|
|||||||
import {Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef} from '@angular/core';
|
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-network-status',
|
selector: 'app-network-status',
|
||||||
templateUrl: './network-status.component.html',
|
templateUrl: './network-status.component.html',
|
||||||
styleUrls: ['./network-status.component.scss'],
|
styleUrls: ['./network-status.component.scss'],
|
||||||
changeDetection: ChangeDetectionStrategy.OnPush
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||||
})
|
})
|
||||||
export class NetworkStatusComponent implements OnInit {
|
export class NetworkStatusComponent implements OnInit {
|
||||||
noInternetConnection: boolean = !navigator.onLine;
|
noInternetConnection: boolean = !navigator.onLine;
|
||||||
|
|
||||||
constructor(
|
constructor(private cdr: ChangeDetectorRef) {
|
||||||
private cdr: ChangeDetectorRef,
|
|
||||||
) {
|
|
||||||
this.handleNetworkChange();
|
this.handleNetworkChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {}
|
||||||
}
|
|
||||||
|
|
||||||
handleNetworkChange(): void {
|
handleNetworkChange(): void {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -23,7 +23,7 @@ import { NetworkStatusComponent } from './network-status/network-status.componen
|
|||||||
TokenRatioPipe,
|
TokenRatioPipe,
|
||||||
ErrorDialogComponent,
|
ErrorDialogComponent,
|
||||||
SafePipe,
|
SafePipe,
|
||||||
NetworkStatusComponent
|
NetworkStatusComponent,
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
TopbarComponent,
|
TopbarComponent,
|
||||||
@ -32,7 +32,7 @@ import { NetworkStatusComponent } from './network-status/network-status.componen
|
|||||||
MenuSelectionDirective,
|
MenuSelectionDirective,
|
||||||
TokenRatioPipe,
|
TokenRatioPipe,
|
||||||
SafePipe,
|
SafePipe,
|
||||||
NetworkStatusComponent
|
NetworkStatusComponent,
|
||||||
],
|
],
|
||||||
imports: [CommonModule, RouterModule, MatIconModule, MatDialogModule],
|
imports: [CommonModule, RouterModule, MatIconModule, MatDialogModule],
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user