mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(editor): Delete some barrel files and reduce circular dependencies (no-changelog) (#7838)
This commit is contained in:
committed by
GitHub
parent
3ab3ec9da8
commit
753cbc1e96
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user