refactor(editor): Add infix to Pinia stores (no-changelog) (#6149)

*  Add infix to Pinia stores

*  Fix paths in mocks

* 🐛 Fix import
This commit is contained in:
Iván Ovejero
2023-05-05 10:41:54 +02:00
committed by GitHub
parent 394c9a2731
commit d5c44987f4
205 changed files with 516 additions and 516 deletions

View File

@@ -1,7 +1,7 @@
import { afterAll, beforeAll } from 'vitest';
import { setActivePinia, createPinia } from 'pinia';
import { setupServer } from '@/__tests__/server';
import { useCredentialsStore } from '@/stores/credentials';
import { useCredentialsStore } from '@/stores/credentials.store';
describe('store', () => {
let server: ReturnType<typeof setupServer>;

View File

@@ -1,7 +1,7 @@
import { afterAll, beforeAll } from 'vitest';
import { setActivePinia, createPinia } from 'pinia';
import { setupServer } from '@/__tests__/server';
import { useEnvironmentsStore } from '@/stores/environments.ee';
import { useEnvironmentsStore } from '@/stores/environments.ee.store';
import type { EnvironmentVariable } from '@/Interface';
describe('store', () => {

View File

@@ -1,9 +1,9 @@
import { createPinia, setActivePinia } from 'pinia';
import { usePostHog } from '@/stores/posthog';
import { useUsersStore } from '@/stores/users';
import { useSettingsStore } from '@/stores/settings';
import { useRootStore } from '@/stores/n8nRootStore';
import { useTelemetryStore } from '@/stores/telemetry';
import { usePostHog } from '@/stores/posthog.store';
import { useUsersStore } from '@/stores/users.store';
import { useSettingsStore } from '@/stores/settings.store';
import { useRootStore } from '@/stores/n8nRoot.store';
import { useTelemetryStore } from '@/stores/telemetry.store';
import type { IN8nUISettings } from 'n8n-workflow';
const DEFAULT_POSTHOG_SETTINGS: IN8nUISettings['posthog'] = {

View File

@@ -1,6 +1,6 @@
import { createPinia, setActivePinia } from 'pinia';
import { useSettingsStore } from '@/stores/settings';
import { useSSOStore } from '@/stores/sso';
import { useSettingsStore } from '@/stores/settings.store';
import { useSSOStore } from '@/stores/sso.store';
import { merge } from 'lodash-es';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
import type { IN8nUISettings } from 'n8n-workflow';

View File

@@ -1,6 +1,6 @@
import { createPinia, setActivePinia } from 'pinia';
import { useUIStore } from '@/stores/ui';
import { useSettingsStore } from '@/stores/settings';
import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store';
import { merge } from 'lodash-es';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';

View File

@@ -1,5 +1,5 @@
import { createPinia, setActivePinia } from 'pinia';
import { useUsageStore } from '@/stores/usage';
import { useUsageStore } from '@/stores/usage.store';
describe('Usage and plan store', () => {
beforeEach(() => {