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

@@ -49,13 +49,14 @@ import {
DRAG_EVENT_DATA_KEY,
} from '@/constants';
import { isCommunityPackageName } from '@/utils';
import { isCommunityPackageName } from '@/utils/nodeTypesUtils';
import { getNewNodePosition, NODE_SIZE } from '@/utils/nodeViewUtils';
import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
import NodeIcon from '@/components/NodeIcon.vue';
import { useActions } from '../composables/useActions';
import { useI18n, useTelemetry } from '@/composables';
import { useI18n } from '@/composables/useI18n';
import { useTelemetry } from '@/composables/useTelemetry';
import { NodeHelpers, NodeConnectionType } from 'n8n-workflow';
export interface Props {

View File

@@ -22,7 +22,7 @@
import type { SubcategoryItemProps } from '@/Interface';
import { camelCase } from 'lodash-es';
import { computed } from 'vue';
import { useI18n } from '@/composables';
import { useI18n } from '@/composables/useI18n';
export interface Props {
item: SubcategoryItemProps;

View File

@@ -16,7 +16,7 @@ import {
} from '@/constants';
import { useUsersStore } from '@/stores/users.store';
import { runExternalHook } from '@/utils';
import { runExternalHook } from '@/utils/externalHooks';
import { useActions } from '../composables/useActions';
import { useKeyboardNavigation } from '../composables/useKeyboardNavigation';

View File

@@ -22,7 +22,8 @@ import { useKeyboardNavigation } from '../composables/useKeyboardNavigation';
import ItemsRenderer from '../Renderers/ItemsRenderer.vue';
import CategorizedItemsRenderer from '../Renderers/CategorizedItemsRenderer.vue';
import NoResults from '../Panel/NoResults.vue';
import { useI18n, useTelemetry } from '@/composables';
import { useI18n } from '@/composables/useI18n';
import { useTelemetry } from '@/composables/useTelemetry';
export interface Props {
rootView: 'trigger' | 'action';

View File

@@ -30,7 +30,8 @@ import { useViewStacks } from './composables/useViewStacks';
import { useKeyboardNavigation } from './composables/useKeyboardNavigation';
import { useActionsGenerator } from './composables/useActionsGeneration';
import NodesListPanel from './Panel/NodesListPanel.vue';
import { useCredentialsStore, useUIStore } from '@/stores';
import { useCredentialsStore } from '@/stores/credentials.store';
import { useUIStore } from '@/stores/ui.store';
import { DRAG_EVENT_DATA_KEY } from '@/constants';
export interface Props {

View File

@@ -16,7 +16,7 @@ import { useKeyboardNavigation } from '../composables/useKeyboardNavigation';
import SearchBar from './SearchBar.vue';
import ActionsRenderer from '../Modes/ActionsMode.vue';
import NodesRenderer from '../Modes/NodesMode.vue';
import { useI18n } from '@/composables';
import { useI18n } from '@/composables/useI18n';
const i18n = useI18n();

View File

@@ -25,7 +25,7 @@
<script setup lang="ts">
import { onMounted, reactive, toRefs, onBeforeUnmount } from 'vue';
import { useExternalHooks } from '@/composables';
import { useExternalHooks } from '@/composables/useExternalHooks';
export interface Props {
placeholder: string;

View File

@@ -26,7 +26,7 @@ import type { Telemetry } from '@/plugins/telemetry';
import { useNodeCreatorStore } from '@/stores/nodeCreator.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { runExternalHook } from '@/utils';
import { runExternalHook } from '@/utils/externalHooks';
import { sortNodeCreateElements, transformNodeType } from '../utils';

View File

@@ -22,10 +22,10 @@ import {
sortNodeCreateElements,
searchNodes,
} from '../utils';
import { useI18n } from '@/composables';
import { useI18n } from '@/composables/useI18n';
import type { INodeInputFilter } from 'n8n-workflow';
import { useNodeTypesStore } from '@/stores';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { AINodesView, type NodeViewItem } from '@/components/Node/NodeCreator/viewsData';
interface ViewStack {

View File

@@ -7,7 +7,7 @@ import type {
} from '@/Interface';
import { AI_SUBCATEGORY, CORE_NODES_CATEGORY, DEFAULT_SUBCATEGORY } from '@/constants';
import { v4 as uuidv4 } from 'uuid';
import { sublimeSearch } from '@/utils';
import { sublimeSearch } from '@/utils/sortUtils';
export function transformNodeType(
node: SimplifiedNodeType,

View File

@@ -30,8 +30,8 @@ import {
AI_OTHERS_NODE_CREATOR_VIEW,
AI_UNCATEGORIZED_CATEGORY,
} from '@/constants';
import { useI18n } from '@/composables';
import { useNodeTypesStore } from '@/stores';
import { useI18n } from '@/composables/useI18n';
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import type { SimplifiedNodeType } from '@/Interface';
import type { INodeTypeDescription } from 'n8n-workflow';
import { NodeConnectionType } from 'n8n-workflow';