feat: Replace Vue.extend with defineComponent in editor-ui (no-changelog) (#6033)

* refactor: replace Vue.extend with defineComponent in editor-ui

* fix: change $externalHooks extractions from mixins

* fix: refactor externalHooks mixin
This commit is contained in:
Alex Grozav
2023-04-21 18:51:08 +03:00
committed by GitHub
parent 8a38624cbc
commit 9c94050deb
90 changed files with 265 additions and 235 deletions

View File

@@ -3,10 +3,10 @@
</template>
<script lang="ts">
import Vue from 'vue';
import { defineComponent } from 'vue';
import * as monaco from 'monaco-editor';
export default Vue.extend({
export default defineComponent({
props: {
type: {
type: String,

View File

@@ -63,15 +63,16 @@
</template>
<script lang="ts">
import Vue, { PropType } from 'vue';
import { defineComponent } from 'vue';
import { EnterpriseEditionFeature } from '@/constants';
import { IUser } from '@/Interface';
import { mapStores } from 'pinia';
import { useUsersStore } from '@/stores/users';
import type { PropType } from 'vue';
import type { IUser } from '@/Interface';
export type IResourceFiltersType = Record<string, boolean | string | string[]>;
export default Vue.extend({
export default defineComponent({
props: {
value: {
type: Object as PropType<IResourceFiltersType>,

View File

@@ -8,10 +8,10 @@
</template>
<script lang="ts">
import Vue from 'vue';
import { defineComponent } from 'vue';
import { IMenuItem } from 'n8n-design-system';
export default Vue.extend({
export default defineComponent({
props: {
value: {
type: Boolean,