demo shell remove unused import and add tslint on start dev

This commit is contained in:
Eugenio Romano
2017-04-11 14:06:20 +01:00
committed by Mario Romano
parent f6102dfc07
commit 6af0f10fa8
2 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
import { Component, OnInit, AfterViewInit, Optional, ViewChild, ViewChildren, ChangeDetectorRef } from '@angular/core'; import { Component, OnInit, AfterViewInit, Optional, ViewChild, ChangeDetectorRef } from '@angular/core';
import { ActivatedRoute, Params, Router } from '@angular/router'; import { ActivatedRoute, Params, Router } from '@angular/router';
import { AlfrescoAuthenticationService, LogService, NotificationService } from 'ng2-alfresco-core'; import { AlfrescoAuthenticationService, LogService, NotificationService } from 'ng2-alfresco-core';
import { DocumentActionsService, DocumentListComponent, ContentActionHandler, DocumentActionModel, FolderActionModel } from 'ng2-alfresco-documentlist'; import { DocumentActionsService, DocumentListComponent, ContentActionHandler, DocumentActionModel, FolderActionModel } from 'ng2-alfresco-documentlist';
@@ -124,13 +124,13 @@ export class FilesComponent implements OnInit, AfterViewInit {
ngAfterViewInit() { ngAfterViewInit() {
this.uploadButton.onSuccess this.uploadButton.onSuccess
.debounceTime(100) .debounceTime(100)
.subscribe((event)=> { .subscribe((event) => {
this.reload(event); this.reload(event);
}); });
this.uploadDragArea.onSuccess this.uploadDragArea.onSuccess
.debounceTime(100) .debounceTime(100)
.subscribe((event)=> { .subscribe((event) => {
this.reload(event); this.reload(event);
}); });
} }

View File

@@ -5,7 +5,7 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "npm install rimraf && npm run clean-build && rimraf dist node_modules typings dist", "clean": "npm install rimraf && npm run clean-build && rimraf dist node_modules typings dist",
"start": "npm run server-versions && webpack-dev-server --progress --max_old_space_size=4096 --max_new_space_size=4096", "start": "npm run tslint && npm run server-versions && webpack-dev-server --progress --max_old_space_size=4096 --max_new_space_size=4096",
"start:dist": "wsrv -s dist/ -p 3000 -a 0.0.0.0", "start:dist": "wsrv -s dist/ -p 3000 -a 0.0.0.0",
"clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'", "clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'",
"test": "karma start", "test": "karma start",