Remove rxjs-compat
This commit is contained in:
parent
39b2d9dbfe
commit
0e7890d91e
|
@ -22,8 +22,7 @@
|
|||
],
|
||||
"styles": [
|
||||
"src/styles.css",
|
||||
"src/assets/css/interactive-mining.css",
|
||||
"src/assets/css/animations.css"
|
||||
"src/assets/css/interactive-mining.css"
|
||||
],
|
||||
"scripts": [
|
||||
"node_modules/jquery/dist/jquery.min.js",
|
||||
|
@ -145,4 +144,4 @@
|
|||
"prefix": "app"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,17 +18,16 @@
|
|||
"@angular/compiler": "^7.2.14",
|
||||
"@angular/core": "^7.2.14",
|
||||
"@angular/forms": "^7.2.14",
|
||||
"@angular/http": "^7.2.14",
|
||||
"@angular/platform-browser": "^7.2.14",
|
||||
"@angular/platform-browser-dynamic": "^7.2.14",
|
||||
"@angular/router": "^7.2.14",
|
||||
"core-js": "^2.4.1",
|
||||
"file-saver": "^2.0.2",
|
||||
"jquery": "^3.4.1",
|
||||
"ng-focus-if": "^1.0.7",
|
||||
"ng2-nouislider": "^1.8.2",
|
||||
"ngx-pagination": "^3.2.1",
|
||||
"nouislider": "^13.1.5",
|
||||
"rxjs": "^6.5.1",
|
||||
"tslib": "^1.9.0",
|
||||
"uikit": "^3.1.5",
|
||||
"zone.js": "^0.9.1"
|
||||
|
@ -53,10 +52,7 @@
|
|||
"karma-jasmine-html-reporter": "^1.4.2",
|
||||
"ng-packagr": "^5.2.0",
|
||||
"protractor": "~5.4.2",
|
||||
"rxjs": "6.5.1",
|
||||
"rxjs-compat": "^6.5.1",
|
||||
"ts-node": "~8.2.0",
|
||||
"tslint": "~5.16.0",
|
||||
"typescript": "~3.2.4"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import {Injectable} from '@angular/core';
|
||||
import {Content} from './content';
|
||||
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
||||
import { Observable } from 'rxjs';
|
||||
import { map, catchError } from 'rxjs/operators';
|
||||
import {Util} from '../util';
|
||||
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
||||
|
||||
|
||||
@Injectable()
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import UIkit from 'uikit';
|
||||
import {HttpErrorResponse, HttpResponse} from '@angular/common/http';
|
||||
import {ErrorObservable} from 'rxjs/observable/ErrorObservable';
|
||||
import { environment } from '../environments/environment';
|
||||
import {throwError} from 'rxjs/internal/observable/throwError';
|
||||
import {saveAs} from 'file-saver';
|
||||
import {Observable} from 'rxjs';
|
||||
import {throwError} from 'rxjs';
|
||||
|
||||
export class Util {
|
||||
|
||||
public handleError (err: HttpErrorResponse): ErrorObservable<never> {
|
||||
public handleError (err: HttpErrorResponse): Observable<never> {
|
||||
if (err.error instanceof Error) {
|
||||
console.error('Client-side error occured.');
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue