eliminate cyclic dependencies by register most-used components globally

This commit is contained in:
Henry Jameson 2026-06-04 20:49:43 +03:00
commit e0c8fcc82b
39 changed files with 93 additions and 96 deletions

View file

@ -3,6 +3,7 @@ import { defineAsyncComponent } from 'vue'
import StatusContent from 'src/components/status_content/status_content.vue'
import PostStatusForm from 'src/components/post_status_form/post_status_form.vue'
import Gallery from 'src/components/gallery/gallery.vue'
import { useMergedConfigStore } from 'src/stores/merged_config.js'
@ -21,9 +22,7 @@ const Draft = {
() => import('src/components/confirm_modal/confirm_modal.vue'),
),
StatusContent,
Gallery: defineAsyncComponent(
() => import( 'src/components/gallery/gallery.vue')
),
Gallery,
},
props: {
draft: {