refactor(editor): Drop vue-typed-mixins (no-changelog) (#6257)
This commit is contained in:
committed by
GitHub
parent
79d0a0f247
commit
ebb3aaf61e
@@ -79,9 +79,9 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
import { useWorkflowsStore } from '../stores/workflows.store';
|
||||
import { useUsersStore } from '../stores/users.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 { createEventBus } from '@/event-bus';
|
||||
|
||||
export default mixins().extend({
|
||||
export default defineComponent({
|
||||
name: 'SettingsLogStreamingView',
|
||||
props: {},
|
||||
components: {
|
||||
|
||||
@@ -59,22 +59,23 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import { EnterpriseEditionFeature, INVITE_USER_MODAL_KEY, VIEWS } from '@/constants';
|
||||
|
||||
import PageAlert from '@/components/PageAlert.vue';
|
||||
import type { IUser, IUserListAction } from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { useToast } from '@/composables';
|
||||
import { copyPaste } from '@/mixins/copyPaste';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useUIStore } from '@/stores/ui.store';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { useUsageStore } from '@/stores/usage.store';
|
||||
import { useSSOStore } from '@/stores/sso.store';
|
||||
|
||||
export default mixins(copyPaste).extend({
|
||||
export default defineComponent({
|
||||
name: 'SettingsUsersView',
|
||||
mixins: [copyPaste],
|
||||
components: {
|
||||
PageAlert,
|
||||
},
|
||||
|
||||
@@ -50,6 +50,9 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
import TemplateDetails from '@/components/TemplateDetails.vue';
|
||||
import TemplateList from '@/components/TemplateList.vue';
|
||||
import TemplatesView from './TemplatesView.vue';
|
||||
@@ -62,14 +65,13 @@ import type {
|
||||
ITemplatesWorkflowFull,
|
||||
} from '@/Interface';
|
||||
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { setPageTitle } from '@/utils';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useTemplatesStore } from '@/stores/templates.store';
|
||||
|
||||
export default mixins(workflowHelpers).extend({
|
||||
export default defineComponent({
|
||||
name: 'TemplatesCollectionView',
|
||||
mixins: [workflowHelpers],
|
||||
components: {
|
||||
TemplateDetails,
|
||||
TemplateList,
|
||||
|
||||
@@ -75,6 +75,8 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
import CollectionsCarousel from '@/components/CollectionsCarousel.vue';
|
||||
import TemplateFilters from '@/components/TemplateFilters.vue';
|
||||
import TemplateList from '@/components/TemplateList.vue';
|
||||
@@ -87,12 +89,10 @@ import type {
|
||||
ITemplatesQuery,
|
||||
ITemplatesCategory,
|
||||
} from '@/Interface';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import { setPageTitle } from '@/utils';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { debounceHelper } from '@/mixins/debounce';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useSettingsStore } from '@/stores/settings.store';
|
||||
import { useUsersStore } from '@/stores/users.store';
|
||||
import { useTemplatesStore } from '@/stores/templates.store';
|
||||
@@ -107,8 +107,9 @@ interface ISearchEvent {
|
||||
wf_template_repo_session_id: string;
|
||||
}
|
||||
|
||||
export default mixins(genericHelpers, debounceHelper).extend({
|
||||
export default defineComponent({
|
||||
name: 'TemplatesSearchView',
|
||||
mixins: [genericHelpers, debounceHelper],
|
||||
components: {
|
||||
CollectionsCarousel,
|
||||
TemplateFilters,
|
||||
|
||||
@@ -55,20 +55,22 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { mapStores } from 'pinia';
|
||||
|
||||
import TemplateDetails from '@/components/TemplateDetails.vue';
|
||||
import TemplatesView from './TemplatesView.vue';
|
||||
import WorkflowPreview from '@/components/WorkflowPreview.vue';
|
||||
|
||||
import type { ITemplatesWorkflow, ITemplatesWorkflowFull } from '@/Interface';
|
||||
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { setPageTitle } from '@/utils';
|
||||
import { VIEWS } from '@/constants';
|
||||
import { mapStores } from 'pinia';
|
||||
import { useTemplatesStore } from '@/stores/templates.store';
|
||||
|
||||
export default mixins(workflowHelpers).extend({
|
||||
export default defineComponent({
|
||||
name: 'TemplatesWorkflowView',
|
||||
mixins: [workflowHelpers],
|
||||
components: {
|
||||
TemplateDetails,
|
||||
TemplatesView,
|
||||
|
||||
Reference in New Issue
Block a user