updated to angular 12

pull/83/head
Chris Veilleux 2022-07-20 16:57:18 -05:00
parent f009e16f51
commit b1bb4b0762
37 changed files with 6984 additions and 18314 deletions

1
.gitignore vendored
View File

@ -25,6 +25,7 @@
!.vscode/extensions.json !.vscode/extensions.json
# misc # misc
/.angular/cache
/.sass-cache /.sass-cache
/connect.lock /connect.lock
/coverage /coverage

View File

@ -17,7 +17,6 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist/internet", "outputPath": "dist/internet",
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts", "main": "src/main.ts",
@ -36,7 +35,13 @@
"./src/stylesheets" "./src/stylesheets"
] ]
}, },
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -50,7 +55,6 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
@ -66,7 +70,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
@ -106,18 +111,6 @@
"src/assets" "src/assets"
] ]
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -137,15 +130,6 @@
"devServerTarget": "internet:serve:production" "devServerTarget": "internet:serve:production"
} }
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -169,7 +153,6 @@
"skipTests": true "skipTests": true
}, },
"@schematics/angular:module": { "@schematics/angular:module": {
"skipTests": true
}, },
"@schematics/angular:pipe": { "@schematics/angular:pipe": {
"skipTests": true "skipTests": true
@ -182,7 +165,6 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist/market", "outputPath": "dist/market",
"index": "projects/market/src/index.html", "index": "projects/market/src/index.html",
"main": "projects/market/src/main.ts", "main": "projects/market/src/main.ts",
@ -201,7 +183,13 @@
"./src/stylesheets" "./src/stylesheets"
] ]
}, },
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -215,7 +203,6 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true, "buildOptimizer": true,
@ -248,7 +235,6 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"buildOptimizer": true "buildOptimizer": true
@ -267,7 +253,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
@ -308,18 +295,6 @@
"projects/market/src/assets" "projects/market/src/assets"
] ]
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/market/tsconfig.app.json",
"projects/market/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -339,15 +314,6 @@
"devServerTarget": "market:serve:production" "devServerTarget": "market:serve:production"
} }
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "projects/market-e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -371,7 +337,6 @@
"skipTests": true "skipTests": true
}, },
"@schematics/angular:module": { "@schematics/angular:module": {
"skipTests": true
}, },
"@schematics/angular:pipe": { "@schematics/angular:pipe": {
"skipTests": true "skipTests": true
@ -384,7 +349,6 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist/sso", "outputPath": "dist/sso",
"index": "projects/sso/src/index.html", "index": "projects/sso/src/index.html",
"main": "projects/sso/src/main.ts", "main": "projects/sso/src/main.ts",
@ -403,7 +367,13 @@
"./src/stylesheets" "./src/stylesheets"
] ]
}, },
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -417,9 +387,7 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": true,
"commonChunk": true, "commonChunk": true,
"buildOptimizer": true, "buildOptimizer": true,
"budgets": [ "budgets": [
@ -451,9 +419,7 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": true,
"commonChunk": true, "commonChunk": true,
"buildOptimizer": true "buildOptimizer": true
}, },
@ -471,7 +437,8 @@
} }
] ]
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
@ -512,18 +479,6 @@
"projects/sso/src/assets" "projects/sso/src/assets"
] ]
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/sso/tsconfig.app.json",
"projects/sso/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -543,15 +498,6 @@
"devServerTarget": "sso:serve:production" "devServerTarget": "sso:serve:production"
} }
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "projects/sso-e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -580,18 +526,6 @@
"tsConfig": "projects/globalnav/tsconfig.spec.json", "tsConfig": "projects/globalnav/tsconfig.spec.json",
"karmaConfig": "projects/globalnav/karma.conf.js" "karmaConfig": "projects/globalnav/karma.conf.js"
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/globalnav/tsconfig.lib.json",
"projects/globalnav/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -615,7 +549,6 @@
"skipTests": true "skipTests": true
}, },
"@schematics/angular:module": { "@schematics/angular:module": {
"skipTests": true
}, },
"@schematics/angular:pipe": { "@schematics/angular:pipe": {
"skipTests": true "skipTests": true
@ -628,7 +561,6 @@
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:browser",
"options": { "options": {
"aot": true,
"outputPath": "dist/account", "outputPath": "dist/account",
"index": "projects/account/src/index.html", "index": "projects/account/src/index.html",
"main": "projects/account/src/main.ts", "main": "projects/account/src/main.ts",
@ -647,7 +579,13 @@
"./src/stylesheets" "./src/stylesheets"
] ]
}, },
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -661,7 +599,6 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"commonChunk": true, "commonChunk": true,
@ -708,14 +645,12 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": true,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": true,
"commonChunk": true, "commonChunk": true,
"buildOptimizer": true "buildOptimizer": true
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
@ -756,18 +691,6 @@
"projects/account/src/assets" "projects/account/src/assets"
] ]
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/account/tsconfig.app.json",
"projects/account/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -787,15 +710,6 @@
"devServerTarget": "account:serve:production" "devServerTarget": "account:serve:production"
} }
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "projects/account-e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -824,18 +738,6 @@
"tsConfig": "projects/shared/tsconfig.spec.json", "tsConfig": "projects/shared/tsconfig.spec.json",
"karmaConfig": "projects/shared/karma.conf.js" "karmaConfig": "projects/shared/karma.conf.js"
} }
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/shared/tsconfig.lib.json",
"projects/shared/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
} }
} }
}, },
@ -858,7 +760,6 @@
"main": "projects/precise/src/main.ts", "main": "projects/precise/src/main.ts",
"polyfills": "projects/precise/src/polyfills.ts", "polyfills": "projects/precise/src/polyfills.ts",
"tsConfig": "projects/precise/tsconfig.app.json", "tsConfig": "projects/precise/tsconfig.app.json",
"aot": true,
"assets": [ "assets": [
"projects/precise/src/favicon.ico", "projects/precise/src/favicon.ico",
"projects/precise/src/assets" "projects/precise/src/assets"
@ -872,7 +773,13 @@
"./src/stylesheets" "./src/stylesheets"
] ]
}, },
"scripts": [] "scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -886,7 +793,6 @@
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": false, "namedChunks": false,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": false, "vendorChunk": false,
"commonChunk": true, "commonChunk": true,
@ -934,14 +840,12 @@
"optimization": true, "optimization": true,
"outputHashing": "all", "outputHashing": "all",
"sourceMap": false, "sourceMap": false,
"namedChunks": true,
"aot": true,
"extractLicenses": true, "extractLicenses": true,
"vendorChunk": true,
"commonChunk": true, "commonChunk": true,
"buildOptimizer": true "buildOptimizer": true
} }
} },
"defaultConfiguration": ""
}, },
"serve": { "serve": {
@ -978,19 +882,6 @@
"scripts": [] "scripts": []
} }
}, },
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/precise/tsconfig.app.json",
"projects/precise/tsconfig.spec.json",
"projects/precise/e2e/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
},
"e2e": { "e2e": {
"builder": "@angular-devkit/build-angular:protractor", "builder": "@angular-devkit/build-angular:protractor",
"options": { "options": {

24766
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,40 +7,38 @@
"build": "ng build", "build": "ng build",
"build-dev": "ng build --configuration=development", "build-dev": "ng build --configuration=development",
"build-test": "ng build --configuration=test", "build-test": "ng build --configuration=test",
"build-prod": "ng build --prod", "build-prod": "ng build --configuration production",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "~11.2.14", "@angular/animations": "~13.3.11",
"@angular/cdk": "^11.2.13", "@angular/cdk": "^12.2.13",
"@angular/common": "~11.2.14", "@angular/common": "~13.3.11",
"@angular/compiler": "~11.2.14", "@angular/compiler": "~13.3.11",
"@angular/core": "~11.2.14", "@angular/core": "~13.3.11",
"@angular/forms": "~11.2.14", "@angular/forms": "~13.3.11",
"@angular/material": "^11.2.13", "@angular/material": "^12.2.13",
"@angular/platform-browser": "~11.2.14", "@angular/platform-browser": "~13.3.11",
"@angular/platform-browser-dynamic": "~11.2.14", "@angular/platform-browser-dynamic": "~13.3.11",
"@angular/router": "~11.2.14", "@angular/router": "~13.3.11",
"@fortawesome/fontawesome-svg-core": "^1.2.31", "@fortawesome/fontawesome-svg-core": "^1.2.31",
"@fortawesome/free-brands-svg-icons": "^5.15.0", "@fortawesome/free-brands-svg-icons": "^5.15.0",
"@fortawesome/free-solid-svg-icons": "^5.15.0", "@fortawesome/free-solid-svg-icons": "^5.15.0",
"@stripe/stripe-js": "^1.9.0", "@stripe/stripe-js": "^1.9.0",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"font-awesome": "^4.7.0", "font-awesome": "^4.7.0",
"ngx-cookie-service": "^10.0.1",
"ngx-stripe": "^10.1.2",
"rxjs": "~6.6.3", "rxjs": "~6.6.3",
"tslib": "^2.0.0", "tslib": "^2.4.0",
"zone.js": "~0.10.3" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~0.1102.19", "@angular-devkit/build-angular": "~13.3.9",
"@angular/cli": "~11.2.19", "@angular/cli": "~13.3.9",
"@angular/compiler-cli": "~11.2.14", "@angular/compiler-cli": "~13.3.11",
"@angular/language-service": "~11.2.14", "@angular/language-service": "~13.3.11",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "^2.0.8", "@types/jasminewd2": "^2.0.8",
"@types/node": "^14.11.2", "@types/node": "^14.11.2",
@ -52,10 +50,10 @@
"karma-coverage-istanbul-reporter": "~3.0.3", "karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0", "karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^11.2.4", "ng-packagr": "^13.3.1",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~9.0.0", "ts-node": "~9.0.0",
"tslint": "~6.1.0", "tslint": "~6.1.0",
"typescript": "~4.0.3" "typescript": "~4.6.4"
} }
} }

