[ADF-859] add codelyzer in core and datatable (#2056)

* add codelyzer in core and datatable

* add codelyzer in the main build

* order imports

* fix import in test

* fix import test

* import reorder form

* tasklist and processlist import reorder
This commit is contained in:
Eugenio Romano
2017-07-07 10:20:41 +02:00
committed by Vito
parent a0c4c27dd5
commit 9a04a78cff
388 changed files with 9343 additions and 2249 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, Input, HostListener } from '@angular/core';
import { Component, HostListener, Input } from '@angular/core';
import { LogService } from 'ng2-alfresco-core';
import { RenderingQueueServices } from '../services/rendering-queue.services';
@@ -97,11 +97,11 @@ export class PdfViewerComponent {
this.currentPdfDocument.getPage(1).then(() => {
this.scalePage('auto');
resolve();
}, (error) => {
}, (error) => {
reject(error);
});
}, (error) => {
}, (error) => {
reject(error);
});
}
@@ -124,7 +124,7 @@ export class PdfViewerComponent {
window.document.addEventListener('scroll', (event) => {
this.watchScroll(event.target);
}, true);
}, true);
this.pdfViewer = new PDFJS.PDFViewer({
container: documentContainer,

View File

@@ -17,7 +17,7 @@
import { Component, Input } from '@angular/core';
import { SimpleChanges } from '@angular/core';
import { Http, Response, RequestOptions, ResponseContentType } from '@angular/http';
import { Http, RequestOptions, Response, ResponseContentType } from '@angular/http';
import 'rxjs/add/operator/toPromise';
@Component({

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { Component, ElementRef, Input, Output, HostListener, EventEmitter, Inject, TemplateRef } from '@angular/core';
import { Component, ElementRef, EventEmitter, HostListener, Inject, Input, Output, TemplateRef } from '@angular/core';
import { DOCUMENT } from '@angular/platform-browser';
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
import { AlfrescoApiService, LogService } from 'ng2-alfresco-core';
@@ -101,7 +101,7 @@ export class ViewerComponent {
this.extensionChange.emit(this.extension);
this.loaded = true;
resolve();
}, function (error) {
}, function (error) {
reject(error);
this.logService.error('This node does not exist');
});