refactor(editor): Drop vue-typed-mixins (no-changelog) (#6257)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-05-16 09:43:46 +00:00 committed by GitHub
parent 79d0a0f247
commit ebb3aaf61e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 340 additions and 287 deletions

View file

@ -25,5 +25,11 @@ module.exports = {
'vue/no-deprecated-slot-scope-attribute': 'error', 'vue/no-deprecated-slot-scope-attribute': 'error',
'vue/no-multiple-template-root': 'error', 'vue/no-multiple-template-root': 'error',
'vue/v-slot-style': 'error', 'vue/v-slot-style': 'error',
// TODO: remove these
'vue/no-unused-components': 'warn',
'vue/return-in-computed-property': 'warn',
'vue/no-mutating-props': 'warn',
'@typescript-eslint/no-floating-promises': 'warn',
}, },
}; };

View file

@ -35,7 +35,6 @@
"markdown-it-link-attributes": "^4.0.0", "markdown-it-link-attributes": "^4.0.0",
"markdown-it-task-lists": "^2.1.1", "markdown-it-task-lists": "^2.1.1",
"vue": "^2.7.14", "vue": "^2.7.14",
"vue-typed-mixins": "^0.2.0",
"xss": "^1.0.14" "xss": "^1.0.14"
}, },
"devDependencies": { "devDependencies": {
@ -71,7 +70,6 @@
"markdown-it-task-lists": "^2.1.1", "markdown-it-task-lists": "^2.1.1",
"sanitize-html": "2.10.0", "sanitize-html": "2.10.0",
"vue": "^2.7.14", "vue": "^2.7.14",
"vue-typed-mixins": "^0.2.0",
"vue2-boring-avatars": "^0.3.8", "vue2-boring-avatars": "^0.3.8",
"xss": "^1.0.14" "xss": "^1.0.14"
} }

View file

@ -76,7 +76,6 @@
"vue-infinite-loading": "^2.4.5", "vue-infinite-loading": "^2.4.5",
"vue-json-pretty": "1.9.3", "vue-json-pretty": "1.9.3",
"vue-router": "^3.6.5", "vue-router": "^3.6.5",
"vue-typed-mixins": "^0.2.0",
"vue2-teleport": "^1.0.1", "vue2-teleport": "^1.0.1",
"vue2-touch-events": "^3.2.1", "vue2-touch-events": "^3.2.1",
"xss": "^1.0.14" "xss": "^1.0.14"

View file

@ -27,6 +27,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import Modals from '@/components/Modals.vue'; import Modals from '@/components/Modals.vue';
import LoadingView from '@/views/LoadingView.vue'; import LoadingView from '@/views/LoadingView.vue';
import Telemetry from '@/components/Telemetry.vue'; import Telemetry from '@/components/Telemetry.vue';
@ -35,7 +38,6 @@ import { CLOUD_TRIAL_CHECK_INTERVAL, HIRING_BANNER, LOCAL_STORAGE_THEME, VIEWS }
import { userHelpers } from '@/mixins/userHelpers'; import { userHelpers } from '@/mixins/userHelpers';
import { loadLanguage } from '@/plugins/i18n'; import { loadLanguage } from '@/plugins/i18n';
import { useGlobalLinkActions, useToast } from '@/composables'; import { useGlobalLinkActions, useToast } from '@/composables';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
@ -49,7 +51,6 @@ import { useRoute } from 'vue-router/composables';
import { useVersionControlStore } from '@/stores/versionControl.store'; import { useVersionControlStore } from '@/stores/versionControl.store';
import { useUsageStore } from '@/stores/usage.store'; import { useUsageStore } from '@/stores/usage.store';
import { useExternalHooks } from '@/composables'; import { useExternalHooks } from '@/composables';
import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
name: 'App', name: 'App',

View file

