mirror of
https://github.com/n8n-io/n8n.git
synced 2024-09-27 18:27:36 -07:00
76c63790b4
* 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 * implement plus * 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 * hide if endpoint has conn * node insert on click * simplify impl * fix z-indexes * add drop hover message * address comments * refactor * refactor func * remove drop conn overlay * update messagE * update colors * remove console log * rebuild impl * add stalk * fix disabled state * fix dragging bug * remove node selection * disable plus in executions * add success output to talk * add success output * set output * fix bug * fix switch size * update size for 3 output nodes * update loops * fix bug when node is renamed * set final values * update loop behavior * update comment * hide output labels on multi outputs * center output * fix flicker when deleting nodes * fix dragging space * increase stalk if if * more type checks * rename event source * rename event source * support touch when dragging * offset center * center plus * fix repaint behavior * remove extending output * add offset to switch * fix merge node bug * rename endpoint * refactor css, fix merge bug * fix unrelated issues * space out * remove flowchart type * rename constant key * clean up css * rename var * fix more type issues * update types * fix spacing * simplify vertical offset * refactor css * add license * update css * clean up scss * update to use css var * clean up code * update params * show message * fix plus position * fix merge node bugs * hide box when not dragging and hidden * fix potential issue * address comments
135 lines
5.7 KiB
TypeScript
135 lines
5.7 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';
|
|
export const NODE_OUTPUT_DEFAULT_KEY = '_NODE_OUTPUT_DEFAULT_KEY_';
|
|
|
|
// 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 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 EXECUTIVE_WORK_AREA = 'executive';
|
|
export const OTHER_WORK_AREA_OPTION = 'other';
|
|
export const NOT_APPLICABLE_WORK_AREA = 'n/a';
|
|
|
|
export const COMPANY_INDUSTRY_KEY = 'companyIndustry';
|
|
export const E_COMMERCE_INDUSTRY = 'e-commerce';
|
|
export const AUTOMATION_CONSULTING_INDUSTRY = 'automation-consulting';
|
|
export const SYSTEM_INTEGRATION_INDUSTRY = 'systems-integration';
|
|
export const GOVERNMENT_INDUSTRY = 'government';
|
|
export const LEGAL_INDUSTRY = 'legal-industry';
|
|
export const HEALTHCARE_INDUSTRY= 'healthcare';
|
|
export const FINANCE_INDUSTRY = 'finance-industry';
|
|
export const SECURITY_INDUSTRY = 'security-industry';
|
|
export const SAAS_INDUSTRY = 'saas';
|
|
export const OTHER_INDUSTRY_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';
|
|
export const OTHER_COMPANY_INDUSTRY_KEY = 'otherCompanyIndustry';
|
|
|