refactor(editor): Delete some barrel files and reduce circular dependencies (no-changelog) (#7838)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-11-28 12:15:08 +01:00
committed by GitHub
parent 3ab3ec9da8
commit 753cbc1e96
229 changed files with 539 additions and 507 deletions

View File

@@ -1,5 +1,6 @@
import { createPinia, setActivePinia } from 'pinia';
import { useSettingsStore, useWorkflowsStore } from '@/stores';
import { useSettingsStore } from '@/stores/settings.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { setupServer } from '@/__tests__/server';
import { executeData } from '@/mixins/workflowHelpers';
import type { IExecutionResponse } from '@/Interface';

View File

@@ -2,7 +2,7 @@ import type { IExternalHooks } from '@/Interface';
import type { PartialDeep } from 'type-fest';
import type { ExternalHooks, ExternalHooksGenericContext } from '@/types';
import { defineComponent } from 'vue';
import { runExternalHook } from '@/utils';
import { runExternalHook } from '@/utils/externalHooks';
export function extendExternalHooks(hooksExtension: PartialDeep<ExternalHooks>) {
if (typeof window.n8nExternalHooks === 'undefined') {

View File

@@ -2,8 +2,8 @@ import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import dateformat from 'dateformat';
import { VIEWS } from '@/constants';
import { useToast } from '@/composables';
import { useSourceControlStore } from '@/stores';
import { useToast } from '@/composables/useToast';
import { useSourceControlStore } from '@/stores/sourceControl.store';
export const genericHelpers = defineComponent({
setup() {

View File

@@ -1,5 +1,5 @@
import { defineComponent } from 'vue';
import { useToast } from '@/composables';
import { useToast } from '@/composables/useToast';
import { VERSIONS_MODAL_KEY } from '@/constants';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store';

View File

@@ -34,13 +34,13 @@ import type {
import { get } from 'lodash-es';
import { isObject } from '@/utils';
import { isObject } from '@/utils/objectUtils';
import { getCredentialPermissions } from '@/permissions';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores';
import { useRootStore } from '@/stores/n8nRoot.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { useCredentialsStore } from '@/stores/credentials.store';
import { defineComponent } from 'vue';

View File

@@ -1,7 +1,7 @@
import { defineComponent } from 'vue';
import type { INodeUi } from '@/Interface';
import type { IPinData, INodeExecutionData } from 'n8n-workflow';
import { stringSizeInBytes } from '@/utils';
import { stringSizeInBytes } from '@/utils/typesUtils';
import {
MAX_EXPECTED_REQUEST_SIZE,
MAX_PINNED_DATA_SIZE,
@@ -11,7 +11,7 @@ import {
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store';
import { useToast } from '@/composables';
import { useToast } from '@/composables/useToast';
import { jsonParse, jsonStringify } from 'n8n-workflow';
export type PinDataSource =

View File

@@ -7,7 +7,8 @@ import type {
import { externalHooks } from '@/mixins/externalHooks';
import { nodeHelpers } from '@/mixins/nodeHelpers';
import { useTitleChange, useToast } from '@/composables';
import { useTitleChange } from '@/composables/useTitleChange';
import { useToast } from '@/composables/useToast';
import { workflowHelpers } from '@/mixins/workflowHelpers';
import type {
@@ -23,7 +24,7 @@ import type {
import { TelemetryHelpers } from 'n8n-workflow';
import { WORKFLOW_SETTINGS_MODAL_KEY } from '@/constants';
import { getTriggerNodeServiceName } from '@/utils';
import { getTriggerNodeServiceName } from '@/utils/nodeTypesUtils';
import { codeNodeEditorEventBus, globalLinkActionsEventBus } from '@/event-bus';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store';

View File

@@ -4,7 +4,7 @@ import { useStorage } from '@/composables/useStorage';
import { externalHooks } from '@/mixins/externalHooks';
import { workflowHelpers } from '@/mixins/workflowHelpers';
import { useToast } from '@/composables';
import { useToast } from '@/composables/useToast';
import {
LOCAL_STORAGE_ACTIVATION_FLAG,

View File

@@ -43,9 +43,10 @@ import type {
IWorkflowDb,
TargetItem,
XYPosition,
} from '../Interface';
} from '@/Interface';
import { useMessage, useToast } from '@/composables';
import { useMessage } from '@/composables/useMessage';
import { useToast } from '@/composables/useToast';
import { externalHooks } from '@/mixins/externalHooks';
import { genericHelpers } from '@/mixins/genericHelpers';
import { nodeHelpers } from '@/mixins/nodeHelpers';
@@ -63,7 +64,7 @@ import { useUIStore } from '@/stores/ui.store';
import { useUsersStore } from '@/stores/users.store';
import { useWorkflowsEEStore } from '@/stores/workflows.ee.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { getSourceItems } from '@/utils';
import { getSourceItems } from '@/utils/pairedItemUtils';
import { v4 as uuid } from 'uuid';
import { useSettingsStore } from '@/stores/settings.store';
import { getCredentialTypeName, isCredentialOnlyNodeType } from '@/utils/credentialOnlyNodes';

View File

@@ -10,7 +10,7 @@ import {
FORM_TRIGGER_PATH_IDENTIFIER,
} from 'n8n-workflow';
import { useToast } from '@/composables';
import { useToast } from '@/composables/useToast';
import { externalHooks } from '@/mixins/externalHooks';
import { workflowHelpers } from '@/mixins/workflowHelpers';