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
|
|
@ -3,7 +3,7 @@ import { defineAsyncComponent } from 'vue'
|
|||
|
||||
import nsfwImage from '../../assets/nsfw.png'
|
||||
import Popover from '../popover/popover.vue'
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
|
||||
import VideoAttachment from '../video_attachment/video_attachment.vue'
|
||||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
|
|
@ -69,10 +69,12 @@ const Attachment = {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
Flash: defineAsyncComponent(() => import('src/components/flash/flash.vue')),
|
||||
StillImage,
|
||||
Flash: defineAsyncComponent(
|
||||
() => import( 'src/components/flash/flash.vue'),
|
||||
),
|
||||
|
||||
VideoAttachment: defineAsyncComponent(
|
||||
() => import('src/components/video_attachment/video_attachment.vue'),
|
||||
() => import( 'src/components/video_attachment/video_attachment.vue'),
|
||||
),
|
||||
Popover,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue