Upgrade to angular 10

This commit is contained in:
Willem Dantuma 2020-09-25 19:27:53 +02:00
parent 9ca047923f
commit 92774647ff
9 changed files with 2307 additions and 4879 deletions

View File

@ -22,18 +22,18 @@
"assets": [ "assets": [
{ {
"glob": "**/*", "glob": "**/*",
"input":"src/assets/images", "input": "src/assets/images",
"output":"/images" "output": "/images"
}, },
{ {
"glob": "silent-refresh.html", "glob": "silent-refresh.html",
"input":"src/assets", "input": "src/assets",
"output":"/" "output": "/"
}, },
{ {
"glob": "favicon.ico", "glob": "favicon.ico",
"input":"src/assets", "input": "src/assets",
"output":"/" "output": "/"
}, },
"src/configuration.json" "src/configuration.json"
], ],
@ -43,8 +43,7 @@
"node_modules/font-awesome/css/font-awesome.min.css", "node_modules/font-awesome/css/font-awesome.min.css",
"fonts/FMIconFont/style.css" "fonts/FMIconFont/style.css"
], ],
"scripts": [], "scripts": []
"es5BrowserSupport": true
}, },
"configurations": { "configurations": {
"production": { "production": {

6919
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,26 +11,26 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~9.1.0", "@angular/animations": "~10.1.3",
"@angular/common": "~9.1.0", "@angular/common": "~10.1.3",
"@angular/compiler": "~9.1.0", "@angular/compiler": "~10.1.3",
"@angular/core": "~9.1.0", "@angular/core": "~10.1.3",
"@angular/forms": "~9.1.0", "@angular/forms": "~10.1.3",
"@angular/platform-browser": "~9.1.0", "@angular/platform-browser": "~10.1.3",
"@angular/platform-browser-dynamic": "~9.1.0", "@angular/platform-browser-dynamic": "~10.1.3",
"@angular/router": "~9.1.0", "@angular/router": "~10.1.3",
"@farmmaps/common": ">=0.0.1-prerelease.399 <0.0.1", "@farmmaps/common": "file:dist/common",
"@farmmaps/common-map": ">=0.0.1-prerelease.399 <0.0.1", "@farmmaps/common-map": ">=0.0.1-prerelease.399 <0.0.1",
"@microsoft/signalr": "^3.1.3", "@microsoft/signalr": "^3.1.3",
"@ng-bootstrap/ng-bootstrap": "^6.0", "@ng-bootstrap/ng-bootstrap": "^7.0",
"@ngrx/effects": "^9.0", "@ngrx/effects": "^10.0",
"@ngrx/router-store": "^9.0", "@ngrx/router-store": "^10.0",
"@ngrx/store": "^9.0", "@ngrx/store": "^10.0",
"angular-oauth2-oidc": "^9.1", "angular-oauth2-oidc": "^10.0.3",
"bootstrap": "^4.4.1", "bootstrap": "^4.4.1",
"core-js": "^2.6.11", "core-js": "^2.6.11",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"ngrx-store-localstorage": "^9.0", "ngrx-store-localstorage": "^10.0",
"ngx-bootstrap": "^5.6.1", "ngx-bootstrap": "^5.6.1",
"ngx-openlayers": "1.0.0-next.13", "ngx-openlayers": "1.0.0-next.13",
"ngx-uploadx": "^3.5.1", "ngx-uploadx": "^3.5.1",
@ -38,31 +38,31 @@
"resumablejs": "^1.1.0", "resumablejs": "^1.1.0",
"rxjs": "^6.5.4", "rxjs": "^6.5.4",
"tassign": "^1.0.0", "tassign": "^1.0.0",
"tslib": "^1.10.0", "tslib": "^2.0.0",
"zone.js": "~0.10.2", "zone.js": "~0.10.2",
"moment": "^2.27.0" "moment": "^2.27.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.1001.3", "@angular-devkit/build-angular": "^0.1001.3",
"@angular-devkit/build-ng-packagr": "~0.901.0", "@angular-devkit/build-ng-packagr": "~0.1001.3",
"@angular/cli": "^9.1.0", "@angular/cli": "^10.1.3",
"@angular/compiler-cli": "~9.1.0", "@angular/compiler-cli": "~10.1.3",
"@angular/language-service": "~9.1.0", "@angular/language-service": "~10.1.3",
"@types/jasmine": "~2.8.8", "@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3", "@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1", "@types/node": "^12.11.1",
"codelyzer": "^5.1.2", "codelyzer": "^5.1.2",
"jasmine-core": "~2.99.1", "jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~5.0.0",
"karma": "^5.0.2", "karma": "~5.0.0",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.0.1", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~1.1.2", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^0.2.2", "karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^9.0.0", "ng-packagr": "^10.1.0",
"protractor": "^5.4.4", "protractor": "~7.0.0",
"ts-node": "^8.8.1", "ts-node": "^8.8.1",
"tslint": "~5.11.0", "tslint": "~6.1.0",
"typescript": "~3.8.3" "typescript": "~4.0.3"
} }
} }

View File

