mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[MIGRATION] - Fixed lint errors for empty function
This commit is contained in:
@@ -83,7 +83,7 @@ export class ContentUserInfoComponent implements OnDestroy {
|
||||
|
||||
private destroy$ = new Subject();
|
||||
|
||||
constructor(private peopleContentService: PeopleContentService) {}
|
||||
constructor(private peopleContentService: PeopleContentService) { /* empty */ }
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.destroy$.next(true);
|
||||
|
@@ -86,7 +86,7 @@ export class ProcessUserInfoComponent implements OnDestroy {
|
||||
|
||||
private destroy$ = new Subject();
|
||||
|
||||
constructor(private peopleProcessService: PeopleProcessService, private peopleContentService: PeopleContentService) {}
|
||||
constructor(private peopleProcessService: PeopleProcessService, private peopleContentService: PeopleContentService) { /* empty */ }
|
||||
|
||||
ngOnDestroy(): void {
|
||||
this.destroy$.next(true);
|
||||
|
@@ -60,7 +60,7 @@ export class UserInfoComponent implements OnInit {
|
||||
private identityUserService: IdentityUserService,
|
||||
private basicAlfrescoAuthService: BasicAlfrescoAuthService,
|
||||
private authService: AuthenticationService
|
||||
) {}
|
||||
) { /* empty */ }
|
||||
|
||||
ngOnInit() {
|
||||
this.getUserInfo();
|
||||
|
@@ -49,7 +49,7 @@ export class CloudFiltersDemoComponent implements OnInit {
|
||||
private router: Router,
|
||||
private route: ActivatedRoute,
|
||||
private cloudProcessFiltersService: CloudProcessFiltersService
|
||||
) {}
|
||||
) { /* empty */ }
|
||||
|
||||
ngOnInit() {
|
||||
this.currentTaskFilter$ = this.cloudLayoutService.taskFilter$;
|
||||
|
@@ -59,7 +59,7 @@ export class CloudLayoutComponent implements OnInit {
|
||||
appName: string;
|
||||
filterName: string;
|
||||
|
||||
constructor(private router: Router, private route: ActivatedRoute, private cloudLayoutService: CloudLayoutService) {}
|
||||
constructor(private router: Router, private route: ActivatedRoute, private cloudLayoutService: CloudLayoutService) { /* empty */ }
|
||||
|
||||
ngOnInit() {
|
||||
let root: string = '';
|
||||
|
@@ -75,7 +75,7 @@ export class TaskDetailsCloudDemoComponent {
|
||||
try {
|
||||
errorMessage = JSON.parse(error).message || JSON.parse(error).entry?.message;
|
||||
errorMessage = JSON.parse(errorMessage).message;
|
||||
} catch {}
|
||||
} catch { /* empty */ }
|
||||
this.notificationService.showError(errorMessage || error);
|
||||
}
|
||||
}
|
||||
|
@@ -137,7 +137,7 @@ export class TasksCloudDemoComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onFilterChange(filter: any) {
|
||||
this.editedFilter = Object.assign({}, filter);
|
||||
this.editedFilter = Object.assign({ /* empty */ }, filter);
|
||||
this.sortArray = [new TaskListCloudSortingModel({ orderBy: this.editedFilter.sort, direction: this.editedFilter.order })];
|
||||
}
|
||||
|
||||
|
@@ -82,7 +82,7 @@ export class FileViewComponent implements OnInit {
|
||||
private contentServices: ContentService,
|
||||
private preview: PreviewService,
|
||||
private notificationService: NotificationService
|
||||
) {}
|
||||
) { /* empty */ }
|
||||
|
||||
ngOnInit() {
|
||||
this.route.params.subscribe((params) => {
|
||||
|
@@ -271,7 +271,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
private contentMetadataService: ContentMetadataService,
|
||||
private dialogAspectListService: DialogAspectListService,
|
||||
private nodeService: NodesApiService
|
||||
) {}
|
||||
) { /* empty */ }
|
||||
|
||||
showFile(event) {
|
||||
const entry = event.value.entry;
|
||||
@@ -545,7 +545,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
}
|
||||
|
||||
navigateToFilter(activeFilters: FilterSearch[]) {
|
||||
const objectFromMap = {};
|
||||
const objectFromMap = { /* empty */ };
|
||||
activeFilters.forEach((filter: FilterSearch) => {
|
||||
let paramValue = null;
|
||||
if (filter.value?.from && filter.value.to) {
|
||||
|
@@ -24,4 +24,4 @@ import { Component, ViewEncapsulation } from '@angular/core';
|
||||
styleUrls: ['./home.component.scss'],
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class HomeComponent {}
|
||||
export class HomeComponent { /* empty */ }
|
||||
|
@@ -25,4 +25,4 @@ import { MatButtonModule } from '@angular/material/button';
|
||||
templateUrl: './logout.component.html',
|
||||
styleUrls: ['./logout.component.scss']
|
||||
})
|
||||
export class LogoutComponent {}
|
||||
export class LogoutComponent { /* empty */ }
|
||||
|
@@ -74,7 +74,7 @@ export class ProcessListDemoComponent implements OnInit, OnDestroy {
|
||||
|
||||
private onDestroy$ = new Subject<boolean>();
|
||||
|
||||
constructor(private route: ActivatedRoute, private formBuilder: UntypedFormBuilder) {}
|
||||
constructor(private route: ActivatedRoute, private formBuilder: UntypedFormBuilder) { /* empty */ }
|
||||
|
||||
ngOnInit() {
|
||||
this.resetQueryParameters();
|
||||
|
@@ -27,7 +27,7 @@ import { AppsListComponent } from '@alfresco/adf-process-services';
|
||||
templateUrl: './apps-view.component.html'
|
||||
})
|
||||
export class AppsViewComponent {
|
||||
constructor(private router: Router) {}
|
||||
constructor(private router: Router) { /* empty */ }
|
||||
|
||||
onAppClicked(app: AppDefinitionRepresentation) {
|
||||
this.router.navigate(['/activiti/apps', app.id || 0, 'tasks']);
|
||||
|
@@ -250,7 +250,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
applyTaskFilter(filter: UserTaskFilterRepresentation) {
|
||||
this.taskFilter = Object.assign({}, filter);
|
||||
this.taskFilter = Object.assign({ /* empty */ }, filter);
|
||||
|
||||
if (filter && this.taskList) {
|
||||
this.taskList.hasCustomDataSource = false;
|
||||
|
@@ -30,7 +30,7 @@ import { SearchControlComponent } from '@alfresco/adf-content-services';
|
||||
styleUrls: ['./search-bar.component.scss']
|
||||
})
|
||||
export class SearchBarComponent {
|
||||
constructor(public router: Router, private preview: PreviewService) {}
|
||||
constructor(public router: Router, private preview: PreviewService) { /* empty */ }
|
||||
|
||||
/**
|
||||
* Called when the user submits the search, e.g. hits enter or clicks submit
|
||||
|
@@ -184,7 +184,7 @@ export class AppSearchFilterChipsComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private updateSetting(field) {
|
||||
field.settings = field.settings ?? {};
|
||||
field.settings = field.settings ?? { /* empty */ };
|
||||
field.settings.allowUpdateOnChange = false;
|
||||
field.settings.hideDefaultAction = true;
|
||||
}
|
||||
|
@@ -83,7 +83,7 @@ export class HostSettingsComponent implements OnInit {
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private appConfig: AppConfigService,
|
||||
private authenticationService: AuthenticationService
|
||||
) {}
|
||||
) { /* empty */ }
|
||||
|
||||
ngOnInit() {
|
||||
if (this.providers.length === 1) {
|
||||
|
@@ -27,7 +27,7 @@ import { HostSettingsComponent } from './host-settings.component';
|
||||
templateUrl: './settings.component.html'
|
||||
})
|
||||
export class SettingsComponent {
|
||||
constructor(private router: Router) {}
|
||||
constructor(private router: Router) { /* empty */ }
|
||||
|
||||
onCancel() {
|
||||
this.router.navigate(['/login']);
|
||||
|
@@ -94,7 +94,7 @@ describe('FolderCreateDirective', () => {
|
||||
});
|
||||
|
||||
it('should emit success event with node if the folder creation was successful', async () => {
|
||||
const testNode = {};
|
||||
const testNode = { /* empty */ };
|
||||
|
||||
element.triggerEventHandler('click', event);
|
||||
dialogRefMock.componentInstance.success.next(testNode);
|
||||
|
@@ -56,7 +56,7 @@ export class FolderCreateDirective {
|
||||
this.openDialog();
|
||||
}
|
||||
|
||||
constructor(public dialogRef: MatDialog, public content: ContentService) {}
|
||||
constructor(public dialogRef: MatDialog, public content: ContentService) { /* empty */ }
|
||||
|
||||
private get dialogConfig() {
|
||||
const { parentNodeId, title: createTitle, nodeType } = this;
|
||||
|
@@ -66,7 +66,7 @@ export class InMemoryFormService extends FormService {
|
||||
};
|
||||
delete flattenForm.formDefinition;
|
||||
|
||||
const formValues: FormValues = {};
|
||||
const formValues: FormValues = { /* empty */ };
|
||||
(data || []).forEach((variable) => {
|
||||
formValues[variable.name] = variable.value;
|
||||
});
|
||||
|
@@ -24,7 +24,7 @@ export class PreviewService {
|
||||
public content: Blob = null;
|
||||
public name: string = null;
|
||||
|
||||
constructor(private router: Router) {}
|
||||
constructor(private router: Router) { /* empty */ }
|
||||
|
||||
showResource(resourceId, versionId?): void {
|
||||
if (versionId) {
|
||||
|
@@ -31,10 +31,10 @@ export class CoreAutomationService {
|
||||
private userPreferencesService: UserPreferencesService,
|
||||
private storageService: StorageService,
|
||||
private auth: AuthenticationService
|
||||
) {}
|
||||
) { /* empty */ }
|
||||
|
||||
setup() {
|
||||
const adfProxy = window['adf'] || {};
|
||||
const adfProxy = window['adf'] || { /* empty */ };
|
||||
|
||||
adfProxy.getConfigField = (field: string): any => this.appConfigService.get(field);
|
||||
|
||||
|
@@ -339,8 +339,8 @@ export class DemoForm {
|
||||
javascriptEvents: [],
|
||||
className: '',
|
||||
style: '',
|
||||
customFieldTemplates: {},
|
||||
metadata: {},
|
||||
customFieldTemplates: { /* empty */ },
|
||||
metadata: { /* empty */ },
|
||||
variables: [
|
||||
{
|
||||
id: 'bfca9766-7bc1-45cc-8ecf-cdad551e36e2',
|
||||
@@ -360,7 +360,7 @@ export class DemoForm {
|
||||
type: 'integer'
|
||||
}
|
||||
],
|
||||
customFieldsValueInfo: {},
|
||||
customFieldsValueInfo: { /* empty */ },
|
||||
gridsterForm: false,
|
||||
globalDateFormat: 'D-M-YYYY'
|
||||
}
|
||||
@@ -1459,8 +1459,8 @@ export class DemoForm {
|
||||
javascriptEvents: [],
|
||||
className: '',
|
||||
style: '',
|
||||
customFieldTemplates: {},
|
||||
metadata: {},
|
||||
customFieldTemplates: { /* empty */ },
|
||||
metadata: { /* empty */ },
|
||||
variables: [
|
||||
{
|
||||
id: 'bfca9766-7bc1-45cc-8ecf-cdad551e36e2',
|
||||
@@ -1743,8 +1743,8 @@ export class DemoForm {
|
||||
javascriptEvents: [],
|
||||
className: '',
|
||||
style: '',
|
||||
customFieldTemplates: {},
|
||||
metadata: {},
|
||||
customFieldTemplates: { /* empty */ },
|
||||
metadata: { /* empty */ },
|
||||
variables: [
|
||||
{
|
||||
id: 'bfca9766-7bc1-45cc-8ecf-cdad551e36e2',
|
||||
@@ -1764,7 +1764,7 @@ export class DemoForm {
|
||||
type: 'integer'
|
||||
}
|
||||
],
|
||||
customFieldsValueInfo: {},
|
||||
customFieldsValueInfo: { /* empty */ },
|
||||
gridsterForm: false
|
||||
}
|
||||
}
|
||||
@@ -1825,7 +1825,7 @@ export class DemoForm {
|
||||
link: false,
|
||||
displayableCMProperties: []
|
||||
},
|
||||
visibilityCondition: {}
|
||||
visibilityCondition: { /* empty */ }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user