Format files with prettier.

This commit is contained in:
Spencer Ofwiti 2021-05-11 20:09:25 +03:00
parent 67b84a233b
commit 10beaea9be
5 changed files with 10 additions and 14 deletions

View File

@ -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,

View File

@ -8,9 +8,8 @@ describe('NetworkStatusComponent', () => {
beforeEach(async () => { beforeEach(async () => {
await TestBed.configureTestingModule({ await TestBed.configureTestingModule({
declarations: [ NetworkStatusComponent ] declarations: [NetworkStatusComponent],
}) }).compileComponents();
.compileComponents();
}); });
beforeEach(() => { beforeEach(() => {

View File

@ -4,19 +4,16 @@ import {Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef} from '@an
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(() => {

View File

@ -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],
}) })