build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -8,9 +8,8 @@ describe('ManageExternalEventsComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ ManageExternalEventsComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [ManageExternalEventsComponent]
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -11,7 +11,6 @@ import { SystemService } from '../system.service';
|
||||
styleUrls: ['./manage-external-events.component.scss']
|
||||
})
|
||||
export class ManageExternalEventsComponent implements OnInit {
|
||||
|
||||
/** Events Data. */
|
||||
eventsData: any;
|
||||
externalEventConfigurations: any = {};
|
||||
@@ -19,17 +18,22 @@ export class ManageExternalEventsComponent implements OnInit {
|
||||
existAnyUpdate = false;
|
||||
|
||||
/** Columns to be displayed in events table. */
|
||||
displayedColumns: string[] = ['eventType', 'status'];
|
||||
displayedColumns: string[] = [
|
||||
'eventType',
|
||||
'status'
|
||||
];
|
||||
/** Data source for reports table. */
|
||||
dataSource: MatTableDataSource<any>;
|
||||
|
||||
/** Paginator for reports table. */
|
||||
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
||||
/** Sorter for reports table. */
|
||||
@ViewChild(MatSort, { static: true }) sort: MatSort;
|
||||
/** Paginator for reports table. */
|
||||
@ViewChild(MatPaginator, { static: true }) paginator: MatPaginator;
|
||||
/** Sorter for reports table. */
|
||||
@ViewChild(MatSort, { static: true }) sort: MatSort;
|
||||
|
||||
constructor(private route: ActivatedRoute,
|
||||
private systemService: SystemService) {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
private systemService: SystemService
|
||||
) {
|
||||
this.route.data.subscribe((data: { events: any }) => {
|
||||
this.eventsData = data.events.externalEventConfiguration;
|
||||
});
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {
|
||||
Router, Resolve,
|
||||
RouterStateSnapshot,
|
||||
ActivatedRouteSnapshot
|
||||
} from '@angular/router';
|
||||
import { Router, Resolve, RouterStateSnapshot, ActivatedRouteSnapshot } from '@angular/router';
|
||||
import { Observable, of } from 'rxjs';
|
||||
import { SystemService } from '../system.service';
|
||||
|
||||
@@ -11,17 +7,16 @@ import { SystemService } from '../system.service';
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class ManageExternalEventsResolver implements Resolve<boolean> {
|
||||
|
||||
/**
|
||||
* @param {SystemService} systemService System service.
|
||||
*/
|
||||
constructor(private systemService: SystemService) {}
|
||||
constructor(private systemService: SystemService) {}
|
||||
|
||||
/**
|
||||
* Returns the Configuration data.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
return this.systemService.getExternalEventConfiguration();
|
||||
}
|
||||
/**
|
||||
* Returns the Configuration data.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
return this.systemService.getExternalEventConfiguration();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user