eliminate cyclic dependencies by register most-used components globally
This commit is contained in:
parent
dad1d02b58
commit
e0c8fcc82b
39 changed files with 93 additions and 96 deletions
|
|
@ -6,6 +6,7 @@ import StatusBody from 'src/components/status_body/status_body.vue'
|
|||
import Attachment from '../attachment/attachment.vue'
|
||||
import LinkPreview from '../link-preview/link-preview.vue'
|
||||
import Poll from '../poll/poll.vue'
|
||||
import Gallery from 'src/components/gallery/gallery.vue'
|
||||
|
||||
import { useMediaViewerStore } from 'src/stores/media_viewer.js'
|
||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||
|
|
@ -132,9 +133,7 @@ const StatusContent = {
|
|||
components: {
|
||||
Attachment,
|
||||
Poll,
|
||||
Gallery: defineAsyncComponent(
|
||||
() => import( 'src/components/gallery/gallery.vue')
|
||||
),
|
||||
Gallery,
|
||||
LinkPreview,
|
||||
StatusBody,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue