* add menu item * implement versions modal * fix up modal * clean up badges * implement key features * fix up spacing * add error message * add notification icon * fix notification * fix bug when no updates * address lint issues * address multi line nodes * add closing animation * keep drawer open * address design feedback * address badge styling * use grid for icons * update cli to return version information * set env variables * add scss color variables * address comments * fix lint issue * handle edge cases * update scss variables, spacing * update spacing * build * override top value for theme * bolden version * update config * check endpoint exists * handle long names * set dates * set title * fix bug * update warning * remove unused component * refactor components * add fragments * inherit styles * fix icon size * fix lint issues * add cli dep * address comments * handle network error * address empty case * Revert "address comments" 480f969e07c3282c50bc326babbc5812baac5dae * remove dependency * build * update variable names * update variable names * refactor verion card * split out variables * clean up impl * clean up scss * move from nodeview * refactor out gift notification icon * fix lint issues * clean up variables * update scss variables * update info url * Add instanceId to frontendSettings * Use createHash from crypto module * Add instanceId to store & send it as http header * Fix lintings * Fix interfaces & apply review changes * Apply review changes * add console message * update text info * update endpoint * clean up interface * address comments * cleanup todo * Update packages/cli/config/index.ts Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com> * update console message * ⚡ Display node-name on hover * ⚡ Formatting fix Co-authored-by: MedAliMarz <servfrdali@yahoo.fr> Co-authored-by: Ben Hesseldieck <1849459+BHesseldieck@users.noreply.github.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
54 lines
1.9 KiB
TypeScript
54 lines
1.9 KiB
TypeScript
export const MAX_DISPLAY_DATA_SIZE = 204800;
|
|
export const MAX_DISPLAY_ITEMS_AUTO_ALL = 250;
|
|
export const NODE_NAME_PREFIX = 'node-';
|
|
|
|
// workflows
|
|
export const PLACEHOLDER_EMPTY_WORKFLOW_ID = '__EMPTY__';
|
|
export const DEFAULT_NEW_WORKFLOW_NAME = 'My workflow';
|
|
export const MIN_WORKFLOW_NAME_LENGTH = 1;
|
|
export const MAX_WORKFLOW_NAME_LENGTH = 128;
|
|
export const DUPLICATE_POSTFFIX = ' copy';
|
|
|
|
// tags
|
|
export const MAX_TAG_NAME_LENGTH = 24;
|
|
export const DUPLICATE_MODAL_KEY = 'duplicate';
|
|
export const TAGS_MANAGER_MODAL_KEY = 'tagsManager';
|
|
export const WORKLOW_OPEN_MODAL_KEY = 'workflowOpen';
|
|
export const VERSIONS_MODAL_KEY = 'versions';
|
|
|
|
// breakpoints
|
|
export const BREAKPOINT_SM = 768;
|
|
export const BREAKPOINT_MD = 992;
|
|
export const BREAKPOINT_LG = 1200;
|
|
export const BREAKPOINT_XL = 1920;
|
|
|
|
|
|
// templates
|
|
export const TEMPLATES_BASE_URL = `https://api.n8n.io/`;
|
|
export const START_NODE_TYPE = 'n8n-nodes-base.start';
|
|
|
|
// Node creator
|
|
export const CORE_NODES_CATEGORY = 'Core Nodes';
|
|
export const CUSTOM_NODES_CATEGORY = 'Custom Nodes';
|
|
export const SUBCATEGORY_DESCRIPTIONS: {
|
|
[category: string]: { [subcategory: string]: string };
|
|
} = {
|
|
'Core Nodes': {
|
|
Flow: 'Branches, core triggers, merge data',
|
|
Files: 'Work with CSV, XML, text, images etc.',
|
|
'Data Transformation': 'Manipulate data fields, run code',
|
|
Helpers: 'HTTP Requests (API calls), date and time, scrape HTML',
|
|
},
|
|
};
|
|
export const REGULAR_NODE_FILTER = 'Regular';
|
|
export const TRIGGER_NODE_FILTER = 'Trigger';
|
|
export const ALL_NODE_FILTER = 'All';
|
|
export const UNCATEGORIZED_CATEGORY = 'Miscellaneous';
|
|
export const UNCATEGORIZED_SUBCATEGORY = 'Helpers';
|
|
export const HIDDEN_NODES = ['n8n-nodes-base.start'];
|
|
export const WEBHOOK_NODE_NAME = 'n8n-nodes-base.webhook';
|
|
export const HTTP_REQUEST_NODE_NAME = 'n8n-nodes-base.httpRequest';
|
|
export const REQUEST_NODE_FORM_URL = 'https://n8n-community.typeform.com/to/K1fBVTZ3';
|
|
|
|
// General
|
|
export const INSTANCE_ID_HEADER = 'n8n-instance-id'; |