build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
+17 -9
View File
@@ -15,11 +15,13 @@ import { ConfigurationWizardService } from '../../configuration-wizard/configura
styleUrls: ['./codes.component.scss']
})
export class CodesComponent implements OnInit, AfterViewInit {
/** Codes data. */
codesData: any;
/** Columns to be displayed in codes table. */
displayedColumns: string[] = ['name', 'systemDefined'];
displayedColumns: string[] = [
'name',
'systemDefined'
];
/** Data source for codes table. */
dataSource: MatTableDataSource<any>;
@@ -44,11 +46,13 @@ export class CodesComponent implements OnInit, AfterViewInit {
* @param {ConfigurationWizardService} configurationWizardService ConfigurationWizard Service.
* @param {PopoverService} popoverService PopoverService.
*/
constructor(private route: ActivatedRoute,
private router: Router,
private configurationWizardService: ConfigurationWizardService,
private popoverService: PopoverService) {
this.route.data.subscribe(( data: { codes: any }) => {
constructor(
private route: ActivatedRoute,
private router: Router,
private configurationWizardService: ConfigurationWizardService,
private popoverService: PopoverService
) {
this.route.data.subscribe((data: { codes: any }) => {
this.codesData = data.codes;
});
}
@@ -84,7 +88,12 @@ export class CodesComponent implements OnInit, AfterViewInit {
* @param position String.
* @param backdrop Boolean.
*/
showPopover(template: TemplateRef<any>, target: HTMLElement | ElementRef<any>, position: string, backdrop: boolean): void {
showPopover(
template: TemplateRef<any>,
target: HTMLElement | ElementRef<any>,
position: string,
backdrop: boolean
): void {
setTimeout(() => this.popoverService.open(template, target, position, backdrop, {}), 200);
}
@@ -123,5 +132,4 @@ export class CodesComponent implements OnInit, AfterViewInit {
this.configurationWizardService.showSystemCodes = true;
this.router.navigate(['/system']);
}
}