View File

@ -30,9 +30,6 @@ import { DashboardComponent } from './dashboard.component';
declarations: [ declarations: [
DashboardComponent DashboardComponent
], ],
entryComponents: [
DashboardComponent,
],
imports: [ imports: [
CommonModule, CommonModule,
FlexLayoutModule, FlexLayoutModule,

View File

@ -86,10 +86,6 @@ import { SoftwareReleaseCardComponent } from './components/card/software-release
SoftwareUpdateCardComponent, SoftwareUpdateCardComponent,
SoftwareReleaseCardComponent, SoftwareReleaseCardComponent,
], ],
entryComponents: [
DeviceComponent,
RemoveDeviceDialogComponent
],
imports: [ imports: [
CommonModule, CommonModule,
FlexLayoutModule, FlexLayoutModule,

View File

@ -61,37 +61,25 @@ import { MembershipStepComponent } from './components/views/membership-step/memb
EditComponent, EditComponent,
LoginComponent, LoginComponent,
MembershipComponent, MembershipComponent,
// Profile add (i.e. new account) // Profile add (i.e. new account)
MembershipStepComponent, MembershipStepComponent,
NewComponent, NewComponent,
OpenDatasetStepComponent, OpenDatasetStepComponent,
UsernameStepComponent, UsernameStepComponent,
// Stuff used in both edit and add components // Stuff used in both edit and add components
MembershipOptionsComponent, MembershipOptionsComponent,
PaymentComponent, PaymentComponent,
VerifyCardDialogComponent, VerifyCardDialogComponent,
DeleteConfirmComponent DeleteConfirmComponent
], ],
entryComponents: [
DeleteConfirmComponent,
NewComponent,
EditComponent,
PaymentComponent,
VerifyCardDialogComponent
],
imports: [ imports: [
CommonModule, CommonModule,
// "Make the UI pretty" libraries. // "Make the UI pretty" libraries.
FlexLayoutModule, FlexLayoutModule,
FontAwesomeModule, FontAwesomeModule,
// Angular Forms // Angular Forms
FormsModule, FormsModule,
ReactiveFormsModule, ReactiveFormsModule,
// Material UI components // Material UI components
MatBottomSheetModule, MatBottomSheetModule,
MatButtonModule, MatButtonModule,
@ -104,13 +92,10 @@ import { MembershipStepComponent } from './components/views/membership-step/memb
MatSnackBarModule, MatSnackBarModule,
MatStepperModule, MatStepperModule,
MatToolbarModule, MatToolbarModule,
// This guy will allow us to suck money from members // This guy will allow us to suck money from members
NgxStripeModule.forRoot(environment.stripeApiKey), NgxStripeModule.forRoot(environment.stripeApiKey),
// The federated login buttons reside in a shared library // The federated login buttons reside in a shared library
SharedModule, SharedModule,
// ...and finally, the router // ...and finally, the router
ProfileRoutingModule ProfileRoutingModule
], ],

