refactor: Integrate consistent-type-imports in FE packages (no-changelog) (#6060)
* 👕 Move `consistent-type-imports` to top level * 👕 Apply lintfixes * 👕 Apply more lintfixes * 👕 More lintfixes * 👕 More lintfixes
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { XYPosition } from '@/Interface';
|
||||
import type { XYPosition } from '@/Interface';
|
||||
import { useNodeCreatorStore } from '@/stores/nodeCreator';
|
||||
|
||||
export interface Props {
|
||||
|
||||
@@ -13,7 +13,7 @@ import AuthView from './AuthView.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { IFormBoxConfig } from '@/Interface';
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
|
||||
@@ -45,7 +45,8 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { ICredentialsResponse, ICredentialTypeMap, IUser } from '@/Interface';
|
||||
import type { ICredentialsResponse, ICredentialTypeMap } from '@/Interface';
|
||||
import { IUser } from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
|
||||
import SettingsView from './SettingsView.vue';
|
||||
@@ -53,13 +54,13 @@ import ResourcesListLayout from '@/components/layouts/ResourcesListLayout.vue';
|
||||
import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
|
||||
import PageViewLayoutList from '@/components/layouts/PageViewLayoutList.vue';
|
||||
import CredentialCard from '@/components/CredentialCard.vue';
|
||||
import { ICredentialType } from 'n8n-workflow';
|
||||
import type { ICredentialType } from 'n8n-workflow';
|
||||
import TemplateCard from '@/components/TemplateCard.vue';
|
||||
import { debounceHelper } from '@/mixins/debounce';
|
||||
import ResourceOwnershipSelect from '@/components/forms/ResourceOwnershipSelect.ee.vue';
|
||||
import ResourceFiltersDropdown from '@/components/forms/ResourceFiltersDropdown.vue';
|
||||
import { CREDENTIAL_SELECT_MODAL_KEY } from '@/constants';
|
||||
import Vue from 'vue';
|
||||
import type Vue from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
|
||||
@@ -7,7 +7,7 @@ import AuthView from './AuthView.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { IFormBoxConfig } from '@/Interface';
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
|
||||
@@ -165,18 +165,20 @@
|
||||
import Vue from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
import {
|
||||
import type {
|
||||
Endpoint,
|
||||
Connection,
|
||||
EVENT_CONNECTION,
|
||||
ConnectionEstablishedParams,
|
||||
EVENT_CONNECTION_DETACHED,
|
||||
EVENT_CONNECTION_MOVED,
|
||||
INTERCEPT_BEFORE_DROP,
|
||||
BeforeDropParams,
|
||||
ConnectionDetachedParams,
|
||||
ConnectionMovedParams,
|
||||
} from '@jsplumb/core';
|
||||
import {
|
||||
EVENT_CONNECTION,
|
||||
EVENT_CONNECTION_DETACHED,
|
||||
EVENT_CONNECTION_MOVED,
|
||||
INTERCEPT_BEFORE_DROP,
|
||||
} from '@jsplumb/core';
|
||||
import type { MessageBoxInputData } from 'element-ui/types/message-box';
|
||||
|
||||
import {
|
||||
@@ -220,8 +222,7 @@ import Sticky from '@/components/Sticky.vue';
|
||||
import CanvasAddButton from './CanvasAddButton.vue';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import {
|
||||
deepCopy,
|
||||
import type {
|
||||
IConnection,
|
||||
IConnections,
|
||||
IDataObject,
|
||||
@@ -237,10 +238,9 @@ import {
|
||||
ITaskData,
|
||||
ITelemetryTrackProperties,
|
||||
IWorkflowBase,
|
||||
NodeHelpers,
|
||||
TelemetryHelpers,
|
||||
Workflow,
|
||||
} from 'n8n-workflow';
|
||||
import { deepCopy, NodeHelpers, TelemetryHelpers } from 'n8n-workflow';
|
||||
import type {
|
||||
ICredentialsResponse,
|
||||
IExecutionResponse,
|
||||
@@ -264,7 +264,7 @@ import { debounceHelper } from '@/mixins/debounce';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
import { Route, RawLocation } from 'vue-router';
|
||||
import type { Route, RawLocation } from 'vue-router';
|
||||
import { dataPinningEventBus, nodeViewEventBus } from '@/event-bus';
|
||||
import { useWorkflowsStore } from '@/stores/workflows';
|
||||
import { useRootStore } from '@/stores/n8nRootStore';
|
||||
@@ -290,6 +290,7 @@ import {
|
||||
RenameNodeCommand,
|
||||
historyBus,
|
||||
} from '@/models/history';
|
||||
import type { BrowserJsPlumbInstance } from '@jsplumb/browser-ui';
|
||||
import {
|
||||
EVENT_ENDPOINT_MOUSEOVER,
|
||||
EVENT_ENDPOINT_MOUSEOUT,
|
||||
@@ -298,11 +299,10 @@ import {
|
||||
EVENT_CONNECTION_ABORT,
|
||||
EVENT_CONNECTION_MOUSEOUT,
|
||||
EVENT_CONNECTION_MOUSEOVER,
|
||||
BrowserJsPlumbInstance,
|
||||
ready,
|
||||
} from '@jsplumb/browser-ui';
|
||||
import type { N8nPlusEndpoint } from '@/plugins/endpoints/N8nPlusEndpointType';
|
||||
import {
|
||||
N8nPlusEndpoint,
|
||||
N8nPlusEndpointType,
|
||||
EVENT_PLUS_ENDPOINT_CLICK,
|
||||
} from '@/plugins/endpoints/N8nPlusEndpointType';
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { reactive, ref } from 'vue';
|
||||
import { useRouter } from 'vue-router/composables';
|
||||
import { Notification } from 'element-ui';
|
||||
import { IFormBoxConfig } from 'n8n-design-system';
|
||||
import type { IFormBoxConfig } from 'n8n-design-system';
|
||||
import AuthView from '@/views/AuthView.vue';
|
||||
import { i18n as locale } from '@/plugins/i18n';
|
||||
import { useSSOStore } from '@/stores/sso';
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { IUser } from '@/Interface';
|
||||
import type { IUser } from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
|
||||
import CopyInput from '@/components/CopyInput.vue';
|
||||
|
||||
@@ -61,7 +61,7 @@ import CommunityPackageCard from '@/components/CommunityPackageCard.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { pushConnection } from '@/mixins/pushConnection';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { PublicInstalledPackage } from 'n8n-workflow';
|
||||
import type { PublicInstalledPackage } from 'n8n-workflow';
|
||||
|
||||
import { useCommunityNodesStore } from '@/stores/communityNodes';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { IFakeDoor } from '@/Interface';
|
||||
import type { IFakeDoor } from '@/Interface';
|
||||
import { defineComponent } from 'vue';
|
||||
import FeatureComingSoon from '@/components/FeatureComingSoon.vue';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
<script lang="ts">
|
||||
import { convertToDisplayDate } from '@/utils';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import {
|
||||
import type {
|
||||
ILdapConfig,
|
||||
ILdapSyncData,
|
||||
ILdapSyncTable,
|
||||
@@ -170,7 +170,7 @@ import { useSettingsStore } from '@/stores/settings';
|
||||
import { getLdapSynchronizations } from '@/api/ldap';
|
||||
import { N8N_CONTACT_EMAIL, N8N_SALES_EMAIL } from '@/constants';
|
||||
import { createEventBus } from '@/event-bus';
|
||||
import { N8nFormInputs } from 'n8n-design-system';
|
||||
import type { N8nFormInputs } from 'n8n-design-system';
|
||||
|
||||
type N8nFormInputsRef = InstanceType<typeof N8nFormInputs>;
|
||||
|
||||
|
||||
@@ -89,11 +89,8 @@ import { useLogStreamingStore } from '../stores/logStreamingStore';
|
||||
import { useSettingsStore } from '../stores/settings';
|
||||
import { useUIStore } from '../stores/ui';
|
||||
import { LOG_STREAM_MODAL_KEY, EnterpriseEditionFeature } from '../constants';
|
||||
import {
|
||||
deepCopy,
|
||||
defaultMessageEventBusDestinationOptions,
|
||||
MessageEventBusDestinationOptions,
|
||||
} from 'n8n-workflow';
|
||||
import type { MessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||
import { deepCopy, defaultMessageEventBusDestinationOptions } from 'n8n-workflow';
|
||||
import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
|
||||
import EventDestinationCard from '@/components/SettingsLogStreaming/EventDestinationCard.ee.vue';
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
<script lang="ts">
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { CHANGE_PASSWORD_MODAL_KEY, SignInType } from '@/constants';
|
||||
import { IFormInputs, IUser } from '@/Interface';
|
||||
import type { IFormInputs, IUser } from '@/Interface';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
import { useSettingsStore } from '@/stores/settings';
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
import { computed, onMounted, ref } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router/composables';
|
||||
import { Notification } from 'element-ui';
|
||||
import { UsageTelemetry, useUsageStore } from '@/stores/usage';
|
||||
import type { UsageTelemetry } from '@/stores/usage';
|
||||
import { useUsageStore } from '@/stores/usage';
|
||||
import { telemetry } from '@/plugins/telemetry';
|
||||
import { i18n as locale } from '@/plugins/i18n';
|
||||
import { N8N_PRICING_PAGE_URL } from '@/constants';
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
import { EnterpriseEditionFeature, INVITE_USER_MODAL_KEY, VIEWS } from '@/constants';
|
||||
|
||||
import PageAlert from '../components/PageAlert.vue';
|
||||
import { IUser, IUserListAction } from '@/Interface';
|
||||
import type { IUser, IUserListAction } from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import { copyPaste } from '@/mixins/copyPaste';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { Route } from 'vue-router';
|
||||
import type { Route } from 'vue-router';
|
||||
|
||||
import { VIEWS } from '@/constants';
|
||||
import SettingsSidebar from '@/components/SettingsSidebar.vue';
|
||||
|
||||
@@ -13,7 +13,7 @@ import AuthView from './AuthView.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { IFormBoxConfig } from '@/Interface';
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
|
||||
@@ -13,7 +13,7 @@ import AuthView from './AuthView.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { IFormBoxConfig } from '@/Interface';
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUsersStore } from '@/stores/users';
|
||||
|
||||
@@ -12,7 +12,7 @@ import AuthView from './AuthView.vue';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { IFormBoxConfig } from '@/Interface';
|
||||
import type { IFormBoxConfig } from '@/Interface';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
|
||||
@@ -55,7 +55,7 @@ import TemplateList from '@/components/TemplateList.vue';
|
||||
import TemplatesView from './TemplatesView.vue';
|
||||
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
import {
|
||||
import type {
|
||||
ITemplatesCollection,
|
||||
ITemplatesCollectionFull,
|
||||
ITemplatesWorkflow,
|
||||
|
||||
@@ -81,14 +81,14 @@ import TemplateList from '@/components/TemplateList.vue';
|
||||
import TemplatesView from './TemplatesView.vue';
|
||||
|
||||
import { genericHelpers } from '@/mixins/genericHelpers';
|
||||
import {
|
||||
import type {
|
||||
ITemplatesCollection,
|
||||
ITemplatesWorkflow,
|
||||
ITemplatesQuery,
|
||||
ITemplatesCategory,
|
||||
} from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { IDataObject } from 'n8n-workflow';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { setPageTitle } from '@/utils';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { debounceHelper } from '@/mixins/debounce';
|
||||
|
||||
@@ -59,7 +59,7 @@ import TemplateDetails from '@/components/TemplateDetails.vue';
|
||||
import TemplatesView from './TemplatesView.vue';
|
||||
import WorkflowPreview from '@/components/WorkflowPreview.vue';
|
||||
|
||||
import { ITemplatesWorkflow, ITemplatesWorkflowFull } from '@/Interface';
|
||||
import type { ITemplatesWorkflow, ITemplatesWorkflowFull } from '@/Interface';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { setPageTitle } from '@/utils';
|
||||
|
||||
@@ -7,7 +7,11 @@ import ResourcesListLayout from '@/components/layouts/ResourcesListLayout.vue';
|
||||
import VariablesRow from '@/components/VariablesRow.vue';
|
||||
|
||||
import { EnterpriseEditionFeature } from '@/constants';
|
||||
import { DatatableColumn, EnvironmentVariable, TemporaryEnvironmentVariable } from '@/Interface';
|
||||
import type {
|
||||
DatatableColumn,
|
||||
EnvironmentVariable,
|
||||
TemporaryEnvironmentVariable,
|
||||
} from '@/Interface';
|
||||
import { uid } from 'n8n-design-system/utils';
|
||||
import { getVariablesPermissions } from '@/permissions';
|
||||
|
||||
|
||||
@@ -100,8 +100,8 @@ import WorkflowCard from '@/components/WorkflowCard.vue';
|
||||
import TemplateCard from '@/components/TemplateCard.vue';
|
||||
import { EnterpriseEditionFeature, ASSUMPTION_EXPERIMENT, VIEWS } from '@/constants';
|
||||
import { debounceHelper } from '@/mixins/debounce';
|
||||
import Vue from 'vue';
|
||||
import { ITag, IUser, IWorkflowDb } from '@/Interface';
|
||||
import type Vue from 'vue';
|
||||
import type { ITag, IUser, IWorkflowDb } from '@/Interface';
|
||||
import TagsDropdown from '@/components/TagsDropdown.vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUIStore } from '@/stores/ui';
|
||||
|
||||
@@ -9,7 +9,7 @@ import { useSSOStore } from '@/stores/sso';
|
||||
import { STORES } from '@/constants';
|
||||
import { SETTINGS_STORE_DEFAULT_STATE, waitAllPromises } from '@/__tests__/utils';
|
||||
import { i18nInstance } from '@/plugins/i18n';
|
||||
import { SamlPreferences, SamlPreferencesExtractedData } from '@/Interface';
|
||||
import type { SamlPreferences, SamlPreferencesExtractedData } from '@/Interface';
|
||||
|
||||
let pinia: ReturnType<typeof createTestingPinia>;
|
||||
let ssoStore: ReturnType<typeof useSSOStore>;
|
||||
|
||||
Reference in New Issue
Block a user