mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-28 02:37:40 -07:00
d8598b0126
* bring back overrides * fix input output label positions * simply update label positions * refactor a bunch * update min x to show items * hide overlay on connection * only delete target connection, add maximum to push nodes out * rename const * rename const * set new insert position * fix insert behavior * update position handling * show arrow along with label * update connector * set endpoint styles * update pattern * push nodes up / down in case of if node * set position in switch * only one action at a time * add custom flow chart type * select start node by default when opening new workflow * add enter delay * fix delete bug * change connection type * add offset for if/switch/merge * fix gap * fix drag issue * implement new states * update disabled state * add selected state * make selects faster * update positioning * truncate when selected * remove offset for actions * fix icon scaling * refactor js plumb * fix looping behavior at close distance * lock version * change background to dots * update endpoints styling * increase spacing * udpate node z-index * fix output label positions * fix output label positions * reset location * add label offset * update border radius * fix height issue * fix parallaxing issue * fix zoomout issue * add success z-index * clean up js file * add package lock * fix z-index bug * update dot grid * update zoom level * set values, increase grid size * fix drop position * prevent duplicate connections * fix stub * use localstorage overrides for colors * add colors to system * revert no longer needed changes * revert no longer needed changes * add canvas colors * add canvas colors * use variable for id * force type * refactor helpers * add label constants * refactor func * refactor * fix * refactor * clean up css * refactor setzoom level * refactor * refactor * refactor func * remove scope * remove localstorage caching * clean up imports * update zero case * add delete connection * update selected state * add base type, remove straight line * add stub offset back * rename param * add label offset * update font size of items * move up label * fix error state while executing * disrespect stubs * check for errors * refactor position * clean up extra space * make entire node connectable * Revert "make entire node connectable"e304f7c5b8
* always show border * add border to zoom buttons * update spacing * update colors * allow connecting to entire node * fix pull conn active * two line names * apply select to all lines * increase input margin * override target pos * reset conn after pull * fix types * update orientation * fix up connectors snapping * hide arrow on pull * update overrides for connectors * change text * update pull colors * set to 1 line when selected * fix executions bug * build * refactor node component * remove comment * refactor more * remove prop * fix build issue * fix input drag bug in executions * reset offset * update select background * handle issue when endpoints are not set * fix connection aborted issue * add try catch to help show errors * wrap bind with try/catch * set default styles * reset pos despite zoom * add more checks * clean up impl * update icon * handle unknown types * hide items on init * fix importing unknown types with credentials * change opacity * push up item label * update color * update label class and colors * add to drop distance * fix z-index to match node * disable eslint * fix lasso tool selection * update background color * update waiting state * update tooltip positions * update wait node border * fix selection bug mostly * if selected, move above other nodes * add line through disabled nodes * remove node color option * move label above connection * success color for line through * update options index * hide waiting icon when disabled * fix gmail icon * refactor icons * clear execution data on disable/delete * fix selected node * fix executing behavior * optional __meta * set grid size * remove default color * remove node color * add comments * comments * add comments * remove empty space * update comment * refactor uuids * fix type issue * Revert "fix type issue"9523b34f96
* Revert "fix type issue"9523b34f96
* Revert "refactor uuids"07f6848065
* fix build issues * refactor * update uuid * child nodes * skip nodes behind when pushing in loop * shift output icon for switch node * don't show output if waiting * waiting on init * build * change to bezier * revert connector change * add bezier type * fix snapping * clean up impl * refactor func * make const * rename type * refactor to simplify * Revert "refactor to simplify"2db0ed504c
* enable flowchart mode * clean up flowchart type * refactor type * merge types * configure curviness * set in localstorage * fix straight line arrow bug * show arrow when pulling * refactor / simplify * fix target gap in bezier * refactor target gap * add comments * add comment * fix dragging connections * fix bug when moving connection * update comment * rename file * update values * update minor * update straight line box * clean up conn types * clean up z-indexes * move color filters to node icon * update background color * update to use grid size value * fix endpoint offsets * set yspan range lower * remove overlays when moving conn * prevent unwanted connections * fix messed up connections * remove console log * clear execution issues on workflow run * update corner radius * fix drag/delete bug * increase offset * update disabled state * address comments * refactor * refactor func * ⚡ Add full license text to N8nCustomConnectorType.js Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
120 lines
5 KiB
TypeScript
120 lines
5 KiB
TypeScript
export const MAX_DISPLAY_DATA_SIZE = 204800;
|
|
export const MAX_DISPLAY_ITEMS_AUTO_ALL = 250;
|
|
export const NODE_NAME_PREFIX = 'node-';
|
|
|
|
export const PLACEHOLDER_FILLED_AT_EXECUTION_TIME = '[filled at execution time]';
|
|
|
|
// workflows
|
|
export const PLACEHOLDER_EMPTY_WORKFLOW_ID = '__EMPTY__';
|
|
export const DEFAULT_NODETYPE_VERSION = 1;
|
|
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;
|
|
|
|
// modals
|
|
export const DUPLICATE_MODAL_KEY = 'duplicate';
|
|
export const TAGS_MANAGER_MODAL_KEY = 'tagsManager';
|
|
export const WORKFLOW_OPEN_MODAL_KEY = 'workflowOpen';
|
|
export const VERSIONS_MODAL_KEY = 'versions';
|
|
export const WORKFLOW_SETTINGS_MODAL_KEY = 'settings';
|
|
export const CREDENTIAL_EDIT_MODAL_KEY = 'editCredential';
|
|
export const CREDENTIAL_SELECT_MODAL_KEY = 'selectCredential';
|
|
export const CREDENTIAL_LIST_MODAL_KEY = 'credentialsList';
|
|
export const PERSONALIZATION_MODAL_KEY = 'personalization';
|
|
|
|
// 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/`;
|
|
|
|
// node types
|
|
export const CALENDLY_TRIGGER_NODE_TYPE = 'n8n-nodes-base.calendlyTrigger';
|
|
export const CRON_NODE_TYPE = 'n8n-nodes-base.cron';
|
|
export const CLEARBIT_NODE_TYPE = 'n8n-nodes-base.clearbit';
|
|
export const FUNCTION_NODE_TYPE = 'n8n-nodes-base.function';
|
|
export const GITHUB_TRIGGER_NODE_TYPE = 'n8n-nodes-base.githubTrigger';
|
|
export const ERROR_TRIGGER_NODE_TYPE = 'n8n-nodes-base.errorTrigger';
|
|
export const ELASTIC_SECURITY_NODE_TYPE = 'n8n-nodes-base.elasticSecurity';
|
|
export const EMAIL_SEND_NODE_TYPE = 'n8n-nodes-base.emailSend';
|
|
export const EXECUTE_COMMAND_NODE_TYPE = 'n8n-nodes-base.executeCommand';
|
|
export const HTTP_REQUEST_NODE_TYPE = 'n8n-nodes-base.httpRequest';
|
|
export const IF_NODE_TYPE = 'n8n-nodes-base.if';
|
|
export const ITEM_LISTS_NODE_TYPE = 'n8n-nodes-base.itemLists';
|
|
export const JIRA_TRIGGER_NODE_TYPE = 'n8n-nodes-base.jiraTrigger';
|
|
export const MICROSOFT_EXCEL_NODE_TYPE = 'n8n-nodes-base.microsoftExcel';
|
|
export const MICROSOFT_TEAMS_NODE_TYPE = 'n8n-nodes-base.microsoftTeams';
|
|
export const NO_OP_NODE_TYPE = 'n8n-nodes-base.noOp';
|
|
export const PAGERDUTY_NODE_TYPE = 'n8n-nodes-base.pagerDuty';
|
|
export const SALESFORCE_NODE_TYPE = 'n8n-nodes-base.salesforce';
|
|
export const SEGMENT_NODE_TYPE = 'n8n-nodes-base.segment';
|
|
export const SET_NODE_TYPE = 'n8n-nodes-base.set';
|
|
export const SLACK_NODE_TYPE = 'n8n-nodes-base.slack';
|
|
export const SPREADSHEET_FILE_NODE_TYPE = 'n8n-nodes-base.spreadsheetFile';
|
|
export const START_NODE_TYPE = 'n8n-nodes-base.start';
|
|
export const SWITCH_NODE_TYPE = 'n8n-nodes-base.switch';
|
|
export const QUICKBOOKS_NODE_TYPE = 'n8n-nodes-base.quickbooks';
|
|
export const WEBHOOK_NODE_TYPE = 'n8n-nodes-base.webhook';
|
|
export const XERO_NODE_TYPE = 'n8n-nodes-base.xero';
|
|
|
|
// 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 PERSONALIZED_CATEGORY = 'Suggested Nodes ✨';
|
|
export const HIDDEN_NODES = [START_NODE_TYPE];
|
|
|
|
export const REQUEST_NODE_FORM_URL = 'https://n8n-community.typeform.com/to/K1fBVTZ3';
|
|
|
|
// General
|
|
export const INSTANCE_ID_HEADER = 'n8n-instance-id';
|
|
export const WAIT_TIME_UNLIMITED = '3000-01-01T00:00:00.000Z';
|
|
|
|
export const WORK_AREA_KEY = 'workArea';
|
|
export const AUTOMATION_CONSULTING_WORK_AREA = 'automationConsulting';
|
|
export const FINANCE_WORK_AREA = 'finance';
|
|
export const HR_WORK_AREA = 'HR';
|
|
export const IT_ENGINEERING_WORK_AREA = 'IT-Engineering';
|
|
export const LEGAL_WORK_AREA = 'legal';
|
|
export const MARKETING_WORK_AREA = 'marketing-growth';
|
|
export const PRODUCT_WORK_AREA = 'product';
|
|
export const SALES_BUSINESSDEV_WORK_AREA = 'sales-businessDevelopment';
|
|
export const SECURITY_WORK_AREA = 'security';
|
|
export const SUPPORT_WORK_AREA = 'support';
|
|
export const OPS_WORK_AREA = 'ops';
|
|
export const OTHER_WORK_AREA_OPTION = 'other';
|
|
|
|
export const COMPANY_SIZE_KEY = 'companySize';
|
|
export const COMPANY_SIZE_20_OR_LESS = '<20';
|
|
export const COMPANY_SIZE_20_99 = '20-99';
|
|
export const COMPANY_SIZE_100_499 = '100-499';
|
|
export const COMPANY_SIZE_500_999 = '500-999';
|
|
export const COMPANY_SIZE_1000_OR_MORE = '1000+';
|
|
export const COMPANY_SIZE_PERSONAL_USE = 'personalUser';
|
|
|
|
export const CODING_SKILL_KEY = 'codingSkill';
|
|
export const OTHER_WORK_AREA_KEY = 'otherWorkArea';
|
|
|