@ -4,12 +4,15 @@
"publishConfig": { "publishConfig": {
"registry": "https://repository.akkerweb.nl/repository/npm-hosted/" "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
}, },
"dependencies": {
"tslib": "^2.0.0"
},
"peerDependencies": { "peerDependencies": {
"@angular/core": "^9.1.0", "@angular/core": "^10.1.3",
"ngrx-store-localstorage": "^9.0", "ngrx-store-localstorage": "^10.0",
"@ngrx/effects": "^9.0", "@ngrx/effects": "^10.0",
"@ngrx/router-store": "^9.0", "@ngrx/router-store": "^10.0",
"@ngrx/store": "^9.0", "@ngrx/store": "^10.0",
"tassign": "^1.0.0", "tassign": "^1.0.0",
"@farmmaps/common": ">=0.0.1-prerelease.308 <0.0.1", "@farmmaps/common": ">=0.0.1-prerelease.308 <0.0.1",
"ngx-openlayers": "1.0.0-next.13", "ngx-openlayers": "1.0.0-next.13",

View File

@ -5,19 +5,19 @@
"registry": "https://repository.akkerweb.nl/repository/npm-hosted/" "registry": "https://repository.akkerweb.nl/repository/npm-hosted/"
}, },
"peerDependencies": { "peerDependencies": {
"@ng-bootstrap/ng-bootstrap": "^6.0", "@ng-bootstrap/ng-bootstrap": "^7.0",
"@angular/common": "~9.1.0", "@angular/common": "~10.1.3",
"@angular/core": "~9.1.0", "@angular/core": "~10.1.3",
"@angular/forms": "~9.1.0", "@angular/forms": "~10.1.3",
"@ngrx/effects": "^9.0", "@ngrx/effects": "^10.0",
"@ngrx/router-store": "^9.0", "@ngrx/router-store": "^10.0",
"@ngrx/store": "^9.0", "@ngrx/store": "^10.0",
"tassign": "^1.0.0", "tassign": "^1.0.0",
"bootstrap": "^4.4.1", "bootstrap": "^4.4.1",
"@aspnet/signalr": "^1.1.4", "@aspnet/signalr": "^1.1.4",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"ngx-uploadx": "^3.3.4", "ngx-uploadx": "^3.3.4",
"angular-oauth2-oidc": "^9.1", "angular-oauth2-oidc": "^10.0.3",
"moment": "^2.27.0" "moment": "^2.27.0"
} }
} }

View File

@ -83,10 +83,6 @@ export const metaReducers: MetaReducer<any>[] = [debug];
], ],
providers: [ providers: [
AuthConfigFactory, AuthConfigFactory,
{
provide:OAuthStorage,
useClass:SecureOAuthStorage
},
{ {
provide:AuthConfigFactory, provide:AuthConfigFactory,
useClass:Id4AuthconfigFactory useClass:Id4AuthconfigFactory

View File

@ -6,7 +6,7 @@
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
"module": "esnext", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,

View File

@ -4,17 +4,32 @@
"codelyzer" "codelyzer"
], ],
"rules": { "rules": {
"align": {
"options": [
"parameters",
"statements"
]
},
"array-type": false, "array-type": false,
"arrow-parens": false, "arrow-parens": false,
"arrow-return-shorthand": true,
"deprecation": { "deprecation": {
"severity": "warn" "severity": "warn"
}, },
"curly": true,
"import-blacklist": [ "import-blacklist": [
true, true,
"rxjs/Rx" "rxjs/Rx"
], ],
"interface-name": false, "interface-name": false,
"eofline": true,
"max-classes-per-file": false, "max-classes-per-file": false,
"import-spacing": true,
"indent": {
"options": [
"spaces"
]
},
"max-line-length": [ "max-line-length": [
true, true,
140 140
@ -48,7 +63,6 @@
"no-non-null-assertion": true, "no-non-null-assertion": true,
"no-redundant-jsdoc": true, "no-redundant-jsdoc": true,
"no-switch-case-fall-through": true, "no-switch-case-fall-through": true,
"no-use-before-declare": true,
"no-var-requires": false, "no-var-requires": false,
"object-literal-key-quotes": [ "object-literal-key-quotes": [
true, true,
@ -68,8 +82,57 @@
"no-input-rename": true, "no-input-rename": true,
"no-output-rename": true, "no-output-rename": true,
"use-lifecycle-interface": true, "use-lifecycle-interface": true,
"semicolon": {
"options": [
"always"
]
},
"space-before-function-paren": {
"options": {
"anonymous": "never",
"asyncArrow": "always",
"constructor": "never",
"method": "never",
"named": "never"
}
},
"use-pipe-transform-interface": true, "use-pipe-transform-interface": true,
"typedef-whitespace": {
"options": [
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
]
},
"component-class-suffix": true, "component-class-suffix": true,
"directive-class-suffix": true "directive-class-suffix": true,
"variable-name": {
"options": [
"ban-keywords",
"check-format",
"allow-pascal-case"
]
},
"whitespace": {
"options": [
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type",
"check-typecast"
]
}
} }
} }