dynamically load gallery

This commit is contained in:
Henry Jameson 2026-06-04 18:27:09 +03:00
commit 3aca1ce6c0
7 changed files with 24 additions and 15 deletions

View file

@ -1,9 +1,9 @@
import { mapState as mapPiniaState } from 'pinia'
import { mapGetters, mapState } from 'vuex'
import { defineAsyncComponent } from 'vue'
import Attachment from 'src/components/attachment/attachment.vue'
import ChatMessageDate from 'src/components/chat_message_date/chat_message_date.vue'
import Gallery from 'src/components/gallery/gallery.vue'
import LinkPreview from 'src/components/link-preview/link-preview.vue'
import Popover from 'src/components/popover/popover.vue'
import StatusContent from 'src/components/status_content/status_content.vue'
@ -34,7 +34,9 @@ const ChatMessage = {
Attachment,
StatusContent,
UserAvatar,
Gallery,
Gallery: defineAsyncComponent(
() => import( 'src/components/gallery/gallery.vue'),
),
LinkPreview,
ChatMessageDate,
UserPopover,