@ -19,18 +19,19 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { IBinaryData, IRunData } from 'n8n-workflow'; import type { IBinaryData, IRunData } from 'n8n-workflow';
import BinaryDataDisplayEmbed from '@/components/BinaryDataDisplayEmbed.vue'; import BinaryDataDisplayEmbed from '@/components/BinaryDataDisplayEmbed.vue';
import { nodeHelpers } from '@/mixins/nodeHelpers'; import { nodeHelpers } from '@/mixins/nodeHelpers';
import mixins from 'vue-typed-mixins';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
export default mixins(nodeHelpers).extend({ export default defineComponent({
name: 'BinaryDataDisplay', name: 'BinaryDataDisplay',
mixins: [nodeHelpers],
components: { components: {
BinaryDataDisplayEmbed, BinaryDataDisplayEmbed,
}, },

View file

@ -19,15 +19,15 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { IBinaryData } from 'n8n-workflow'; import type { IBinaryData } from 'n8n-workflow';
import { jsonParse } from 'n8n-workflow'; import { jsonParse } from 'n8n-workflow';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import VueJsonPretty from 'vue-json-pretty'; import VueJsonPretty from 'vue-json-pretty';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores'; import { useWorkflowsStore } from '@/stores';
import Vue from 'vue';
export default Vue.extend({ export default defineComponent({
name: 'BinaryDataDisplayEmbed', name: 'BinaryDataDisplayEmbed',
components: { components: {
VueJsonPretty, VueJsonPretty,

View file

@ -5,6 +5,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { BREAKPOINT_SM, BREAKPOINT_MD, BREAKPOINT_LG, BREAKPOINT_XL } from '@/constants'; import { BREAKPOINT_SM, BREAKPOINT_MD, BREAKPOINT_LG, BREAKPOINT_XL } from '@/constants';
/** /**
@ -16,12 +17,12 @@ import { BREAKPOINT_SM, BREAKPOINT_MD, BREAKPOINT_LG, BREAKPOINT_XL } from '@/co
* xl >= 1920 * xl >= 1920
*/ */
import mixins from 'vue-typed-mixins';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
export default mixins(genericHelpers, debounceHelper).extend({ export default defineComponent({
name: 'BreakpointsObserver', name: 'BreakpointsObserver',
mixins: [genericHelpers, debounceHelper],
props: ['valueXS', 'valueXL', 'valueLG', 'valueMD', 'valueSM', 'valueDefault'], props: ['valueXS', 'valueXL', 'valueLG', 'valueMD', 'valueSM', 'valueDefault'],
data() { data() {
return { return {

View file

@ -40,8 +40,8 @@ import { useUsersStore } from '@/stores/users.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default defineComponent({ export default defineComponent({
components: { Modal },
name: 'ChangePasswordModal', name: 'ChangePasswordModal',
components: { Modal },
props: { props: {
modalName: { modalName: {
type: String, type: String,

View file

@ -19,9 +19,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { mapStores } from 'pinia'; import { mapStores } from 'pinia';
import mixins from 'vue-typed-mixins';
import type { LanguageSupport } from '@codemirror/language'; import type { LanguageSupport } from '@codemirror/language';
import type { Extension } from '@codemirror/state'; import type { Extension } from '@codemirror/state';
@ -47,8 +47,9 @@ import { linterExtension } from './linter';
import { completerExtension } from './completer'; import { completerExtension } from './completer';
import { codeNodeEditorTheme } from './theme'; import { codeNodeEditorTheme } from './theme';
export default mixins(linterExtension, completerExtension, workflowHelpers).extend({ export default defineComponent({
name: 'code-node-editor', name: 'code-node-editor',
mixins: [linterExtension, completerExtension, workflowHelpers],
components: { Modal }, components: { Modal },
props: { props: {
mode: { mode: {

View file

@ -1,7 +1,8 @@
import Vue from 'vue'; import Vue, { defineComponent } from 'vue';
import mixins from 'vue-typed-mixins';
import { autocompletion } from '@codemirror/autocomplete'; import { autocompletion } from '@codemirror/autocomplete';
import { localCompletionSource } from '@codemirror/lang-javascript'; import { localCompletionSource } from '@codemirror/lang-javascript';
import type { Completion, CompletionContext, CompletionResult } from '@codemirror/autocomplete';
import type { Extension } from '@codemirror/state';
import { baseCompletions } from './completions/base.completions'; import { baseCompletions } from './completions/base.completions';
import { jsSnippets } from './completions/js.snippets'; import { jsSnippets } from './completions/js.snippets';
@ -15,11 +16,10 @@ import { itemFieldCompletions } from './completions/itemField.completions';
import { jsonFieldCompletions } from './completions/jsonField.completions'; import { jsonFieldCompletions } from './completions/jsonField.completions';
import { variablesCompletions } from './completions/variables.completions'; import { variablesCompletions } from './completions/variables.completions';
import type { Completion, CompletionContext, CompletionResult } from '@codemirror/autocomplete';
import type { Extension } from '@codemirror/state';
import type { CodeNodeEditorMixin } from './types'; import type { CodeNodeEditorMixin } from './types';
export const completerExtension = mixins( export const completerExtension = defineComponent({
mixins: [
Vue as CodeNodeEditorMixin, Vue as CodeNodeEditorMixin,
baseCompletions, baseCompletions,
requireCompletions, requireCompletions,
@ -31,7 +31,7 @@ export const completerExtension = mixins(
itemIndexCompletions, itemIndexCompletions,
itemFieldCompletions, itemFieldCompletions,
jsonFieldCompletions, jsonFieldCompletions,
).extend({ ],
methods: { methods: {
autocompletionExtension(language: 'javaScript' | 'python'): Extension { autocompletionExtension(language: 'javaScript' | 'python'): Extension {
const completions = []; const completions = [];

View file

@ -11,13 +11,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import Card from '@/components/CollectionWorkflowCard.vue'; import Card from '@/components/CollectionWorkflowCard.vue';
import mixins from 'vue-typed-mixins';
import NodeList from '@/components/NodeList.vue'; import NodeList from '@/components/NodeList.vue';
export default mixins(genericHelpers).extend({ export default defineComponent({
name: 'CollectionCard', name: 'CollectionCard',
mixins: [genericHelpers],
props: { props: {
loading: { loading: {
type: Boolean, type: Boolean,

View file

@ -46,6 +46,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { Component } from 'vue';
import { mapStores } from 'pinia';
import type { INodeUi, IUpdateInformation } from '@/Interface'; import type { INodeUi, IUpdateInformation } from '@/Interface';
import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow'; import type { INodeProperties, INodePropertyOptions } from 'n8n-workflow';
@ -55,13 +58,11 @@ import { nodeHelpers } from '@/mixins/nodeHelpers';
import { get } from 'lodash-es'; import { get } from 'lodash-es';
import mixins from 'vue-typed-mixins';
import type { Component } from 'vue';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
export default mixins(nodeHelpers).extend({ export default defineComponent({
name: 'CollectionParameter', name: 'CollectionParameter',
mixins: [nodeHelpers],
props: [ props: [
'hideDelete', // boolean 'hideDelete', // boolean
'nodeValues', // NodeParameters 'nodeValues', // NodeParameters

View file

@ -11,11 +11,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import mixins from 'vue-typed-mixins';
export default mixins(genericHelpers).extend({ export default defineComponent({
name: 'Card', name: 'Card',
mixins: [genericHelpers],
props: { props: {
loading: { loading: {
type: Boolean, type: Boolean,

View file

@ -26,6 +26,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import type { ITemplatesCollection } from '@/Interface'; import type { ITemplatesCollection } from '@/Interface';
import Card from '@/components/CollectionWorkflowCard.vue'; import Card from '@/components/CollectionWorkflowCard.vue';
@ -33,12 +34,12 @@ import CollectionCard from '@/components/CollectionCard.vue';
import VueAgile from 'vue-agile'; import VueAgile from 'vue-agile';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import mixins from 'vue-typed-mixins';
type SliderRef = InstanceType<typeof VueAgile>; type SliderRef = InstanceType<typeof VueAgile>;
export default mixins(genericHelpers).extend({ export default defineComponent({
name: 'CollectionsCarousel', name: 'CollectionsCarousel',
mixins: [genericHelpers],
props: { props: {
collections: { collections: {
type: Array as PropType<ITemplatesCollection[]>, type: Array as PropType<ITemplatesCollection[]>,

View file

@ -33,21 +33,21 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { IN8nPromptResponse } from '@/Interface'; import type { IN8nPromptResponse } from '@/Interface';
import { VALID_EMAIL_REGEX } from '@/constants'; import { VALID_EMAIL_REGEX } from '@/constants';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import Modal from '@/components/Modal.vue'; import Modal from '@/components/Modal.vue';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
export default mixins(workflowHelpers).extend({ export default defineComponent({
components: { Modal },
name: 'ContactPromptModal', name: 'ContactPromptModal',
mixins: [workflowHelpers],
components: { Modal },
props: ['modalName'], props: ['modalName'],
setup() { setup() {
return { return {

View file

@ -17,11 +17,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { copyPaste } from '@/mixins/copyPaste'; import { copyPaste } from '@/mixins/copyPaste';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
export default mixins(copyPaste).extend({ export default defineComponent({
mixins: [copyPaste],
props: { props: {
label: { label: {
type: String, type: String,

View file

@ -129,6 +129,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { ICredentialType, INodeTypeDescription } from 'n8n-workflow'; import type { ICredentialType, INodeTypeDescription } from 'n8n-workflow';
import { getAppNameFromCredType, isCommunityPackageName } from '@/utils'; import { getAppNameFromCredType, isCommunityPackageName } from '@/utils';
@ -139,7 +142,6 @@ import OauthButton from './OauthButton.vue';
import { addCredentialTranslation } from '@/plugins/i18n'; import { addCredentialTranslation } from '@/plugins/i18n';
import { BUILTIN_CREDENTIALS_DOCS_URL, DOCS_DOMAIN, EnterpriseEditionFeature } from '@/constants'; import { BUILTIN_CREDENTIALS_DOCS_URL, DOCS_DOMAIN, EnterpriseEditionFeature } from '@/constants';
import type { IPermissions } from '@/permissions'; import type { IPermissions } from '@/permissions';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
@ -149,9 +151,8 @@ import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import type { ICredentialsResponse } from '@/Interface'; import type { ICredentialsResponse } from '@/Interface';
import AuthTypeSelector from '@/components/CredentialEdit/AuthTypeSelector.vue'; import AuthTypeSelector from '@/components/CredentialEdit/AuthTypeSelector.vue';
import GoogleAuthButton from './GoogleAuthButton.vue'; import GoogleAuthButton from './GoogleAuthButton.vue';
import Vue from 'vue';
export default Vue.extend({ export default defineComponent({
name: 'CredentialConfig', name: 'CredentialConfig',
components: { components: {
AuthTypeSelector, AuthTypeSelector,

View file

@ -110,6 +110,8 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue from 'vue';
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { ICredentialsResponse, IUser } from '@/Interface'; import type { ICredentialsResponse, IUser } from '@/Interface';
@ -129,7 +131,6 @@ import type {
import { NodeHelpers } from 'n8n-workflow'; import { NodeHelpers } from 'n8n-workflow';
import CredentialIcon from '@/components/CredentialIcon.vue'; import CredentialIcon from '@/components/CredentialIcon.vue';
import mixins from 'vue-typed-mixins';
import { nodeHelpers } from '@/mixins/nodeHelpers'; import { nodeHelpers } from '@/mixins/nodeHelpers';
import { useToast, useMessage } from '@/composables'; import { useToast, useMessage } from '@/composables';
@ -146,7 +147,6 @@ import type { IPermissions } from '@/permissions';
import { getCredentialPermissions } from '@/permissions'; import { getCredentialPermissions } from '@/permissions';
import type { IMenuItem } from 'n8n-design-system'; import type { IMenuItem } from 'n8n-design-system';
import { createEventBus } from 'n8n-design-system'; import { createEventBus } from 'n8n-design-system';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
@ -166,8 +166,9 @@ interface NodeAccessMap {
[nodeType: string]: ICredentialNodeAccess | null; [nodeType: string]: ICredentialNodeAccess | null;
} }
export default mixins(nodeHelpers, externalHooks).extend({ export default defineComponent({
name: 'CredentialEdit', name: 'CredentialEdit',
mixins: [nodeHelpers, externalHooks],
components: { components: {
CredentialSharing, CredentialSharing,
CredentialConfig, CredentialConfig,

View file

@ -7,12 +7,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useCredentialsStore } from '@/stores/credentials.store'; import { useCredentialsStore } from '@/stores/credentials.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import type { ICredentialType, INodeTypeDescription } from 'n8n-workflow'; import type { ICredentialType, INodeTypeDescription } from 'n8n-workflow';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -58,7 +58,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import Modal from './Modal.vue'; import Modal from './Modal.vue';
import { CREDENTIAL_SELECT_MODAL_KEY } from '../constants'; import { CREDENTIAL_SELECT_MODAL_KEY } from '../constants';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
@ -68,8 +68,9 @@ import { useWorkflowsStore } from '@/stores/workflows.store';
import { useCredentialsStore } from '@/stores/credentials.store'; import { useCredentialsStore } from '@/stores/credentials.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'CredentialsSelectModal', name: 'CredentialsSelectModal',
mixins: [externalHooks],
components: { components: {
Modal, Modal,
}, },

View file

@ -79,10 +79,10 @@ import { useUsersStore } from '@/stores/users.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default defineComponent({ export default defineComponent({
name: 'DeleteUserModal',
components: { components: {
Modal, Modal,
}, },
name: 'DeleteUserModal',
props: { props: {
modalName: { modalName: {
type: String, type: String,

View file

@ -5,10 +5,10 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useNDVStore } from '@/stores/ndv.store';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -49,14 +49,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { MAX_WORKFLOW_NAME_LENGTH, PLACEHOLDER_EMPTY_WORKFLOW_ID } from '@/constants'; import { MAX_WORKFLOW_NAME_LENGTH, PLACEHOLDER_EMPTY_WORKFLOW_ID } from '@/constants';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import TagsDropdown from '@/components/TagsDropdown.vue'; import TagsDropdown from '@/components/TagsDropdown.vue';
import Modal from '@/components/Modal.vue'; import Modal from '@/components/Modal.vue';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import type { IWorkflowDataUpdate } from '@/Interface'; import type { IWorkflowDataUpdate } from '@/Interface';
@ -66,9 +65,10 @@ import { useUsersStore } from '@/stores/users.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
import { useCredentialsStore } from '@/stores'; import { useCredentialsStore } from '@/stores';
export default mixins(workflowHelpers).extend({ export default defineComponent({
components: { TagsDropdown, Modal },
name: 'DuplicateWorkflow', name: 'DuplicateWorkflow',
mixins: [workflowHelpers],
components: { TagsDropdown, Modal },
props: ['modalName', 'isActive', 'data'], props: ['modalName', 'isActive', 'data'],
setup() { setup() {
return { return {

View file

@ -118,20 +118,21 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import VueJsonPretty from 'vue-json-pretty'; import VueJsonPretty from 'vue-json-pretty';
import { copyPaste } from '@/mixins/copyPaste'; import { copyPaste } from '@/mixins/copyPaste';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import mixins from 'vue-typed-mixins';
import { MAX_DISPLAY_DATA_SIZE } from '@/constants'; import { MAX_DISPLAY_DATA_SIZE } from '@/constants';
import type { INodeProperties, INodePropertyCollection, INodePropertyOptions } from 'n8n-workflow'; import type { INodeProperties, INodePropertyCollection, INodePropertyOptions } from 'n8n-workflow';
import { sanitizeHtml } from '@/utils'; import { sanitizeHtml } from '@/utils';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
export default mixins(copyPaste).extend({ export default defineComponent({
name: 'NodeErrorView', name: 'NodeErrorView',
mixins: [copyPaste],
props: ['error'], props: ['error'],
components: { components: {
VueJsonPretty, VueJsonPretty,

View file

@ -5,12 +5,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import mixins from 'vue-typed-mixins'; export default defineComponent({
export default mixins(genericHelpers).extend({
name: 'ExecutionTime', name: 'ExecutionTime',
mixins: [genericHelpers],
props: ['startTime'], props: ['startTime'],
computed: { computed: {
time(): string { time(): string {

View file

@ -280,7 +280,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue, { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import ExecutionTime from '@/components/ExecutionTime.vue'; import ExecutionTime from '@/components/ExecutionTime.vue';
import WorkflowActivator from '@/components/WorkflowActivator.vue'; import WorkflowActivator from '@/components/WorkflowActivator.vue';
import ExecutionFilter from '@/components/ExecutionFilter.vue'; import ExecutionFilter from '@/components/ExecutionFilter.vue';
@ -299,15 +300,14 @@ import type {
} from '@/Interface'; } from '@/Interface';
import type { IExecutionsSummary, ExecutionStatus } from 'n8n-workflow'; import type { IExecutionsSummary, ExecutionStatus } from 'n8n-workflow';
import { range as _range } from 'lodash-es'; import { range as _range } from 'lodash-es';
import mixins from 'vue-typed-mixins';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { isEmpty, setPageTitle } from '@/utils'; import { isEmpty, setPageTitle } from '@/utils';
import { executionFilterToQueryFilter } from '@/utils/executionUtils'; import { executionFilterToQueryFilter } from '@/utils/executionUtils';
export default mixins(externalHooks, genericHelpers, executionHelpers).extend({ export default defineComponent({
name: 'ExecutionsList', name: 'ExecutionsList',
mixins: [externalHooks, genericHelpers, executionHelpers],
components: { components: {
ExecutionTime, ExecutionTime,
WorkflowActivator, WorkflowActivator,

View file

@ -81,15 +81,16 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { IExecutionsSummary } from '@/Interface'; import type { IExecutionsSummary } from '@/Interface';
import mixins from 'vue-typed-mixins';
import type { IExecutionUIData } from '@/mixins/executionsHelpers'; import type { IExecutionUIData } from '@/mixins/executionsHelpers';
import { executionHelpers } from '@/mixins/executionsHelpers'; import { executionHelpers } from '@/mixins/executionsHelpers';
import { VIEWS } from '@/constants'; import { VIEWS } from '@/constants';
import ExecutionTime from '@/components/ExecutionTime.vue'; import ExecutionTime from '@/components/ExecutionTime.vue';
export default mixins(executionHelpers).extend({ export default defineComponent({
name: 'execution-card', name: 'execution-card',
mixins: [executionHelpers],
components: { components: {
ExecutionTime, ExecutionTime,
}, },

View file

@ -126,20 +126,22 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useMessage } from '@/composables'; import { useMessage } from '@/composables';
import WorkflowPreview from '@/components/WorkflowPreview.vue'; import WorkflowPreview from '@/components/WorkflowPreview.vue';
import type { IExecutionUIData } from '@/mixins/executionsHelpers'; import type { IExecutionUIData } from '@/mixins/executionsHelpers';
import { executionHelpers } from '@/mixins/executionsHelpers'; import { executionHelpers } from '@/mixins/executionsHelpers';
import { MODAL_CONFIRM, VIEWS } from '@/constants'; import { MODAL_CONFIRM, VIEWS } from '@/constants';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { Dropdown as ElDropdown } from 'element-ui'; import { Dropdown as ElDropdown } from 'element-ui';
type RetryDropdownRef = InstanceType<typeof ElDropdown> & { hide: () => void }; type RetryDropdownRef = InstanceType<typeof ElDropdown> & { hide: () => void };
export default mixins(executionHelpers).extend({ export default defineComponent({
name: 'execution-preview', name: 'execution-preview',
mixins: [executionHelpers],
components: { components: {
ElDropdown, ElDropdown,
WorkflowPreview, WorkflowPreview,

View file

@ -36,15 +36,15 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { mapStores } from 'pinia';
import { PLACEHOLDER_EMPTY_WORKFLOW_ID, WORKFLOW_SETTINGS_MODAL_KEY } from '@/constants'; import { PLACEHOLDER_EMPTY_WORKFLOW_ID, WORKFLOW_SETTINGS_MODAL_KEY } from '@/constants';
import type { IWorkflowSettings } from 'n8n-workflow'; import type { IWorkflowSettings } from 'n8n-workflow';
import { deepCopy } from 'n8n-workflow'; import { deepCopy } from 'n8n-workflow';
import mixins from 'vue-typed-mixins';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
interface IWorkflowSaveSettings { interface IWorkflowSaveSettings {
@ -53,8 +53,9 @@ interface IWorkflowSaveSettings {
saveTestExecutions: boolean; saveTestExecutions: boolean;
} }
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'executions-info-accordion', name: 'executions-info-accordion',
mixins: [workflowHelpers],
props: { props: {
initiallyExpanded: { initiallyExpanded: {
type: Boolean, type: Boolean,

View file

@ -23,6 +23,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import ExecutionsSidebar from '@/components/ExecutionsView/ExecutionsSidebar.vue'; import ExecutionsSidebar from '@/components/ExecutionsView/ExecutionsSidebar.vue';
import { import {
MAIN_HEADER_TABS, MAIN_HEADER_TABS,
@ -48,7 +51,6 @@ import type {
INodeTypeNameVersion, INodeTypeNameVersion,
} from 'n8n-workflow'; } from 'n8n-workflow';
import { NodeHelpers } from 'n8n-workflow'; import { NodeHelpers } from 'n8n-workflow';
import mixins from 'vue-typed-mixins';
import { useToast, useMessage } from '@/composables'; import { useToast, useMessage } from '@/composables';
import { v4 as uuid } from 'uuid'; import { v4 as uuid } from 'uuid';
import type { Route } from 'vue-router'; import type { Route } from 'vue-router';
@ -57,7 +59,6 @@ import { range as _range } from 'lodash-es';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import { getNodeViewTab, NO_NETWORK_ERROR_CODE } from '@/utils'; import { getNodeViewTab, NO_NETWORK_ERROR_CODE } from '@/utils';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
@ -70,8 +71,9 @@ const MAX_LOADING_ATTEMPTS = 5;
// Number of executions fetched on each page // Number of executions fetched on each page
const LOAD_MORE_PAGE_SIZE = 100; const LOAD_MORE_PAGE_SIZE = 100;
export default mixins(executionHelpers, debounceHelper, workflowHelpers).extend({ export default defineComponent({
name: 'executions-list', name: 'executions-list',
mixins: [executionHelpers, debounceHelper, workflowHelpers],
components: { components: {
ExecutionsSidebar, ExecutionsSidebar,
}, },

View file

@ -22,8 +22,8 @@ import type { PropType } from 'vue';
import type { EventBus } from '@/event-bus'; import type { EventBus } from '@/event-bus';
export default defineComponent({ export default defineComponent({
components: { ExpandableInputBase },
name: 'ExpandableInputEdit', name: 'ExpandableInputEdit',
components: { ExpandableInputBase },
props: { props: {
value: {}, value: {},
placeholder: {}, placeholder: {},

View file

@ -16,8 +16,8 @@ import { defineComponent } from 'vue';
import ExpandableInputBase from './ExpandableInputBase.vue'; import ExpandableInputBase from './ExpandableInputBase.vue';
export default defineComponent({ export default defineComponent({
components: { ExpandableInputBase },
name: 'ExpandableInputPreview', name: 'ExpandableInputPreview',
components: { ExpandableInputBase },
props: ['value'], props: ['value'],
}); });
</script> </script>

View file

@ -74,6 +74,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import ExpressionEditorModalInput from '@/components/ExpressionEditorModal/ExpressionEditorModalInput.vue'; import ExpressionEditorModalInput from '@/components/ExpressionEditorModal/ExpressionEditorModalInput.vue';
import ExpressionEditorModalOutput from '@/components/ExpressionEditorModal/ExpressionEditorModalOutput.vue'; import ExpressionEditorModalOutput from '@/components/ExpressionEditorModal/ExpressionEditorModalOutput.vue';
import VariableSelector from '@/components/VariableSelector.vue'; import VariableSelector from '@/components/VariableSelector.vue';
@ -85,17 +87,16 @@ import { genericHelpers } from '@/mixins/genericHelpers';
import { EXPRESSIONS_DOCS_URL } from '@/constants'; import { EXPRESSIONS_DOCS_URL } from '@/constants';
import mixins from 'vue-typed-mixins';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { createExpressionTelemetryPayload } from '@/utils/telemetryUtils'; import { createExpressionTelemetryPayload } from '@/utils/telemetryUtils';
import type { Segment } from '@/types/expressions'; import type { Segment } from '@/types/expressions';
export default mixins(externalHooks, genericHelpers, debounceHelper).extend({ export default defineComponent({
name: 'ExpressionEdit', name: 'ExpressionEdit',
mixins: [externalHooks, genericHelpers, debounceHelper],
props: ['dialogVisible', 'parameter', 'path', 'value', 'eventSource'], props: ['dialogVisible', 'parameter', 'path', 'value', 'eventSource'],
components: { components: {
ExpressionEditorModalInput, ExpressionEditorModalInput,

View file

@ -3,7 +3,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { EditorView, keymap } from '@codemirror/view'; import { EditorView, keymap } from '@codemirror/view';
import { EditorState, Prec } from '@codemirror/state'; import { EditorState, Prec } from '@codemirror/state';
import { history, redo } from '@codemirror/commands'; import { history, redo } from '@codemirror/commands';
@ -20,8 +20,9 @@ import { acceptCompletion, autocompletion } from '@codemirror/autocomplete';
import type { IVariableItemSelected } from '@/Interface'; import type { IVariableItemSelected } from '@/Interface';
export default mixins(expressionManager, completionManager, workflowHelpers).extend({ export default defineComponent({
name: 'ExpressionEditorModalInput', name: 'ExpressionEditorModalInput',
mixins: [expressionManager, completionManager, workflowHelpers],
props: { props: {
value: { value: {
type: String, type: String,

View file

@ -29,13 +29,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { IFakeDoor } from '@/Interface'; import type { IFakeDoor } from '@/Interface';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
name: 'FeatureComingSoon', name: 'FeatureComingSoon',

View file

@ -6,8 +6,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { VIEWS } from '@/constants';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { VIEWS } from '@/constants';
export default defineComponent({ export default defineComponent({
name: 'GoBackButton', name: 'GoBackButton',

View file

@ -3,7 +3,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import prettier from 'prettier/standalone'; import prettier from 'prettier/standalone';
import htmlParser from 'prettier/parser-html'; import htmlParser from 'prettier/parser-html';
import cssParser from 'prettier/parser-postcss'; import cssParser from 'prettier/parser-postcss';
@ -39,8 +39,9 @@ import { theme } from './theme';
import { nonTakenRanges } from './utils'; import { nonTakenRanges } from './utils';
import type { Range, Section } from './types'; import type { Range, Section } from './types';
export default mixins(expressionManager).extend({ export default defineComponent({
name: 'HtmlEditor', name: 'HtmlEditor',
mixins: [expressionManager],
props: { props: {
html: { html: {
type: String, type: String,

View file

@ -3,7 +3,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia'; import { mapStores } from 'pinia';
import { EditorView, keymap } from '@codemirror/view'; import { EditorView, keymap } from '@codemirror/view';
import { EditorState, Prec } from '@codemirror/state'; import { EditorState, Prec } from '@codemirror/state';
@ -19,8 +19,9 @@ import { inputTheme } from './theme';
import { n8nLang } from '@/plugins/codemirror/n8nLang'; import { n8nLang } from '@/plugins/codemirror/n8nLang';
import { completionManager } from '@/mixins/completionManager'; import { completionManager } from '@/mixins/completionManager';
export default mixins(completionManager, expressionManager, workflowHelpers).extend({ export default defineComponent({
name: 'InlineExpressionEditorInput', name: 'InlineExpressionEditorInput',
mixins: [completionManager, expressionManager, workflowHelpers],
props: { props: {
value: { value: {
type: String, type: String,

View file

@ -131,11 +131,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { INodeUi } from '@/Interface'; import type { INodeUi } from '@/Interface';
import type { IConnectedNode, INodeTypeDescription, Workflow } from 'n8n-workflow'; import type { IConnectedNode, INodeTypeDescription, Workflow } from 'n8n-workflow';
import RunData from './RunData.vue'; import RunData from './RunData.vue';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import mixins from 'vue-typed-mixins';
import NodeExecuteButton from './NodeExecuteButton.vue'; import NodeExecuteButton from './NodeExecuteButton.vue';
import WireMeUp from './WireMeUp.vue'; import WireMeUp from './WireMeUp.vue';
import { import {
@ -144,13 +145,13 @@ import {
MANUAL_TRIGGER_NODE_TYPE, MANUAL_TRIGGER_NODE_TYPE,
START_NODE_TYPE, START_NODE_TYPE,
} from '@/constants'; } from '@/constants';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'InputPanel', name: 'InputPanel',
mixins: [workflowHelpers],
components: { RunData, NodeExecuteButton, WireMeUp }, components: { RunData, NodeExecuteButton, WireMeUp },
props: { props: {
currentNodeName: { currentNodeName: {

View file

@ -5,11 +5,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import emitter from '@/mixins/emitter'; import emitter from '@/mixins/emitter';
export default mixins(emitter).extend({ export default defineComponent({
name: 'IntersectionObserved', name: 'IntersectionObserved',
mixins: [emitter],
props: ['enabled'], props: ['enabled'],
mounted() { mounted() {
if (!this.enabled) { if (!this.enabled) {

View file

@ -64,15 +64,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import { copyPaste } from '@/mixins/copyPaste'; import { copyPaste } from '@/mixins/copyPaste';
import Modal from './Modal.vue'; import Modal from './Modal.vue';
import type { IFormInputs, IInviteResponse, IUser } from '@/Interface'; import type { IFormInputs, IInviteResponse, IUser } from '@/Interface';
import { VALID_EMAIL_REGEX, INVITE_USER_MODAL_KEY } from '@/constants'; import { VALID_EMAIL_REGEX, INVITE_USER_MODAL_KEY } from '@/constants';
import { ROLE } from '@/utils'; import { ROLE } from '@/utils';
import { mapStores } from 'pinia';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
@ -90,9 +89,10 @@ function getEmail(email: string): string {
return parsed; return parsed;
} }
export default mixins(copyPaste).extend({ export default defineComponent({
components: { Modal },
name: 'InviteUsersModal', name: 'InviteUsersModal',
mixins: [copyPaste],
components: { Modal },
props: { props: {
modalName: { modalName: {
type: String, type: String,

View file

@ -3,9 +3,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useRootStore } from '@/stores/n8nRoot.store';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/n8nRoot.store';
export default defineComponent({ export default defineComponent({
computed: { computed: {

View file

@ -15,6 +15,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { Route } from 'vue-router';
import { mapStores } from 'pinia';
import { pushConnection } from '@/mixins/pushConnection'; import { pushConnection } from '@/mixins/pushConnection';
import WorkflowDetails from '@/components/MainHeader/WorkflowDetails.vue'; import WorkflowDetails from '@/components/MainHeader/WorkflowDetails.vue';
import TabBar from '@/components/MainHeader/TabBar.vue'; import TabBar from '@/components/MainHeader/TabBar.vue';
@ -26,11 +29,8 @@ import {
} from '@/constants'; } from '@/constants';
import type { IExecutionsSummary, INodeUi, ITabBarItem } from '@/Interface'; import type { IExecutionsSummary, INodeUi, ITabBarItem } from '@/Interface';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import type { Route } from 'vue-router';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { defineComponent } from 'vue';
export default defineComponent({ export default defineComponent({
name: 'MainHeader', name: 'MainHeader',

View file

@ -123,7 +123,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { import {
DUPLICATE_MODAL_KEY, DUPLICATE_MODAL_KEY,
EnterpriseEditionFeature, EnterpriseEditionFeature,
@ -150,7 +152,6 @@ import type { IUser, IWorkflowDataUpdate, IWorkflowDb, IWorkflowToShare } from '
import { saveAs } from 'file-saver'; import { saveAs } from 'file-saver';
import { useTitleChange, useToast, useMessage } from '@/composables'; import { useTitleChange, useToast, useMessage } from '@/composables';
import type { MessageBoxInputData } from 'element-ui/types/message-box'; import type { MessageBoxInputData } from 'element-ui/types/message-box';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
@ -171,8 +172,9 @@ const hasChanged = (prev: string[], curr: string[]) => {
return curr.reduce((accu, val) => accu || !set.has(val), false); return curr.reduce((accu, val) => accu || !set.has(val), false);
}; };
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'WorkflowDetails', name: 'WorkflowDetails',
mixins: [workflowHelpers],
components: { components: {
TagsContainer, TagsContainer,
PushConnectionTracker, PushConnectionTracker,

View file

@ -37,16 +37,16 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import { get } from 'lodash-es'; import { get } from 'lodash-es';
import type { INodeTypeDescription } from 'n8n-workflow'; import type { INodeTypeDescription } from 'n8n-workflow';
import PanelDragButton from './PanelDragButton.vue'; import PanelDragButton from './PanelDragButton.vue';
import { LOCAL_STORAGE_MAIN_PANEL_RELATIVE_WIDTH, MAIN_NODE_PANEL_WIDTH } from '@/constants'; import { LOCAL_STORAGE_MAIN_PANEL_RELATIVE_WIDTH, MAIN_NODE_PANEL_WIDTH } from '@/constants';
import mixins from 'vue-typed-mixins';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
const SIDE_MARGIN = 24; const SIDE_MARGIN = 24;
@ -63,8 +63,9 @@ const initialMainPanelWidth: { [key: string]: number } = {
wide: MAIN_NODE_PANEL_WIDTH * 2, wide: MAIN_NODE_PANEL_WIDTH * 2,
}; };
export default mixins(debounceHelper).extend({ export default defineComponent({
name: 'NDVDraggablePanels', name: 'NDVDraggablePanels',
mixins: [debounceHelper],
components: { components: {
PanelDragButton, PanelDragButton,
}, },

View file

@ -169,7 +169,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue, { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { import {
CUSTOM_API_CALL_KEY, CUSTOM_API_CALL_KEY,
LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG, LOCAL_STORAGE_PIN_DATA_DISCOVERY_CANVAS_FLAG,
@ -188,13 +189,10 @@ import { NodeHelpers } from 'n8n-workflow';
import NodeIcon from '@/components/NodeIcon.vue'; import NodeIcon from '@/components/NodeIcon.vue';
import TitledList from '@/components/TitledList.vue'; import TitledList from '@/components/TitledList.vue';
import mixins from 'vue-typed-mixins';
import { get } from 'lodash-es'; import { get } from 'lodash-es';
import { getStyleTokenValue, getTriggerNodeServiceName } from '@/utils'; import { getStyleTokenValue, getTriggerNodeServiceName } from '@/utils';
import type { IExecutionsSummary, INodeUi, XYPosition } from '@/Interface'; import type { IExecutionsSummary, INodeUi, XYPosition } from '@/Interface';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
@ -202,15 +200,9 @@ import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { EnableNodeToggleCommand } from '@/models/history'; import { EnableNodeToggleCommand } from '@/models/history';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
export default mixins( export default defineComponent({
externalHooks,
nodeBase,
nodeHelpers,
workflowHelpers,
pinData,
debounceHelper,
).extend({
name: 'Node', name: 'Node',
mixins: [externalHooks, nodeBase, nodeHelpers, workflowHelpers, pinData, debounceHelper],
components: { components: {
TitledList, TitledList,
FontAwesomeIcon, FontAwesomeIcon,
@ -408,7 +400,7 @@ export default mixins(
} }
} }
return; return undefined;
}, },
workflowRunning(): boolean { workflowRunning(): boolean {
return this.uiStore.isActionActive('workflowRunning'); return this.uiStore.isActionActive('workflowRunning');

View file

@ -97,7 +97,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import type { import type {
ICredentialsResponse, ICredentialsResponse,
INodeUi, INodeUi,
@ -118,9 +120,6 @@ import { nodeHelpers } from '@/mixins/nodeHelpers';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import TitledList from '@/components/TitledList.vue'; import TitledList from '@/components/TitledList.vue';
import mixins from 'vue-typed-mixins';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
@ -141,8 +140,9 @@ interface CredentialDropdownOption extends ICredentialsResponse {
typeDisplayName: string; typeDisplayName: string;
} }
export default mixins(genericHelpers, nodeHelpers).extend({ export default defineComponent({
name: 'NodeCredentials', name: 'NodeCredentials',
mixins: [genericHelpers, nodeHelpers],
props: { props: {
readonly: { readonly: {
type: Boolean, type: Boolean,

View file

@ -13,13 +13,15 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import NodeIcon from '@/components/NodeIcon.vue'; import NodeIcon from '@/components/NodeIcon.vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import type { ITemplatesNode } from '@/Interface'; import type { ITemplatesNode } from '@/Interface';
import mixins from 'vue-typed-mixins';
import { filterTemplateNodes } from '@/utils'; import { filterTemplateNodes } from '@/utils';
export default mixins(genericHelpers).extend({
export default defineComponent({
name: 'NodeList', name: 'NodeList',
mixins: [genericHelpers],
props: { props: {
nodes: { nodes: {
type: Array, type: Array,

View file

@ -158,7 +158,8 @@
<script lang="ts"> <script lang="ts">
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import Vue from 'vue'; import Vue, { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { import type {
INodeTypeDescription, INodeTypeDescription,
INodeParameters, INodeParameters,
@ -191,10 +192,8 @@ import { get, set, unset } from 'lodash-es';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { nodeHelpers } from '@/mixins/nodeHelpers'; import { nodeHelpers } from '@/mixins/nodeHelpers';
import mixins from 'vue-typed-mixins';
import NodeExecuteButton from './NodeExecuteButton.vue'; import NodeExecuteButton from './NodeExecuteButton.vue';
import { isCommunityPackageName } from '@/utils'; import { isCommunityPackageName } from '@/utils';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
@ -205,8 +204,9 @@ import useWorkflowsEEStore from '@/stores/workflows.ee.store';
import { useCredentialsStore } from '@/stores/credentials.store'; import { useCredentialsStore } from '@/stores/credentials.store';
import type { EventBus } from '@/event-bus'; import type { EventBus } from '@/event-bus';
export default mixins(externalHooks, nodeHelpers).extend({ export default defineComponent({
name: 'NodeSettings', name: 'NodeSettings',
mixins: [externalHooks, nodeHelpers],
components: { components: {
NodeTitle, NodeTitle,
NodeCredentials, NodeCredentials,

View file

@ -3,6 +3,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { import {
BUILTIN_NODES_DOCS_URL, BUILTIN_NODES_DOCS_URL,
@ -13,13 +15,12 @@ import type { INodeUi, ITab } from '@/Interface';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import type { INodeTypeDescription } from 'n8n-workflow'; import type { INodeTypeDescription } from 'n8n-workflow';
import { mapStores } from 'pinia';
import mixins from 'vue-typed-mixins';
import { isCommunityPackageName } from '@/utils'; import { isCommunityPackageName } from '@/utils';
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'NodeSettingsTabs', name: 'NodeSettingsTabs',
mixins: [externalHooks],
props: { props: {
value: { value: {
type: String, type: String,

View file

@ -58,6 +58,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { INodeTypeDescription, IWebhookDescription } from 'n8n-workflow'; import type { INodeTypeDescription, IWebhookDescription } from 'n8n-workflow';
import { WEBHOOK_NODE_TYPE } from '@/constants'; import { WEBHOOK_NODE_TYPE } from '@/constants';
@ -65,10 +66,9 @@ import { copyPaste } from '@/mixins/copyPaste';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import mixins from 'vue-typed-mixins'; export default defineComponent({
export default mixins(copyPaste, workflowHelpers).extend({
name: 'NodeWebhooks', name: 'NodeWebhooks',
mixins: [copyPaste, workflowHelpers],
props: [ props: [
'node', // NodeUi 'node', // NodeUi
'nodeType', // INodeTypeDescription 'nodeType', // INodeTypeDescription

View file

@ -58,10 +58,10 @@ import { useUIStore } from '@/stores/ui.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default defineComponent({ export default defineComponent({
name: 'OnboardingCallSignupModal',
components: { components: {
Modal, Modal,
}, },
name: 'OnboardingCallSignupModal',
props: ['modalName'], props: ['modalName'],
setup() { setup() {
return { return {

View file

@ -98,12 +98,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { IExecutionResponse, INodeUi } from '@/Interface'; import type { IExecutionResponse, INodeUi } from '@/Interface';
import type { INodeTypeDescription, IRunData, IRunExecutionData, ITaskData } from 'n8n-workflow'; import type { INodeTypeDescription, IRunData, IRunExecutionData, ITaskData } from 'n8n-workflow';
import RunData from './RunData.vue'; import RunData from './RunData.vue';
import RunInfo from './RunInfo.vue'; import RunInfo from './RunInfo.vue';
import { pinData } from '@/mixins/pinData'; import { pinData } from '@/mixins/pinData';
import mixins from 'vue-typed-mixins';
import { mapStores } from 'pinia'; import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
@ -112,8 +112,9 @@ import { useNodeTypesStore } from '@/stores/nodeTypes.store';
type RunDataRef = InstanceType<typeof RunData>; type RunDataRef = InstanceType<typeof RunData>;
export default mixins(pinData).extend({ export default defineComponent({
name: 'OutputPanel', name: 'OutputPanel',
mixins: [pinData],
components: { RunData, RunInfo }, components: { RunData, RunInfo },
props: { props: {
runIndex: { runIndex: {

View file

@ -347,6 +347,8 @@
<script lang="ts"> <script lang="ts">
/* eslint-disable prefer-spread */ /* eslint-disable prefer-spread */
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { get } from 'lodash-es'; import { get } from 'lodash-es';
@ -382,11 +384,9 @@ import { nodeHelpers } from '@/mixins/nodeHelpers';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { hasExpressionMapping, isValueExpression, isResourceLocatorValue } from '@/utils'; import { hasExpressionMapping, isValueExpression, isResourceLocatorValue } from '@/utils';
import mixins from 'vue-typed-mixins';
import { CODE_NODE_TYPE, CUSTOM_API_CALL_KEY, HTML_NODE_TYPE } from '@/constants'; import { CODE_NODE_TYPE, CUSTOM_API_CALL_KEY, HTML_NODE_TYPE } from '@/constants';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
@ -396,8 +396,9 @@ import Vue from 'vue';
type ResourceLocatorRef = InstanceType<typeof ResourceLocator>; type ResourceLocatorRef = InstanceType<typeof ResourceLocator>;
export default mixins(externalHooks, nodeHelpers, workflowHelpers, debounceHelper).extend({ export default defineComponent({
name: 'parameter-input', name: 'parameter-input',
mixins: [externalHooks, nodeHelpers, workflowHelpers, debounceHelper],
components: { components: {
CodeNodeEditor, CodeNodeEditor,
HtmlEditor, HtmlEditor,

View file

@ -69,13 +69,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import type { IN8nButton, INodeUi, IRunDataDisplayMode, IUpdateInformation } from '@/Interface'; import type { IN8nButton, INodeUi, IRunDataDisplayMode, IUpdateInformation } from '@/Interface';
import ParameterOptions from '@/components/ParameterOptions.vue'; import ParameterOptions from '@/components/ParameterOptions.vue';
import DraggableTarget from '@/components/DraggableTarget.vue'; import DraggableTarget from '@/components/DraggableTarget.vue';
import mixins from 'vue-typed-mixins';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import { import {
hasExpressionMapping, hasExpressionMapping,
@ -91,18 +92,18 @@ import type {
IParameterLabel, IParameterLabel,
} from 'n8n-workflow'; } from 'n8n-workflow';
import type { BaseTextKey } from '@/plugins/i18n'; import type { BaseTextKey } from '@/plugins/i18n';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useSegment } from '@/stores/segment.store'; import { useSegment } from '@/stores/segment.store';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { getMappedResult } from '@/utils/mappingUtils'; import { getMappedResult } from '@/utils/mappingUtils';
type ParamterInputWrapperRef = InstanceType<typeof ParameterInputWrapper>; type ParameterInputWrapperRef = InstanceType<typeof ParameterInputWrapper>;
const DISPLAY_MODES_WITH_DATA_MAPPING = ['table', 'json', 'schema']; const DISPLAY_MODES_WITH_DATA_MAPPING = ['table', 'json', 'schema'];
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'parameter-input-full', name: 'parameter-input-full',
mixins: [externalHooks],
components: { components: {
ParameterOptions, ParameterOptions,
DraggableTarget, DraggableTarget,
@ -231,14 +232,14 @@ export default mixins(externalHooks).extend({
this.menuExpanded = expanded; this.menuExpanded = expanded;
}, },
optionSelected(command: string) { optionSelected(command: string) {
const paramRef = this.$refs.param as ParamterInputWrapperRef | undefined; const paramRef = this.$refs.param as ParameterInputWrapperRef | undefined;
paramRef?.$emit('optionSelected', command); paramRef?.$emit('optionSelected', command);
}, },
valueChanged(parameterData: IUpdateInformation) { valueChanged(parameterData: IUpdateInformation) {
this.$emit('valueChanged', parameterData); this.$emit('valueChanged', parameterData);
}, },
onTextInput(parameterData: IUpdateInformation) { onTextInput(parameterData: IUpdateInformation) {
const paramRef = this.$refs.param as ParamterInputWrapperRef | undefined; const paramRef = this.$refs.param as ParameterInputWrapperRef | undefined;
if (isValueExpression(this.parameter, parameterData.value)) { if (isValueExpression(this.parameter, parameterData.value)) {
paramRef?.$emit('optionSelected', 'addExpression'); paramRef?.$emit('optionSelected', 'addExpression');

View file

@ -11,8 +11,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { sanitizeHtml } from '@/utils';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { sanitizeHtml } from '@/utils';
export default defineComponent({ export default defineComponent({
name: 'InputHint', name: 'InputHint',

View file

@ -115,6 +115,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import type { INodeParameters, INodeProperties, NodeParameterValue } from 'n8n-workflow'; import type { INodeParameters, INodeProperties, NodeParameterValue } from 'n8n-workflow';
import { deepCopy } from 'n8n-workflow'; import { deepCopy } from 'n8n-workflow';
@ -126,17 +129,14 @@ import ParameterInputFull from '@/components/ParameterInputFull.vue';
import ImportParameter from '@/components/ImportParameter.vue'; import ImportParameter from '@/components/ImportParameter.vue';
import { get, set } from 'lodash-es'; import { get, set } from 'lodash-es';
import mixins from 'vue-typed-mixins';
import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { isAuthRelatedParameter, getNodeAuthFields, getMainAuthField } from '@/utils'; import { isAuthRelatedParameter, getNodeAuthFields, getMainAuthField } from '@/utils';
import { KEEP_AUTH_IN_NDV_FOR_NODES } from '@/constants'; import { KEEP_AUTH_IN_NDV_FOR_NODES } from '@/constants';
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'ParameterInputList', name: 'ParameterInputList',
mixins: [workflowHelpers],
components: { components: {
MultipleParameter, MultipleParameter,
ParameterInputFull, ParameterInputFull,

View file

@ -42,11 +42,12 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import ParameterInput from '@/components/ParameterInput.vue'; import ParameterInput from '@/components/ParameterInput.vue';
import InputHint from '@/components/ParameterInputHint.vue'; import InputHint from '@/components/ParameterInputHint.vue';
import mixins from 'vue-typed-mixins';
import type { import type {
INodeProperties, INodeProperties,
INodePropertyMode, INodePropertyMode,
@ -57,13 +58,13 @@ import { isResourceLocatorValue } from 'n8n-workflow';
import type { INodeUi, IUpdateInformation, TargetItem } from '@/Interface'; import type { INodeUi, IUpdateInformation, TargetItem } from '@/Interface';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { isValueExpression } from '@/utils'; import { isValueExpression } from '@/utils';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
type ParamRef = InstanceType<typeof ParameterInput>; type ParamRef = InstanceType<typeof ParameterInput>;
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'parameter-input-wrapper', name: 'parameter-input-wrapper',
mixins: [workflowHelpers],
components: { components: {
ParameterInput, ParameterInput,
InputHint, InputHint,

View file

@ -36,7 +36,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
const SURVEY_VERSION = 'v4'; const SURVEY_VERSION = 'v4';
@ -130,16 +131,16 @@ import Modal from '@/components/Modal.vue';
import type { IFormInputs, IPersonalizationLatestVersion, IUser } from '@/Interface'; import type { IFormInputs, IPersonalizationLatestVersion, IUser } from '@/Interface';
import { getAccountAge } from '@/utils'; import { getAccountAge } from '@/utils';
import type { GenericValue } from 'n8n-workflow'; import type { GenericValue } from 'n8n-workflow';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default mixins(workflowHelpers).extend({ export default defineComponent({
components: { Modal },
name: 'PersonalizationModal', name: 'PersonalizationModal',
mixins: [workflowHelpers],
components: { Modal },
data() { data() {
return { return {
isSaving: false, isSaving: false,

View file

@ -16,9 +16,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useRootStore } from '@/stores/n8nRoot.store';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/n8nRoot.store';
export default defineComponent({ export default defineComponent({
name: 'PushConnectionTracker', name: 'PushConnectionTracker',

View file

@ -142,8 +142,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { import type {
ILoadOptions, ILoadOptions,
INode, INode,
@ -172,7 +172,6 @@ import {
hasOnlyListMode, hasOnlyListMode,
getMainAuthField, getMainAuthField,
} from '@/utils'; } from '@/utils';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
@ -188,8 +187,9 @@ interface IResourceLocatorQuery {
loading: boolean; loading: boolean;
} }
export default mixins(debounceHelper, workflowHelpers, nodeHelpers).extend({ export default defineComponent({
name: 'resource-locator', name: 'resource-locator',
mixins: [debounceHelper, workflowHelpers, nodeHelpers],
components: { components: {
DraggableTarget, DraggableTarget,
ExpressionEdit, ExpressionEdit,

View file

@ -464,8 +464,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import mixins from 'vue-typed-mixins'; import { mapStores } from 'pinia';
import { saveAs } from 'file-saver'; import { saveAs } from 'file-saver';
import type { import type {
IBinaryData, IBinaryData,
@ -510,7 +511,6 @@ import CodeNodeEditor from '@/components/CodeNodeEditor/CodeNodeEditor.vue';
import { dataPinningEventBus } from '@/event-bus'; import { dataPinningEventBus } from '@/event-bus';
import { clearJsonKey, executionDataToJson, stringSizeInBytes, isEmpty } from '@/utils'; import { clearJsonKey, executionDataToJson, stringSizeInBytes, isEmpty } from '@/utils';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { mapStores } from 'pinia';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
@ -524,8 +524,9 @@ export type EnterEditModeArgs = {
origin: 'editIconButton' | 'insertTestDataLink'; origin: 'editIconButton' | 'insertTestDataLink';
}; };
export default mixins(externalHooks, genericHelpers, nodeHelpers, pinData).extend({ export default defineComponent({
name: 'RunData', name: 'RunData',
mixins: [externalHooks, genericHelpers, nodeHelpers, pinData],
components: { components: {
BinaryDataDisplay, BinaryDataDisplay,
NodeErrorView, NodeErrorView,

View file

@ -70,8 +70,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import mixins from 'vue-typed-mixins';
import VueJsonPretty from 'vue-json-pretty'; import VueJsonPretty from 'vue-json-pretty';
import type { IDataObject, INodeExecutionData } from 'n8n-workflow'; import type { IDataObject, INodeExecutionData } from 'n8n-workflow';
import Draggable from '@/components/Draggable.vue'; import Draggable from '@/components/Draggable.vue';
@ -87,8 +87,9 @@ import { nonExistingJsonPath } from '@/components/RunDataJsonActions.vue';
const runDataJsonActions = async () => import('@/components/RunDataJsonActions.vue'); const runDataJsonActions = async () => import('@/components/RunDataJsonActions.vue');
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'run-data-json', name: 'run-data-json',
mixins: [externalHooks],
components: { components: {
VueJsonPretty, VueJsonPretty,
Draggable, Draggable,

View file

@ -35,8 +35,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import mixins from 'vue-typed-mixins'; import { mapStores } from 'pinia';
import jp from 'jsonpath'; import jp from 'jsonpath';
import type { INodeUi } from '@/Interface'; import type { INodeUi } from '@/Interface';
import type { IDataObject } from 'n8n-workflow'; import type { IDataObject } from 'n8n-workflow';
@ -45,7 +46,6 @@ import { pinData } from '@/mixins/pinData';
import { nodeHelpers } from '@/mixins/nodeHelpers'; import { nodeHelpers } from '@/mixins/nodeHelpers';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import { clearJsonKey, convertPath, executionDataToJson } from '@/utils'; import { clearJsonKey, convertPath, executionDataToJson } from '@/utils';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
@ -58,8 +58,10 @@ type JsonPathData = {
// A path that does not exist so that nothing is selected by default // A path that does not exist so that nothing is selected by default
export const nonExistingJsonPath = '_!^&*'; export const nonExistingJsonPath = '_!^&*';
export default mixins(genericHelpers, nodeHelpers, pinData, copyPaste).extend({ export default defineComponent({
name: 'run-data-json-actions', name: 'run-data-json-actions',
mixins: [genericHelpers, nodeHelpers, pinData, copyPaste],
props: { props: {
node: { node: {
type: Object as PropType<INodeUi>, type: Object as PropType<INodeUi>,

View file

@ -162,15 +162,15 @@
<script lang="ts"> <script lang="ts">
/* eslint-disable prefer-spread */ /* eslint-disable prefer-spread */
import { defineComponent } from 'vue';
import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import type { INodeUi, ITableData, NDVState } from '@/Interface'; import type { INodeUi, ITableData, NDVState } from '@/Interface';
import { getPairedItemId } from '@/utils'; import { getPairedItemId } from '@/utils';
import type { PropType } from 'vue';
import mixins from 'vue-typed-mixins';
import type { GenericValue, IDataObject, INodeExecutionData } from 'n8n-workflow'; import type { GenericValue, IDataObject, INodeExecutionData } from 'n8n-workflow';
import Draggable from './Draggable.vue'; import Draggable from './Draggable.vue';
import { shorten } from '@/utils'; import { shorten } from '@/utils';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import MappingPill from './MappingPill.vue'; import MappingPill from './MappingPill.vue';
@ -180,8 +180,9 @@ const MAX_COLUMNS_LIMIT = 40;
type DraggableRef = InstanceType<typeof Draggable>; type DraggableRef = InstanceType<typeof Draggable>;
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'run-data-table', name: 'run-data-table',
mixins: [externalHooks],
components: { Draggable, MappingPill }, components: { Draggable, MappingPill },
props: { props: {
node: { node: {

View file

@ -14,8 +14,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import type { ITaskData } from 'n8n-workflow';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import type { ITaskData } from 'n8n-workflow';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -3,9 +3,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useCredentialsStore } from '@/stores/credentials.store';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useCredentialsStore } from '@/stores/credentials.store';
export default defineComponent({ export default defineComponent({
name: 'ScopesNotice', name: 'ScopesNotice',

View file

@ -21,19 +21,20 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { ABOUT_MODAL_KEY, VERSIONS_MODAL_KEY, VIEWS } from '@/constants'; import { ABOUT_MODAL_KEY, VERSIONS_MODAL_KEY, VIEWS } from '@/constants';
import { userHelpers } from '@/mixins/userHelpers'; import { userHelpers } from '@/mixins/userHelpers';
import type { IFakeDoor } from '@/Interface'; import type { IFakeDoor } from '@/Interface';
import type { IMenuItem } from 'n8n-design-system'; import type { IMenuItem } from 'n8n-design-system';
import type { BaseTextKey } from '@/plugins/i18n'; import type { BaseTextKey } from '@/plugins/i18n';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
export default mixins(userHelpers).extend({ export default defineComponent({
name: 'SettingsSidebar', name: 'SettingsSidebar',
mixins: [userHelpers],
computed: { computed: {
...mapStores(useRootStore, useSettingsStore, useUIStore), ...mapStores(useRootStore, useSettingsStore, useUIStore),
settingsFakeDoorFeatures(): IFakeDoor[] { settingsFakeDoorFeatures(): IFakeDoor[] {

View file

@ -56,9 +56,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue, { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import mixins from 'vue-typed-mixins';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { nodeBase } from '@/mixins/nodeBase'; import { nodeBase } from '@/mixins/nodeBase';
import { nodeHelpers } from '@/mixins/nodeHelpers'; import { nodeHelpers } from '@/mixins/nodeHelpers';
@ -73,14 +73,15 @@ import type {
import type { INodeTypeDescription } from 'n8n-workflow'; import type { INodeTypeDescription } from 'n8n-workflow';
import { QUICKSTART_NOTE_NAME } from '@/constants'; import { QUICKSTART_NOTE_NAME } from '@/constants';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
export default mixins(externalHooks, nodeBase, nodeHelpers, workflowHelpers).extend({ export default defineComponent({
name: 'Sticky', name: 'Sticky',
mixins: [externalHooks, nodeBase, nodeHelpers, workflowHelpers],
props: { props: {
nodeViewScale: { nodeViewScale: {
type: Number, type: Number,

View file

@ -57,8 +57,8 @@ interface TagEl extends ITag {
} }
export default defineComponent({ export default defineComponent({
components: { IntersectionObserver, IntersectionObserved },
name: 'TagsContainer', name: 'TagsContainer',
components: { IntersectionObserver, IntersectionObserved },
props: ['tagIds', 'limit', 'clickable', 'responsive', 'hoverable'], props: ['tagIds', 'limit', 'clickable', 'responsive', 'hoverable'],
data() { data() {
return { return {

View file

@ -28,8 +28,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { MAX_TAG_NAME_LENGTH } from '@/constants';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { MAX_TAG_NAME_LENGTH } from '@/constants';
export default defineComponent({ export default defineComponent({
props: { props: {

View file

@ -35,8 +35,8 @@ const matches = (name: string, filter: string) =>
name.toLowerCase().trim().includes(filter.toLowerCase().trim()); name.toLowerCase().trim().includes(filter.toLowerCase().trim());
export default defineComponent({ export default defineComponent({
components: { TagsTableHeader, TagsTable },
name: 'TagsView', name: 'TagsView',
components: { TagsTableHeader, TagsTable },
props: ['tags', 'isLoading'], props: ['tags', 'isLoading'],
data() { data() {
return { return {

View file

@ -3,16 +3,17 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import type { ITelemetrySettings } from 'n8n-workflow'; import type { ITelemetrySettings } from 'n8n-workflow';
import { mapStores } from 'pinia';
import mixins from 'vue-typed-mixins';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'Telemetry', name: 'Telemetry',
mixins: [externalHooks],
data() { data() {
return { return {
isTelemetryInitialized: false, isTelemetryInitialized: false,

View file

@ -45,13 +45,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import mixins from 'vue-typed-mixins';
import { filterTemplateNodes, abbreviateNumber } from '@/utils'; import { filterTemplateNodes, abbreviateNumber } from '@/utils';
import NodeList from './NodeList.vue'; import NodeList from './NodeList.vue';
export default mixins(genericHelpers).extend({ export default defineComponent({
name: 'TemplateCard', name: 'TemplateCard',
mixins: [genericHelpers],
props: { props: {
lastItem: { lastItem: {
type: Boolean, type: Boolean,

View file

@ -37,12 +37,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import type { ITemplatesCategory } from '@/Interface'; import type { ITemplatesCategory } from '@/Interface';
import mixins from 'vue-typed-mixins';
export default mixins(genericHelpers).extend({ export default defineComponent({
name: 'TemplateFilters', name: 'TemplateFilters',
mixins: [genericHelpers],
props: { props: {
sortOnPopulate: { sortOnPopulate: {
type: Boolean, type: Boolean,

View file

@ -32,12 +32,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
import mixins from 'vue-typed-mixins';
import TemplateCard from './TemplateCard.vue'; import TemplateCard from './TemplateCard.vue';
export default mixins(genericHelpers).extend({ export default defineComponent({
name: 'TemplateList', name: 'TemplateList',
mixins: [genericHelpers],
props: { props: {
infiniteScrollEnabled: { infiniteScrollEnabled: {
type: Boolean, type: Boolean,

View file

@ -102,17 +102,17 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { EXECUTIONS_MODAL_KEY, WEBHOOK_NODE_TYPE, WORKFLOW_SETTINGS_MODAL_KEY } from '@/constants'; import { EXECUTIONS_MODAL_KEY, WEBHOOK_NODE_TYPE, WORKFLOW_SETTINGS_MODAL_KEY } from '@/constants';
import type { INodeUi } from '@/Interface'; import type { INodeUi } from '@/Interface';
import type { INodeTypeDescription } from 'n8n-workflow'; import type { INodeTypeDescription } from 'n8n-workflow';
import { getTriggerNodeServiceName } from '@/utils'; import { getTriggerNodeServiceName } from '@/utils';
import NodeExecuteButton from '@/components/NodeExecuteButton.vue'; import NodeExecuteButton from '@/components/NodeExecuteButton.vue';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import mixins from 'vue-typed-mixins';
import CopyInput from '@/components/CopyInput.vue'; import CopyInput from '@/components/CopyInput.vue';
import NodeIcon from '@/components/NodeIcon.vue'; import NodeIcon from '@/components/NodeIcon.vue';
import { copyPaste } from '@/mixins/copyPaste'; import { copyPaste } from '@/mixins/copyPaste';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
@ -121,8 +121,9 @@ import type { N8nInfoAccordion } from 'n8n-design-system';
type HelpRef = InstanceType<typeof N8nInfoAccordion>; type HelpRef = InstanceType<typeof N8nInfoAccordion>;
export default mixins(workflowHelpers, copyPaste).extend({ export default defineComponent({
name: 'TriggerPanel', name: 'TriggerPanel',
mixins: [workflowHelpers, copyPaste],
components: { components: {
NodeExecuteButton, NodeExecuteButton,
CopyInput, CopyInput,

View file

@ -56,14 +56,14 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { VALID_EMAIL_REGEX, VALUE_SURVEY_MODAL_KEY } from '@/constants'; import { VALID_EMAIL_REGEX, VALUE_SURVEY_MODAL_KEY } from '@/constants';
import type { IN8nPromptResponse } from '@/Interface'; import type { IN8nPromptResponse } from '@/Interface';
import ModalDrawer from '@/components/ModalDrawer.vue'; import ModalDrawer from '@/components/ModalDrawer.vue';
import mixins from 'vue-typed-mixins';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
@ -75,8 +75,9 @@ const GREAT_FEEDBACK_TITLE =
const DEFAULT_FEEDBACK_TITLE = const DEFAULT_FEEDBACK_TITLE =
"Thanks for your feedback! We'd love to understand how we can improve. Can we reach out?"; "Thanks for your feedback! We'd love to understand how we can improve. Can we reach out?";
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'ValueSurvey', name: 'ValueSurvey',
mixins: [workflowHelpers],
props: ['isActive'], props: ['isActive'],
components: { components: {
ModalDrawer, ModalDrawer,

View file

@ -24,6 +24,8 @@
<script lang="ts"> <script lang="ts">
/* eslint-disable prefer-spread */ /* eslint-disable prefer-spread */
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { PLACEHOLDER_FILLED_AT_EXECUTION_TIME, STICKY_NODE_TYPE } from '@/constants'; import { PLACEHOLDER_FILLED_AT_EXECUTION_TIME, STICKY_NODE_TYPE } from '@/constants';
import type { import type {
@ -44,8 +46,6 @@ import type { INodeUi, IVariableItemSelected, IVariableSelectorOption } from '@/
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import mixins from 'vue-typed-mixins';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
@ -53,8 +53,9 @@ import { useNDVStore } from '@/stores/ndv.store';
// Node types that should not be displayed in variable selector // Node types that should not be displayed in variable selector
const SKIPPED_NODE_TYPES = [STICKY_NODE_TYPE]; const SKIPPED_NODE_TYPES = [STICKY_NODE_TYPE];
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'VariableSelector', name: 'VariableSelector',
mixins: [workflowHelpers],
components: { components: {
VariableSelectorItem, VariableSelectorItem,
}, },

View file

@ -59,12 +59,13 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import type { IVariableSelectorOption, IVariableItemSelected } from '@/Interface'; import type { IVariableSelectorOption, IVariableItemSelected } from '@/Interface';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import mixins from 'vue-typed-mixins';
export default mixins(externalHooks).extend({ export default defineComponent({
name: 'VariableSelectorItem', name: 'VariableSelectorItem',
mixins: [externalHooks],
props: ['allowParentSelect', 'extendAll', 'item'], props: ['allowParentSelect', 'extendAll', 'item'],
mounted() { mounted() {
if (this.extended) return; if (this.extended) return;

View file

@ -68,8 +68,8 @@ Vue.component('Badge', Badge);
Vue.component('WarningTooltip', WarningTooltip); Vue.component('WarningTooltip', WarningTooltip);
export default defineComponent({ export default defineComponent({
components: { NodeIcon, TimeAgo, Badge, WarningTooltip },
name: 'VersionCard', name: 'VersionCard',
components: { NodeIcon, TimeAgo, Badge, WarningTooltip },
props: ['version'], props: ['version'],
// @ts-ignore // @ts-ignore
nodeName(node: IVersionNode): string { nodeName(node: IVersionNode): string {

View file

@ -325,6 +325,8 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue'; import Vue from 'vue';
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { genericHelpers } from '@/mixins/genericHelpers'; import { genericHelpers } from '@/mixins/genericHelpers';
@ -344,11 +346,8 @@ import {
WORKFLOW_SETTINGS_MODAL_KEY, WORKFLOW_SETTINGS_MODAL_KEY,
} from '@/constants'; } from '@/constants';
import mixins from 'vue-typed-mixins';
import type { WorkflowSettings } from 'n8n-workflow'; import type { WorkflowSettings } from 'n8n-workflow';
import { deepCopy } from 'n8n-workflow'; import { deepCopy } from 'n8n-workflow';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
@ -356,8 +355,9 @@ import useWorkflowsEEStore from '@/stores/workflows.ee.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default mixins(externalHooks, genericHelpers).extend({ export default defineComponent({
name: 'WorkflowSettings', name: 'WorkflowSettings',
mixins: [externalHooks, genericHelpers],
components: { components: {
Modal, Modal,
}, },

View file

@ -12,9 +12,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { useUIStore } from '@/stores/ui.store';
import { mapStores } from 'pinia';
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store';
export default defineComponent({ export default defineComponent({
name: 'PageViewLayout', name: 'PageViewLayout',

View file

@ -195,9 +195,11 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import type { IUser } from '@/Interface'; import { defineComponent } from 'vue';
import mixins from 'vue-typed-mixins'; import type { PropType } from 'vue';
import { mapStores } from 'pinia';
import type { IUser } from '@/Interface';
import PageViewLayout from '@/components/layouts/PageViewLayout.vue'; import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
import PageViewLayoutList from '@/components/layouts/PageViewLayoutList.vue'; import PageViewLayoutList from '@/components/layouts/PageViewLayoutList.vue';
import { import {
@ -206,11 +208,9 @@ import {
MAIN_REPOSITORY_URL, MAIN_REPOSITORY_URL,
} from '@/constants'; } from '@/constants';
import TemplateCard from '@/components/TemplateCard.vue'; import TemplateCard from '@/components/TemplateCard.vue';
import type { PropType } from 'vue';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import ResourceOwnershipSelect from '@/components/forms/ResourceOwnershipSelect.ee.vue'; import ResourceOwnershipSelect from '@/components/forms/ResourceOwnershipSelect.ee.vue';
import ResourceFiltersDropdown from '@/components/forms/ResourceFiltersDropdown.vue'; import ResourceFiltersDropdown from '@/components/forms/ResourceFiltersDropdown.vue';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import type { N8nInput } from 'n8n-design-system'; import type { N8nInput } from 'n8n-design-system';
@ -236,8 +236,9 @@ interface IFilters {
type IResourceKeyType = 'credentials' | 'workflows'; type IResourceKeyType = 'credentials' | 'workflows';
type SearchRef = InstanceType<typeof N8nInput>; type SearchRef = InstanceType<typeof N8nInput>;
export default mixins(debounceHelper).extend({ export default defineComponent({
name: 'resources-list-layout', name: 'resources-list-layout',
mixins: [debounceHelper],
components: { components: {
TemplateCard, TemplateCard,
PageViewLayout, PageViewLayout,

View file

@ -1,10 +1,11 @@
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { ExpressionExtensions } from 'n8n-workflow'; import { ExpressionExtensions } from 'n8n-workflow';
import type { EditorView, ViewUpdate } from '@codemirror/view'; import type { EditorView, ViewUpdate } from '@codemirror/view';
import { expressionManager } from './expressionManager'; import { expressionManager } from './expressionManager';
export const completionManager = mixins(expressionManager).extend({ export const completionManager = defineComponent({
mixins: [expressionManager],
data() { data() {
return { return {
editor: {} as EditorView, editor: {} as EditorView,

View file

@ -1,7 +1,7 @@
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { i18n as locale } from '@/plugins/i18n'; import { i18n as locale } from '@/plugins/i18n';
import { mapStores } from 'pinia';
import mixins from 'vue-typed-mixins';
import { genericHelpers } from './genericHelpers'; import { genericHelpers } from './genericHelpers';
import type { IExecutionsSummary } from 'n8n-workflow'; import type { IExecutionsSummary } from 'n8n-workflow';
@ -12,7 +12,8 @@ export interface IExecutionUIData {
runningTime: string; runningTime: string;
} }
export const executionHelpers = mixins(genericHelpers).extend({ export const executionHelpers = defineComponent({
mixins: [genericHelpers],
computed: { computed: {
...mapStores(useWorkflowsStore), ...mapStores(useWorkflowsStore),
executionId(): string { executionId(): string {

View file

@ -1,18 +1,20 @@
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { Expression, ExpressionExtensions } from 'n8n-workflow'; import type { PropType } from 'vue';
import { mapStores } from 'pinia'; import { mapStores } from 'pinia';
import { Expression, ExpressionExtensions } from 'n8n-workflow';
import { ensureSyntaxTree } from '@codemirror/language'; import { ensureSyntaxTree } from '@codemirror/language';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { useNDVStore } from '@/stores/ndv.store'; import { useNDVStore } from '@/stores/ndv.store';
import { EXPRESSION_EDITOR_PARSER_TIMEOUT } from '@/constants'; import { EXPRESSION_EDITOR_PARSER_TIMEOUT } from '@/constants';
import type { PropType } from 'vue';
import type { EditorView } from '@codemirror/view'; import type { EditorView } from '@codemirror/view';
import type { TargetItem } from '@/Interface'; import type { TargetItem } from '@/Interface';
import type { Html, Plaintext, RawSegment, Resolvable, Segment } from '@/types/expressions'; import type { Html, Plaintext, RawSegment, Resolvable, Segment } from '@/types/expressions';
export const expressionManager = mixins(workflowHelpers).extend({ export const expressionManager = defineComponent({
mixins: [workflowHelpers],
props: { props: {
targetItem: { targetItem: {
type: Object as PropType<TargetItem | null>, type: Object as PropType<TargetItem | null>,

View file

@ -1,10 +1,12 @@
import mixins from 'vue-typed-mixins'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { deviceSupportHelpers } from '@/mixins/deviceSupportHelpers'; import { deviceSupportHelpers } from '@/mixins/deviceSupportHelpers';
import { getMousePosition } from '@/utils/nodeViewUtils'; import { getMousePosition } from '@/utils/nodeViewUtils';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
export const moveNodeWorkflow = mixins(deviceSupportHelpers).extend({ export const moveNodeWorkflow = defineComponent({
mixins: [deviceSupportHelpers],
data() { data() {
return { return {
moveLastPosition: [0, 0], moveLastPosition: [0, 0],

View file

@ -1,11 +1,12 @@
import { defineComponent } from 'vue';
import type { PropType } from 'vue'; import type { PropType } from 'vue';
import mixins from 'vue-typed-mixins'; import { mapStores } from 'pinia';
import type { INodeUi } from '@/Interface'; import type { INodeUi } from '@/Interface';
import { deviceSupportHelpers } from '@/mixins/deviceSupportHelpers'; import { deviceSupportHelpers } from '@/mixins/deviceSupportHelpers';
import { NO_OP_NODE_TYPE } from '@/constants'; import { NO_OP_NODE_TYPE } from '@/constants';
import type { INodeTypeDescription } from 'n8n-workflow'; import type { INodeTypeDescription } from 'n8n-workflow';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useNodeTypesStore } from '@/stores/nodeTypes.store'; import { useNodeTypesStore } from '@/stores/nodeTypes.store';
@ -15,7 +16,8 @@ import * as NodeViewUtils from '@/utils/nodeViewUtils';
import { useHistoryStore } from '@/stores/history.store'; import { useHistoryStore } from '@/stores/history.store';
import { useCanvasStore } from '@/stores/canvas.store'; import { useCanvasStore } from '@/stores/canvas.store';
export const nodeBase = mixins(deviceSupportHelpers).extend({ export const nodeBase = defineComponent({
mixins: [deviceSupportHelpers],
mounted() { mounted() {
// Initialize the node // Initialize the node
if (this.data !== null) { if (this.data !== null) {

View file

@ -1,14 +1,15 @@
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { externalHooks } from '@/mixins/externalHooks'; import { externalHooks } from '@/mixins/externalHooks';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import { defineComponent } from 'vue';
import { import {
LOCAL_STORAGE_ACTIVATION_FLAG, LOCAL_STORAGE_ACTIVATION_FLAG,
PLACEHOLDER_EMPTY_WORKFLOW_ID, PLACEHOLDER_EMPTY_WORKFLOW_ID,
WORKFLOW_ACTIVE_MODAL_KEY, WORKFLOW_ACTIVE_MODAL_KEY,
} from '@/constants'; } from '@/constants';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';

View file

@ -1,3 +1,5 @@
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { import {
PLACEHOLDER_FILLED_AT_EXECUTION_TIME, PLACEHOLDER_FILLED_AT_EXECUTION_TIME,
PLACEHOLDER_EMPTY_WORKFLOW_ID, PLACEHOLDER_EMPTY_WORKFLOW_ID,
@ -47,7 +49,6 @@ import { isEqual } from 'lodash-es';
import { v4 as uuid } from 'uuid'; import { v4 as uuid } from 'uuid';
import { getSourceItems } from '@/utils'; import { getSourceItems } from '@/utils';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';
@ -61,7 +62,6 @@ import type { IPermissions } from '@/permissions';
import { getWorkflowPermissions } from '@/permissions'; import { getWorkflowPermissions } from '@/permissions';
import type { ICredentialsResponse } from '@/Interface'; import type { ICredentialsResponse } from '@/Interface';
import { useEnvironmentsStore } from '@/stores'; import { useEnvironmentsStore } from '@/stores';
import { defineComponent } from 'vue';
export function resolveParameter( export function resolveParameter(
parameter: NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[], parameter: NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[],

View file

@ -1,3 +1,5 @@
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import type { IExecutionPushResponse, IExecutionResponse, IStartRunData } from '@/Interface'; import type { IExecutionPushResponse, IExecutionResponse, IStartRunData } from '@/Interface';
import type { IRunData, IRunExecutionData, IWorkflowBase } from 'n8n-workflow'; import type { IRunData, IRunExecutionData, IWorkflowBase } from 'n8n-workflow';
@ -7,9 +9,7 @@ import { externalHooks } from '@/mixins/externalHooks';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import { defineComponent } from 'vue';
import { useTitleChange } from '@/composables/useTitleChange'; import { useTitleChange } from '@/composables/useTitleChange';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useWorkflowsStore } from '@/stores/workflows.store'; import { useWorkflowsStore } from '@/stores/workflows.store';
import { useRootStore } from '@/stores/n8nRoot.store'; import { useRootStore } from '@/stores/n8nRoot.store';

View file

@ -79,9 +79,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { v4 as uuid } from 'uuid'; import { defineComponent } from 'vue';
import { mapStores } from 'pinia'; import { mapStores } from 'pinia';
import mixins from 'vue-typed-mixins'; import { v4 as uuid } from 'uuid';
import { useWorkflowsStore } from '../stores/workflows.store'; import { useWorkflowsStore } from '../stores/workflows.store';
import { useUsersStore } from '../stores/users.store'; import { useUsersStore } from '../stores/users.store';
import { useCredentialsStore } from '../stores/credentials.store'; import { useCredentialsStore } from '../stores/credentials.store';
@ -95,7 +95,7 @@ import PageViewLayout from '@/components/layouts/PageViewLayout.vue';
import EventDestinationCard from '@/components/SettingsLogStreaming/EventDestinationCard.ee.vue'; import EventDestinationCard from '@/components/SettingsLogStreaming/EventDestinationCard.ee.vue';
import { createEventBus } from '@/event-bus'; import { createEventBus } from '@/event-bus';
export default mixins().extend({ export default defineComponent({
name: 'SettingsLogStreamingView', name: 'SettingsLogStreamingView',
props: {}, props: {},
components: { components: {

View file

@ -59,22 +59,23 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import { EnterpriseEditionFeature, INVITE_USER_MODAL_KEY, VIEWS } from '@/constants'; import { EnterpriseEditionFeature, INVITE_USER_MODAL_KEY, VIEWS } from '@/constants';
import PageAlert from '@/components/PageAlert.vue'; import PageAlert from '@/components/PageAlert.vue';
import type { IUser, IUserListAction } from '@/Interface'; import type { IUser, IUserListAction } from '@/Interface';
import mixins from 'vue-typed-mixins';
import { useToast } from '@/composables'; import { useToast } from '@/composables';
import { copyPaste } from '@/mixins/copyPaste'; import { copyPaste } from '@/mixins/copyPaste';
import { mapStores } from 'pinia';
import { useUIStore } from '@/stores/ui.store'; import { useUIStore } from '@/stores/ui.store';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { useUsageStore } from '@/stores/usage.store'; import { useUsageStore } from '@/stores/usage.store';
import { useSSOStore } from '@/stores/sso.store'; import { useSSOStore } from '@/stores/sso.store';
export default mixins(copyPaste).extend({ export default defineComponent({
name: 'SettingsUsersView', name: 'SettingsUsersView',
mixins: [copyPaste],
components: { components: {
PageAlert, PageAlert,
}, },

View file

@ -50,6 +50,9 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import TemplateDetails from '@/components/TemplateDetails.vue'; import TemplateDetails from '@/components/TemplateDetails.vue';
import TemplateList from '@/components/TemplateList.vue'; import TemplateList from '@/components/TemplateList.vue';
import TemplatesView from './TemplatesView.vue'; import TemplatesView from './TemplatesView.vue';
@ -62,14 +65,13 @@ import type {
ITemplatesWorkflowFull, ITemplatesWorkflowFull,
} from '@/Interface'; } from '@/Interface';
import mixins from 'vue-typed-mixins';
import { setPageTitle } from '@/utils'; import { setPageTitle } from '@/utils';
import { VIEWS } from '@/constants'; import { VIEWS } from '@/constants';
import { mapStores } from 'pinia';
import { useTemplatesStore } from '@/stores/templates.store'; import { useTemplatesStore } from '@/stores/templates.store';
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'TemplatesCollectionView', name: 'TemplatesCollectionView',
mixins: [workflowHelpers],
components: { components: {
TemplateDetails, TemplateDetails,
TemplateList, TemplateList,

View file

@ -75,6 +75,8 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import CollectionsCarousel from '@/components/CollectionsCarousel.vue'; import CollectionsCarousel from '@/components/CollectionsCarousel.vue';
import TemplateFilters from '@/components/TemplateFilters.vue'; import TemplateFilters from '@/components/TemplateFilters.vue';
import TemplateList from '@/components/TemplateList.vue'; import TemplateList from '@/components/TemplateList.vue';
@ -87,12 +89,10 @@ import type {
ITemplatesQuery, ITemplatesQuery,
ITemplatesCategory, ITemplatesCategory,
} from '@/Interface'; } from '@/Interface';
import mixins from 'vue-typed-mixins';
import type { IDataObject } from 'n8n-workflow'; import type { IDataObject } from 'n8n-workflow';
import { setPageTitle } from '@/utils'; import { setPageTitle } from '@/utils';
import { VIEWS } from '@/constants'; import { VIEWS } from '@/constants';
import { debounceHelper } from '@/mixins/debounce'; import { debounceHelper } from '@/mixins/debounce';
import { mapStores } from 'pinia';
import { useSettingsStore } from '@/stores/settings.store'; import { useSettingsStore } from '@/stores/settings.store';
import { useUsersStore } from '@/stores/users.store'; import { useUsersStore } from '@/stores/users.store';
import { useTemplatesStore } from '@/stores/templates.store'; import { useTemplatesStore } from '@/stores/templates.store';
@ -107,8 +107,9 @@ interface ISearchEvent {
wf_template_repo_session_id: string; wf_template_repo_session_id: string;
} }
export default mixins(genericHelpers, debounceHelper).extend({ export default defineComponent({
name: 'TemplatesSearchView', name: 'TemplatesSearchView',
mixins: [genericHelpers, debounceHelper],
components: { components: {
CollectionsCarousel, CollectionsCarousel,
TemplateFilters, TemplateFilters,

View file

@ -55,20 +55,22 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue';
import { mapStores } from 'pinia';
import TemplateDetails from '@/components/TemplateDetails.vue'; import TemplateDetails from '@/components/TemplateDetails.vue';
import TemplatesView from './TemplatesView.vue'; import TemplatesView from './TemplatesView.vue';
import WorkflowPreview from '@/components/WorkflowPreview.vue'; import WorkflowPreview from '@/components/WorkflowPreview.vue';
import type { ITemplatesWorkflow, ITemplatesWorkflowFull } from '@/Interface'; import type { ITemplatesWorkflow, ITemplatesWorkflowFull } from '@/Interface';
import { workflowHelpers } from '@/mixins/workflowHelpers'; import { workflowHelpers } from '@/mixins/workflowHelpers';
import mixins from 'vue-typed-mixins';
import { setPageTitle } from '@/utils'; import { setPageTitle } from '@/utils';
import { VIEWS } from '@/constants'; import { VIEWS } from '@/constants';
import { mapStores } from 'pinia';
import { useTemplatesStore } from '@/stores/templates.store'; import { useTemplatesStore } from '@/stores/templates.store';
export default mixins(workflowHelpers).extend({ export default defineComponent({
name: 'TemplatesWorkflowView', name: 'TemplatesWorkflowView',
mixins: [workflowHelpers],
components: { components: {
TemplateDetails, TemplateDetails,
TemplatesView, TemplatesView,

View file

@ -738,9 +738,6 @@ importers:
vue: vue:
specifier: ^2.7.14 specifier: ^2.7.14
version: 2.7.14 version: 2.7.14
vue-typed-mixins:
specifier: ^0.2.0
version: 0.2.0
vue2-boring-avatars: vue2-boring-avatars:
specifier: ^0.3.8 specifier: ^0.3.8
version: 0.3.8 version: 0.3.8
@ -970,9 +967,6 @@ importers:
vue-router: vue-router:
specifier: ^3.6.5 specifier: ^3.6.5
version: 3.6.5(vue@2.7.14) version: 3.6.5(vue@2.7.14)
vue-typed-mixins:
specifier: ^0.2.0
version: 0.2.0
vue2-teleport: vue2-teleport:
specifier: ^1.0.1 specifier: ^1.0.1
version: 1.0.1 version: 1.0.1
@ -22820,10 +22814,6 @@ packages:
typescript: 5.0.3 typescript: 5.0.3
dev: true dev: true
/vue-typed-mixins@0.2.0:
resolution: {integrity: sha512-0OxuinandPWv3nm5k/reYkuKtX3jjPZ40Sy9roJz0ih8PUzmI7zSRiXFEJ62LsyRegw9Tqy+qMkajk7ipKP8Vg==}
dev: false
/vue2-boring-avatars@0.3.8: /vue2-boring-avatars@0.3.8:
resolution: {integrity: sha512-8vNN+zhCIiIMnSQDu0DwhJ11e9r3t4t12dromXmXDtRryBhV58NPn4XgMb4JKrBlfNK92KFrY/cxRy3nzhQfpQ==} resolution: {integrity: sha512-8vNN+zhCIiIMnSQDu0DwhJ11e9r3t4t12dromXmXDtRryBhV58NPn4XgMb4JKrBlfNK92KFrY/cxRy3nzhQfpQ==}
dependencies: dependencies: