mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5991] ESLint fixes and code quality improvements (#8893)
* prefer-optional-chain: core * prefer-optional-chain: content, fix typings * prefer-optional-chain: process, fix typings * prefer-optional-chain: process-cloud, fix typings, fix ts configs and eslint * [ci: force] sonar errors fixes, insights lib * [ci:force] fix security issues * [ci:force] fix metadata e2e bug, js assignment bugs * [ci:force] fix lint issue * [ci:force] fix tests
This commit is contained in:
@@ -16,43 +16,41 @@
|
||||
*/
|
||||
|
||||
var FormDefinitionFieldModel = function (details) {
|
||||
|
||||
this.fieldType;
|
||||
this.id;
|
||||
this.name;
|
||||
this.value;
|
||||
this.type;
|
||||
this.required;
|
||||
this.readOnly;
|
||||
this.overrideId;
|
||||
this.colspan;
|
||||
this.placeholder;
|
||||
this.minLength;
|
||||
this.maxLength;
|
||||
this.minValue;
|
||||
this.maxValue;
|
||||
this.regexPattern;
|
||||
this.optionType;
|
||||
this.hasEmptyValue;
|
||||
this.options;
|
||||
this.restUrl;
|
||||
this.restResponsePath;
|
||||
this.restIdProperty;
|
||||
this.setRestLabelProperty;
|
||||
this.tab;
|
||||
this.className;
|
||||
this.dateDisplayFormat;
|
||||
this.fieldType = undefined;
|
||||
this.id = undefined;
|
||||
this.name = undefined;
|
||||
this.value = undefined;
|
||||
this.type = undefined;
|
||||
this.required = undefined;
|
||||
this.readOnly = undefined;
|
||||
this.overrideId = undefined;
|
||||
this.colspan = undefined;
|
||||
this.placeholder = undefined;
|
||||
this.minLength = undefined;
|
||||
this.maxLength = undefined;
|
||||
this.minValue = undefined;
|
||||
this.maxValue = undefined;
|
||||
this.regexPattern = undefined;
|
||||
this.optionType = undefined;
|
||||
this.hasEmptyValue = undefined;
|
||||
this.options = undefined;
|
||||
this.restUrl = undefined;
|
||||
this.restResponsePath = undefined;
|
||||
this.restIdProperty = undefined;
|
||||
this.setRestLabelProperty = undefined;
|
||||
this.tab = undefined;
|
||||
this.className = undefined;
|
||||
this.dateDisplayFormat = undefined;
|
||||
this.layout = {};
|
||||
this.sizeX;
|
||||
this.sizeY;
|
||||
this.row;
|
||||
this.col;
|
||||
this.columnDefinitions;
|
||||
this.visibilityCondition;
|
||||
this.numberOfColumns;
|
||||
this.sizeX = undefined;
|
||||
this.sizeY = undefined;
|
||||
this.row = undefined;
|
||||
this.col = undefined;
|
||||
this.columnDefinitions = undefined;
|
||||
this.visibilityCondition = undefined;
|
||||
this.numberOfColumns = undefined;
|
||||
this.fields = {};
|
||||
|
||||
Object.assign(this, details);
|
||||
};
|
||||
module.exports = FormDefinitionFieldModel;
|
||||
|
||||
|
@@ -16,14 +16,13 @@
|
||||
*/
|
||||
|
||||
var FormModel = function (details) {
|
||||
|
||||
this.id;
|
||||
this.name;
|
||||
this.description;
|
||||
this.modelId;
|
||||
this.appDefinitionId;
|
||||
this.appDeploymentId;
|
||||
this.tenantId;
|
||||
this.id = undefined;
|
||||
this.name = undefined;
|
||||
this.description = undefined;
|
||||
this.modelId = undefined;
|
||||
this.appDefinitionId = undefined;
|
||||
this.appDeploymentId = undefined;
|
||||
this.tenantId = undefined;
|
||||
|
||||
this.getName = function () {
|
||||
return this.name;
|
||||
|
@@ -23,9 +23,8 @@
|
||||
*/
|
||||
|
||||
var Task = function (details) {
|
||||
|
||||
this.processInstanceId;
|
||||
this.sort;
|
||||
this.processInstanceId = undefined;
|
||||
this.sort = undefined;
|
||||
|
||||
Object.assign(this, details);
|
||||
};
|
||||
|
@@ -16,11 +16,10 @@
|
||||
*/
|
||||
|
||||
var TaskAssigneeModel = function (details) {
|
||||
|
||||
this.id;
|
||||
this.firstName;
|
||||
this.lastName;
|
||||
this.email;
|
||||
this.id = undefined;
|
||||
this.firstName = undefined;
|
||||
this.lastName = undefined;
|
||||
this.email = undefined;
|
||||
|
||||
this.getFirstName = function () {
|
||||
return this.firstName;
|
||||
@@ -38,12 +37,11 @@ var TaskAssigneeModel = function (details) {
|
||||
return this.email;
|
||||
};
|
||||
|
||||
this.getEntireName = function() {
|
||||
return this.firstName + " " + this.getLastName();
|
||||
this.getEntireName = function () {
|
||||
return this.firstName + ' ' + this.getLastName();
|
||||
};
|
||||
|
||||
Object.assign(this, details);
|
||||
|
||||
};
|
||||
|
||||
module.exports = TaskAssigneeModel;
|
||||
|
@@ -18,19 +18,18 @@
|
||||
var TaskAssigneeModel = require('./TaskAssigneeModel');
|
||||
|
||||
var TaskModel = function (details) {
|
||||
|
||||
this.id;
|
||||
this.name;
|
||||
this.description;
|
||||
this.category;
|
||||
this.created;
|
||||
this.dueDate;
|
||||
this.priority;
|
||||
this.parentTaskName;
|
||||
this.parentTaskId;
|
||||
this.formKey;
|
||||
this.duration;
|
||||
this.endDate;
|
||||
this.id = undefined;
|
||||
this.name = undefined;
|
||||
this.description = undefined;
|
||||
this.category = undefined;
|
||||
this.created = undefined;
|
||||
this.dueDate = undefined;
|
||||
this.priority = undefined;
|
||||
this.parentTaskName = undefined;
|
||||
this.parentTaskId = undefined;
|
||||
this.formKey = undefined;
|
||||
this.duration = undefined;
|
||||
this.endDate = undefined;
|
||||
this.assignee = {};
|
||||
|
||||
this.getName = function () {
|
||||
|
Reference in New Issue
Block a user