Angular and swagger codegen update.
LocationBasedServices/mowesta/master This commit looks good

Upgrade Angular to 9.
Update js dependencies to latest versions.
Remove js dependencies that are no longer required.
Replace angular client gen with official swagger generator.
Change build scripts and adapt code to new client.
This commit is contained in:
2020-02-28 20:55:40 +01:00
parent 7638c0b667
commit 33e05196c8
53 changed files with 4486 additions and 3415 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
import { DataSource } from '@angular/cdk/table';
import { CollectionViewer } from '@angular/cdk/collections';
import { Observable, BehaviorSubject, Subscription } from 'rxjs';
import { ApiClientService } from '../../api';
import { DefaultService } from '../../api/api/api';
import { HttpResponse } from '@angular/common/http';
import { MatPaginator } from '@angular/material';
import { MatPaginator } from '@angular/material/paginator';
export interface Page<E> {
offset: number;
@@ -45,7 +45,7 @@ export abstract class AbstractPageService<D, P extends Page<D>> extends DataSour
private subscriptions = 0;
readonly loading = new BehaviorSubject<boolean>(false);
constructor(protected apiClientService: ApiClientService) {
constructor(protected apiClientService: DefaultService) {
super();
this.page.subscribe((page) => {
this.elements.next(page.elements);
@@ -93,7 +93,7 @@ export abstract class AbstractReferencePageService<D, P extends Page<D>, R> exte
readonly references: Map<number, R> = new Map<number, R>();
private referenceRequests = 0;
constructor(protected apiClientService: ApiClientService) {
constructor(protected apiClientService: DefaultService) {
super(apiClientService);
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { MatSnackBar } from '@angular/material';
import { MatSnackBar } from '@angular/material/snack-bar';
export class Snackbars {
+1 -1
View File
@@ -1,4 +1,4 @@
import { MatTable } from '@angular/material';
import { MatTable } from '@angular/material/table';
import { ElementRef } from '@angular/core';
export interface TableColumn {