From 858d0d0160215f04c3a55ce5e553675d435c3a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Tue, 7 Dec 2021 16:14:40 +0100 Subject: [PATCH] :fire: Remove mixin-related lines --- .../src/components/BinaryDataDisplay.vue | 2 - .../editor-ui/src/components/CopyInput.vue | 3 +- .../CredentialEdit/CredentialConfig.vue | 3 +- .../CredentialEdit/CredentialEdit.vue | 3 +- .../CredentialEdit/CredentialInfo.vue | 4 +- .../components/CredentialEdit/OauthButton.vue | 3 +- .../src/components/CredentialsSelectModal.vue | 4 +- .../editor-ui/src/components/DataDisplay.vue | 3 +- .../components/DuplicateWorkflowDialog.vue | 3 +- .../src/components/Error/NodeErrorView.vue | 2 - .../ExecutionDetails/ExecutionDetails.vue | 3 +- .../MainHeader/ExecutionDetails/ReadOnly.vue | 5 +- .../components/MainHeader/WorkflowDetails.vue | 3 +- .../editor-ui/src/components/MainSidebar.vue | 2 - packages/editor-ui/src/components/Node.vue | 3 +- .../components/NodeCreator/CategoryItem.vue | 4 +- .../src/components/NodeCreator/MainPanel.vue | 3 +- .../src/components/NodeCreator/NoResults.vue | 4 +- .../src/components/NodeCreator/NodeItem.vue | 5 +- .../src/components/NodeCreator/SearchBar.vue | 3 +- .../NodeCreator/SubcategoryItem.vue | 5 +- .../NodeCreator/SubcategoryPanel.vue | 5 +- .../editor-ui/src/components/NodeWebhooks.vue | 2 - .../src/components/ParameterInputExpanded.vue | 4 +- .../src/components/ParameterInputFull.vue | 4 +- .../src/components/PersonalizationModal.vue | 3 +- .../src/components/PushConnectionTracker.vue | 5 +- .../editor-ui/src/components/SaveButton.vue | 4 +- .../editor-ui/src/components/TagsDropdown.vue | 3 +- .../components/TagsManager/TagsManager.vue | 3 +- .../TagsManager/TagsView/TagsTable.vue | 4 +- .../TagsManager/TagsView/TagsTableHeader.vue | 4 +- .../TagsManager/TagsView/TagsView.vue | 3 +- .../editor-ui/src/components/TextEdit.vue | 4 +- packages/editor-ui/src/components/TimeAgo.vue | 4 +- .../editor-ui/src/components/UpdatesPanel.vue | 4 +- .../src/components/VariableSelectorItem.vue | 4 +- .../editor-ui/src/components/VersionCard.vue | 4 +- .../editor-ui/src/components/WorkflowOpen.vue | 2 - .../src/components/mixins/genericHelpers.ts | 3 +- .../src/components/mixins/nodeBase.ts | 2 - .../src/components/mixins/renderText.ts | 222 ------------------ .../src/components/mixins/showMessage.ts | 3 +- .../src/components/mixins/workflowHelpers.ts | 4 +- .../src/components/mixins/workflowRun.ts | 2 - packages/editor-ui/src/main.ts | 2 - packages/editor-ui/src/views/NodeView.vue | 2 - 47 files changed, 39 insertions(+), 337 deletions(-) delete mode 100644 packages/editor-ui/src/components/mixins/renderText.ts diff --git a/packages/editor-ui/src/components/BinaryDataDisplay.vue b/packages/editor-ui/src/components/BinaryDataDisplay.vue index 1e4d49add1..cb4b0b568c 100644 --- a/packages/editor-ui/src/components/BinaryDataDisplay.vue +++ b/packages/editor-ui/src/components/BinaryDataDisplay.vue @@ -31,13 +31,11 @@ import { } from 'n8n-workflow'; import { nodeHelpers } from '@/components/mixins/nodeHelpers'; -import { renderText } from '@/components/mixins/renderText'; import mixins from 'vue-typed-mixins'; export default mixins( nodeHelpers, - renderText, ) .extend({ name: 'BinaryDataDisplay', diff --git a/packages/editor-ui/src/components/CopyInput.vue b/packages/editor-ui/src/components/CopyInput.vue index 3764835a2b..d3799139f0 100644 --- a/packages/editor-ui/src/components/CopyInput.vue +++ b/packages/editor-ui/src/components/CopyInput.vue @@ -13,10 +13,9 @@ diff --git a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue index 179966ce51..128fcc4ccc 100644 --- a/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue +++ b/packages/editor-ui/src/components/MainHeader/WorkflowDetails.vue @@ -90,7 +90,6 @@ import SaveButton from "@/components/SaveButton.vue"; import TagsDropdown from "@/components/TagsDropdown.vue"; import InlineTextEdit from "@/components/InlineTextEdit.vue"; import BreakpointsObserver from "@/components/BreakpointsObserver.vue"; -import { renderText } from "@/components/mixins/renderText"; const hasChanged = (prev: string[], curr: string[]) => { if (prev.length !== curr.length) { @@ -101,7 +100,7 @@ const hasChanged = (prev: string[], curr: string[]) => { return curr.reduce((accu, val) => accu || !set.has(val), false); }; -export default mixins(renderText, workflowHelpers).extend({ +export default mixins(workflowHelpers).extend({ name: "WorkflowDetails", components: { TagsContainer, diff --git a/packages/editor-ui/src/components/MainSidebar.vue b/packages/editor-ui/src/components/MainSidebar.vue index 10a2f9ad6d..62a09f77d2 100644 --- a/packages/editor-ui/src/components/MainSidebar.vue +++ b/packages/editor-ui/src/components/MainSidebar.vue @@ -155,7 +155,6 @@ import GiftNotificationIcon from './GiftNotificationIcon.vue'; import WorkflowSettings from '@/components/WorkflowSettings.vue'; import { genericHelpers } from '@/components/mixins/genericHelpers'; -import { renderText } from '@/components/mixins/renderText'; import { restApi } from '@/components/mixins/restApi'; import { showMessage } from '@/components/mixins/showMessage'; import { titleChange } from '@/components/mixins/titleChange'; @@ -172,7 +171,6 @@ import { CREDENTIAL_LIST_MODAL_KEY, CREDENTIAL_SELECT_MODAL_KEY, DUPLICATE_MODAL export default mixins( genericHelpers, restApi, - renderText, showMessage, titleChange, workflowHelpers, diff --git a/packages/editor-ui/src/components/Node.vue b/packages/editor-ui/src/components/Node.vue index 53a8751644..d55e463f95 100644 --- a/packages/editor-ui/src/components/Node.vue +++ b/packages/editor-ui/src/components/Node.vue @@ -79,7 +79,6 @@ import { WAIT_TIME_UNLIMITED } from '@/constants'; import { externalHooks } from '@/components/mixins/externalHooks'; import { nodeBase } from '@/components/mixins/nodeBase'; import { nodeHelpers } from '@/components/mixins/nodeHelpers'; -import { renderText } from '@/components/mixins/renderText'; import { workflowHelpers } from '@/components/mixins/workflowHelpers'; import { @@ -96,7 +95,7 @@ import { get } from 'lodash'; import { getStyleTokenValue } from './helpers'; import { INodeUi, XYPosition } from '@/Interface'; -export default mixins(externalHooks, nodeBase, nodeHelpers, renderText, workflowHelpers).extend({ +export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).extend({ name: 'Node', components: { NodeIcon, diff --git a/packages/editor-ui/src/components/NodeCreator/CategoryItem.vue b/packages/editor-ui/src/components/NodeCreator/CategoryItem.vue index 06ae3b305d..aa45834d34 100644 --- a/packages/editor-ui/src/components/NodeCreator/CategoryItem.vue +++ b/packages/editor-ui/src/components/NodeCreator/CategoryItem.vue @@ -15,10 +15,8 @@