From 7e045aa1a4fd8d73e5f59bcf587245a84f2a1d1b Mon Sep 17 00:00:00 2001 From: Milorad Filipovic Date: Fri, 18 Nov 2022 17:40:27 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Moving=20mixins=20to=20`src`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-ui/src/App.vue | 8 +++--- .../src/components/BinaryDataDisplay.vue | 5 ++-- .../src/components/BinaryDataDisplayEmbed.vue | 2 +- .../src/components/BreakpointsObserver.vue | 4 +-- .../src/components/ChangePasswordModal.vue | 2 +- .../editor-ui/src/components/CodeEdit.vue | 4 +-- .../CodeNodeEditor/CodeNodeEditor.vue | 2 +- .../src/components/CollectionCard.vue | 2 +- .../src/components/CollectionParameter.vue | 2 +- .../src/components/CollectionWorkflowCard.vue | 2 +- .../src/components/CollectionsCarousel.vue | 2 +- .../src/components/CommunityPackageCard.vue | 2 +- .../CommunityPackageInstallModal.vue | 2 +- .../CommunityPackageManageConfirmModal.vue | 2 +- .../src/components/ContactPromptModal.vue | 2 +- .../editor-ui/src/components/CopyInput.vue | 4 +-- .../src/components/CredentialCard.vue | 2 +- .../CredentialEdit/CredentialConfig.vue | 2 +- .../CredentialEdit/CredentialEdit.vue | 4 +-- .../CredentialEdit/CredentialSharing.ee.vue | 2 +- .../src/components/CredentialsSelectModal.vue | 2 +- .../src/components/DeleteUserModal.vue | 2 +- .../components/DuplicateWorkflowDialog.vue | 6 ++-- .../src/components/Error/NodeErrorView.vue | 4 +-- .../src/components/ExecutionTime.vue | 2 +- .../src/components/ExecutionsList.vue | 8 +++--- .../ExecutionsView/ExecutionCard.vue | 8 +++--- .../ExecutionsView/ExecutionPreview.vue | 8 +++--- .../ExecutionsInfoAccordion.vue | 2 +- .../ExecutionsView/ExecutionsView.vue | 10 +++---- .../src/components/ExpressionEdit.vue | 6 ++-- .../src/components/ExpressionInput.vue | 4 +-- .../src/components/ImportCurlModal.vue | 2 +- .../src/components/ImportParameter.vue | 2 +- .../src/components/InlineNameEdit.vue | 2 +- .../editor-ui/src/components/InputPanel.vue | 2 +- .../src/components/IntersectionObserved.vue | 2 +- .../src/components/InviteUsersModal.vue | 2 +- .../ExecutionDetails/ExecutionDetails.vue | 2 +- .../src/components/MainHeader/MainHeader.vue | 4 +-- .../components/MainHeader/WorkflowDetails.vue | 4 +-- .../editor-ui/src/components/MainSidebar.vue | 16 +++++------ .../src/components/NDVDraggablePanels.vue | 2 +- packages/editor-ui/src/components/Node.vue | 12 ++++---- .../Node/NodeCreator/CategorizedItems.vue | 4 +-- .../components/Node/NodeCreator/MainPanel.vue | 2 +- .../components/Node/NodeCreator/SearchBar.vue | 2 +- .../Node/NodeCreator/TriggerHelperPanel.vue | 2 +- .../src/components/NodeCredentials.vue | 8 +++--- .../src/components/NodeDetailsView.vue | 10 +++---- .../src/components/NodeExecuteButton.vue | 4 +-- .../editor-ui/src/components/NodeList.vue | 2 +- .../editor-ui/src/components/NodeSettings.vue | 4 +-- .../src/components/NodeSettingsTabs.vue | 2 +- .../editor-ui/src/components/NodeWebhooks.vue | 6 ++-- .../components/OnboardingCallSignupModal.vue | 2 +- .../editor-ui/src/components/OutputPanel.vue | 2 +- .../editor-ui/src/components/PageAlert.vue | 2 +- .../src/components/ParameterInput.vue | 10 +++---- .../src/components/ParameterInputFull.vue | 2 +- .../src/components/ParameterInputList.vue | 2 +- .../src/components/ParameterInputWrapper.vue | 4 +-- .../src/components/PersonalizationModal.vue | 4 +-- .../ResourceLocator/ResourceLocator.vue | 6 ++-- packages/editor-ui/src/components/RunData.vue | 10 +++---- .../editor-ui/src/components/RunDataJson.vue | 2 +- .../src/components/RunDataJsonActions.vue | 8 +++--- .../editor-ui/src/components/RunDataTable.vue | 2 +- .../src/components/SettingsSidebar.vue | 4 +-- packages/editor-ui/src/components/Sticky.vue | 8 +++--- .../editor-ui/src/components/TagsDropdown.vue | 2 +- .../components/TagsManager/TagsManager.vue | 2 +- .../editor-ui/src/components/Telemetry.vue | 2 +- .../editor-ui/src/components/TemplateCard.vue | 2 +- .../src/components/TemplateFilters.vue | 2 +- .../editor-ui/src/components/TemplateList.vue | 2 +- .../editor-ui/src/components/TriggerPanel.vue | 6 ++-- .../editor-ui/src/components/ValueSurvey.vue | 2 +- .../src/components/VariableSelector.vue | 2 +- .../src/components/VariableSelectorItem.vue | 2 +- .../src/components/WorkflowActivator.vue | 4 +-- .../editor-ui/src/components/WorkflowCard.vue | 4 +-- .../src/components/WorkflowPreview.vue | 2 +- .../src/components/WorkflowSettings.vue | 8 +++--- .../src/components/WorkflowShareModal.ee.vue | 2 +- .../layouts/ResourcesListLayout.vue | 4 +-- packages/editor-ui/src/main.ts | 2 +- .../src/{components => }/mixins/copyPaste.ts | 0 .../src/{components => }/mixins/debounce.ts | 0 .../mixins/deviceSupportHelpers.ts | 0 .../src/{components => }/mixins/emitter.ts | 0 .../mixins/executionsHelpers.ts | 0 .../{components => }/mixins/externalHooks.ts | 0 .../{components => }/mixins/genericHelpers.ts | 2 +- .../mixins/globalLinkActions.ts | 0 .../{components => }/mixins/mouseSelect.ts | 2 +- .../mixins/moveNodeWorkflow.ts | 2 +- .../{components => }/mixins/newVersions.ts | 0 .../src/{components => }/mixins/nodeBase.ts | 2 +- .../{components => }/mixins/nodeHelpers.ts | 2 +- .../src/{components => }/mixins/pinData.ts | 0 .../{components => }/mixins/pushConnection.ts | 10 +++---- .../src/{components => }/mixins/restApi.ts | 0 .../{components => }/mixins/showMessage.ts | 2 +- .../{components => }/mixins/titleChange.ts | 0 .../{components => }/mixins/userHelpers.ts | 0 .../mixins/workflowActivate.ts | 6 ++-- .../mixins/workflowHelpers.ts | 8 +++--- .../{components => }/mixins/workflowRun.ts | 8 +++--- .../src/views/ChangePasswordView.vue | 2 +- .../editor-ui/src/views/CredentialsView.vue | 4 +-- .../src/views/ForgotMyPasswordView.vue | 2 +- packages/editor-ui/src/views/NodeView.vue | 28 +++++++++---------- .../editor-ui/src/views/SettingsApiView.vue | 2 +- .../src/views/SettingsCommunityNodesView.vue | 2 +- .../src/views/SettingsPersonalView.vue | 2 +- .../editor-ui/src/views/SettingsUsersView.vue | 2 +- packages/editor-ui/src/views/SetupView.vue | 4 +-- packages/editor-ui/src/views/SigninView.vue | 2 +- packages/editor-ui/src/views/SignupView.vue | 2 +- .../src/views/TemplatesCollectionView.vue | 2 +- .../src/views/TemplatesSearchView.vue | 4 +-- .../src/views/TemplatesWorkflowView.vue | 2 +- .../editor-ui/src/views/WorkflowsView.vue | 4 +-- 124 files changed, 221 insertions(+), 222 deletions(-) rename packages/editor-ui/src/{components => }/mixins/copyPaste.ts (100%) rename packages/editor-ui/src/{components => }/mixins/debounce.ts (100%) rename packages/editor-ui/src/{components => }/mixins/deviceSupportHelpers.ts (100%) rename packages/editor-ui/src/{components => }/mixins/emitter.ts (100%) rename packages/editor-ui/src/{components => }/mixins/executionsHelpers.ts (100%) rename packages/editor-ui/src/{components => }/mixins/externalHooks.ts (100%) rename packages/editor-ui/src/{components => }/mixins/genericHelpers.ts (96%) rename packages/editor-ui/src/{components => }/mixins/globalLinkActions.ts (100%) rename packages/editor-ui/src/{components => }/mixins/mouseSelect.ts (98%) rename packages/editor-ui/src/{components => }/mixins/moveNodeWorkflow.ts (96%) rename packages/editor-ui/src/{components => }/mixins/newVersions.ts (100%) rename packages/editor-ui/src/{components => }/mixins/nodeBase.ts (99%) rename packages/editor-ui/src/{components => }/mixins/nodeHelpers.ts (99%) rename packages/editor-ui/src/{components => }/mixins/pinData.ts (100%) rename packages/editor-ui/src/{components => }/mixins/pushConnection.ts (97%) rename packages/editor-ui/src/{components => }/mixins/restApi.ts (100%) rename packages/editor-ui/src/{components => }/mixins/showMessage.ts (98%) rename packages/editor-ui/src/{components => }/mixins/titleChange.ts (100%) rename packages/editor-ui/src/{components => }/mixins/userHelpers.ts (100%) rename packages/editor-ui/src/{components => }/mixins/workflowActivate.ts (94%) rename packages/editor-ui/src/{components => }/mixins/workflowHelpers.ts (99%) rename packages/editor-ui/src/{components => }/mixins/workflowRun.ts (96%) diff --git a/packages/editor-ui/src/App.vue b/packages/editor-ui/src/App.vue index 626e2624528ff..3fdf8495bdecd 100644 --- a/packages/editor-ui/src/App.vue +++ b/packages/editor-ui/src/App.vue @@ -33,11 +33,11 @@ import Telemetry from './components/Telemetry.vue'; import { HIRING_BANNER, LOCAL_STORAGE_THEME, VIEWS } from './constants'; import mixins from 'vue-typed-mixins'; -import { showMessage } from './components/mixins/showMessage'; -import { userHelpers } from './components/mixins/userHelpers'; +import { showMessage } from '@/mixins/showMessage'; +import { userHelpers } from '@/mixins/userHelpers'; import { loadLanguage } from './plugins/i18n'; -import { restApi } from '@/components/mixins/restApi'; -import { globalLinkActions } from '@/components/mixins/globalLinkActions'; +import { restApi } from '@/mixins/restApi'; +import { globalLinkActions } from '@/mixins/globalLinkActions'; import { mapStores } from 'pinia'; import { useUIStore } from './stores/ui'; import { useSettingsStore } from './stores/settings'; diff --git a/packages/editor-ui/src/components/BinaryDataDisplay.vue b/packages/editor-ui/src/components/BinaryDataDisplay.vue index 2c9d63a510a19..59aac23200691 100644 --- a/packages/editor-ui/src/components/BinaryDataDisplay.vue +++ b/packages/editor-ui/src/components/BinaryDataDisplay.vue @@ -23,15 +23,14 @@ import { IBinaryData, IRunData, - IRunExecutionData, } from 'n8n-workflow'; import BinaryDataDisplayEmbed from '@/components/BinaryDataDisplayEmbed.vue'; -import { nodeHelpers } from '@/components/mixins/nodeHelpers'; +import { nodeHelpers } from '@/mixins/nodeHelpers'; import mixins from 'vue-typed-mixins'; -import { restApi } from '@/components/mixins/restApi'; +import { restApi } from '@/mixins/restApi'; import { mapStores } from 'pinia'; import { useWorkflowsStore } from '@/stores/workflows'; diff --git a/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue b/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue index 0caa82c2ff840..61ac83ae118de 100644 --- a/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue +++ b/packages/editor-ui/src/components/BinaryDataDisplayEmbed.vue @@ -20,7 +20,7 @@ import mixins from 'vue-typed-mixins'; -import { restApi } from '@/components/mixins/restApi'; +import { restApi } from '@/mixins/restApi'; export default mixins( restApi, diff --git a/packages/editor-ui/src/components/BreakpointsObserver.vue b/packages/editor-ui/src/components/BreakpointsObserver.vue index bad6647408951..9be77b8b65c9d 100644 --- a/packages/editor-ui/src/components/BreakpointsObserver.vue +++ b/packages/editor-ui/src/components/BreakpointsObserver.vue @@ -22,8 +22,8 @@ import { */ import mixins from "vue-typed-mixins"; -import { genericHelpers } from "@/components/mixins/genericHelpers"; -import { debounceHelper } from "./mixins/debounce"; +import { genericHelpers } from "@/mixins/genericHelpers"; +import { debounceHelper } from "@/mixins/debounce"; export default mixins(genericHelpers, debounceHelper).extend({ name: "BreakpointsObserver", diff --git a/packages/editor-ui/src/components/ChangePasswordModal.vue b/packages/editor-ui/src/components/ChangePasswordModal.vue index 934042a9f48c2..151e2f3cb088d 100644 --- a/packages/editor-ui/src/components/ChangePasswordModal.vue +++ b/packages/editor-ui/src/components/ChangePasswordModal.vue @@ -26,7 +26,7 @@