Dashboard: update to Angular 9

pull/391/head
pabloFuente 2020-02-07 19:58:50 +01:00
parent e666b90360
commit e2a2c1cbd6
9 changed files with 2103 additions and 1343 deletions

View File

@ -11,6 +11,7 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist", "outputPath": "dist",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
@ -28,6 +29,12 @@
}, },
"configurations": { "configurations": {
"production": { "production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "6kb"
}
],
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,

File diff suppressed because it is too large Load Diff

View File

@ -1,31 +1,32 @@
{ {
"dependencies": { "dependencies": {
"@angular/animations": "8.2.14", "@angular/animations": "9.0.0",
"@angular/cdk": "8.2.3", "@angular/cdk": "8.2.3",
"@angular/common": "8.2.14", "@angular/common": "9.0.0",
"@angular/compiler": "8.2.14", "@angular/compiler": "9.0.0",
"@angular/core": "8.2.14", "@angular/core": "9.0.0",
"@angular/flex-layout": "8.0.0-beta.27", "@angular/flex-layout": "8.0.0-beta.27",
"@angular/forms": "8.2.14", "@angular/forms": "9.0.0",
"@angular/material": "8.2.3", "@angular/material": "8.2.3",
"@angular/platform-browser": "8.2.14", "@angular/platform-browser": "9.0.0",
"@angular/platform-browser-dynamic": "8.2.14", "@angular/platform-browser-dynamic": "9.0.0",
"@angular/router": "8.2.14", "@angular/router": "9.0.0",
"core-js": "3.6.4", "core-js": "3.6.4",
"hammerjs": "2.0.8", "hammerjs": "2.0.8",
"jquery": "3.4.1", "jquery": "3.4.1",
"openvidu-browser": "2.11.0", "openvidu-browser": "2.11.0",
"rxjs": "6.5.4", "rxjs": "6.5.4",
"zone.js": "0.10.2" "tslib": "^1.10.0",
"zone.js": "~0.10.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "0.803.24", "@angular-devkit/build-angular": "~0.900.1",
"@angular/cli": "8.3.24", "@angular/cli": "9.0.1",
"@angular/compiler-cli": "8.2.14", "@angular/compiler-cli": "9.0.0",
"@angular/language-service": "8.2.14", "@angular/language-service": "9.0.0",
"@types/jasmine": "3.5.2", "@types/jasmine": "3.5.2",
"@types/node": "13.5.3", "@types/node": "^12.11.1",
"codelyzer": "5.2.1", "codelyzer": "^5.1.2",
"jasmine-core": "3.5.0", "jasmine-core": "3.5.0",
"jasmine-spec-reporter": "4.2.1", "jasmine-spec-reporter": "4.2.1",
"karma": "4.4.1", "karma": "4.4.1",
@ -36,7 +37,7 @@
"protractor": "5.4.3", "protractor": "5.4.3",
"ts-node": "8.6.2", "ts-node": "8.6.2",
"tslint": "6.0.0", "tslint": "6.0.0",
"typescript": "3.5.3" "typescript": "3.7.5"
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"name": "frontend", "name": "frontend",

View File

@ -41,4 +41,4 @@ const appRoutes: Routes = [
} }
]; ];
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true }); export const routing: ModuleWithProviders<RouterModule> = RouterModule.forRoot(appRoutes, { useHash: true });

View File

@ -17,7 +17,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
websocket: WebSocket; websocket: WebSocket;
@ViewChild('scrollMe', { static: false }) private myScrollContainer: ElementRef; @ViewChild('scrollMe') private myScrollContainer: ElementRef;
lockScroll = false; lockScroll = false;
infoSubscription: Subscription; infoSubscription: Subscription;

View File

@ -7,7 +7,7 @@ import { Subscriber } from 'openvidu-browser';
}) })
export class OpenViduVideoComponent implements AfterViewInit { export class OpenViduVideoComponent implements AfterViewInit {
@ViewChild('videoElement', { static: false }) elementRef: ElementRef; @ViewChild('videoElement') elementRef: ElementRef;
_subscriber: Subscriber; _subscriber: Subscriber;

View File

@ -2,12 +2,11 @@
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/app", "outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": "", "baseUrl": "",
"types": [] "types": []
}, },
"exclude": [ "files": [
"test.ts", "main.ts",
"**/*.spec.ts" "polyfills.ts"
] ]
} }

View File

@ -2,7 +2,6 @@
"extends": "../tsconfig.json", "extends": "../tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../out-tsc/spec", "outDir": "../out-tsc/spec",
"module": "commonjs",
"target": "es5", "target": "es5",
"baseUrl": "", "baseUrl": "",
"types": [ "types": [

View File

@ -1,6 +1,7 @@
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"module": "esnext",
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"baseUrl": "src", "baseUrl": "src",
"sourceMap": true, "sourceMap": true,