View File

@ -42,4 +42,4 @@ export const environment = {
* import the following file, but please comment it out in production mode * import the following file, but please comment it out in production mode
* because it will have performance impact when throw error * because it will have performance impact when throw error
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@ -59,19 +59,9 @@ and limitations under the License.
**/ **/
// import 'core-js/es6/array'; // import 'core-js/es6/array';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */ /** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect'; // import 'core-js/es6/reflect';
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags
@ -90,7 +80,7 @@ and limitations under the License.
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@ -18,7 +18,7 @@ and limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -3,11 +3,6 @@
"dest": "../../dist/globalnav", "dest": "../../dist/globalnav",
"lib": { "lib": {
"entryFile": "src/public_api.ts", "entryFile": "src/public_api.ts",
"cssUrl": "inline", "cssUrl": "inline"
"umdModuleIds": {
"@fortawesome/angular-fontawesome": "angularFontawesome",
"@fortawesome/free-brands-svg-icons": "freeBrandsSvgIcons",
"@fortawesome/free-solid-svg-icons": "freeSolidSvgIcons"
}
} }
} }

View File

@ -19,8 +19,8 @@ and limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'core-js/es7/reflect'; import 'core-js/es7/reflect';
import 'zone.js/dist/zone'; import 'zone.js';
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -32,7 +32,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -9,7 +9,6 @@
"declaration": true, "declaration": true,
"sourceMap": true, "sourceMap": true,
"inlineSources": true, "inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"importHelpers": true, "importHelpers": true,
"types": [], "types": [],

