mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 13:39:44 +02:00
refactor(editor): Repoint settings.store importers to @n8n/stores and drop the shim (no-changelog) (#35459)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
parent
dd96603338
commit
4b0db257a2
|
|
@ -14,7 +14,7 @@ import { useWorkflowDiffRouting } from '@/app/composables/useWorkflowDiffRouting
|
|||
import { useTrialIntroModalAutoOpen } from '@/experiments/trialIntroModal/useTrialIntroModalAutoOpen';
|
||||
import { CODEMIRROR_TOOLTIP_CONTAINER_ELEMENT_ID, HIRING_BANNER, VIEWS } from '@/app/constants';
|
||||
import { useNDVStore } from '@/features/ndv/shared/ndv.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import LoadingView from '@/app/views/LoadingView.vue';
|
||||
import { locale } from '@n8n/design-system';
|
||||
import { setLanguage } from '@n8n/i18n';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { MAX_WORKFLOW_NAME_LENGTH } from '@/app/constants';
|
|||
import { useToast } from '@n8n/composables/useToast';
|
||||
import WorkflowTagsDropdown from '@/features/shared/tags/components/WorkflowTagsDropdown.vue';
|
||||
import Modal from '@/app/components/Modal.vue';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import type { WorkflowDataCreate } from '@n8n/rest-api-client/api/workflows';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import type { EnterpriseEditionFeatureValue } from '@/Interface';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { fireEvent, screen, waitFor } from '@testing-library/vue';
|
||||
import FreeAiCreditsCallout from '@/app/components/FreeAiCreditsCallout.vue';
|
||||
import { useCredentialsStore } from '@/features/credentials/credentials.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useNDVStore } from '@/features/ndv/shared/ndv.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
|
|
@ -21,7 +21,7 @@ vi.mock('@n8n/composables/useTelemetry', () => ({
|
|||
useTelemetry: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: vi.fn(),
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import type { FolderShortInfo, WorkflowListEventMap } from '@/features/core/fold
|
|||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useTagsStore } from '@/features/shared/tags/tags.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { getWorkflowId } from '@/app/components/MainHeader/utils';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
} from '@/app/constants';
|
||||
import { useExecutionsStore } from '@/features/execution/executions/executions.store';
|
||||
import { injectNDVStoreIfProvided } from '@/features/ndv/shared/ndv.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { computed, inject, onBeforeMount, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ import {
|
|||
import { useRoute, useRouter } from 'vue-router';
|
||||
|
||||
import { N8nBadge, N8nInlineTextEdit } from '@n8n/design-system';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { useUIStore } from '@/app/stores/ui.store';
|
|||
import { useCollaborationStore } from '@/features/collaboration/collaboration/collaboration.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useWorkflowHistoryStore } from '@/features/workflows/workflowHistory/workflowHistory.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { WORKFLOW_PUBLISH_MODAL_KEY, EnterpriseEditionFeature } from '@/app/constants';
|
||||
import { STORES } from '@n8n/stores';
|
||||
import type { INodeUi } from '@/Interface';
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import {
|
|||
} from '@n8n/design-system';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { getActivatableTriggerNodes } from '@/app/utils/nodeTypesUtils';
|
||||
import { useWorkflowSaving } from '@/app/composables/useWorkflowSaving';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { createTestingPinia } from '@pinia/testing';
|
|||
import { type MockedStore, mockedStore } from '@/__tests__/utils';
|
||||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
import MainSidebar from '@/app/components/MainSidebar.vue';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useVersionsStore } from '@n8n/stores/versions.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { EXTERNAL_LINKS } from '@/app/constants/externalLinks';
|
|||
import { hasPermission } from '@/app/utils/rbac/permissions';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useCloudPlanStore } from '@n8n/stores/cloudPlan.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useTemplatesStore } from '@/features/workflows/templates/templates.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useVersionsStore } from '@n8n/stores/versions.store';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { createComponentRenderer } from '@/__tests__/render';
|
|||
import { createTestingPinia } from '@pinia/testing';
|
||||
import { type MockedStore, mockedStore } from '@/__tests__/utils';
|
||||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import MainSidebarHeader from './MainSidebarHeader.vue';
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { useI18n } from '@n8n/i18n';
|
|||
import { VIEWS } from '@/app/constants';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import KeyboardShortcutTooltip from '@/app/components/KeyboardShortcutTooltip.vue';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useGlobalEntityCreation } from '@/app/composables/useGlobalEntityCreation';
|
||||
defineProps<{
|
||||
isCollapsed: boolean;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { SET_NODE_TYPE } from '@/app/constants';
|
|||
import { NodeConnectionTypes } from 'n8n-workflow';
|
||||
import { useNodeTypesStore } from '@/app/stores/nodeTypes.store';
|
||||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import VirtualSchemaHeader from '@/features/ndv/runData/components/VirtualSchemaHeader.vue';
|
||||
|
||||
describe('VirtualSchemaHeader.vue', () => {
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { useToast } from '@n8n/composables/useToast';
|
|||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { createTestingPinia } from '@pinia/testing';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useMCPStore } from '@/features/ai/mcpAccess/mcp.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import userEvent from '@testing-library/user-event';
|
|||
import WorkflowDescriptionModal from '@/app/components/WorkflowDescriptionModal.vue';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { STORES } from '@n8n/stores';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { computed, ref, useTemplateRef } from 'vue';
|
||||
import { N8nButton, N8nInput, N8nText } from '@n8n/design-system';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ import {
|
|||
} from '@/app/constants';
|
||||
import type { INodeTypeDescription } from 'n8n-workflow';
|
||||
import { createTestNode } from '@/__tests__/mocks';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { MCP_DOCS_PAGE_URL, MCP_SETTINGS_VIEW } from '@/features/ai/mcpAccess/mcp.constants';
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/
|
|||
import { MCP_DOCS_PAGE_URL, MCP_SETTINGS_VIEW } from '@/features/ai/mcpAccess/mcp.constants';
|
||||
|
||||
import { N8nSuggestedActions } from '@n8n/design-system';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { WorkflowDocumentStoreKey } from '@/app/constants/injectionKeys';
|
||||
import { useWorkflowEvaluationState } from '@/features/ai/evaluation.ee/composables/useWorkflowEvaluationState';
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { useRBACStore } from '@n8n/stores/rbac.store';
|
|||
import WorkflowSettingsVue from '@/app/components/WorkflowSettings/WorkflowSettings.vue';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import type { Project } from '@/features/collaboration/projects/projects.types';
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import {
|
|||
policyToChannels,
|
||||
} from 'n8n-workflow';
|
||||
import { SYSTEM_RESOLVER_ID } from '@n8n/api-types';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useWorkflowsEEStore } from '@/app/stores/workflows.ee.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import type { MockedStore } from '@/__tests__/utils';
|
|||
import { mockedStore, getDropdownItems } from '@/__tests__/utils';
|
||||
import { createComponentRenderer } from '@/__tests__/render';
|
||||
import WorkflowShareModal from './WorkflowShareModal.ee.vue';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsEEStore } from '@/app/stores/workflows.ee.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { EnterpriseEditionFeature, MODAL_CONFIRM, WORKFLOW_SHARE_MODAL_KEY } fro
|
|||
import { getResourcePermissions } from '@n8n/permissions';
|
||||
import { useMessage } from '@/app/composables/useMessage';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { useProjectsStore } from '@/features/collaboration/projects/projects.sto
|
|||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useReadyToRunStore } from '@/features/workflows/readyToRun/stores/readyToRun.store';
|
||||
import { useBannersStore } from '@/features/shared/banners/banners.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import type { IUser } from '@n8n/rest-api-client/api/users';
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { useSurfaceMcpEmptyState } from '@/experiments/surfaceMcpToNewCloudUsers
|
|||
import { useCredentialsAppSelectionStore } from '@/experiments/credentialsAppSelection/stores/credentialsAppSelection.store';
|
||||
import { useReadyToRunStore } from '@/features/workflows/readyToRun/stores/readyToRun.store';
|
||||
import AppSelectionPage from '@/experiments/credentialsAppSelection/components/AppSelectionPage.vue';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { instanceAiCreateAgentRoute } from '@/features/ai/instanceAi/createAgentRoute';
|
||||
import { generateNanoId } from '@n8n/utils/generate-nano-id';
|
||||
import { useAgentTelemetry } from '@/features/agents/composables/useAgentTelemetry';
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ vi.mock('@n8n/stores/useRootStore', () => ({
|
|||
|
||||
const mockIsAiGatewayEnabled = ref(false);
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: vi.fn(() => ({ isAiGatewayEnabled: mockIsAiGatewayEnabled.value })),
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { computed } from 'vue';
|
||||
import type { INode } from 'n8n-workflow';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useWorkflowSaving } from '@/app/composables/useWorkflowSaving';
|
||||
import { useAiGatewayStore } from '@/app/stores/aiGateway.store';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { mount } from '@vue/test-utils';
|
|||
import merge from 'lodash/merge';
|
||||
import { useBackendStatus } from './useBackendStatus';
|
||||
import { useBackendConnectionStore } from '@/app/stores/backendConnection.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { onMounted, onUnmounted, ref } from 'vue';
|
||||
import { useBackendConnectionStore } from '@/app/stores/backendConnection.store';
|
||||
import { useHeartbeat } from '@/app/push-connection/useHeartbeat';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
|
||||
const HEALTH_CHECK_INTERVAL = 10000;
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ import { useNDVStore } from '@/features/ndv/shared/ndv.store';
|
|||
import { useNodeCreatorStore } from '@/features/shared/nodeCreator/nodeCreator.store';
|
||||
import { useNodeTypesStore } from '@/app/stores/nodeTypes.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useTagsStore } from '@/features/shared/tags/tags.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { describe, it, expect, beforeEach, vi } from 'vitest';
|
|||
import type { ClusterInfoResponse } from '@n8n/api-types';
|
||||
import { useDebugInfo } from './useDebugInfo';
|
||||
import type { RootStoreState } from '@n8n/stores/useRootStore';
|
||||
import type { useSettingsStore as useSettingsStoreType } from '@/app/stores/settings.store';
|
||||
import type { useSettingsStore as useSettingsStoreType } from '@n8n/stores/settings.store';
|
||||
import type { RecursivePartial } from '@/app/types/utils';
|
||||
|
||||
vi.mock('@n8n/stores/useRootStore', () => ({
|
||||
|
|
@ -47,7 +47,7 @@ const { useSettingsStore } = vi.hoisted(() => ({
|
|||
useSettingsStore: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useInstanceRegistryStore } from '@/features/instanceRegistry/stores/instanceRegistry.store';
|
||||
import { useDeviceSupport } from '@n8n/composables/useDeviceSupport';
|
||||
import type { WorkflowSettings } from 'n8n-workflow';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import type { FrontendSettings } from '@n8n/api-types';
|
|||
import { useDocumentTitle } from './useDocumentTitle';
|
||||
|
||||
const settings = mock<FrontendSettings>({ releaseChannel: 'stable' });
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: vi.fn(() => ({ settings })),
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import {
|
|||
useDocumentTitle as useDocumentTitleBase,
|
||||
type WorkflowTitleStatus,
|
||||
} from '@n8n/composables/useDocumentTitle';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import type { Ref } from 'vue';
|
||||
|
||||
export type { WorkflowTitleStatus };
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { computed, inject } from 'vue';
|
||||
|
||||
import { EditorEnabledFeaturesKey, type EditorFeature } from '@/app/constants/injectionKeys';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { hasPermission } from '@/app/utils/rbac/permissions';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import type { FrontendSettings } from '@n8n/api-types';
|
|||
import { createPinia, setActivePinia } from 'pinia';
|
||||
|
||||
import { runExternalHook } from '@/app/composables/useExternalHooks';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
/**
|
||||
* Payload `GET /rest/settings` returns to unauthenticated callers: no `license`,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
import { useLogsStore } from '@/app/stores/logs.store';
|
||||
import { useNDVStore } from '@/features/ndv/shared/ndv.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import {
|
||||
useWorkflowDocumentStore,
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ vi.mock('@/features/credentials/credentials.store', () => ({
|
|||
useCredentialsStore: () => credentialsStore,
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: () => settingsStore,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { OPEN_AI_API_CREDENTIAL_TYPE } from 'n8n-workflow';
|
|||
import type { ICredentialsResponse } from '@/features/credentials/credentials.types';
|
||||
import { useCredentialsStore } from '@/features/credentials/credentials.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import type router from 'vue-router';
|
|||
import { flushPromises } from '@vue/test-utils';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
import { usePageRedirectionHelper } from '@/app/composables/usePageRedirectionHelper';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useCloudPlanStore } from '@n8n/stores/cloudPlan.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import type { CloudPlanState } from '@n8n/stores/cloudPlan.store';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { useI18n } from '@n8n/i18n';
|
|||
import { sortByProperty } from '@n8n/utils/sort/sort-by-property';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useCloudPlanStore } from '@n8n/stores/cloudPlan.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { createTestingPinia } from '@pinia/testing';
|
|||
import { useNodeHelpers } from '@/app/composables/useNodeHelpers';
|
||||
import { createTestNode, createMockEnterpriseSettings } from '@/__tests__/mocks';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { CUSTOM_API_CALL_KEY, EnterpriseEditionFeature } from '@/app/constants';
|
||||
import { mockedStore } from '@/__tests__/utils';
|
||||
import { mock } from 'vitest-mock-extended';
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ import { EnableNodeToggleCommand } from '@/app/models/history';
|
|||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { hasPermission } from '@/app/utils/rbac/permissions';
|
||||
import { useCanvasStore } from '@/app/stores/canvas.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { injectWorkflowDocumentStore } from '@/app/stores/workflowDocument.store';
|
||||
import { injectWorkflowExecutionStateStore } from '@/app/stores/workflowExecutionState.store';
|
||||
import { usePrivateCredentials } from '@/features/resolvers/composables/usePrivateCredentials';
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { createTestingPinia } from '@pinia/testing';
|
|||
import { jsonParse } from 'n8n-workflow';
|
||||
import { usePostMessageControls, usePostMessageHandler } from './usePostMessageHandler';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useNotificationsStore } from '@n8n/stores/notifications.store';
|
||||
import { useWorkflowExecutionStateStore } from '@/app/stores/workflowExecutionState.store';
|
||||
import { createWorkflowDocumentId } from '@/app/stores/workflowDocument.store';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { codeNodeEditorEventBus, globalLinkActionsEventBus } from '@/app/event-b
|
|||
import { useAITemplatesStarterCollectionStore } from '@/experiments/aiTemplatesStarterCollection/stores/aiTemplatesStarterCollection.store';
|
||||
import { useReadyToRunStore } from '@/features/workflows/readyToRun/stores/readyToRun.store';
|
||||
import { useNodeTypesStore } from '@/app/stores/nodeTypes.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { PushPayload } from '@n8n/api-types';
|
||||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { useWorkflowHelpers } from '@/app/composables/useWorkflowHelpers';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import {
|
||||
createWorkflowDocumentId,
|
||||
useWorkflowDocumentStore,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ vi.mock('@/app/stores/ui.store', () => ({
|
|||
useUIStore: () => mockUIStore,
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: () => mockSettingsStore,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
|||
import { useWorkflowDocumentStore } from '@/app/stores/workflowDocument.store';
|
||||
import { useBannersStore } from '@/features/shared/banners/banners.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useCanvasOperations } from '@/app/composables/useCanvasOperations';
|
||||
import type { PushHandlerOptions } from './types';
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ const { mockSettingsStore, mockUiStore, mockInitializeWorkspace, mockFetchWorkfl
|
|||
}),
|
||||
);
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: () => mockSettingsStore,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { WorkflowDeactivated } from '@n8n/api-types/push/workflow';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { useWorkflowDocumentStore } from '@/app/stores/workflowDocument.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useCanvasOperations } from '@/app/composables/useCanvasOperations';
|
||||
import type { PushHandlerOptions } from './types';
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ vi.mock('@/app/composables/useActivationError', () => ({
|
|||
useActivationError: () => ({ errorMessage: { value: 'Node error details' } }),
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: () => mockSettingsStore,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useActivationError } from '@/app/composables/useActivationError';
|
|||
import { useI18n } from '@n8n/i18n';
|
||||
import { useWorkflowDocumentStore } from '@/app/stores/workflowDocument.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import type { PushHandlerOptions } from './types';
|
||||
|
||||
export async function workflowFailedToActivate(
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ vi.mock('@n8n/i18n', () => ({
|
|||
useI18n: () => mockI18n,
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: () => mockSettingsStore,
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
|||
import { useWorkflowDocumentStore } from '@/app/stores/workflowDocument.store';
|
||||
import { useBannersStore } from '@/features/shared/banners/banners.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useCanvasOperations } from '@/app/composables/useCanvasOperations';
|
||||
import type { PushHandlerOptions } from './types';
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import { useUIStore } from '@/app/stores/ui.store';
|
|||
import { useToast } from '@n8n/composables/useToast';
|
||||
import { useWorkflowHelpers } from '@/app/composables/useWorkflowHelpers';
|
||||
import { useWorkflowSaving } from '@/app/composables/useWorkflowSaving';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { captor, mock } from 'vitest-mock-extended';
|
||||
import { usePushConnectionStore } from '@/app/stores/pushConnection.store';
|
||||
import { createTestNode, createTestWorkflow } from '@/__tests__/mocks';
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ import { useI18n } from '@n8n/i18n';
|
|||
import get from 'lodash/get';
|
||||
import { useExecutionsStore } from '@/features/execution/executions/executions.store';
|
||||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { usePushConnectionStore } from '@/app/stores/pushConnection.store';
|
||||
import { useNodeDirtiness } from '@/app/composables/useNodeDirtiness';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import type { IMenuItem } from '@n8n/design-system';
|
|||
import { useI18n } from '@n8n/i18n';
|
||||
import { VIEWS } from '../constants';
|
||||
import { useUIStore } from '../stores/ui.store';
|
||||
import { useSettingsStore } from '../stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { hasPermission } from '../utils/rbac/permissions';
|
||||
import { MIGRATION_REPORT_TARGET_VERSION } from '@n8n/api-types';
|
||||
import { useEnvFeatureFlag } from '@/features/shared/envFeatureFlag/useEnvFeatureFlag';
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { ITelemetrySettings } from '@n8n/api-types';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { computed, onMounted, watch, ref } from 'vue';
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ vi.mock('@/app/stores/workflowsList.store', () => ({
|
|||
// control the return value per-test via the mockSettingsImpl variable below.
|
||||
const mockSettingsImpl = vi.hoisted(() => ({ isWorkflowPublicationServiceEnabled: false }));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: vi.fn(() => mockSettingsImpl),
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import {
|
|||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useExternalHooks } from '@/app/composables/useExternalHooks';
|
||||
import { useTelemetry } from '@n8n/composables/useTelemetry';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { useUIStore } from '@/app/stores/ui.store';
|
|||
import { useNodeTypesStore } from '@/app/stores/nodeTypes.store';
|
||||
import { useCredentialsStore } from '@/features/credentials/credentials.store';
|
||||
import { useEnvironmentsStore } from '@/features/settings/environments.ee/environments.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useHistoryStore } from '@/app/stores/history.store';
|
||||
import { useBuilderStore } from '@/features/ai/assistant/builder.store';
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
PUBLICATION_STATUS_POLL_INTERVAL_MS,
|
||||
} from './useWorkflowPublicationStatusSync';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import {
|
||||
useWorkflowDocumentStore,
|
||||
createWorkflowDocumentId,
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { onBeforeUnmount, onMounted, toValue, watch } from 'vue';
|
|||
import type { MaybeRefOrGetter } from 'vue';
|
||||
import type { WorkflowPublicationStatus } from '@n8n/api-types';
|
||||
import { useDocumentVisibility } from '@/app/composables/useDocumentVisibility';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
||||
import {
|
||||
useWorkflowDocumentStore,
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { useWorkflowsStore } from '@/app/stores/workflows.store';
|
|||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { useWorkflowSaveStore } from '@/app/stores/workflowSave.store';
|
||||
import { useBackendConnectionStore } from '@/app/stores/backendConnection.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import type { WorkflowDataUpdate } from '@n8n/rest-api-client/api/workflows';
|
||||
import { mockedStore } from '@/__tests__/utils';
|
||||
import { createTestNode, createTestWorkflow, mockNodeTypeDescription } from '@/__tests__/mocks';
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ import { useBuilderStore } from '@/features/ai/assistant/builder.store';
|
|||
import { useWorkflowId } from '@/app/composables/useWorkflowId';
|
||||
import { useWorkflowSaveStore } from '@/app/stores/workflowSave.store';
|
||||
import { useBackendConnectionStore } from '@/app/stores/backendConnection.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useInvalidNodeGroupCleanup } from '@/app/composables/useInvalidNodeGroupCleanup';
|
||||
|
||||
export function useWorkflowSaving({
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { initializeAuthenticatedFeatures, initializeCore, state } from '@/app/in
|
|||
import { AuthenticationMethod } from '@n8n/api-types';
|
||||
import { useCloudPlanStore } from '@n8n/stores/cloudPlan.store';
|
||||
import { useNodeTypesStore } from '@/app/stores/nodeTypes.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useSSOStore } from '@/features/settings/sso/sso.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import { useNpsSurveyStore } from '@/app/stores/npsSurvey.store';
|
|||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useRBACStore } from '@n8n/stores/rbac.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useSSOStore } from '@/features/settings/sso/sso.store';
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import AppHeader from '@/app/components/app/AppHeader.vue';
|
|||
import AppSidebar from '@/app/components/app/AppSidebar.vue';
|
||||
import LogsPanel from '@/features/execution/logs/components/LogsPanel.vue';
|
||||
import LoadingView from '@/app/views/LoadingView.vue';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
const { layoutProps } = useLayoutProps();
|
||||
const assistantStore = useAssistantStore();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { modalRegistry, registerResource } from '@n8n/frontend-module-sdk';
|
|||
import { VIEWS } from '@/app/constants';
|
||||
import { modules } from '@/app/modules.manifest';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import {
|
||||
INSTANCE_AI_NEW_VIEW,
|
||||
INSTANCE_AI_SETTINGS_VIEW,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
|
||||
import { TelemetryService } from '@/app/plugins/telemetry';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { defineTelemetryEvents } from '@n8n/telemetry';
|
||||
import merge from 'lodash/merge';
|
||||
import { createPinia, setActivePinia } from 'pinia';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import {
|
|||
type TelemetryIdentifyOptions,
|
||||
} from '@n8n/composables/registries/telemetryRegistry';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { VIEWS } from '@/app/constants';
|
|||
import { INSTANCE_AI_VIEW } from '@/features/ai/instanceAi/constants';
|
||||
import { RESOURCE_CENTER_EXPERIMENT } from '@/app/constants/experiments';
|
||||
import { setupServer } from '@/__tests__/server';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
import { useRBACStore } from '@n8n/stores/rbac.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import type {
|
|||
import { createRouter, createWebHistory, isNavigationFailure, RouterView } from 'vue-router';
|
||||
import { generateNanoId } from '@n8n/utils/generate-nano-id';
|
||||
import { useExternalHooks } from '@/app/composables/useExternalHooks';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useTemplatesStore } from '@/features/workflows/templates/templates.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { useSSOStore } from '@/features/settings/sso/sso.store';
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ import { groupNodeTypesByNameAndType } from '@/app/utils/nodeTypes/nodeTypeTrans
|
|||
import { computed, shallowRef } from 'vue';
|
||||
import { useActionsGenerator } from '@/features/shared/nodeCreator/composables/useActionsGeneration';
|
||||
import { removePreviewToken } from '@/features/shared/nodeCreator/nodeCreator.utils';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { isDataWorkerEnabled } from '@/app/workers/isDataWorkerEnabled';
|
||||
import type { WorkflowObjectAccessors } from '../types';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { createPinia, setActivePinia } from 'pinia';
|
||||
import { useNpsSurveyStore } from './npsSurvey.store';
|
||||
import { THREE_DAYS_IN_MILLIS, TIME, NPS_SURVEY_MODAL_KEY } from '@/app/constants';
|
||||
import { useSettingsStore } from './settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
const { openModal, updateNpsSurveyState } = vi.hoisted(() => {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
} from '@/app/constants';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import type { IUserSettings, NpsSurveyState } from 'n8n-workflow';
|
||||
import { useSettingsStore } from './settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { updateNpsSurveyState } from '@n8n/rest-api-client/api/npsSurvey';
|
||||
import { assert } from '@n8n/utils/assert';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { createPinia, setActivePinia } from 'pinia';
|
||||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import type { FrontendSettings } from '@n8n/api-types';
|
||||
import { LOCAL_STORAGE_EXPERIMENT_OVERRIDES } from '@/app/constants';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { defineStore } from 'pinia';
|
|||
import { useStorage } from '@n8n/composables/useStorage';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import type { FeatureFlags, IDataObject } from 'n8n-workflow';
|
||||
import { EXPERIMENTS_TO_TRACK, LOCAL_STORAGE_EXPERIMENT_OVERRIDES } from '@/app/constants';
|
||||
import { TELEMETRY_EVENT } from '@n8n/telemetry';
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ vi.mock('@n8n/stores/useRootStore', () => ({
|
|||
}),
|
||||
}));
|
||||
|
||||
vi.mock('./settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: vi.fn().mockReturnValue({
|
||||
pushBackend: 'websocket',
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import type { PushMessage } from '@n8n/api-types';
|
|||
import { STORES } from '@n8n/stores';
|
||||
import { getDebounceTime } from '@n8n/composables/useDebounce';
|
||||
import { DEBOUNCE_TIME } from '@/app/constants/durations';
|
||||
import { useSettingsStore } from './settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useWebSocketClient } from '@/app/push-connection/useWebSocketClient';
|
||||
import { useEventSourceClient } from '@/app/push-connection/useEventSourceClient';
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
/**
|
||||
* @deprecated Import from `@n8n/stores/settings.store` instead. This store moved to
|
||||
* `@n8n/stores` (CAT-3686 kernel slice); this re-export is a temporary shim kept
|
||||
* so existing importers keep working and will be removed once call sites migrate.
|
||||
*/
|
||||
export * from '@n8n/stores/settings.store';
|
||||
|
|
@ -95,7 +95,7 @@ import type {
|
|||
NodeCreatorOpenSource,
|
||||
} from '@/Interface';
|
||||
import { defineStore } from 'pinia';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { applyThemeToBody, getThemeOverride, isValidTheme } from './ui.utils';
|
||||
import { computed, ref } from 'vue';
|
||||
import type { IMenuItem } from '@n8n/design-system';
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
import { useUIStore } from './ui.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useWorkflowsStore } from './workflows.store';
|
||||
import { useSettingsStore } from './settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useRouteWorkflowId } from '@/app/composables/useWorkflowId';
|
||||
|
||||
export const useWebhooksStore = defineStore(STORES.WEBHOOKS, () => {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import * as workflowsApi from '@/app/api/workflows.ee';
|
|||
import { EnterpriseEditionFeature } from '@/app/constants';
|
||||
import { STORES } from '@n8n/stores';
|
||||
import { useRootStore } from '@n8n/stores/useRootStore';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { defineStore } from 'pinia';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { i18n } from '@n8n/i18n';
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import { i18n } from '@n8n/i18n';
|
|||
import { computed, ref } from 'vue';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import type { ExecutionRedactionQueryDto, WorkflowPublicationStatus } from '@n8n/api-types';
|
||||
import { useSettingsStore } from './settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { updateCurrentUserSettings } from '@n8n/rest-api-client/api/users';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
/**
|
||||
* Whether a `postMessage` command from the given origin should be processed.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import type { RBACPermissionCheck, AuthenticatedPermissionOptions } from '@/app/types/rbac';
|
||||
|
||||
export const isAuthenticated: RBACPermissionCheck<AuthenticatedPermissionOptions> = (options) => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { isEnterpriseFeatureEnabled } from '@/app/utils/rbac/checks/isEnterpriseFeatureEnabled';
|
||||
import { EnterpriseEditionFeature } from '@/app/constants';
|
||||
import { createPinia, setActivePinia } from 'pinia';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import type { RBACPermissionCheck, EnterprisePermissionOptions } from '@/app/types/rbac';
|
||||
|
||||
export const isEnterpriseFeatureEnabled: RBACPermissionCheck<EnterprisePermissionOptions> = (
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { VIEWS, EnterpriseEditionFeature } from '@/app/constants';
|
||||
import { enterpriseMiddleware } from '@/app/utils/rbac/middleware/enterprise';
|
||||
import { type RouteLocationNormalized } from 'vue-router';
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ vi.mock('@/features/workflows/canvas/composables/useCanvasMapping', () => ({
|
|||
// Import after mocks
|
||||
import DemoDiffView from './DemoDiffView.vue';
|
||||
import { setActivePinia } from 'pinia';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { defaultSettings } from '@/__tests__/defaults';
|
||||
|
||||
// Capture props from WorkflowDiffView
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import type { IUser } from '@n8n/rest-api-client/api/users';
|
|||
import { useFoldersStore } from '@/features/core/folders/folders.store';
|
||||
import { useCredentialsStore } from '@/features/credentials/credentials.store';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useTagsStore } from '@/features/shared/tags/tags.store';
|
||||
import { useUsersStore } from '@n8n/stores/users.store';
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ import { useFavoritesStore } from '@/app/stores/favorites.store';
|
|||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
import { WORKFLOW_CARD_MCP_TOGGLE_EXPERIMENT } from '@/app/constants/experiments';
|
||||
import { useProjectsStore } from '@/features/collaboration/projects/projects.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useSourceControlStore } from '@/features/integrations/sourceControl.ee/sourceControl.store';
|
||||
import { useTagsStore } from '@/features/shared/tags/tags.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { usePostHog } from '@/app/stores/posthog.store';
|
|||
import { TEMPLATE_ONBOARDING_EXPERIMENT } from '@/app/constants';
|
||||
import { useLocalStorage } from '@vueuse/core';
|
||||
import { useI18n } from '@n8n/i18n';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
const LOCAL_STORAGE_SETTING_KEY = 'N8N_AI_TEMPLATES_STARTER_COLLECTION_CALL_OUT_DISMISSED';
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ vi.mock('@/app/stores/posthog.store', () => ({
|
|||
})),
|
||||
}));
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: vi.fn(() => ({ settings })),
|
||||
}));
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { computed } from 'vue';
|
|||
|
||||
import { EVALUATIONS_WIZARD_SIDEPANEL_EXPERIMENT } from '@/app/constants/experiments';
|
||||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
|
||||
export function useEvaluationsWizardSidepanelExperiment() {
|
||||
const posthogStore = usePostHog();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<script setup lang="ts">
|
||||
import Modal from '@/app/components/Modal.vue';
|
||||
import { useToast } from '@n8n/composables/useToast';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { EXPOSE_ALL_WORKFLOWS_TO_MCP_MODAL_KEY } from '@/experiments/exposeAllWorkflowsToMcp/constants';
|
||||
import { useExposeAllWorkflowsToMcpStore } from '@/experiments/exposeAllWorkflowsToMcp/stores/exposeAllWorkflowsToMcp.store';
|
||||
import { useMCPStore } from '@/features/ai/mcpAccess/mcp.store';
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useUIStore } from '@/app/stores/ui.store';
|
||||
import { EXPOSE_ALL_WORKFLOWS_TO_MCP_MODAL_KEY } from '@/experiments/exposeAllWorkflowsToMcp/constants';
|
||||
import { useExposeAllWorkflowsToMcpStore } from '@/experiments/exposeAllWorkflowsToMcp/stores/exposeAllWorkflowsToMcp.store';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { PERSONALIZED_TEMPLATES_V3, VIEWS } from '@/app/constants';
|
|||
import { TELEMETRY_EVENT } from '@n8n/telemetry';
|
||||
import { useCloudPlanStore } from '@n8n/stores/cloudPlan.store';
|
||||
import { usePostHog } from '@/app/stores/posthog.store';
|
||||
import { useSettingsStore } from '@/app/stores/settings.store';
|
||||
import { useSettingsStore } from '@n8n/stores/settings.store';
|
||||
import { useTemplatesStore } from '@/features/workflows/templates/templates.store';
|
||||
import { useWorkflowsListStore } from '@/app/stores/workflowsList.store';
|
||||
import { STORES } from '@n8n/stores';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ let mockIsCloudDeployment = false;
|
|||
let mockUserIsTrialing = false;
|
||||
let mockIsAdminOrOwner = false;
|
||||
|
||||
vi.mock('@/app/stores/settings.store', () => ({
|
||||
vi.mock('@n8n/stores/settings.store', () => ({
|
||||
useSettingsStore: () => ({
|
||||
get isCloudDeployment() {
|
||||
return mockIsCloudDeployment;
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user