refactor(editor): Consolidate IN8nUISettings interface (#6055)

* consolidate IN8nUISettings

* cleanup
This commit is contained in:
Michael Auerswald
2023-04-21 13:30:57 +02:00
committed by GitHub
parent 0e93fe064e
commit ac245fdb8d
11 changed files with 151 additions and 214 deletions

View File

@@ -2,9 +2,9 @@ import { createPinia, setActivePinia } from 'pinia';
import { usePostHog } from '@/stores/posthog';
import { useUsersStore } from '@/stores/users';
import { useSettingsStore } from '@/stores/settings';
import { IN8nUISettings } from '@/Interface';
import { useRootStore } from '@/stores/n8nRootStore';
import { useTelemetryStore } from '@/stores/telemetry';
import { IN8nUISettings } from 'n8n-workflow';
const DEFAULT_POSTHOG_SETTINGS: IN8nUISettings['posthog'] = {
enabled: true,

View File

@@ -2,8 +2,8 @@ import { createPinia, setActivePinia } from 'pinia';
import { useSettingsStore } from '@/stores/settings';
import { useSSOStore } from '@/stores/sso';
import { merge } from 'lodash-es';
import { IN8nUISettings } from '@/Interface';
import { SETTINGS_STORE_DEFAULT_STATE } from '@/__tests__/utils';
import { IN8nUISettings } from 'n8n-workflow';
let ssoStore: ReturnType<typeof useSSOStore>;
let settingsStore: ReturnType<typeof useSettingsStore>;