View File

@ -4,6 +4,6 @@
"declarationMap": false "declarationMap": false
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false "compilationMode": "partial"
} }
} }

View File

@ -38,27 +38,26 @@ import { SkillSummaryComponent } from './skill-summary/skill-summary.component';
@NgModule( @NgModule(
{ {
imports: [ imports: [
CommonModule, CommonModule,
FlexLayoutModule, FlexLayoutModule,
FontAwesomeModule, FontAwesomeModule,
FormsModule, FormsModule,
MaterialModule, MaterialModule,
SkillsRoutingModule SkillsRoutingModule
], ],
declarations: [ declarations: [
SkillCardComponent, SkillCardComponent,
SkillCardHeaderComponent, SkillCardHeaderComponent,
SkillDetailComponent, SkillDetailComponent,
SkillDetailBodyComponent, SkillDetailBodyComponent,
SkillDetailHeaderComponent, SkillDetailHeaderComponent,
SkillSearchComponent, SkillSearchComponent,
SkillSummaryComponent, SkillSummaryComponent,
InstallButtonComponent InstallButtonComponent
], ],
exports: [ SkillSummaryComponent, SkillDetailComponent ], exports: [SkillSummaryComponent, SkillDetailComponent],
entryComponents: [ SkillDetailComponent ], providers: [InstallService, SkillsService]
providers: [ InstallService, SkillsService ] }
}
) )
export class SkillsModule { } export class SkillsModule { }

View File

