- libary updates for prettier, eslint and typescript

- uninstall @types/xml2js (save-dev) and core-js (save)
- remove HelloWorld component from app.ts and app2.ts
This commit is contained in:
Arno Kaimbacher 2023-01-16 15:19:14 +01:00
commit 426228705c
25 changed files with 961 additions and 4286 deletions

View file

@ -25,11 +25,11 @@ export default class SitelinkViewComponent extends Vue {
}
getYears(): void {
const newSubs: Subscription = DatasetService.getYears().subscribe(
(res: string[]) => this.dataHandler(res),
(error: string) => this.errorHandler(error),
() => newSubs.unsubscribe(),
);
const newSubs: Subscription = DatasetService.getYears().subscribe({
next: (res: string[]) => this.dataHandler(res),
error: (error: string) => this.errorHandler(error),
complete: () => newSubs.unsubscribe(),
});
// this.subscriptions.push(newSubs);
}
@ -43,13 +43,14 @@ export default class SitelinkViewComponent extends Vue {
select(year: string): void {
this.selected = year;
const newSubs = DatasetService.getDocuments(year).subscribe(
(res: Array<DbDataset>) => {
const newSubs: Subscription = DatasetService.getDocuments(year).subscribe({
next: (res: Array<DbDataset>) => {
this.datasets = res;
},
(error: string) => this.errorHandler(error),
);
this.subscriptions.push(newSubs);
error: (error: string) => this.errorHandler(error),
complete: () => newSubs.unsubscribe(),
});
// this.subscriptions.push(newSubs);
}
private dataHandler(res: string[]): void {