mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
refactor(core): apply lint rule node-class-description-non-core-color-present
(#4426)
* 👕 Enable rule `node-class-description-non-core-color-present` * 👕 Apply rule to remove deprecated `color` * ✏️ Fix unrelated typos * ✏️ Fix another unrelated typo Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
parent
408bd96815
commit
d2b97c0713
|
@ -87,6 +87,7 @@ module.exports = {
|
|||
'n8n-nodes-base/node-class-description-inputs-wrong-regular-node': 'error',
|
||||
'n8n-nodes-base/node-class-description-inputs-wrong-trigger-node': 'error',
|
||||
'n8n-nodes-base/node-class-description-missing-subtitle': 'error',
|
||||
'n8n-nodes-base/node-class-description-non-core-color-present': 'error',
|
||||
'n8n-nodes-base/node-class-description-name-unsuffixed-trigger-node': 'error',
|
||||
'n8n-nodes-base/node-class-description-outputs-wrong': 'error',
|
||||
'n8n-nodes-base/node-dirname-against-convention': 'error',
|
||||
|
|
|
@ -21,7 +21,6 @@ export class Adalo implements INodeType {
|
|||
description: 'Consume Adalo API',
|
||||
defaults: {
|
||||
name: 'Adalo',
|
||||
color: '#4f44d7',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -17,7 +17,6 @@ export class AwsCertificateManager implements INodeType {
|
|||
description: 'Sends data to AWS Certificate Manager',
|
||||
defaults: {
|
||||
name: 'AWS Certificate Manager',
|
||||
color: '#7d9a4b',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -30,7 +30,6 @@ export class AwsElb implements INodeType {
|
|||
description: 'Sends data to AWS ELB API',
|
||||
defaults: {
|
||||
name: 'AWS ELB',
|
||||
color: '#FF9900',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -21,7 +21,6 @@ export class CalTrigger implements INodeType {
|
|||
description: 'Handle Cal events via webhooks',
|
||||
defaults: {
|
||||
name: 'Cal Trigger',
|
||||
color: '#888',
|
||||
},
|
||||
inputs: [],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -24,7 +24,6 @@ export class Cloudflare implements INodeType {
|
|||
description: 'Consume Cloudflare API',
|
||||
defaults: {
|
||||
name: 'Cloudflare',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -13,7 +13,6 @@ export class GoogleAds implements INodeType {
|
|||
description: 'Use the Google Ads API',
|
||||
defaults: {
|
||||
name: 'Google Ads',
|
||||
color: '#ff0000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -48,7 +48,6 @@ export class GoogleChat implements INodeType {
|
|||
description: 'Consume Google Chat API',
|
||||
defaults: {
|
||||
name: 'Google Chat',
|
||||
color: '#0aa55c',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -14,7 +14,6 @@ export class GoogleCloudStorage implements INodeType {
|
|||
description: 'Use the Google Cloud Storage API',
|
||||
defaults: {
|
||||
name: 'Google Cloud Storage',
|
||||
color: '#ff0000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -45,7 +45,6 @@ export class HaloPSA implements INodeType {
|
|||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
defaults: {
|
||||
name: 'HaloPSA',
|
||||
color: '#fd314e',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -46,7 +46,6 @@ export class HighLevel implements INodeType {
|
|||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
defaults: {
|
||||
name: 'HighLevel',
|
||||
color: '#f1be40',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -32,7 +32,6 @@ export class Jenkins implements INodeType {
|
|||
description: 'Consume Jenkins API',
|
||||
defaults: {
|
||||
name: 'Jenkins',
|
||||
color: '#04AA51',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -36,7 +36,6 @@ export class KoBoToolbox implements INodeType {
|
|||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
defaults: {
|
||||
name: 'KoBoToolbox',
|
||||
color: '#64C0FF',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -27,7 +27,6 @@ export class KoBoToolboxTrigger implements INodeType {
|
|||
description: 'Process KoBoToolbox submissions',
|
||||
defaults: {
|
||||
name: 'KoBoToolbox Trigger',
|
||||
color: '#64C0FF',
|
||||
},
|
||||
inputs: [],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -21,7 +21,6 @@ export class LinearTrigger implements INodeType {
|
|||
description: 'Starts the workflow when Linear events occur',
|
||||
defaults: {
|
||||
name: 'Linear Trigger',
|
||||
color: '#D9DCF8',
|
||||
},
|
||||
inputs: [],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -27,7 +27,6 @@ export class Markdown implements INodeType {
|
|||
description: 'Convert data between Markdown and HTML',
|
||||
defaults: {
|
||||
name: 'Markdown',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -39,7 +39,6 @@ export class Mautic implements INodeType {
|
|||
description: 'Consume Mautic API',
|
||||
defaults: {
|
||||
name: 'Mautic',
|
||||
color: '#52619b',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -19,7 +19,6 @@ export class Metabase implements INodeType {
|
|||
description: 'Use the Metabase API',
|
||||
defaults: {
|
||||
name: 'Metabase',
|
||||
color: '#ff0000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -26,7 +26,6 @@ export class MicrosoftGraphSecurity implements INodeType {
|
|||
description: 'Consume the Microsoft Graph Security API',
|
||||
defaults: {
|
||||
name: 'Microsoft Graph Security',
|
||||
color: '#0078d4',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -21,7 +21,6 @@ export const versionDescription: INodeTypeDescription = {
|
|||
description: 'Consume Notion API (Beta)',
|
||||
defaults: {
|
||||
name: 'Notion',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -21,7 +21,6 @@ export const versionDescription: INodeTypeDescription = {
|
|||
description: 'Consume Notion API (Beta)',
|
||||
defaults: {
|
||||
name: 'Notion',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -52,7 +52,6 @@ export class Odoo implements INodeType {
|
|||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
defaults: {
|
||||
name: 'Odoo',
|
||||
color: '#714B67',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -48,7 +48,6 @@ export class Onfleet implements INodeType {
|
|||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Consume Onfleet API',
|
||||
defaults: {
|
||||
color: '#AA81F3',
|
||||
name: 'Onfleet',
|
||||
},
|
||||
inputs: ['main'],
|
||||
|
|
|
@ -25,7 +25,6 @@ export class OnfleetTrigger implements INodeType {
|
|||
description: 'Starts the workflow when Onfleet events occur',
|
||||
defaults: {
|
||||
name: 'Onfleet Trigger',
|
||||
color: '#AA81F3',
|
||||
},
|
||||
inputs: [],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -15,7 +15,6 @@ export class PostBin implements INodeType {
|
|||
description: 'Consume PostBin API',
|
||||
defaults: {
|
||||
name: 'PostBin',
|
||||
color: '#4dc0b5',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -16,7 +16,6 @@ export class SendInBlue implements INodeType {
|
|||
description: 'Consume Sendinblue API',
|
||||
defaults: {
|
||||
name: 'SendInBlue',
|
||||
color: '#044a75',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -21,7 +21,6 @@ export class SendInBlueTrigger implements INodeType {
|
|||
displayName: 'SendInBlue Trigger',
|
||||
defaults: {
|
||||
name: 'SendInBlue-Trigger',
|
||||
color: '#044a75',
|
||||
},
|
||||
description: 'Starts the workflow when SendInBlue events occur',
|
||||
group: ['trigger'],
|
||||
|
|
|
@ -40,7 +40,6 @@ export class Supabase implements INodeType {
|
|||
description: 'Add, get, delete and update data in a table',
|
||||
defaults: {
|
||||
name: 'Supabase',
|
||||
color: '#ea5929',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -17,7 +17,6 @@ export const versionDescription: INodeTypeDescription = {
|
|||
description: 'Gets data from SyncroMSP',
|
||||
defaults: {
|
||||
name: 'SyncroMSP',
|
||||
color: '#08a4ab',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -19,7 +19,6 @@ export class VenafiTlsProtectDatacenter implements INodeType {
|
|||
description: 'Consume Venafi TLS Protect Datacenter',
|
||||
defaults: {
|
||||
name: 'Venafi TLS Protect Datacenter',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -14,10 +14,9 @@ export class VenafiTlsProtectDatacenterTrigger implements INodeType {
|
|||
group: ['trigger'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["triggerOn"]}}',
|
||||
description: 'Starts the workflow when Venafi events occure',
|
||||
description: 'Starts the workflow when Venafi events occur',
|
||||
defaults: {
|
||||
name: 'Venafi TLS Protect Datacenter',
|
||||
color: '#000000',
|
||||
},
|
||||
credentials: [
|
||||
{
|
||||
|
|
|
@ -37,7 +37,6 @@ export class VenafiTlsProtectCloud implements INodeType {
|
|||
description: 'Consume Venafi TLS Protect Cloud API',
|
||||
defaults: {
|
||||
name: 'Venafi TLS Protect Cloud',
|
||||
color: '#000000',
|
||||
},
|
||||
inputs: ['main'],
|
||||
outputs: ['main'],
|
||||
|
|
|
@ -17,10 +17,9 @@ export class VenafiTlsProtectCloudTrigger implements INodeType {
|
|||
icon: 'file:../venafi.svg',
|
||||
group: ['trigger'],
|
||||
version: 1,
|
||||
description: 'Starts the workflow when Venafi events occure',
|
||||
description: 'Starts the workflow when Venafi events occur',
|
||||
defaults: {
|
||||
name: 'Venafi TLS Protect Cloud Trigger',
|
||||
color: '#000000',
|
||||
},
|
||||
credentials: [
|
||||
{
|
||||
|
@ -87,7 +86,10 @@ export class VenafiTlsProtectCloudTrigger implements INodeType {
|
|||
const activity = activitytypes.find(({ key }: { key: string }) => key === resource) as {
|
||||
values: [{ key: string; readableName: string }];
|
||||
};
|
||||
const subActivities = activity.values.map(({ key, readableName }) => ({ name: readableName, value: key }));
|
||||
const subActivities = activity.values.map(({ key, readableName }) => ({
|
||||
name: readableName,
|
||||
value: key,
|
||||
}));
|
||||
subActivities.unshift({ name: '[All]', value: '*' });
|
||||
return subActivities;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue