mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove consecutive blank line
This commit is contained in:
@@ -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[]) => {
|
||||
|
@@ -38,7 +38,6 @@ export const ANALYTICS_PROVIDERS: any[] = [
|
||||
AnalyticsService
|
||||
];
|
||||
|
||||
|
||||
describe('Show component HTML', () => {
|
||||
|
||||
let component: any;
|
||||
|
@@ -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;
|
||||
|
@@ -18,7 +18,6 @@
|
||||
import { Component, ElementRef } from '@angular/core';
|
||||
import { WidgetComponent } from './../widget.component';
|
||||
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'date-widget',
|
||||
|
@@ -18,7 +18,6 @@
|
||||
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
||||
import { WidgetComponent } from './../widget.component';
|
||||
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'dropdown-widget',
|
||||
|
@@ -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',
|
||||
|
@@ -18,7 +18,6 @@
|
||||
import { Component, ElementRef } from '@angular/core';
|
||||
import { WidgetComponent } from './../widget.component';
|
||||
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'number-widget',
|
||||
|
@@ -120,7 +120,6 @@ export class TableChart extends Chart {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class HeatMapChart extends Chart {
|
||||
title: string;
|
||||
titleKey: string;
|
||||
|
@@ -101,7 +101,6 @@ export class ParameterValueModel {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export class ReportQuery {
|
||||
processDefinitionId: string;
|
||||
status: string;
|
||||
|
@@ -205,7 +205,4 @@ export class AnalyticsService {
|
||||
console.error(error);
|
||||
return Observable.throw(error.json().error || 'Server error');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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 });
|
||||
|
@@ -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,
|
||||
|
@@ -35,7 +35,6 @@ export class UploadWidget extends WidgetComponent implements OnInit {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
if (this.field &&
|
||||
this.field.value &&
|
||||
|
@@ -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();
|
||||
|
@@ -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({})
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
@@ -57,7 +57,6 @@ export class TaskDetailsModel {
|
||||
processInstanceStartUserId: string;
|
||||
taskDefinitionKey: string;
|
||||
|
||||
|
||||
constructor(obj: any) {
|
||||
this.id = obj.id;
|
||||
this.name = obj.name;
|
||||
|
@@ -46,4 +46,3 @@ describe('ActivitiProcessService', () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -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;
|
||||
|
@@ -439,7 +439,6 @@ describe('ActivitiTaskListService', () => {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
it('should get the deployed apps ', (done) => {
|
||||
service.getDeployedApplications().subscribe(
|
||||
(res: any) => {
|
||||
@@ -515,4 +514,3 @@ describe('ActivitiTaskListService', () => {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
@@ -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'}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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();
|
||||
|
@@ -77,5 +77,3 @@ export class PaginationComponent {
|
||||
this.provider.skipCount -= this.provider.maxItems;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -56,5 +56,3 @@ describe('ContentColumnList', () => {
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
@@ -116,7 +116,6 @@ describe('DocumentList', () => {
|
||||
documentMenu
|
||||
];
|
||||
|
||||
|
||||
let actions = documentList.getNodeActions(new FolderNode());
|
||||
expect(actions.length).toBe(1);
|
||||
expect(actions[0]).toBe(folderMenu);
|
||||
|
@@ -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' };
|
||||
|
@@ -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();
|
||||
|
@@ -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',
|
||||
|
@@ -30,7 +30,6 @@ import {
|
||||
} from 'ng2-alfresco-core';
|
||||
import { AlfrescoSearchService } from '../services/alfresco-search.service';
|
||||
|
||||
|
||||
describe('AlfrescoSearchControlComponent', () => {
|
||||
|
||||
let fixture: ComponentFixture<AlfrescoSearchControlComponent>;
|
||||
|
@@ -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',
|
||||
|
@@ -62,4 +62,3 @@ export class TagModule {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -161,4 +161,3 @@ describe('Test ng2-alfresco-tag Tag actions list', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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(() => {
|
||||
|
@@ -142,4 +142,3 @@ describe('Test ng2-alfresco-tag Tag relative node list', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -117,4 +117,3 @@ describe('Tag service', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -15,7 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
import { Component, ElementRef, Input } from '@angular/core';
|
||||
import { FileModel } from '../models/file.model';
|
||||
|
||||
|
@@ -157,4 +157,3 @@ describe('Test ng2-alfresco-upload UploadButton', () => {
|
||||
component.onDirectoryAdded(fakeEvent);
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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');
|
||||
|
@@ -224,4 +224,3 @@ describe('Test ng2-alfresco-upload UploadDragArea', () => {
|
||||
component.onFolderEntityDropped(folderEntry);
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -145,7 +145,6 @@ export class FileDraggableDirective {
|
||||
$event.preventDefault();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return the value of input focus class
|
||||
* @returns {boolean}
|
||||
|
@@ -239,4 +239,3 @@ describe('Test ng2-alfresco-upload', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -59,4 +59,3 @@ export class UserInfoComponentModule {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
|
@@ -75,7 +75,6 @@ export class BpmUserService {
|
||||
return this.authService.getAlfrescoApi().activiti.profileApi.getProfile();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Throw the error
|
||||
* @param error
|
||||
|
@@ -93,6 +93,4 @@ export class FakeBpmUserService {
|
||||
respondWithTheUserWithImage() {
|
||||
this.userNeeded = 0;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@@ -74,4 +74,3 @@ describe('Test ng2-alfresco-viewer Img viewer component ', () => {
|
||||
expect(element.querySelector('#viewer-image').getAttribute('alt')).toEqual('fake-name');
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -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
|
||||
*
|
||||
|
@@ -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
|
||||
*
|
||||
|
@@ -38,4 +38,3 @@ describe('RenderingQueueServices', () => {
|
||||
expect(service.CLEANUP_TIMEOUT).toEqual(30000);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user