Services list in readme and in the doc generator (#2091)

* add services list in readme and in the autogenerator

* update tslint 5.5.0
This commit is contained in:
Eugenio Romano
2017-07-17 11:38:10 +01:00
parent b1d2ec9e9e
commit 3a76027fe3
211 changed files with 1413 additions and 9463 deletions

View File

@@ -15,6 +15,8 @@
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { Component } from '@angular/core';
import { ContentActionModel } from './../../models/content-action.model';

View File

@@ -15,6 +15,8 @@
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angular/core';
import { ContentActionHandler } from '../../models/content-action.model';

View File

@@ -15,6 +15,8 @@
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { Component } from '@angular/core';
import { DataColumn } from 'ng2-alfresco-datatable';

View File

@@ -15,6 +15,8 @@
* limitations under the License.
*/
/* tslint:disable:component-selector */
import { AfterContentInit, Component, ContentChild, Input, OnInit, TemplateRef } from '@angular/core';
import { DataColumn } from 'ng2-alfresco-datatable';

View File

@@ -398,7 +398,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
reject(error);
});
} else {
this.data.loadPage(<NodePaging>val);
this.data.loadPage(<NodePaging> val);
this.pagination = val.list.pagination;
this.loading = false;
this.ready.emit();

View File

@@ -104,7 +104,7 @@ describe('ShareDataTableAdapter', () => {
it('should fail when getting value for missing row', () => {
let adapter = new ShareDataTableAdapter(documentListService, null);
let check = () => {
return adapter.getValue(null, <DataColumn>{});
return adapter.getValue(null, <DataColumn> {});
};
expect(check).toThrowError(adapter.ERR_ROW_NOT_FOUND);
});
@@ -112,7 +112,7 @@ describe('ShareDataTableAdapter', () => {
it('should fail when getting value for missing column', () => {
let adapter = new ShareDataTableAdapter(documentListService, null);
let check = () => {
return adapter.getValue(<DataRow>{}, null);
return adapter.getValue(<DataRow> {}, null);
};
expect(check).toThrowError(adapter.ERR_COL_NOT_FOUND);
});

View File

@@ -145,10 +145,10 @@ describe('DocumentActionsService', () => {
it('should not delete the file node if there is no delete permission', (done) => {
spyOn(documentListService, 'deleteNode').and.callThrough();
service.permissionEvent.subscribe((permission) => {
expect(permission).toBeDefined();
expect(permission.type).toEqual('content');
expect(permission.action).toEqual('delete');
service.permissionEvent.subscribe((permissionBack) => {
expect(permissionBack).toBeDefined();
expect(permissionBack.type).toEqual('content');
expect(permissionBack.action).toEqual('delete');
done();
});
@@ -236,7 +236,7 @@ describe('DocumentActionsService', () => {
const deleteObservale = service.getHandler('delete')(fileWithPermission, null, permission);
expect(documentListService.deleteNode).toHaveBeenCalledWith(file.entry.id);
expect(deleteObservale.subscribe).toBeDefined;
expect(deleteObservale.subscribe).toBeDefined();
});
it('should support deletion only file node', () => {