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

@@ -29,8 +29,8 @@ import type { IExecutionsSummary, INodeUi, ITabBarItem } from '@/Interface';
import { workflowHelpers } from '@/mixins/workflowHelpers';
import type { Route } from 'vue-router';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui';
import { useNDVStore } from '@/stores/ndv';
import { useUIStore } from '@/stores/ui.store';
import { useNDVStore } from '@/stores/ndv.store';
export default mixins(pushConnection, workflowHelpers).extend({
name: 'MainHeader',

View File

@@ -17,7 +17,7 @@ import type { PropType } from 'vue';
import type { ITabBarItem } from '@/Interface';
import { MAIN_HEADER_TABS } from '@/constants';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui';
import { useUIStore } from '@/stores/ui.store';
export default defineComponent({
name: 'tab-bar',

View File

@@ -150,15 +150,15 @@ import { saveAs } from 'file-saver';
import { useTitleChange } from '@/composables/useTitleChange';
import type { MessageBoxInputData } from 'element-ui/types/message-box';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui';
import { useSettingsStore } from '@/stores/settings';
import { useWorkflowsStore } from '@/stores/workflows';
import { useRootStore } from '@/stores/n8nRootStore';
import { useTagsStore } from '@/stores/tags';
import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores/n8nRoot.store';
import { useTagsStore } from '@/stores/tags.store';
import type { IPermissions } from '@/permissions';
import { getWorkflowPermissions } from '@/permissions';
import { useUsersStore } from '@/stores/users';
import { useUsageStore } from '@/stores/usage';
import { useUsersStore } from '@/stores/users.store';
import { useUsageStore } from '@/stores/usage.store';
import { createEventBus } from '@/event-bus';
const hasChanged = (prev: string[], curr: string[]) => {