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

@ -9,6 +9,7 @@ import Popover from 'src/components/popover/popover.vue'
import StatusContent from 'src/components/status_content/status_content.vue'
import UserAvatar from 'src/components/user_avatar/user_avatar.vue'
import UserPopover from 'src/components/user_popover/user_popover.vue'
import Gallery from 'src/components/gallery/gallery.vue'
import { useInstanceStore } from 'src/stores/instance.js'
import { useInterfaceStore } from 'src/stores/interface'
@ -34,9 +35,7 @@ const ChatMessage = {
Attachment,
StatusContent,
UserAvatar,
Gallery: defineAsyncComponent(
() => import( 'src/components/gallery/gallery.vue'),
),
Gallery,
LinkPreview,
ChatMessageDate,
UserPopover,