@ -41,4 +41,4 @@ export const environment = {
* import the following file, but please comment it out in production mode * import the following file, but please comment it out in production mode
* because it will have performance impact when throw error * because it will have performance impact when throw error
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@ -59,19 +59,9 @@ and limitations under the License.
**/ **/
// import 'core-js/es6/array'; // import 'core-js/es6/array';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */ /** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect'; // import 'core-js/es6/reflect';
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags
@ -90,7 +80,7 @@ and limitations under the License.
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@ -18,7 +18,7 @@ and limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -34,26 +34,23 @@ import { TaggerService } from '../../core/http/tagger.service';
@NgModule( @NgModule(
{ {
declarations: [ declarations: [
IntroComponent, IntroComponent,
TagComponent TagComponent
], ],
entryComponents: [ imports: [
IntroComponent CommonModule,
], FlexLayoutModule,
imports: [ FontAwesomeModule,
CommonModule, MatButtonModule,
FlexLayoutModule, MatCardModule,
FontAwesomeModule, MatProgressBarModule,
MatButtonModule, NgWaveformModule,
MatCardModule, AppRoutingModule
MatProgressBarModule, ],
NgWaveformModule, providers: [
AppRoutingModule TaggerService
], ]
providers: [ }
TaggerService
]
}
) )
export class TaggerModule { } export class TaggerModule { }

View File

@ -41,4 +41,4 @@ export const environment = {
* import the following file, but please comment it out in production mode * import the following file, but please comment it out in production mode
* because it will have performance impact when throw error * because it will have performance impact when throw error
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@ -18,16 +18,6 @@
* BROWSER POLYFILLS * BROWSER POLYFILLS
*/ */
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags
@ -55,7 +45,7 @@
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -17,7 +17,9 @@ declare const require: {
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -3,11 +3,6 @@
"dest": "../../dist/shared", "dest": "../../dist/shared",
"lib": { "lib": {
"entryFile": "src/projects.ts", "entryFile": "src/projects.ts",
"cssUrl": "inline", "cssUrl": "inline"
"umdModuleIds": {
"@fortawesome/angular-fontawesome": "angularFontawesome",
"@fortawesome/free-brands-svg-icons": "freeBrandsSvgIcons",
"@fortawesome/free-solid-svg-icons": "freeSolidSvgIcons"
}
} }
} }

View File

@ -38,11 +38,6 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component
MaintenancePageComponent, MaintenancePageComponent,
PageNotFoundComponent, PageNotFoundComponent,
], ],
entryComponents: [
SnackbarComponent,
MaintenancePageComponent,
PageNotFoundComponent,
],
imports: [ imports: [
CommonModule, CommonModule,
FlexLayoutModule, FlexLayoutModule,
@ -57,6 +52,6 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component
SnackbarComponent, SnackbarComponent,
MaintenancePageComponent, MaintenancePageComponent,
PageNotFoundComponent, PageNotFoundComponent,
], ]
}) })
export class SharedModule { } export class SharedModule { }

View File

@ -19,8 +19,8 @@ and limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'core-js/es7/reflect'; import 'core-js/es7/reflect';
import 'zone.js/dist/zone'; import 'zone.js';
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -32,7 +32,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -9,7 +9,6 @@
"declaration": true, "declaration": true,
"sourceMap": true, "sourceMap": true,
"inlineSources": true, "inlineSources": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"importHelpers": true, "importHelpers": true,
"types": [], "types": [],

View File

@ -4,6 +4,6 @@
"declarationMap": false "declarationMap": false
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"enableIvy": false "compilationMode": "partial"
} }
} }

View File

