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
# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage

View File

@ -17,7 +17,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/internet",
"index": "src/index.html",
"main": "src/main.ts",
@ -36,7 +35,13 @@
"./src/stylesheets"
]
},
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@ -50,7 +55,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
@ -66,7 +70,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@ -106,18 +111,6 @@
"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"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
},
@ -169,7 +153,6 @@
"skipTests": true
},
"@schematics/angular:module": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
@ -182,7 +165,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/market",
"index": "projects/market/src/index.html",
"main": "projects/market/src/main.ts",
@ -201,7 +183,13 @@
"./src/stylesheets"
]
},
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@ -215,7 +203,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
@ -248,7 +235,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
@ -267,7 +253,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@ -308,18 +295,6 @@
"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"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "projects/market-e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
},
@ -371,7 +337,6 @@
"skipTests": true
},
"@schematics/angular:module": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
@ -384,7 +349,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/sso",
"index": "projects/sso/src/index.html",
"main": "projects/sso/src/main.ts",
@ -403,7 +367,13 @@
"./src/stylesheets"
]
},
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@ -417,9 +387,7 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"commonChunk": true,
"buildOptimizer": true,
"budgets": [
@ -451,9 +419,7 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"commonChunk": true,
"buildOptimizer": true
},
@ -471,7 +437,8 @@
}
]
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@ -512,18 +479,6 @@
"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"
}
}
},
"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",
"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
},
"@schematics/angular:module": {
"skipTests": true
},
"@schematics/angular:pipe": {
"skipTests": true
@ -628,7 +561,6 @@
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"aot": true,
"outputPath": "dist/account",
"index": "projects/account/src/index.html",
"main": "projects/account/src/main.ts",
@ -647,7 +579,13 @@
"./src/stylesheets"
]
},
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@ -661,7 +599,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"commonChunk": true,
@ -708,14 +645,12 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": true,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"commonChunk": true,
"buildOptimizer": true
}
}
},
"defaultConfiguration": ""
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
@ -756,18 +691,6 @@
"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"
}
}
},
"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",
"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",
"polyfills": "projects/precise/src/polyfills.ts",
"tsConfig": "projects/precise/tsconfig.app.json",
"aot": true,
"assets": [
"projects/precise/src/favicon.ico",
"projects/precise/src/assets"
@ -872,7 +773,13 @@
"./src/stylesheets"
]
},
"scripts": []
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
},
"configurations": {
"production": {
@ -886,7 +793,6 @@
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"commonChunk": true,
@ -934,14 +840,12 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": true,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"commonChunk": true,
"buildOptimizer": true
}
}
},
"defaultConfiguration": ""
},
"serve": {
@ -978,19 +882,6 @@
"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": {
"builder": "@angular-devkit/build-angular:protractor",
"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-dev": "ng build --configuration=development",
"build-test": "ng build --configuration=test",
"build-prod": "ng build --prod",
"build-prod": "ng build --configuration production",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~11.2.14",
"@angular/cdk": "^11.2.13",
"@angular/common": "~11.2.14",
"@angular/compiler": "~11.2.14",
"@angular/core": "~11.2.14",
"@angular/forms": "~11.2.14",
"@angular/material": "^11.2.13",
"@angular/platform-browser": "~11.2.14",
"@angular/platform-browser-dynamic": "~11.2.14",
"@angular/router": "~11.2.14",
"@angular/animations": "~13.3.11",
"@angular/cdk": "^12.2.13",
"@angular/common": "~13.3.11",
"@angular/compiler": "~13.3.11",
"@angular/core": "~13.3.11",
"@angular/forms": "~13.3.11",
"@angular/material": "^12.2.13",
"@angular/platform-browser": "~13.3.11",
"@angular/platform-browser-dynamic": "~13.3.11",
"@angular/router": "~13.3.11",
"@fortawesome/fontawesome-svg-core": "^1.2.31",
"@fortawesome/free-brands-svg-icons": "^5.15.0",
"@fortawesome/free-solid-svg-icons": "^5.15.0",
"@stripe/stripe-js": "^1.9.0",
"core-js": "^3.6.5",
"font-awesome": "^4.7.0",
"ngx-cookie-service": "^10.0.1",
"ngx-stripe": "^10.1.2",
"rxjs": "~6.6.3",
"tslib": "^2.0.0",
"zone.js": "~0.10.3"
"tslib": "^2.4.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1102.19",
"@angular/cli": "~11.2.19",
"@angular/compiler-cli": "~11.2.14",
"@angular/language-service": "~11.2.14",
"@angular-devkit/build-angular": "~13.3.9",
"@angular/cli": "~13.3.9",
"@angular/compiler-cli": "~13.3.11",
"@angular/language-service": "~13.3.11",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "^2.0.8",
"@types/node": "^14.11.2",
@ -52,10 +50,10 @@
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"ng-packagr": "^11.2.4",
"ng-packagr": "^13.3.1",
"protractor": "~7.0.0",
"ts-node": "~9.0.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: [
DashboardComponent
],
entryComponents: [
DashboardComponent,
],
imports: [
CommonModule,
FlexLayoutModule,

View File

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

View File

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

View File

@ -42,4 +42,4 @@ export const environment = {
* import the following file, but please comment it out in production mode
* 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';
/** 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. */
// 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
* 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.
*/
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
import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

View File

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

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
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -32,7 +32,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

View File

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

View File

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

View File

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

View File

@ -41,4 +41,4 @@ export const environment = {
* import the following file, but please comment it out in production mode
* 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';
/** 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. */
// 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
* 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.
*/
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
import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

View File

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

View File

@ -41,4 +41,4 @@ export const environment = {
* import the following file, but please comment it out in production mode
* 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
*/
/** 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
* 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.
*/
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
import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -17,7 +17,9 @@ declare const require: {
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

View File

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

View File

@ -38,11 +38,6 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component
MaintenancePageComponent,
PageNotFoundComponent,
],
entryComponents: [
SnackbarComponent,
MaintenancePageComponent,
PageNotFoundComponent,
],
imports: [
CommonModule,
FlexLayoutModule,
@ -57,6 +52,6 @@ import { PageNotFoundComponent } from './page-not-found/page-not-found.component
SnackbarComponent,
MaintenancePageComponent,
PageNotFoundComponent,
],
]
})
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
import 'core-js/es7/reflect';
import 'zone.js/dist/zone';
import 'zone.js/dist/zone-testing';
import 'zone.js';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -32,7 +32,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -45,4 +45,4 @@ export const environment = {
* import the following file, but please comment it out in production mode
* 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';
/** 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. */
// 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
* 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.
*/
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
import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
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
* 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';
/** 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. */
// 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
* 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.
*/
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
import 'zone.js/dist/zone-testing';
import 'zone.js/testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
@ -30,7 +30,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

View File

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