Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
inpercima committed Jul 18, 2023
1 parent 89a699f commit e2ea6ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AppComponent {
this.overlayContainer.getContainerElement().classList.add(`${environment.theme}-theme`);
}

openDialog(ref: TemplateRef<any>): void {
openDialog(ref: TemplateRef<Element>): void {
this.dialog.open(ref, {
maxWidth: '800px',
});
Expand Down
6 changes: 3 additions & 3 deletions src/app/features/dashboard/dashboard.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export class DashboardComponent implements OnInit {
constructor(private dataService: DataService) {}

ngOnInit(): void {
this.dataService.createDate('', 'Germany').subscribe((dataserie: any) => (this.cdGermany = dataserie));
this.dataService.createDate(`AND (Bundesland='Sachsen')`, 'Saxony').subscribe((dataserie: any) => (this.cdSaxony = dataserie));
this.dataService.createDate(`AND (IdLandkreis='14713')`, 'Leipzig').subscribe((dataserie: any) => (this.cdLeipzig = dataserie));
this.dataService.createDate('', 'Germany').subscribe((dataserie: ChartConfiguration['data']) => (this.cdGermany = dataserie));
this.dataService.createDate(`AND (Bundesland='Sachsen')`, 'Saxony').subscribe((dataserie: ChartConfiguration['data']) => (this.cdSaxony = dataserie));
this.dataService.createDate(`AND (IdLandkreis='14713')`, 'Leipzig').subscribe((dataserie: ChartConfiguration['data']) => (this.cdLeipzig = dataserie));
}
}
2 changes: 2 additions & 0 deletions src/app/features/dashboard/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class DataService {
const result = new Map<string, number>();
return this.loadDataFromArcgis(region).pipe(
map(response => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
response.features.forEach((element: any) => {
const attributes = element.attributes;
result.set(attributes.Meldedatum, attributes.AnzahlFaelle);
Expand All @@ -53,6 +54,7 @@ export class DataService {
);
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
loadDataFromArcgis(region: string): Observable<any> {
return this.http.get('https://services7.arcgis.com/mOBPykOjAyBO2ZKk/ArcGIS/rest/services/Covid19_RKI_Sums/FeatureServer/0/query', {
params: {
Expand Down

0 comments on commit e2ea6ad

Please sign in to comment.