@ -34,9 +34,6 @@ import { PasswordResetComponent } from '../login/password-reset/password-reset.c
declarations: [ declarations: [
ChangePasswordComponent ChangePasswordComponent
], ],
entryComponents: [
PasswordResetComponent
],
imports: [ imports: [
CommonModule, CommonModule,
FlexLayoutModule, FlexLayoutModule,

View File

@ -46,10 +46,6 @@ import { SharedModule } from '../../shared/shared.module';
InternalLoginComponent, InternalLoginComponent,
PasswordResetComponent PasswordResetComponent
], ],
entryComponents: [
LoginComponent,
PasswordResetComponent,
],
exports: [ exports: [
LoginComponent, LoginComponent,
FederatedLoginComponent FederatedLoginComponent

View File

@ -59,7 +59,6 @@ import { environment } from '../../environments/environment';
ReactiveFormsModule, ReactiveFormsModule,
SocialLoginModule SocialLoginModule
], ],
entryComponents: [],
exports: [ exports: [
EmailInputComponent, EmailInputComponent,
FacebookButtonComponent, FacebookButtonComponent,
@ -67,23 +66,23 @@ import { environment } from '../../environments/environment';
GoogleButtonComponent, GoogleButtonComponent,
PasswordInputComponent PasswordInputComponent
], ],
providers: [ providers: [
{ {
provide: 'SocialAuthServiceConfig', provide: 'SocialAuthServiceConfig',
useValue: { useValue: {
autoLogin: false, autoLogin: false,
providers: [ providers: [
{ {
id: GoogleLoginProvider.PROVIDER_ID, id: GoogleLoginProvider.PROVIDER_ID,
provider: new GoogleLoginProvider(environment.googleClientId), provider: new GoogleLoginProvider(environment.googleClientId),
}, },
{ {
id: FacebookLoginProvider.PROVIDER_ID, id: FacebookLoginProvider.PROVIDER_ID,
provider: new FacebookLoginProvider(environment.facebookClientId), provider: new FacebookLoginProvider(environment.facebookClientId),
}, },
], ],
} as SocialAuthServiceConfig, } as SocialAuthServiceConfig,
} }
], ]
}) })
export class SharedModule { } export class SharedModule { }

View File

@ -45,4 +45,4 @@ export const environment = {
* import the following file, but please comment it out in production mode * import the following file, but please comment it out in production mode
* because it will have performance impact when throw error * because it will have performance impact when throw error
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@ -59,19 +59,9 @@ and limitations under the License.
**/ **/
// import 'core-js/es6/array'; // import 'core-js/es6/array';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */ /** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect'; // import 'core-js/es6/reflect';
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags
@ -90,7 +80,7 @@ and limitations under the License.
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@ -18,7 +18,7 @@ and limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -31,4 +31,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact * This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown. * on performance if an error is thrown.
*/ */
// import 'zone.js/dist/zone-error'; // Included with Angular CLI. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

View File

@ -59,19 +59,9 @@ and limitations under the License.
**/ **/
// import 'core-js/es6/array'; // import 'core-js/es6/array';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */ /** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect'; // import 'core-js/es6/reflect';
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/** /**
* By default, zone.js will patch all possible macroTask and DomEvents * By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags * user can disable parts of macroTask/DomEvents patch by setting following flags
@ -90,7 +80,7 @@ and limitations under the License.
/*************************************************************************************************** /***************************************************************************************************
* Zone JS is required by default for Angular itself. * Zone JS is required by default for Angular itself.
*/ */
import 'zone.js/dist/zone'; // Included with Angular CLI. import 'zone.js'; // Included with Angular CLI.
/*************************************************************************************************** /***************************************************************************************************

View File

@ -18,7 +18,7 @@ and limitations under the License.
// This file is required by karma.conf.js and loads recursively all the .spec and framework files // This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'; import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing'; import { getTestBed } from '@angular/core/testing';
import { import {
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment. // First, initialize the Angular testing environment.
getTestBed().initTestEnvironment( getTestBed().initTestEnvironment(
BrowserDynamicTestingModule, BrowserDynamicTestingModule,
platformBrowserDynamicTesting() platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
); );
// Then we find all the tests. // Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/); const context = require.context('./', true, /\.spec\.ts$/);

View File

@ -9,7 +9,6 @@
"declaration": false, "declaration": false,
"module": "es2020", "module": "es2020",
"moduleResolution": "node", "moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2015", "target": "es2015",
"typeRoots": [ "typeRoots": [