diff --git a/angular.json b/angular.json index 29961bc3a4..b7a15b3fc3 100644 --- a/angular.json +++ b/angular.json @@ -561,7 +561,9 @@ "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { - "tsConfig": [], + "tsConfig": [ + "./e2e/tsconfig.e2e.json" + ], "exclude": [ "**/node_modules/**/*" ] diff --git a/demo-shell/src/app/components/content-node-selector/content-node-selector.component.ts b/demo-shell/src/app/components/content-node-selector/content-node-selector.component.ts index c24e2321f4..5ce3bbca2d 100644 --- a/demo-shell/src/app/components/content-node-selector/content-node-selector.component.ts +++ b/demo-shell/src/app/components/content-node-selector/content-node-selector.component.ts @@ -18,7 +18,7 @@ import { Component, ViewEncapsulation } from '@angular/core'; import { SitePaging, SiteEntry, MinimalNodeEntryEntity } from '@alfresco/js-api'; import { ContentNodeDialogService, ShareDataRow, RowFilter } from '@alfresco/adf-content-services'; -import { DataRow, DataColumn, ThumbnailService } from '@alfresco/adf-core'; +import { ThumbnailService } from '@alfresco/adf-core'; @Component({ templateUrl: './content-node-selector.component.html', @@ -95,7 +95,7 @@ export class ContentNodeSelectorComponent { return showNode; } - customImageResolverExample(row: DataRow, col: DataColumn) { + customImageResolverExample() { return this.thumbnailService.getMimeTypeIcon('video/quicktime'); } diff --git a/demo-shell/src/app/components/document-list/extension-presets/extension-presets.component.ts b/demo-shell/src/app/components/document-list/extension-presets/extension-presets.component.ts index 027bc0cab9..52b8f8609b 100644 --- a/demo-shell/src/app/components/document-list/extension-presets/extension-presets.component.ts +++ b/demo-shell/src/app/components/document-list/extension-presets/extension-presets.component.ts @@ -55,7 +55,7 @@ export class ExtensionPresetsComponent implements OnInit, OnDestroy { this.onDestroy$.complete(); } - trackById(index: number, obj: { id: string }) { + trackById(_: number, obj: { id: string }) { return obj.id; } } diff --git a/demo-shell/src/app/components/files/files.component.ts b/demo-shell/src/app/components/files/files.component.ts index 731ea24524..63fcc570f3 100644 --- a/demo-shell/src/app/components/files/files.component.ts +++ b/demo-shell/src/app/components/files/files.component.ts @@ -27,7 +27,7 @@ import { MinimalNodeEntity, NodePaging, Pagination, MinimalNodeEntryEntity, Site import { AlfrescoApiService, AuthenticationService, AppConfigService, AppConfigValues, ContentService, TranslationService, FileUploadEvent, FolderCreatedEvent, LogService, NotificationService, - UploadService, DataColumn, DataRow, UserPreferencesService, + UploadService, DataRow, UserPreferencesService, PaginationComponent, FormValues, DisplayMode, InfinitePaginationComponent, HighlightDirective, SharedLinksApiService } from '@alfresco/adf-core'; @@ -474,7 +474,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy { return this.contentService.hasAllowableOperations(selection[0].entry, 'update'); } - getNodeNameTooltip(row: DataRow, col: DataColumn): string { + getNodeNameTooltip(row: DataRow): string { if (row) { return row.getValue('name'); } diff --git a/demo-shell/src/app/components/form/fake-form.service.ts b/demo-shell/src/app/components/form/fake-form.service.ts index eaf1537662..8d10f34b44 100644 --- a/demo-shell/src/app/components/form/fake-form.service.ts +++ b/demo-shell/src/app/components/form/fake-form.service.ts @@ -18,35 +18,43 @@ import { Observable, of } from 'rxjs'; import { Injectable } from '@angular/core'; import { - AppConfigService, AlfrescoApiService, EcmModelService, LogService, FormService, FormOutcomeEvent + AlfrescoApiService, + EcmModelService, + LogService, + FormService, + FormOutcomeEvent } from '@alfresco/adf-core'; import { Subject } from 'rxjs'; @Injectable() export class FakeFormService extends FormService { - executeOutcome = new Subject(); - constructor(appConfig: AppConfigService, - ecmModelService: EcmModelService, - apiService: AlfrescoApiService, - protected logService: LogService) { + constructor( + ecmModelService: EcmModelService, + apiService: AlfrescoApiService, + protected logService: LogService + ) { super(ecmModelService, apiService, logService); } - public getRestFieldValues(taskId: string, fieldId: string): Observable { + public getRestFieldValues( + taskId: string, + fieldId: string + ): Observable { if (fieldId === 'typeaheadField') { return of([ - { 'id': '1', 'name': 'Leanne Graham' }, - { 'id': '2', 'name': 'Ervin Howell' }, - { 'id': '3', 'name': 'Clementine Bauch' }, - { 'id': '4', 'name': 'Patricia Lebsack' }, - { 'id': '5', 'name': 'Chelsey Dietrich' }, - { 'id': '6', 'name': 'Mrs. Dennis Schulist' }, - { 'id': '7', 'name': 'Kurtis Weissnat' }, - { 'id': '8', 'name': 'Nicholas Runolfsdottir V' }, - { 'id': '9', 'name': 'Glenna Reichert' }, - { 'id': '10', 'name': 'Clementina DuBuque' }]); + { id: '1', name: 'Leanne Graham' }, + { id: '2', name: 'Ervin Howell' }, + { id: '3', name: 'Clementine Bauch' }, + { id: '4', name: 'Patricia Lebsack' }, + { id: '5', name: 'Chelsey Dietrich' }, + { id: '6', name: 'Mrs. Dennis Schulist' }, + { id: '7', name: 'Kurtis Weissnat' }, + { id: '8', name: 'Nicholas Runolfsdottir V' }, + { id: '9', name: 'Glenna Reichert' }, + { id: '10', name: 'Clementina DuBuque' } + ]); } else { return super.getRestFieldValues(taskId, fieldId); } diff --git a/demo-shell/src/app/components/lazy-loading/lazy-loading.module.ts b/demo-shell/src/app/components/lazy-loading/lazy-loading.module.ts index 777342f5b7..a6c5174d4e 100644 --- a/demo-shell/src/app/components/lazy-loading/lazy-loading.module.ts +++ b/demo-shell/src/app/components/lazy-loading/lazy-loading.module.ts @@ -16,7 +16,7 @@ */ import { NgModule } from '@angular/core'; -import { CoreModule, TranslationService } from '@alfresco/adf-core'; +import { CoreModule } from '@alfresco/adf-core'; import { LazyLoadingRoutes } from './lazy-loading.routes'; import { LazyLoadingComponent } from './lazy-loading.component'; @@ -30,7 +30,4 @@ import { LazyLoadingComponent } from './lazy-loading.component'; LazyLoadingComponent ] }) -export class LazyLoadingModule { - constructor(translation: TranslationService) { - } -} +export class LazyLoadingModule {} diff --git a/demo-shell/src/app/components/login/login.component.html b/demo-shell/src/app/components/login/login.component.html index dd3b072cdb..9da704e862 100644 --- a/demo-shell/src/app/components/login/login.component.html +++ b/demo-shell/src/app/components/login/login.component.html @@ -85,7 +85,7 @@ [showRememberMe]="showFooter && showRememberMe" (executeSubmit)="checkForm($event)" copyrightText="{{ 'application.copyright' | adfAppConfig }}" - (success)="onLogin($event)" + (success)="onLogin()" (error)="onError($event)">

diff --git a/demo-shell/src/app/components/login/login.component.ts b/demo-shell/src/app/components/login/login.component.ts index 72761e9132..64ed91e770 100644 --- a/demo-shell/src/app/components/login/login.component.ts +++ b/demo-shell/src/app/components/login/login.component.ts @@ -55,7 +55,7 @@ export class LoginComponent implements OnInit { this.alfrescoLogin.addCustomValidationError('password', 'required', 'LOGIN.MESSAGES.PASSWORD-REQUIRED'); } - onLogin($event) { + onLogin() { this.router.navigate(['/home']); } diff --git a/demo-shell/src/app/components/permissions/demo-permissions.component.html b/demo-shell/src/app/components/permissions/demo-permissions.component.html index 3cbb39560f..d008b38f56 100644 --- a/demo-shell/src/app/components/permissions/demo-permissions.component.html +++ b/demo-shell/src/app/components/permissions/demo-permissions.component.html @@ -5,7 +5,7 @@ (error)="showErrorMessage($event)" (updated)="onUpdatedPermissions($event)"> {{ (toggleStatus?'DEMO_PERMISSION.INHERITED_PERMISSIONS_BUTTON':'DEMO_PERMISSION.INHERIT_PERMISSION_BUTTON') | translate}} - +

diff --git a/demo-shell/src/app/components/permissions/demo-permissions.component.ts b/demo-shell/src/app/components/permissions/demo-permissions.component.ts index 321357dc3d..624c09757a 100644 --- a/demo-shell/src/app/components/permissions/demo-permissions.component.ts +++ b/demo-shell/src/app/components/permissions/demo-permissions.component.ts @@ -64,7 +64,7 @@ export class DemoPermissionComponent implements OnInit { this.displayPermissionComponent.reload(); } - openAddPermissionDialog(event: Event) { + openAddPermissionDialog() { this.nodePermissionDialogService .updateNodePermissionByDialog(this.nodeId) .subscribe( diff --git a/demo-shell/src/app/components/process-service/process-service.component.html b/demo-shell/src/app/components/process-service/process-service.component.html index 874e79d026..ee7484db8b 100644 --- a/demo-shell/src/app/components/process-service/process-service.component.html +++ b/demo-shell/src/app/components/process-service/process-service.component.html @@ -28,7 +28,7 @@ [appId]="appId" [showIcon]="showTaskFilterIcon" (filterClick)="onTaskFilterClick($event)" - (success)="onSuccessTaskFilterList($event)" #activitiFilter> + (success)="onSuccessTaskFilterList()" #activitiFilter> @@ -48,7 +48,7 @@ [sort]="taskFilter?.filter?.sort" [landingTaskId]="currentTaskId" (rowClick)="onTaskRowClick($event)" - (success)="onSuccessTaskList($event)" + (success)="onSuccessTaskList()" (row-click)="onRowClick($event)" (row-dblclick)="onTaskRowDblClick($event)" [multiselect]="multiSelectTask" @@ -76,11 +76,11 @@ [taskId]="currentTaskId" [fieldValidators]="fieldValidators" [showHeaderContent]="showHeaderContent" - (formCompleted)="onFormCompleted($event)" + (formCompleted)="onFormCompleted()" (formContentClicked)="onContentClick($event)" (taskCreated)="onTaskCreated($event)" (assignTask)="onAssignTask()" - (taskDeleted)="onTaskDeleted($event)"> + (taskDeleted)="onTaskDeleted()">
@@ -144,7 +144,7 @@ [showIcon]="showProcessFilterIcon" (filterClick)="onProcessFilterChange($event)" (filterSelected)="onProcessFilterChange($event)" - (success)="onSuccessProcessFilterList($event)"> + (success)="onSuccessProcessFilterList()"> @@ -164,7 +164,7 @@ (rowClick)="onProcessRowClick($event)" (row-dblclick)="onProcessRowDblClick($event)" [multiselect]="multiSelectProcess" - (success)="onSuccessProcessList($event)"> + (success)="onSuccessProcessList()">