* Templates Bugs / Fixed Various Bugs / Multiply Api Request, Carousel Gradient, Core Nodes Filters ... * Updated MainSidebar Paddings * N8N-Templates Bugfixing - Remove Unnecesairy Icon (Shape), Refatctor infiniteScrollEnabled Prop + updated infiniterScroll functinality * N8N-2853 Fixed Carousel Arrows Bug after Cleaning the SearchBar * fix telemetry init * fix search tracking issues * N8N-2853 Created FilterTemplateNode Constant Array, Filter PlayButton and WebhookRespond from Nodes, Added Box for showing more nodes inside TemplateList, Updated NewWorkflowButton to primary, Fixed Markdown issue with Code * N8N-2853 Removed Placeholder if Workflows Or Collections are not found, Updated the Logic * fix telemetry events * clean up session id * update user inserted event * N8N-2853 Fixed Categories to Moving if the names are long * Add todos * Update Routes on loading * fix spacing * Update Border Color * Update Border Readius * fix filter fn * fix constant, console error * N8N-2853 PR Fixes, Refactoring, Removing unnecesairy code .. * N8N-2853 PR Fixes - Editor-ui Fixes, Refactoring, Removing Dead Code ... * N8N-2853 Refactor Card to LongCard * clean up spacing, replace css var * clean up spacing * set categories as optional in node * replace vars * refactor store * remove unnesssary import * fix error * fix templates view to start * add to cache * fix coll view data * fix categories * fix category event * fix collections carousel * fix initial load and search * fix infinite load * fix query param * fix scrolling issues * fix scroll to top * fix search * fix collections search * fix navigation bug * rename view * update package lock * rename workflow view * rename coll view * update routes * add wrapper component * set session id * fix search tracking * fix session tracking * remove deleted mutation * remove check for unsupported nodes * refactor filters * lazy load template * clean up types * refactor infinte scroll * fix end of search * Fix spacing * fix coll loading * fix types * fix coll view list * fix navigation * rename types * rename state * fix search responsiveness * fix coll view spacing * fix search view spacing * clean up views * set background color * center page not vert * fix workflow view * remove import * fix background color * fix background * clean props * clean up imports * refactor button * update background color * fix spacing issue * rename event * update telemetry event * update endpoints, add loading view, check for endpoint health * remove conolse log * N8N-2853 Fixed Menu Items Padding * replace endpoints * fix type issues * fix categories * N8N-2853 Fixed ParameterInput Placeholder after ElementUI Upgrade * update createdAt * ⚡ Fix placeholder in creds config modal * ✏️ Adjust docstring to `credText` placeholder version * N8N-2853 Optimized * N8N-2853 Optimized code * ⚡ Add deployment type to FE settings * ⚡ Add deployment type to interfaces * N8N-2853 Removed Animated prop from components * ⚡ Add deployment type to store module * ✨ Create hiring banner * ⚡ Display hiring banner * ⏪ Undo unrelated change * N8N-2853 Refactor TemplateFilters * ⚡ Fix indentation * N8N-2853 Reorder items / TemplateList * 👕 Fix lint * N8N-2853 Refactor TemplateFilters Component * N8N-2853 Reorder TemplateList * refactor template card * update timeout * fix removelistener * fix spacing * split enabled from offline * add spacing to go back * N8N-2853 Fixed Screens for Tablet & Mobile * N8N-2853 Update Stores Order * remove image componet * remove placeholder changes * N8N-2853 Fixed Chinnese Placeholders for El Select Component that comes from the Library Upgrade * N8N-2853 Fixed Vue Agile Console Warnings * N8N-2853 Update Collection Route * ✏️ Update jobs URL * 🚚 Move logging to root component * ⚡ Refactor `deploymentType` to `isInternalUser` * ⚡ Improve syntax * fix cut bug in readonly view * N8N-3012 Fixed Details section in templates with lots of description, Fixed Mardown Block with overflox-x * N8N-3012 Increased Font-size, Spacing and Line-height of the Categories Items * N8N-3012 Fixed Vue-agile client width error on resize * only delay redirect for root path * N8N-3012 Fixed Carousel Arrows that Disappear * N8N-3012 Make Loading Screen same color as Templates * N8N-3012 Markdown renders inline block as block code * add offline warning * hide log from workflow iframe * update text * make search button larger * N8N-3012 Categories / Tags extended all the way in details section * load data in cred modals * remove deleted message * add external hook * remove import * update env variable description * fix markdown width issue * disable telemetry for demo, add session id to template pages * fix telemetery bugs * N8N-3012 Not found Collections/Wokrkflow * N8N-3012 Checkboxes change order when categories are changed * N8N-3012 Refactor SortedCategories inside TemplateFilters component * fix firefox bug * add telemetry requirements * add error check * N8N-3012 Update GoBackButton to check if Route History is present * N8N-3012 Fixed WF Nodes Icons * hide workflow screenshots * remove unnessary mixins * rename prop * fix design a bit * rename data * clear workspace on destroy * fix copy paste bug * fix disabled state * N8N-3012 Fixed Saving/Leave without saving Modal * fix telemetry issue * fix telemetry issues, error bug * fix error notification * disable workflow menu items on templates * fix i18n elementui issue * Remove Emit - NodeType from HoverableNodeIcon component * TechnicalFixes: NavigateTo passed down as function should be helper * TechnicalFixes: Update NavigateTo function * TechnicalFixes: Add FilterCoreNodes directly as function * check for empty connecitions * fix titles * respect new lines * increase categories to be sliced * rename prop * onUseWorkflow * refactor click event * fix bug, refactor * fix loading story * add default * fix styles at right level of abstraction * add wrapper with width * remove loading blocks component * add story * rename prop * fix spacing * refactor tag, add story * move margin to container * fix tag redirect, remove unnessary check * make version optional * rename view * move from workflows to templates store * remove unnessary change * remove unnessary css * rename component * refactor collection card * add boolean to prevent shrink * clean up carousel * fix redirection bug on save * remove listeners to fix multiple listeners bug * remove unnessary types * clean up boolean set * fix node select bug * rename component * remove unnessary class * fix redirection bug * remove unnessary error * fix typo * fix blockquotes, pre * refactor markdown rendering * remove console log * escape markdown * fix safari bug * load active workflows to fix modal bug * ⬆️ Update package-lock.json file * ⚡ Add n8n version as header Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Co-authored-by: Mutasem <mutdmour@gmail.com> Co-authored-by: Iván Ovejero <ivov.src@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
171 lines
7.7 KiB
TypeScript
171 lines
7.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';
|
|
export const CONTACT_PROMPT_MODAL_KEY = 'contactPrompt';
|
|
export const VALUE_SURVEY_MODAL_KEY = 'valueSurvey';
|
|
export const EXECUTIONS_MODAL_KEY = 'executions';
|
|
export const WORKFLOW_ACTIVE_MODAL_KEY = 'activation';
|
|
|
|
// breakpoints
|
|
export const BREAKPOINT_SM = 768;
|
|
export const BREAKPOINT_MD = 992;
|
|
export const BREAKPOINT_LG = 1200;
|
|
export const BREAKPOINT_XL = 1920;
|
|
|
|
|
|
export const N8N_IO_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': { // this - all subkeys are set from codex
|
|
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';
|
|
|
|
export const MODAL_CANCEL = 'cancel';
|
|
export const MODAL_CLOSE = 'close';
|
|
export const MODAL_CONFIRMED = 'confirmed';
|
|
|
|
export const VALID_EMAIL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
export const LOCAL_STORAGE_ACTIVATION_FLAG = 'N8N_HIDE_ACTIVATION_ALERT';
|
|
|
|
export const HIRING_BANNER = `
|
|
//////
|
|
///////////
|
|
///// ////
|
|
/////////////////// ////
|
|
////////////////////// ////
|
|
/////// /////// //// /////////////
|
|
//////////// //////////// //// ///////
|
|
//// //// //// //// ////
|
|
///// ///////////// //////////
|
|
///// //// //// //// ////
|
|
//////////// //////////// //// ////////
|
|
/////// ////// //// /////////////
|
|
///////////// ////
|
|
////////// ////
|
|
//// ////
|
|
///////////
|
|
//////
|
|
|
|
Love n8n? Help us build the future of automation! https://n8n.io/careers
|
|
`;
|
|
|
|
export const TEMPLATES_NODES_FILTER = [
|
|
'n8n-nodes-base.start',
|
|
'n8n-nodes-base.respondToWebhook',
|
|
];
|