mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
n8n-3867-progressively-apply-prettier-to-all (#3873)
* 🔨 formatting nodes with prettier
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const adminOperations: INodeProperties[] = [
|
||||
{
|
||||
@@ -10,9 +8,7 @@ export const adminOperations: INodeProperties[] = [
|
||||
noDataExpression: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
resource: ['admin'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
@@ -50,7 +46,7 @@ const adminNameField = {
|
||||
name: 'name',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The administrator\'s name',
|
||||
description: "The administrator's name",
|
||||
} as INodeProperties;
|
||||
|
||||
const adminEmailField = {
|
||||
@@ -59,7 +55,7 @@ const adminEmailField = {
|
||||
type: 'string',
|
||||
placeholder: 'name@email.com',
|
||||
default: '',
|
||||
description: 'The administrator\'s email address',
|
||||
description: "The administrator's email address",
|
||||
} as INodeProperties;
|
||||
|
||||
const adminPhoneField = {
|
||||
@@ -67,7 +63,7 @@ const adminPhoneField = {
|
||||
name: 'phone',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'The administrator\'s phone number',
|
||||
description: "The administrator's phone number",
|
||||
} as INodeProperties;
|
||||
|
||||
const adminReadOnlyField = {
|
||||
@@ -85,15 +81,10 @@ export const adminFields: INodeProperties[] = [
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
resource: ['admin'],
|
||||
},
|
||||
hide: {
|
||||
operation: [
|
||||
'create',
|
||||
'getAll',
|
||||
],
|
||||
operation: ['create', 'getAll'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -106,12 +97,8 @@ export const adminFields: INodeProperties[] = [
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
resource: ['admin'],
|
||||
operation: ['getAll'],
|
||||
},
|
||||
},
|
||||
default: false,
|
||||
@@ -123,15 +110,9 @@ export const adminFields: INodeProperties[] = [
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
operation: [
|
||||
'getAll',
|
||||
],
|
||||
returnAll: [
|
||||
false,
|
||||
],
|
||||
resource: ['admin'],
|
||||
operation: ['getAll'],
|
||||
returnAll: [false],
|
||||
},
|
||||
},
|
||||
typeOptions: {
|
||||
@@ -144,12 +125,8 @@ export const adminFields: INodeProperties[] = [
|
||||
{
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['admin'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -158,12 +135,8 @@ export const adminFields: INodeProperties[] = [
|
||||
{
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['admin'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
required: true,
|
||||
@@ -177,18 +150,11 @@ export const adminFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
operation: [
|
||||
'create',
|
||||
],
|
||||
resource: ['admin'],
|
||||
operation: ['create'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
adminPhoneField,
|
||||
adminReadOnlyField,
|
||||
],
|
||||
options: [adminPhoneField, adminReadOnlyField],
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
@@ -198,18 +164,10 @@ export const adminFields: INodeProperties[] = [
|
||||
default: {},
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'admin',
|
||||
],
|
||||
operation: [
|
||||
'update',
|
||||
],
|
||||
resource: ['admin'],
|
||||
operation: ['update'],
|
||||
},
|
||||
},
|
||||
options: [
|
||||
adminNameField,
|
||||
adminPhoneField,
|
||||
adminReadOnlyField,
|
||||
],
|
||||
options: [adminNameField, adminPhoneField, adminReadOnlyField],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user