From 415dd4afd05b3b82eca2a0e6e205b5863a8f89fd Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 4 Aug 2017 16:32:21 +0100 Subject: [PATCH] fix demo shell issues (lint) --- .../app/components/activiti/activiti-demo.component.ts | 4 ++-- .../components/activiti/activiti-show-diagram.component.ts | 5 +---- demo-shell-ng2/app/components/activiti/apps.view.ts | 4 ++-- demo-shell-ng2/app/components/files/files.component.ts | 7 +++---- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts index d67befca08..6e991e54ea 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts +++ b/demo-shell-ng2/app/components/activiti/activiti-demo.component.ts @@ -113,8 +113,8 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit { private route: ActivatedRoute, private router: Router, private apiService: AlfrescoApiService, - private formRenderingService: FormRenderingService, - private formService: FormService) { + // private formRenderingService: FormRenderingService, + formService: FormService) { this.dataTasks = new ObjectDataTableAdapter(); this.dataTasks.setSorting(new DataSorting('created', 'desc')); diff --git a/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.ts b/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.ts index c71e438411..12cf2537e9 100644 --- a/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.ts +++ b/demo-shell-ng2/app/components/activiti/activiti-show-diagram.component.ts @@ -15,10 +15,8 @@ * limitations under the License. */ -import { Location } from '@angular/common'; import { Component } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; -import { Subscription } from 'rxjs/Rx'; @Component({ selector: 'activiti-show-diagram', @@ -31,8 +29,7 @@ export class ActivitiShowDiagramComponent { appId: string; constructor(private route: ActivatedRoute, - private router: Router, - private location: Location) { + private router: Router) { this.route.params.subscribe(params => { this.processDefinitionId = params['processDefinitionId']; this.appId = params['appId']; diff --git a/demo-shell-ng2/app/components/activiti/apps.view.ts b/demo-shell-ng2/app/components/activiti/apps.view.ts index 49ae53249a..04898acd6d 100644 --- a/demo-shell-ng2/app/components/activiti/apps.view.ts +++ b/demo-shell-ng2/app/components/activiti/apps.view.ts @@ -16,7 +16,7 @@ */ import { Component } from '@angular/core'; -import { ActivatedRoute, Router } from '@angular/router'; +import { Router } from '@angular/router'; import { AppDefinitionRepresentationModel } from 'ng2-activiti-tasklist'; @Component({ @@ -27,7 +27,7 @@ import { AppDefinitionRepresentationModel } from 'ng2-activiti-tasklist'; }) export class ActivitiAppsViewComponent { - constructor(private router: Router, private route: ActivatedRoute) { + constructor(private router: Router) { } onAppClicked(app: AppDefinitionRepresentationModel) { diff --git a/demo-shell-ng2/app/components/files/files.component.ts b/demo-shell-ng2/app/components/files/files.component.ts index 008e3bac22..50d1fa22ad 100644 --- a/demo-shell-ng2/app/components/files/files.component.ts +++ b/demo-shell-ng2/app/components/files/files.component.ts @@ -18,12 +18,12 @@ import { ChangeDetectorRef, Component, Input, OnInit, Optional, ViewChild } from '@angular/core'; import { MdDialog } from '@angular/material'; import { ActivatedRoute, Params } from '@angular/router'; -import { DownloadEntry, MinimalNodeEntity } from 'alfresco-js-api'; +import { MinimalNodeEntity } from 'alfresco-js-api'; import { AlfrescoApiService, AlfrescoContentService, FileUploadCompleteEvent, - FolderCreatedEvent, NotificationService, PermissionsEnum, SiteModel, UploadService + FolderCreatedEvent, NotificationService, SiteModel, UploadService } from 'ng2-alfresco-core'; -import { DocumentListComponent, DropdownSitesComponent, PermissionStyleModel } from 'ng2-alfresco-documentlist'; +import { DocumentListComponent, PermissionStyleModel } from 'ng2-alfresco-documentlist'; import { CreateFolderDialogComponent } from '../../dialogs/create-folder.dialog'; import { DownloadZipDialogComponent } from './../../dialogs/download-zip.dialog'; @@ -203,7 +203,6 @@ export class FilesComponent implements OnInit { downloadFile(node: MinimalNodeEntity) { if (node && node.entry) { - const nodesApi = this.apiService.getInstance().core.nodesApi; const contentApi = this.apiService.getInstance().content; const url = contentApi.getContentUrl(node.entry.id, true);