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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -35,14 +35,11 @@ import { ContextMenuService } from './context-menu.service';
.context-menu {
list-style-type: none;
position: static;
height: auto;
width: auto;
min-width: 124px;
padding: 8px 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);
border-radius: 2px;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -87,7 +87,6 @@ describe('FolderActionsService', () => {
expect(window.alert).toHaveBeenCalledWith('standard folder action 2');
});
// TODO: to be removed once demo handlers are removed
it('should register demo handlers', () => {
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 { AlfrescoTranslationService } from 'ng2-alfresco-core';
@Component({
moduleId: module.id,
selector: 'alfresco-search-autocomplete',

View File

@@ -30,7 +30,6 @@ import {
} from 'ng2-alfresco-core';
import { AlfrescoSearchService } from '../services/alfresco-search.service';
describe('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 { SearchTermValidator } from './../forms/search-term-validator';
@Component({
moduleId: module.id,
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.
*/
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { TagList } from '../components/tag-list.component';
import { DebugElement } from '@angular/core';
@@ -76,7 +75,6 @@ describe('Test ng2-alfresco-tag Tag list All ECM', () => {
fixture.detectChanges();
});
describe('Rendering tests', () => {
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.
*/
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { FileUploadingDialogComponent } from './file-uploading-dialog.component';
import { FileUploadingListComponent } from './file-uploading-list.component';
@@ -76,7 +75,6 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => {
fixture.detectChanges();
});
it('should render completed upload 1 when an element is added to Observer', () => {
component._uploaderService.updateFileCounterStream(1);
fixture.detectChanges();
@@ -118,4 +116,3 @@ describe('Test ng2-alfresco-upload FileUploadDialog', () => {
expect(element.querySelector('.minimize-button').getAttribute('class')).toEqual('minimize-button active');
});
});

View File

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

View File

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

View File

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

View File

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

View File

@@ -145,7 +145,6 @@ export class FileDraggableDirective {
$event.preventDefault();
}
/**
* Return the value of input focus class
* @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 { ComponentFixture, TestBed, async } from '@angular/core/testing';
class StubAuthentication {
isEcmConnected: boolean;
isBpmConnected: boolean;
@@ -37,7 +36,6 @@ class StubAlfrescoContentService {
getContentUrl() { return 'fake/url/image/for/ecm/user'; } ;
}
describe('User info component', () => {
let userInfoComp: UserInfoComponent;

View File

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

View File

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

View File

@@ -15,7 +15,6 @@
* limitations under the License.
*/
export class EventMock {
static keyDown(key: any) {
@@ -34,5 +33,3 @@ export class EventMock {
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');
});
});

View File

@@ -15,7 +15,6 @@
* limitations under the License.
*/
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { RenderingQueueServices } from '../services/rendering-queue.services';
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);
}
/**
* Method to scale the page current support implementation
*
@@ -217,7 +216,6 @@ export class PdfViewerComponent {
return (newScale === oldScale);
}
/**
* method to check if is a land scape view
*

View File

@@ -154,7 +154,6 @@ export class ViewerComponent {
return this.isImageExtension() || this.isImageMimeType();
}
/**
* 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);
});
});