n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -8,9 +8,7 @@ export const taskOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'task',
],
resource: ['task'],
},
},
options: [
@@ -44,9 +42,9 @@ export const taskOperations: INodeProperties[] = [
];
export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* task:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Additional Fields',
name: 'additionalFields',
@@ -55,12 +53,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'task',
],
operation: ['create'],
resource: ['task'],
},
},
options: [
@@ -68,7 +62,8 @@ export const taskFields: INodeProperties[] = [
displayName: 'Client Name or ID',
name: 'client',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getClients',
},
@@ -99,7 +94,8 @@ export const taskFields: INodeProperties[] = [
displayName: 'Project Name or ID',
name: 'project',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getProjects',
},
@@ -117,12 +113,8 @@ export const taskFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'task',
],
operation: [
'create',
],
resource: ['task'],
operation: ['create'],
},
},
default: {},
@@ -156,9 +148,9 @@ export const taskFields: INodeProperties[] = [
},
],
},
/* -------------------------------------------------------------------------- */
/* task:delete */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* task:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Task ID',
name: 'taskId',
@@ -167,18 +159,14 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'task',
],
operation: [
'delete',
],
resource: ['task'],
operation: ['delete'],
},
},
},
/* -------------------------------------------------------------------------- */
/* task:get */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* task:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Task ID',
name: 'taskId',
@@ -187,12 +175,8 @@ export const taskFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'task',
],
operation: [
'get',
],
resource: ['task'],
operation: ['get'],
},
},
},
@@ -204,12 +188,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'task',
],
operation: ['get'],
resource: ['task'],
},
},
options: [
@@ -227,21 +207,17 @@ export const taskFields: INodeProperties[] = [
},
],
},
/* -------------------------------------------------------------------------- */
/* task:getAll */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* task:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: [
'task',
],
operation: [
'getAll',
],
resource: ['task'],
operation: ['getAll'],
},
},
default: false,
@@ -253,15 +229,9 @@ export const taskFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'task',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['task'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -279,12 +249,8 @@ export const taskFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'task',
],
operation: ['getAll'],
resource: ['task'],
},
},
options: [
@@ -302,5 +268,4 @@ export const taskFields: INodeProperties[] = [
},
],
},
];