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
@@ -9,9 +9,16 @@ import type { CodeExecutionMode, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { BaseTextKey } from '@/plugins/i18n';
|
||||
import type { INodeUi, Schema } from '@/Interface';
|
||||
import { generateCodeForPrompt } from '@/api/ai';
|
||||
import { useDataSchema, useI18n, useMessage, useTelemetry, useToast } from '@/composables';
|
||||
import { useNDVStore, usePostHog, useRootStore, useWorkflowsStore } from '@/stores';
|
||||
import { executionDataToJson } from '@/utils';
|
||||
import { useTelemetry } from '@/composables/useTelemetry';
|
||||
import { useDataSchema } from '@/composables/useDataSchema';
|
||||
import { useI18n } from '@/composables/useI18n';
|
||||
import { useMessage } from '@/composables/useMessage';
|
||||
import { useToast } from '@/composables/useToast';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { usePostHog } from '@/stores/posthog.store';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { useWorkflowsStore } from '@/stores/workflows.store';
|
||||
import { executionDataToJson } from '@/utils/nodeTypesUtils';
|
||||
import {
|
||||
ASK_AI_EXPERIMENT,
|
||||
ASK_AI_MAX_PROMPT_LENGTH,
|
||||
|
||||
@@ -60,7 +60,8 @@ import { CODE_EXECUTION_MODES, CODE_LANGUAGES } from 'n8n-workflow';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers'; // for json field completions
|
||||
import { ASK_AI_EXPERIMENT, CODE_NODE_TYPE } from '@/constants';
|
||||
import { codeNodeEditorEventBus } from '@/event-bus';
|
||||
import { useRootStore, usePostHog } from '@/stores';
|
||||
import { useRootStore } from '@/stores/n8nRoot.store';
|
||||
import { usePostHog } from '@/stores/posthog.store';
|
||||
|
||||
import { readOnlyEditorExtensions, writableEditorExtensions } from './baseExtensions';
|
||||
import { CODE_PLACEHOLDERS } from './constants';
|
||||
@@ -68,7 +69,7 @@ import { linterExtension } from './linter';
|
||||
import { completerExtension } from './completer';
|
||||
import { codeNodeEditorTheme } from './theme';
|
||||
import AskAI from './AskAI/AskAI.vue';
|
||||
import { useMessage } from '@/composables';
|
||||
import { useMessage } from '@/composables/useMessage';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'code-node-editor',
|
||||
|
||||
@@ -2,7 +2,7 @@ import Vue from 'vue';
|
||||
import { addVarType } from '../utils';
|
||||
import type { Completion, CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
||||
import type { CodeNodeEditorMixin } from '../types';
|
||||
import { useExternalSecretsStore } from '@/stores';
|
||||
import { useExternalSecretsStore } from '@/stores/externalSecrets.ee.store';
|
||||
|
||||
const escape = (str: string) => str.replace('$', '\\$');
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { addVarType } from '../utils';
|
||||
import type { Completion, CompletionContext, CompletionResult } from '@codemirror/autocomplete';
|
||||
import { useEnvironmentsStore } from '@/stores';
|
||||
import { useEnvironmentsStore } from '@/stores/environments.ee.store';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
const escape = (str: string) => str.replace('$', '\\$');
|
||||
|
||||
Reference in New Issue
Block a user