mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Format all credentials (#3720)
* Apply Prettier to all credentials * Fix quotes for lint * 👕 Remove `quotemark` rule * 👕 Run Prettier to take over quotes * ⬆️ Upgrade `eslint-plugin-n8n-nodes-base` * 📦 Update `package-lock.json` Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -29,14 +29,14 @@ export class MongoDb implements ICredentialType {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
configurationType: [
|
||||
'connectionString',
|
||||
],
|
||||
configurationType: ['connectionString'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
placeholder: 'mongodb://<USERNAME>:<PASSWORD>@localhost:27017/?authSource=admin&readPreference=primary&appname=n8n&ssl=false',
|
||||
description: 'If provided, the value here will be used as a MongoDB connection string, and the MongoDB credentials will be ignored',
|
||||
placeholder:
|
||||
'mongodb://<USERNAME>:<PASSWORD>@localhost:27017/?authSource=admin&readPreference=primary&appname=n8n&ssl=false',
|
||||
description:
|
||||
'If provided, the value here will be used as a MongoDB connection string, and the MongoDB credentials will be ignored',
|
||||
},
|
||||
{
|
||||
displayName: 'Host',
|
||||
@@ -44,9 +44,7 @@ export class MongoDb implements ICredentialType {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
configurationType: [
|
||||
'values',
|
||||
],
|
||||
configurationType: ['values'],
|
||||
},
|
||||
},
|
||||
default: 'localhost',
|
||||
@@ -56,7 +54,8 @@ export class MongoDb implements ICredentialType {
|
||||
name: 'database',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Note: the database should still be provided even if using an override connection string',
|
||||
description:
|
||||
'Note: the database should still be provided even if using an override connection string',
|
||||
},
|
||||
{
|
||||
displayName: 'User',
|
||||
@@ -64,9 +63,7 @@ export class MongoDb implements ICredentialType {
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
configurationType: [
|
||||
'values',
|
||||
],
|
||||
configurationType: ['values'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -80,9 +77,7 @@ export class MongoDb implements ICredentialType {
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
configurationType: [
|
||||
'values',
|
||||
],
|
||||
configurationType: ['values'],
|
||||
},
|
||||
},
|
||||
default: '',
|
||||
@@ -93,9 +88,7 @@ export class MongoDb implements ICredentialType {
|
||||
type: 'number',
|
||||
displayOptions: {
|
||||
show: {
|
||||
configurationType: [
|
||||
'values',
|
||||
],
|
||||
configurationType: ['values'],
|
||||
},
|
||||
},
|
||||
default: 27017,
|
||||
|
||||
Reference in New Issue
Block a user