-
{{label}}
diff --git a/src/app/pages/customization/customization.module.ts b/src/app/pages/customization/customization.module.ts
index d194e90..e260bec 100644
--- a/src/app/pages/customization/customization.module.ts
+++ b/src/app/pages/customization/customization.module.ts
@@ -16,7 +16,9 @@ import {PageContentModule} from '../../openaireLibrary/dashboard/sharedComponent
import {QuickLookComponent} from './quickLook.component';
import {QuickLookBackgroundsComponent} from './quickLook-backgrounds.component';
import {QuickLookButtonsComponent} from './quickLook-buttons.component';
-import {MatFormFieldModule, MatSelectModule, MatSlideToggleModule} from '@angular/material';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatSelectModule } from '@angular/material/select';
+import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import {CustomizeButtonsComponent} from './customize-buttons.component';
import {IconsModule} from '../../openaireLibrary/utils/icons/icons.module';
import {IconsService} from '../../openaireLibrary/utils/icons/icons.service';
diff --git a/src/app/pages/mining/mining.component.ts b/src/app/pages/mining/mining.component.ts
index 0e64cca..de410ea 100644
--- a/src/app/pages/mining/mining.component.ts
+++ b/src/app/pages/mining/mining.component.ts
@@ -8,7 +8,9 @@ import {Subscription} from "rxjs";
template: `
`
diff --git a/src/app/pages/mining/mining.module.ts b/src/app/pages/mining/mining.module.ts
index 81cde1d..2c50576 100644
--- a/src/app/pages/mining/mining.module.ts
+++ b/src/app/pages/mining/mining.module.ts
@@ -10,7 +10,7 @@ import {PageContentModule} from "../../openaireLibrary/dashboard/sharedComponent
RouterModule.forChild([
{
path: '', component: MiningComponent, children: [
- {path: '', loadChildren: './mining-routing.module#MiningRoutingModule'}
+ {path: '', loadChildren: () => import('./mining-routing.module').then(m => m.MiningRoutingModule)}
]
}
]),
diff --git a/src/app/pages/projects/manage-projects.component.ts b/src/app/pages/projects/manage-projects.component.ts
index fe368fe..69d0a23 100644
--- a/src/app/pages/projects/manage-projects.component.ts
+++ b/src/app/pages/projects/manage-projects.component.ts
@@ -43,7 +43,7 @@ import {Subscriber} from "rxjs";
export class ManageProjectsComponent implements OnInit {
@Input() communityProjects = [];
@ViewChild(RemoveProjectsComponent) removeProjectsComponent: RemoveProjectsComponent;
- @ViewChild('fsModal') fullscreen: FullScreenModalComponent;
+ @ViewChild('fsModal', { static: true }) fullscreen: FullScreenModalComponent;
public toggle: boolean = false;
@@ -69,11 +69,10 @@ export class ManageProjectsComponent implements OnInit {
this.body = "[Please write your message here]";
this.body = StringUtils.URIEncode(this.body);
}
+ this.fullscreen.title = "Search and Add Projects";
+ this.fullscreen.okButtonText = "Done";
+ this.fullscreen.okButton = true;
}));
-
- this.fullscreen.title = "Search and Add Projects";
- this.fullscreen.okButtonText = "Done";
- this.fullscreen.okButton = true;
}
public ngOnDestroy() {
diff --git a/src/app/pages/stats/stats.module.ts b/src/app/pages/stats/stats.module.ts
index 8cc4c7b..3a0cd6c 100644
--- a/src/app/pages/stats/stats.module.ts
+++ b/src/app/pages/stats/stats.module.ts
@@ -3,7 +3,7 @@ import {RouterModule} from '@angular/router';
import {CommonModule} from '@angular/common';
import {StatsComponent} from './stats.component';
import {StatsRoutingModule} from './stats-routing.module';
-import {MatSlideToggleModule} from '@angular/material';
+import { MatSlideToggleModule } from '@angular/material/slide-toggle';
@NgModule({
imports: [
diff --git a/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts b/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts
index 452ed08..7765fe2 100644
--- a/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts
+++ b/src/app/pages/subjects/subjects-edit-form/subjects-edit-form.component.ts
@@ -6,14 +6,13 @@ import {SubjectsService} from '../subjects.service';
import {EnvProperties} from '../../../openaireLibrary/utils/properties/env-properties';
import {Session} from '../../../openaireLibrary/login/utils/helper.class';
import {LoginErrorCodes} from '../../../openaireLibrary/login/utils/guardHelper.class';
-
-import {concat} from 'rxjs/observable/concat';
import {Title} from '@angular/platform-browser';
import {properties} from '../../../../environments/environment';
import {AlertModal} from '../../../openaireLibrary/utils/modal/alert';
import {SearchInputComponent} from '../../../openaireLibrary/sharedComponents/search-input/search-input.component';
-import {Subscription} from 'rxjs';
+import {Subscription, zip} from 'rxjs';
import {CommunityInfo} from '../../../openaireLibrary/connect/community/communityInfo';
+import {concat} from 'rxjs/operators';
declare var UIkit;
@@ -156,17 +155,13 @@ export class SubjectsEditFormComponent implements OnInit {
const subjectsToDelete = this.getNonEmptyItems(subjectsToDeleteAr);
const subjectsToAdd = this.getNonEmptyItems(subjectsToAddAr);
if (subjectsToAdd.length > 0 && subjectsToDelete.length > 0) {
- const obs = concat(this._subjectsService.addSubjects(
- this.properties.communityAPI + this.communityId + '/subjects', subjectsToAdd),
- this._subjectsService.removeSubjects(
- this.properties.communityAPI + this.communityId + '/subjects', subjectsToDelete));
- this.subscriptions.push(obs.subscribe(res => {
- if (res['method'] === 'delete') {
- this.afterUpdateActions(res, "updated");
- }
- },
- error => this.handleUpdateError('System error updating subjects', error)
- ));
+ this.subscriptions.push(this._subjectsService.removeSubjects(
+ this.properties.communityAPI + this.communityId + '/subjects', subjectsToDelete).subscribe(res =>{
+ this.subscriptions.push(this._subjectsService.addSubjects(
+ this.properties.communityAPI + this.communityId + '/subjects', subjectsToAdd).subscribe(res => {
+ this.afterUpdateActions(res, "added");
+ }));
+ }));
} else if (subjectsToAdd.length > 0) {
this.subscriptions.push(this._subjectsService.addSubjects(
this.properties.communityAPI + this.communityId + '/subjects', subjectsToAdd).subscribe(res => {
diff --git a/src/app/pages/usernotifications/manage-user-notifications.module.ts b/src/app/pages/usernotifications/manage-user-notifications.module.ts
index a0f9ece..ab0d7b8 100644
--- a/src/app/pages/usernotifications/manage-user-notifications.module.ts
+++ b/src/app/pages/usernotifications/manage-user-notifications.module.ts
@@ -9,7 +9,8 @@ import {MailPrefsModule} from '../../openaireLibrary/connect/userEmailPreference
import {ManageUserNotificationsRoutingModule} from './manage-user-notifications-routing.module';
import {UsersTabsModule} from '../users/users-tabs.module';
import {PageContentModule} from '../../openaireLibrary/dashboard/sharedComponents/page-content/page-content.module';
-import {MatSelectModule, MatSlideToggleModule} from '@angular/material';
+import { MatSelectModule } from '@angular/material/select';
+import { MatSlideToggleModule } from '@angular/material/slide-toggle';
import {LoadingModule} from '../../openaireLibrary/utils/loading/loading.module';
import {SharedModule} from '../../openaireLibrary/shared/shared.module';
diff --git a/src/app/pages/users/users-routing.module.ts b/src/app/pages/users/users-routing.module.ts
index 5039e4f..39a58ec 100644
--- a/src/app/pages/users/users-routing.module.ts
+++ b/src/app/pages/users/users-routing.module.ts
@@ -5,14 +5,14 @@ import {RouterModule} from '@angular/router';
imports: [
RouterModule.forChild([
{path: '', redirectTo: 'managers', pathMatch: 'full'},
- {path: 'managers', loadChildren: './users-managers/users-managers.module#UsersManagersModule'},
- {path: 'subscribers', loadChildren: './users-subscribers/users-subscribers.module#UsersSubscribersModule'},
+ {path: 'managers', loadChildren: () => import('./users-managers/users-managers.module').then(m => m.UsersManagersModule)},
+ {path: 'subscribers', loadChildren: () => import('./users-subscribers/users-subscribers.module').then(m => m.UsersSubscribersModule)},
{
path: 'notifications',
- loadChildren: '../usernotifications/manage-user-notifications.module#ManageUserNotificationsModule'
+ loadChildren: () => import('../usernotifications/manage-user-notifications.module').then(m => m.ManageUserNotificationsModule)
},
- {path: 'claims', loadChildren: '../claims/claims.module#ClaimsModule'},
- {path: 'personal', loadChildren: './personal-info/personal-info.module#PersonalInfoModule'}
+ {path: 'claims', loadChildren: () => import('../claims/claims.module').then(m => m.ClaimsModule)},
+ {path: 'personal', loadChildren: () => import('./personal-info/personal-info.module').then(m => m.PersonalInfoModule)}
])
]
})
diff --git a/src/app/pages/zenodo-communities/zenodo-communities.component.ts b/src/app/pages/zenodo-communities/zenodo-communities.component.ts
index cae9f16..6336ed9 100644
--- a/src/app/pages/zenodo-communities/zenodo-communities.component.ts
+++ b/src/app/pages/zenodo-communities/zenodo-communities.component.ts
@@ -58,7 +58,7 @@ export class ZenodoCommunitiesComponent implements OnInit, OnDestroy {
zenodoSearchUtils: SearchUtilsClass = new SearchUtilsClass();
public errorCodes: ErrorCodes = new ErrorCodes();
subscriptions = [];
- @ViewChild('fsModal') fullscreen: FullScreenModalComponent;
+ @ViewChild('fsModal', { static: true }) fullscreen: FullScreenModalComponent;
@ViewChild('manage') manage: ManageZenodoCommunitiesComponent;
constructor(private element: ElementRef, private route: ActivatedRoute, private _router: Router,
@@ -122,8 +122,6 @@ export class ZenodoCommunitiesComponent implements OnInit, OnDestroy {
this.fullscreen.title = "Search and Add Zenodo Communities";
this.fullscreen.okButtonText = "Done";
this.fullscreen.okButton = true;
-
-
}
ngOnDestroy() {
diff --git a/src/app/polyfills.ts b/src/app/polyfills.ts
deleted file mode 100644
index 9dcf73e..0000000
--- a/src/app/polyfills.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * Created by stefanos on 25/4/2017.
- */
-// Polyfills
-
-// import 'ie-shim'; // Internet Explorer 9 support
-import 'reflect-metadata';
-// import 'core-js/es6';
-// Added parts of es6 which are necessary for your project or your browser support requirements.
-import 'core-js/es6/symbol';
-import 'core-js/es6/object';
-import 'core-js/es6/function';
-import 'core-js/es6/parse-int';
-import 'core-js/es6/parse-float';
-import 'core-js/es6/number';
-import 'core-js/es6/math';
-import 'core-js/es6/string';
-import 'core-js/es6/date';
-import 'core-js/es6/array';
-import 'core-js/es6/regexp';
-import 'core-js/es6/map';
-import 'core-js/es6/set';
-import 'core-js/es6/weak-map';
-import 'core-js/es6/weak-set';
-import 'core-js/es6/typed';
-import 'core-js/es6/reflect';
-// see issue https://github.com/AngularClass/angular2-webpack-starter/issues/709
-// import 'core-js/es6/promise';
-
-import 'intl';
-import 'intl/locale-data/jsonp/en';
-
-import 'core-js/es7/reflect';
-import 'zone.js/dist/zone';
-
-// import 'ng2-ckeditor/lib';
-
-// if ('production' === ENV) {
-// // Production
-//
-// } else {
-//
-// // Development
-// Error.stackTraceLimit = Infinity;
-//
-// /* tslint:disable no-var-requires */
-// require('zone.js/dist/long-stack-trace-zone');
-//
-// }
diff --git a/src/app/services/help-content.service.ts b/src/app/services/help-content.service.ts
index e413e6d..0d118e0 100644
--- a/src/app/services/help-content.service.ts
+++ b/src/app/services/help-content.service.ts
@@ -1,20 +1,19 @@
/**
* Created by stefania on 7/13/17.
*/
-import { Injectable } from '@angular/core';
-import {HttpClient, HttpErrorResponse, HttpHeaders} from "@angular/common/http";
-import {Observable, Subscription} from 'rxjs';
-import { Page } from "../domain/page";
-import { PageHelpContent } from "../domain/page-help-content";
-import { Portal } from "../domain/portal";
-import { Entity } from "../domain/entity";
-import { DivId } from "../domain/divId";
-import { DivHelpContent } from "../domain/div-help-content";
+import {Injectable} from '@angular/core';
+import {HttpClient, HttpErrorResponse} from '@angular/common/http';
+import {Observable, throwError} from 'rxjs';
+import {Page} from '../domain/page';
+import {PageHelpContent} from '../domain/page-help-content';
+import {Portal} from '../domain/portal';
+import {Entity} from '../domain/entity';
+import {DivId} from '../domain/divId';
+import {DivHelpContent} from '../domain/div-help-content';
import {StatisticsDisplay, StatisticsSummary} from '../openaireLibrary/connect/statistics/statisticsEntities';
-import { CustomOptions } from '../openaireLibrary/services/servicesUtils/customOptions.class';
-import {catchError, map} from "rxjs/operators";
-import {COOKIE} from "../openaireLibrary/login/utils/helper.class";
-import {properties} from "../../environments/environment";
+import {CustomOptions} from '../openaireLibrary/services/servicesUtils/customOptions.class';
+import {catchError, map} from 'rxjs/operators';
+import {properties} from '../../environments/environment';
@Injectable()
@@ -426,7 +425,7 @@ export class HelpContentService {
// in a real world app, we may send the error to some remote logging infrastructure
// instead of just logging it to the console
console.error(error);
- return Observable.throw(error.error || 'Server error');
+ return throwError(error.error || 'Server error');
}
// getDataProviders() {
diff --git a/src/app/services/manageContentProviders.service.ts b/src/app/services/manageContentProviders.service.ts
index d1f9aec..7be4c2f 100644
--- a/src/app/services/manageContentProviders.service.ts
+++ b/src/app/services/manageContentProviders.service.ts
@@ -2,7 +2,7 @@ import {Injectable} from '@angular/core';
import {HttpClient, HttpHeaders} from '@angular/common/http';
import {EnvProperties} from '../openaireLibrary/utils/properties/env-properties';
import {ContentProvider} from '../openaireLibrary/utils/entities/contentProvider';
-import {Observable} from 'rxjs/Observable';
+import {Observable} from 'rxjs';
@Injectable()
export class ManageCommunityContentProvidersService {
diff --git a/karma.conf.js b/src/karma.conf.js
similarity index 81%
rename from karma.conf.js
rename to src/karma.conf.js
index 0840f6c..86c7c56 100644
--- a/karma.conf.js
+++ b/src/karma.conf.js
@@ -12,20 +12,21 @@ module.exports = function (config) {
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
- client:{
+ client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
- dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
+ dir: require('path').join(__dirname, '../coverage/connect-admin'),
+ reports: ['html', 'lcovonly', 'text-summary'],
fixWebpackSourcePaths: true
},
-
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
- singleRun: false
+ singleRun: false,
+ restartOnFileChange: true
});
};
diff --git a/src/main.ts b/src/main.ts
index 9be6714..c203640 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -8,4 +8,5 @@ if (properties.environment !== "development") {
enableProdMode();
}
-platformBrowserDynamic().bootstrapModule(AppModule);
+platformBrowserDynamic().bootstrapModule(AppModule)
+ .catch(err => console.error(err));
diff --git a/src/mining.scss b/src/mining.scss
new file mode 100644
index 0000000..75b9615
--- /dev/null
+++ b/src/mining.scss
@@ -0,0 +1,8 @@
+@use "sass:meta";
+@import "~interactiveminingv3/assets/css/variables.css";
+
+.mining {
+
+ @include meta.load-css("node_modules/interactiveminingv3/assets/css/interactive-mining.css");
+ @include meta.load-css("node_modules/interactiveminingv3/assets/css/animations.css");
+}
diff --git a/src/polyfills.ts b/src/polyfills.ts
index 4e77c07..7c9e495 100644
--- a/src/polyfills.ts
+++ b/src/polyfills.ts
@@ -1,3 +1,7 @@
+/***************************************************************************************************
+ * Load `$localize` onto the global scope - used if i18n tags appear in Angular templates.
+ */
+import '@angular/localize/init';
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
@@ -11,61 +15,53 @@
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
- * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
+ * Learn more in https://angular.io/guide/browser-support
*/
/***************************************************************************************************
* BROWSER POLYFILLS
*/
-/** IE9, IE10 and IE11 requires all of the following polyfills. **/
-import 'core-js/es6/symbol';
-import 'core-js/es6/object';
-import 'core-js/es6/function';
-import 'core-js/es6/parse-int';
-import 'core-js/es6/parse-float';
-import 'core-js/es6/number';
-import 'core-js/es6/math';
-import 'core-js/es6/string';
-import 'core-js/es6/date';
-import 'core-js/es6/array';
-import 'core-js/es6/regexp';
-import 'core-js/es6/map';
-import 'core-js/es6/weak-map';
-import 'core-js/es6/set';
-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
-/** Evergreen browsers require these. **/
-import 'core-js/es6/reflect';
-
-
/**
- * Required to support Web Animations `@angular/animation`.
- * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
- **/
+ * 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
+ * because those flags need to be set before `zone.js` being loaded, and webpack
+ * will put import in the top of bundle, so user need to create a separate file
+ * in this directory (for example: zone-flags.ts), and put the following flags
+ * into that file, and then add the following code before importing zone.js.
+ * import './zone-flags.ts';
+ *
+ * The flags allowed in zone-flags.ts are listed here.
+ *
+ * The following flags will work for all browsers.
+ *
+ * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
+ * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
+ * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
+ *
+ * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
+ * with the following flag, it will bypass `zone.js` patch for IE/Edge
+ *
+ * (window as any).__Zone_enable_cross_context_check = true;
+ *
+ */
/***************************************************************************************************
- * Zone JS is required by Angular itself.
+ * Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
-
/***************************************************************************************************
* APPLICATION IMPORTS
*/
-
-/**
- * Date, currency, decimal and percent pipes.
- * Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
- */
-// import 'intl'; // Run `npm install --save intl`.
-/**
- * Need to import at least one locale-data with intl.
- */
-// import 'intl/locale-data/jsonp/en';
diff --git a/src/styles.css b/src/styles.css
index 200aa08..b435524 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -4,4 +4,3 @@
@import "assets/common-assets/library.css";
@import "assets/dashboard-theme/main.css";
@import "assets/css/connect-custom.css";
-
diff --git a/src/test.ts b/src/test.ts
index cd612ee..1631789 100644
--- a/src/test.ts
+++ b/src/test.ts
@@ -1,24 +1,14 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
-import 'zone.js/dist/long-stack-trace-zone';
-import 'zone.js/dist/proxy.js';
-import 'zone.js/dist/sync-test';
-import 'zone.js/dist/jasmine-patch';
-import 'zone.js/dist/async-test';
-import 'zone.js/dist/fake-async-test';
+import 'zone.js/dist/zone-testing';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
-// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
-declare const __karma__: any;
declare const require: any;
-// Prevent Karma from running prematurely.
-__karma__.loaded = function () {};
-
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
@@ -28,5 +18,3 @@ getTestBed().initTestEnvironment(
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
-// Finally, start Karma to run the tests.
-__karma__.start();
diff --git a/src/tsconfig.app.json b/src/tsconfig.app.json
index c300528..f3a1b80 100644
--- a/src/tsconfig.app.json
+++ b/src/tsconfig.app.json
@@ -1,23 +1,14 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
- "paths": {
- "*": [
- "types/*"
- ]
- },
- "paths": {
- "*": [
- "types/*"
- ]
- },
"outDir": "../out-tsc/app",
- "baseUrl": "./",
- "module": "es2015",
- "types": ["node"]
+ "types": []
},
- "exclude": [
- "test.ts",
- "**/*.spec.ts"
+ "files": [
+ "main.ts",
+ "polyfills.ts"
+ ],
+ "include": [
+ "src/**/*.d.ts"
]
}
diff --git a/src/tsconfig.spec.json b/src/tsconfig.spec.json
index 18bad40..de77336 100644
--- a/src/tsconfig.spec.json
+++ b/src/tsconfig.spec.json
@@ -2,9 +2,6 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/spec",
- "baseUrl": "./",
- "module": "commonjs",
- "target": "es5",
"types": [
"jasmine",
"node"
diff --git a/src/typings.d.ts b/src/typings.d.ts
deleted file mode 100644
index ef5c7bd..0000000
--- a/src/typings.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-/* SystemJS module definition */
-declare var module: NodeModule;
-interface NodeModule {
- id: string;
-}
diff --git a/tsconfig.json b/tsconfig.json
index 8cd9a30..8c693a2 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,22 +1,23 @@
{
"compileOnSave": false,
"compilerOptions": {
- "importHelpers": true,
+ "baseUrl": "./",
+ "downlevelIteration": true,
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
+ "module": "es2020",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
- "target": "es5",
+ "importHelpers": true,
+ "target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
- "es2017",
+ "es2018",
"dom"
- ],
- "module": "es2015",
- "baseUrl": "./"
+ ]
}
-}
\ No newline at end of file
+}
diff --git a/tslint.json b/tslint.json
deleted file mode 100644
index 7223e1a..0000000
--- a/tslint.json
+++ /dev/null
@@ -1,141 +0,0 @@
-{
- "rulesDirectory": [
- "node_modules/codelyzer"
- ],
- "rules": {
- "arrow-return-shorthand": true,
- "callable-types": true,
- "class-name": true,
- "comment-format": [
- true,
- "check-space"
- ],
- "curly": true,
- "eofline": true,
- "forin": true,
- "import-blacklist": [
- true
- ],
- "import-spacing": true,
- "indent": [
- true,
- "spaces"
- ],
- "interface-over-type-literal": true,
- "label-position": true,
- "max-line-length": [
- true,
- 140
- ],
- "member-access": false,
- "member-ordering": [
- true,
- {
- "order": [
- "static-field",
- "instance-field",
- "static-method",
- "instance-method"
- ]
- }
- ],
- "no-arg": true,
- "no-bitwise": true,
- "no-console": [
- true,
- "debug",
- "info",
- "time",
- "timeEnd",
- "trace"
- ],
- "no-construct": true,
- "no-debugger": true,
- "no-duplicate-super": true,
- "no-empty": false,
- "no-empty-interface": true,
- "no-eval": true,
- "no-inferrable-types": [
- true,
- "ignore-params"
- ],
- "no-misused-new": true,
- "no-non-null-assertion": true,
- "no-shadowed-variable": true,
- "no-string-literal": false,
- "no-string-throw": true,
- "no-switch-case-fall-through": true,
- "no-trailing-whitespace": true,
- "no-unnecessary-initializer": true,
- "no-unused-expression": true,
- "no-use-before-declare": true,
- "no-var-keyword": true,
- "object-literal-sort-keys": false,
- "one-line": [
- true,
- "check-open-brace",
- "check-catch",
- "check-else",
- "check-whitespace"
- ],
- "prefer-const": true,
- "quotemark": [
- true,
- "single"
- ],
- "radix": true,
- "semicolon": [
- true,
- "always"
- ],
- "triple-equals": [
- true,
- "allow-null-check"
- ],
- "typedef-whitespace": [
- true,
- {
- "call-signature": "nospace",
- "index-signature": "nospace",
- "parameter": "nospace",
- "property-declaration": "nospace",
- "variable-declaration": "nospace"
- }
- ],
- "typeof-compare": true,
- "unified-signatures": true,
- "variable-name": false,
- "whitespace": [
- true,
- "check-branch",
- "check-decl",
- "check-operator",
- "check-separator",
- "check-type"
- ],
- "directive-selector": [
- true,
- "attribute",
- "app",
- "camelCase"
- ],
- "component-selector": [
- true,
- "element",
- "app",
- "kebab-case"
- ],
- "use-input-property-decorator": true,
- "use-output-property-decorator": true,
- "use-host-property-decorator": true,
- "no-input-rename": true,
- "no-output-rename": true,
- "use-life-cycle-interface": true,
- "use-pipe-transform-interface": true,
- "component-class-suffix": true,
- "directive-class-suffix": true,
- "no-access-missing-member": true,
- "templates-use-public": true,
- "invoke-injectable": true
- }
-}