remove consecutive blank line

This commit is contained in:
Eugenio Romano
2016-10-12 13:47:38 +01:00
parent 2dc1cec71e
commit 68465e46f2
54 changed files with 0 additions and 80 deletions

View File

@@ -22,7 +22,6 @@ import { ReportModel } from '../models/report.model';
import { Observer } from 'rxjs/Observer'; import { Observer } from 'rxjs/Observer';
import { Observable } from 'rxjs/Observable'; import { Observable } from 'rxjs/Observable';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'analytics-report-list', selector: 'analytics-report-list',
@@ -61,7 +60,6 @@ export class AnalyticsReportListComponent implements OnInit {
this.getReportListByAppId(); this.getReportListByAppId();
} }
getReportListByAppId() { getReportListByAppId() {
this.analyticsService.getReportList().subscribe( this.analyticsService.getReportList().subscribe(
(res: ReportModel[]) => { (res: ReportModel[]) => {

View File

@@ -38,7 +38,6 @@ export const ANALYTICS_PROVIDERS: any[] = [
AnalyticsService AnalyticsService
]; ];
describe('Show component HTML', () => { describe('Show component HTML', () => {
let component: any; let component: any;

View File

@@ -171,7 +171,6 @@ export class AnalyticsComponent implements OnInit, OnChanges {
this.reportParamQuery.dateRange.endDate = dateRange.endDate; this.reportParamQuery.dateRange.endDate = dateRange.endDate;
} }
onDateRangeIntervalChange(field: any) { onDateRangeIntervalChange(field: any) {
this.reset(); this.reset();
this.reportParamQuery.dateRangeInterval = field.value; this.reportParamQuery.dateRangeInterval = field.value;

View File

@@ -18,7 +18,6 @@
import { Component, ElementRef } from '@angular/core'; import { Component, ElementRef } from '@angular/core';
import { WidgetComponent } from './../widget.component'; import { WidgetComponent } from './../widget.component';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'date-widget', selector: 'date-widget',

View File

@@ -18,7 +18,6 @@
import { Component, Input, Output, EventEmitter } from '@angular/core'; import { Component, Input, Output, EventEmitter } from '@angular/core';
import { WidgetComponent } from './../widget.component'; import { WidgetComponent } from './../widget.component';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'dropdown-widget', selector: 'dropdown-widget',

View File

@@ -19,7 +19,6 @@ import { Component, ElementRef, OnInit } from '@angular/core';
import { NumberWidget } from './../number/number.widget'; import { NumberWidget } from './../number/number.widget';
import { ReportParameterModel, ParameterValueModel } from './../../../models/report.model'; import { ReportParameterModel, ParameterValueModel } from './../../../models/report.model';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'duration-widget', selector: 'duration-widget',

View File

@@ -18,7 +18,6 @@
import { Component, ElementRef } from '@angular/core'; import { Component, ElementRef } from '@angular/core';
import { WidgetComponent } from './../widget.component'; import { WidgetComponent } from './../widget.component';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'number-widget', selector: 'number-widget',

View File

@@ -120,7 +120,6 @@ export class TableChart extends Chart {
} }
} }
export class HeatMapChart extends Chart { export class HeatMapChart extends Chart {
title: string; title: string;
titleKey: string; titleKey: string;

View File

@@ -101,7 +101,6 @@ export class ParameterValueModel {
} }
} }
export class ReportQuery { export class ReportQuery {
processDefinitionId: string; processDefinitionId: string;
status: string; status: string;

View File

@@ -205,7 +205,4 @@ export class AnalyticsService {
console.error(error); console.error(error);
return Observable.throw(error.json().error || 'Server error'); return Observable.throw(error.json().error || 'Server error');
} }
} }

View File

@@ -105,7 +105,6 @@ describe('ActivitiForm', () => {
expect(formComponent.isOutcomeButtonVisible(outcome)).toBeTruthy(); expect(formComponent.isOutcomeButtonVisible(outcome)).toBeTruthy();
}); });
it('should allow controlling [complete] button visibility', () => { it('should allow controlling [complete] button visibility', () => {
let formModel = new FormModel(); let formModel = new FormModel();
let outcome = new FormOutcomeModel(formModel, { id: '$save', name: FormOutcomeModel.SAVE_ACTION }); let outcome = new FormOutcomeModel(formModel, { id: '$save', name: FormOutcomeModel.SAVE_ACTION });

View File

@@ -59,7 +59,6 @@ describe('FormFieldValidator', () => {
expect(validator.validate(field)).toBeTruthy(); expect(validator.validate(field)).toBeTruthy();
}); });
it('should fail for dropdown with empty value', () => { it('should fail for dropdown with empty value', () => {
let field = new FormFieldModel(new FormModel(), { let field = new FormFieldModel(new FormModel(), {
type: FormFieldTypes.DROPDOWN, type: FormFieldTypes.DROPDOWN,

View File

@@ -35,7 +35,6 @@ export class UploadWidget extends WidgetComponent implements OnInit {
super(); super();
} }
ngOnInit() { ngOnInit() {
if (this.field && if (this.field &&
this.field.value && this.field.value &&

View File

@@ -128,8 +128,6 @@ export class EcmModelService {
public activeEcmModel(modelName: string): Observable<any> { public activeEcmModel(modelName: string): Observable<any> {
let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm/${modelName}?select=status`; let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm/${modelName}?select=status`;
let options = this.getRequestOptions(); let options = this.getRequestOptions();
let body = {status: 'ACTIVE'}; let body = {status: 'ACTIVE'};
return this.http return this.http
@@ -141,8 +139,6 @@ export class EcmModelService {
public createEcmModel(modelName: string, nameSpace: string): Observable<any> { public createEcmModel(modelName: string, nameSpace: string): Observable<any> {
let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm`; let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm`;
let options = this.getRequestOptions(); let options = this.getRequestOptions();
let body = { let body = {
status: 'DRAFT', namespaceUri: modelName, namespacePrefix: nameSpace, name: modelName, description: '', author: '' status: 'DRAFT', namespaceUri: modelName, namespacePrefix: nameSpace, name: modelName, description: '', author: ''
}; };
@@ -163,7 +159,6 @@ export class EcmModelService {
.catch(this.handleError); .catch(this.handleError);
} }
public getEcmType(modelName: string): Observable<any> { public getEcmType(modelName: string): Observable<any> {
let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm/${modelName}/types`; let url = `${this.alfrescoSettingsService.ecmHost}/alfresco/api/-default-/private/alfresco/versions/1/cmm/${modelName}/types`;
let options = this.getRequestOptions(); let options = this.getRequestOptions();

View File

@@ -163,7 +163,6 @@ describe('NodeService', () => {
testdata: 'testdata' testdata: 'testdata'
}; };
service.createNodeMetadata('typeTest', EcmModelService.MODEL_NAMESPACE, data, '/Sites/swsdp/documentLibrary').subscribe(result => { service.createNodeMetadata('typeTest', EcmModelService.MODEL_NAMESPACE, data, '/Sites/swsdp/documentLibrary').subscribe(result => {
expect(jasmine.Ajax.requests.mostRecent().url.endsWith('-root-/children')).toBeTruthy(); expect(jasmine.Ajax.requests.mostRecent().url.endsWith('-root-/children')).toBeTruthy();
expect(JSON.parse(jasmine.Ajax.requests.mostRecent().params).name).toBeDefined(); expect(JSON.parse(jasmine.Ajax.requests.mostRecent().params).name).toBeDefined();
@@ -176,6 +175,4 @@ describe('NodeService', () => {
responseText: JSON.stringify({}) responseText: JSON.stringify({})
}); });
}); });
}); });

View File

@@ -57,7 +57,6 @@ export class TaskDetailsModel {
processInstanceStartUserId: string; processInstanceStartUserId: string;
taskDefinitionKey: string; taskDefinitionKey: string;
constructor(obj: any) { constructor(obj: any) {
this.id = obj.id; this.id = obj.id;
this.name = obj.name; this.name = obj.name;

View File

@@ -46,4 +46,3 @@ describe('ActivitiProcessService', () => {
done(); done();
}); });
}); });

View File

@@ -22,7 +22,6 @@ import { UserTaskFilterRepresentationModel } from '../models/filter.model';
import { Observable } from 'rxjs/Rx'; import { Observable } from 'rxjs/Rx';
import { ObjectDataRow, DataRowEvent, ObjectDataTableAdapter } from 'ng2-alfresco-datatable'; import { ObjectDataRow, DataRowEvent, ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
describe('ActivitiTaskList', () => { describe('ActivitiTaskList', () => {
let taskList: ActivitiTaskList; let taskList: ActivitiTaskList;

View File

@@ -129,7 +129,6 @@ export class ActivitiTaskList implements OnInit, OnChanges {
return taskRows; return taskRows;
} }
/** /**
* The method call the adapter data table component for render the task list * The method call the adapter data table component for render the task list
* @param tasks * @param tasks

View File

@@ -57,7 +57,6 @@ export class TaskDetailsModel {
processInstanceStartUserId: string; processInstanceStartUserId: string;
taskDefinitionKey: string; taskDefinitionKey: string;
constructor(obj?: any) { constructor(obj?: any) {
this.id = obj && obj.id || null; this.id = obj && obj.id || null;
this.name = obj && obj.name || null; this.name = obj && obj.name || null;

View File

@@ -439,7 +439,6 @@ describe('ActivitiTaskListService', () => {
}); });
}); });
it('should get the deployed apps ', (done) => { it('should get the deployed apps ', (done) => {
service.getDeployedApplications().subscribe( service.getDeployedApplications().subscribe(
(res: any) => { (res: any) => {
@@ -515,4 +514,3 @@ describe('ActivitiTaskListService', () => {
}); });
}); });

View File

@@ -202,7 +202,6 @@ export class ActivitiTaskListService {
.map(res => res); .map(res => res);
} }
/** /**
* Return the total number of the tasks by filter * Return the total number of the tasks by filter
* @param requestNode - TaskFilterRepresentationModel * @param requestNode - TaskFilterRepresentationModel
@@ -337,5 +336,4 @@ export class ActivitiTaskListService {
'filter': {'sort': 'created-desc', 'name': '', 'state': 'completed', 'assignment': 'involved'} 'filter': {'sort': 'created-desc', 'name': '', 'state': 'completed', 'assignment': 'involved'}
}); });
} }
} }

View File

@@ -35,14 +35,11 @@ import { ContextMenuService } from './context-menu.service';
.context-menu { .context-menu {
list-style-type: none; list-style-type: none;
position: static; position: static;
height: auto; height: auto;
width: auto; width: auto;
min-width: 124px; min-width: 124px;
padding: 8px 0; padding: 8px 0;
margin: 0; margin: 0;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12); box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
border-radius: 2px; border-radius: 2px;
} }

View File

@@ -181,7 +181,6 @@ describe('DataTable', () => {
dataTable.ngAfterViewChecked(); dataTable.ngAfterViewChecked();
}); });
it('should invert "select all" status', () => { it('should invert "select all" status', () => {
expect(dataTable.isSelectAllChecked).toBeFalsy(); expect(dataTable.isSelectAllChecked).toBeFalsy();
dataTable.onSelectAllClick(null); dataTable.onSelectAllClick(null);
@@ -190,7 +189,6 @@ describe('DataTable', () => {
expect(dataTable.isSelectAllChecked).toBeFalsy(); expect(dataTable.isSelectAllChecked).toBeFalsy();
}); });
it('should update rows on "select all" click', () => { it('should update rows on "select all" click', () => {
let data = new ObjectDataTableAdapter([{}, {}, {}], []); let data = new ObjectDataTableAdapter([{}, {}, {}], []);
let rows = data.getRows(); let rows = data.getRows();

View File

@@ -77,5 +77,3 @@ export class PaginationComponent {
this.provider.skipCount -= this.provider.maxItems; this.provider.skipCount -= this.provider.maxItems;
} }
} }

View File

@@ -56,5 +56,3 @@ describe('ContentColumnList', () => {
}); });
}); });

View File

@@ -116,7 +116,6 @@ describe('DocumentList', () => {
documentMenu documentMenu
]; ];
let actions = documentList.getNodeActions(new FolderNode()); let actions = documentList.getNodeActions(new FolderNode());
expect(actions.length).toBe(1); expect(actions.length).toBe(1);
expect(actions[0]).toBe(folderMenu); expect(actions[0]).toBe(folderMenu);

View File

@@ -262,7 +262,6 @@ describe('ShareDataTableAdapter', () => {
let file = new FileNode(); let file = new FileNode();
file.entry['icon'] = imageUrl; file.entry['icon'] = imageUrl;
let adapter = new ShareDataTableAdapter(null, basePath, null); let adapter = new ShareDataTableAdapter(null, basePath, null);
let row = new ShareDataRow(file); let row = new ShareDataRow(file);
let col = <DataColumn> { type: 'image', key: 'icon' }; let col = <DataColumn> { type: 'image', key: 'icon' };

View File

@@ -87,7 +87,6 @@ describe('FolderActionsService', () => {
expect(window.alert).toHaveBeenCalledWith('standard folder action 2'); expect(window.alert).toHaveBeenCalledWith('standard folder action 2');
}); });
// TODO: to be removed once demo handlers are removed // TODO: to be removed once demo handlers are removed
it('should register demo handlers', () => { it('should register demo handlers', () => {
expect(service.getHandler('system1')).toBeDefined(); expect(service.getHandler('system1')).toBeDefined();

View File

@@ -20,7 +20,6 @@ import { AlfrescoSearchService } from './../services/alfresco-search.service';
import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service'; import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service';
import { AlfrescoTranslationService } from 'ng2-alfresco-core'; import { AlfrescoTranslationService } from 'ng2-alfresco-core';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'alfresco-search-autocomplete', selector: 'alfresco-search-autocomplete',

View File

@@ -30,7 +30,6 @@ import {
} from 'ng2-alfresco-core'; } from 'ng2-alfresco-core';
import { AlfrescoSearchService } from '../services/alfresco-search.service'; import { AlfrescoSearchService } from '../services/alfresco-search.service';
describe('AlfrescoSearchControlComponent', () => { describe('AlfrescoSearchControlComponent', () => {
let fixture: ComponentFixture<AlfrescoSearchControlComponent>; let fixture: ComponentFixture<AlfrescoSearchControlComponent>;

View File

@@ -20,7 +20,6 @@ import { Component, Input, Output, OnInit, ElementRef, EventEmitter, ViewChild }
import { AlfrescoTranslationService } from 'ng2-alfresco-core'; import { AlfrescoTranslationService } from 'ng2-alfresco-core';
import { SearchTermValidator } from './../forms/search-term-validator'; import { SearchTermValidator } from './../forms/search-term-validator';
@Component({ @Component({
moduleId: module.id, moduleId: module.id,
selector: 'alfresco-search-control', selector: 'alfresco-search-control',

View File

@@ -62,4 +62,3 @@ export class TagModule {
}; };
} }
} }

View File

@@ -161,4 +161,3 @@ describe('Test ng2-alfresco-tag Tag actions list', () => {
}); });
}); });
}); });

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { TagList } from '../components/tag-list.component'; import { TagList } from '../components/tag-list.component';
import { DebugElement } from '@angular/core'; import { DebugElement } from '@angular/core';
@@ -76,7 +75,6 @@ describe('Test ng2-alfresco-tag Tag list All ECM', () => {
fixture.detectChanges(); fixture.detectChanges();
}); });
describe('Rendering tests', () => { describe('Rendering tests', () => {
beforeEach(() => { beforeEach(() => {

View File

@@ -142,4 +142,3 @@ describe('Test ng2-alfresco-tag Tag relative node list', () => {
}); });
}); });
}); });

View File

@@ -117,4 +117,3 @@ describe('Tag service', () => {
}); });
}); });
}); });

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { FileUploadingDialogComponent } from './file-uploading-dialog.component'; import { FileUploadingDialogComponent } from './file-uploading-dialog.component';
import { FileUploadingListComponent } from './file-uploading-list.component'; import { FileUploadingListComponent } from './file-uploading-list.component';
@@ -76,7 +75,6 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => {
fixture.detectChanges(); fixture.detectChanges();
}); });
it('should render completed upload 1 when an element is added to Observer', () => { it('should render completed upload 1 when an element is added to Observer', () => {
component._uploaderService.updateFileCounterStream(1); component._uploaderService.updateFileCounterStream(1);
fixture.detectChanges(); fixture.detectChanges();
@@ -118,4 +116,3 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => {
expect(element.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active'); expect(element.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active');
}); });
}); });

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { Component, ElementRef, Input } from '@angular/core'; import { Component, ElementRef, Input } from '@angular/core';
import { FileModel } from '../models/file.model'; import { FileModel } from '../models/file.model';

View File

@@ -157,4 +157,3 @@ describe('Test ng2-alfresco-upload UploadButton', () => {
component.onDirectoryAdded(fakeEvent); component.onDirectoryAdded(fakeEvent);
}); });
}); });

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core'; import { Component, ViewChild, ElementRef, Input, Output, EventEmitter } from '@angular/core';
import { UploadService } from '../services/upload.service'; import { UploadService } from '../services/upload.service';
import { FileModel } from '../models/file.model'; import { FileModel } from '../models/file.model';
@@ -86,7 +85,6 @@ export class UploadButtonComponent {
translate: AlfrescoTranslationService; translate: AlfrescoTranslationService;
constructor(public el: ElementRef, private _uploaderService: UploadService, translate: AlfrescoTranslationService) { constructor(public el: ElementRef, private _uploaderService: UploadService, translate: AlfrescoTranslationService) {
this.translate = translate; this.translate = translate;
translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src'); translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');

View File

@@ -224,4 +224,3 @@ describe('Test ng2-alfresco-upload UploadDragArea', () => {
component.onFolderEntityDropped(folderEntry); component.onFolderEntityDropped(folderEntry);
}); });
}); });

View File

@@ -145,7 +145,6 @@ export class FileDraggableDirective {
$event.preventDefault(); $event.preventDefault();
} }
/** /**
* Return the value of input focus class * Return the value of input focus class
* @returns {boolean} * @returns {boolean}

View File

@@ -239,4 +239,3 @@ describe('Test ng2-alfresco-upload', () => {
}); });
}); });
}); });

View File

@@ -59,4 +59,3 @@ export class UserInfoComponentModule {
}; };
} }
} }

View File

@@ -23,7 +23,6 @@ import { FakeBpmUserService } from '../testing/fake-bpm-user.service';
import { AlfrescoAuthenticationService, AlfrescoContentService } from 'ng2-alfresco-core'; import { AlfrescoAuthenticationService, AlfrescoContentService } from 'ng2-alfresco-core';
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { ComponentFixture, TestBed, async } from '@angular/core/testing';
class StubAuthentication { class StubAuthentication {
isEcmConnected: boolean; isEcmConnected: boolean;
isBpmConnected: boolean; isBpmConnected: boolean;
@@ -37,7 +36,6 @@ class StubAlfrescoContentService {
getContentUrl() { return 'fake/url/image/for/ecm/user'; } ; getContentUrl() { return 'fake/url/image/for/ecm/user'; } ;
} }
describe('User info component', () => { describe('User info component', () => {
let userInfoComp: UserInfoComponent; let userInfoComp: UserInfoComponent;

View File

@@ -75,7 +75,6 @@ export class BpmUserService {
return this.authService.getAlfrescoApi().activiti.profileApi.getProfile(); return this.authService.getAlfrescoApi().activiti.profileApi.getProfile();
} }
/** /**
* Throw the error * Throw the error
* @param error * @param error

View File

@@ -93,6 +93,4 @@ export class FakeBpmUserService {
respondWithTheUserWithImage() { respondWithTheUserWithImage() {
this.userNeeded = 0; this.userNeeded = 0;
} }
} }

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
export class EventMock { export class EventMock {
static keyDown(key: any) { static keyDown(key: any) {
@@ -34,5 +33,3 @@ export class EventMock {
window.dispatchEvent(new Event('resize')); window.dispatchEvent(new Event('resize'));
} }
} }

View File

@@ -74,4 +74,3 @@ describe('Test ng2-alfresco-viewer Img viewer component ', () => {
expect(element.querySelector('#viewer-image').getAttribute('alt')).toEqual('fake-name'); expect(element.querySelector('#viewer-image').getAttribute('alt')).toEqual('fake-name');
}); });
}); });

View File

@@ -15,7 +15,6 @@
* limitations under the License. * limitations under the License.
*/ */
import { ComponentFixture, TestBed, async } from '@angular/core/testing'; import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { RenderingQueueServices } from '../services/rendering-queue.services'; import { RenderingQueueServices } from '../services/rendering-queue.services';
import { PdfViewerComponent } from './pdfViewer.component'; import { PdfViewerComponent } from './pdfViewer.component';
@@ -275,4 +274,3 @@ describe('Test ng2-alfresco-viewer PdfViewer component', () => {
}); });
}); });
}); });

View File

@@ -123,7 +123,6 @@ export class PdfViewerComponent {
this.pdfViewer.setDocument(pdfDocument); this.pdfViewer.setDocument(pdfDocument);
} }
/** /**
* Method to scale the page current support implementation * Method to scale the page current support implementation
* *
@@ -217,7 +216,6 @@ export class PdfViewerComponent {
return (newScale === oldScale); return (newScale === oldScale);
} }
/** /**
* method to check if is a land scape view * method to check if is a land scape view
* *

View File

@@ -154,7 +154,6 @@ export class ViewerComponent {
return this.isImageExtension() || this.isImageMimeType(); return this.isImageExtension() || this.isImageMimeType();
} }
/** /**
* Check if the content is a media through the extension or mime type * Check if the content is a media through the extension or mime type
* *

View File

@@ -38,4 +38,3 @@ describe('RenderingQueueServices', () => {
expect(service.CLEANUP_TIMEOUT).toEqual(30000); expect(service.CLEANUP_TIMEOUT).toEqual(30000);
}); });
}); });