Format files with prettier.
This commit is contained in:
parent
67b84a233b
commit
10beaea9be
@ -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(() => {
|
||||||
|
@ -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(() => {
|
||||||
|
@ -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