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

@@ -1,10 +1,6 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
import {
blocks,
} from './Blocks';
import { blocks } from './Blocks';
export const blockOperations: INodeProperties[] = [
{
@@ -14,9 +10,7 @@ export const blockOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'block',
],
resource: ['block'],
},
},
options: [
@@ -39,7 +33,6 @@ export const blockOperations: INodeProperties[] = [
];
export const blockFields = [
/* -------------------------------------------------------------------------- */
/* block:append */
/* -------------------------------------------------------------------------- */
@@ -51,15 +44,12 @@ export const blockFields = [
required: true,
displayOptions: {
show: {
resource: [
'block',
],
operation: [
'append',
],
resource: ['block'],
operation: ['append'],
},
},
description: 'The Block URL from Notion\'s \'copy link\' functionality (or just the ID contained within the URL). Pages are also blocks, so you can use a page URL/ID here too.',
description:
"The Block URL from Notion's 'copy link' functionality (or just the ID contained within the URL). Pages are also blocks, so you can use a page URL/ID here too.",
},
...blocks('block', 'append'),
/* -------------------------------------------------------------------------- */
@@ -73,15 +63,12 @@ export const blockFields = [
required: true,
displayOptions: {
show: {
resource: [
'block',
],
operation: [
'getAll',
],
resource: ['block'],
operation: ['getAll'],
},
},
description: 'The Block URL from Notion\'s \'copy link\' functionality (or just the ID contained within the URL). Pages are also blocks, so you can use a page URL/ID here too.',
description:
"The Block URL from Notion's 'copy link' functionality (or just the ID contained within the URL). Pages are also blocks, so you can use a page URL/ID here too.",
},
{
displayName: 'Return All',
@@ -89,12 +76,8 @@ export const blockFields = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'block',
],
operation: [
'getAll',
],
resource: ['block'],
operation: ['getAll'],
},
},
default: false,
@@ -106,15 +89,9 @@ export const blockFields = [
type: 'number',
displayOptions: {
show: {
resource: [
'block',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['block'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {