Archived
2
0

Change the way we export (breaking change)

This commit is contained in:
gbrian 2021-03-29 11:12:07 +00:00
parent 99d528f2ea
commit 3989635b90

View File

@ -19,6 +19,19 @@ import Members from '~/components/members.vue'
import Emotes from '~/components/emotes.vue' import Emotes from '~/components/emotes.vue'
import About from '~/components/about.vue' import About from '~/components/about.vue'
import Header from '~/components/header.vue' import Header from '~/components/header.vue'
import Chat from '~/components/chat.vue'
import Clipboard from '~/components/clipboard.vue'
import Emoji from '~/components/emoji.vue'
import Emote from '~/components/emote.vue'
import Context from '~/components/context.vue'
import Markdown from '~/components/markdown'
import Avatar from '~/components/avatar.vue'
// Vue
import Vue from 'vue'
import ToolTip from 'v-tooltip'
Vue.use(ToolTip)
const exportMixin = { const exportMixin = {
computed: { computed: {
@ -49,17 +62,22 @@ function extend (component: any) {
.extend(exportMixin) .extend(exportMixin)
} }
export const components = { export const NekoConnect = extend(Connect)
'neko-connect': extend(Connect), export const NekoVideo = extend(Video)
'neko-video': extend(Video), export const NekoMenu = extend(Menu)
'neko-menu': extend(Menu), export const NekoSide = extend(Side)
'neko-side': extend(Side), export const NekoControls = extend(Controls)
'neko-controls': extend(Controls), export const NekoMembers = extend(Members)
'neko-members': extend(Members), export const NekoEmotes = extend(Emotes)
'neko-emotes': extend(Emotes), export const NekoAbout = extend(About)
'neko-about': extend(About), export const NekoHeader = extend(Header)
'neko-header': extend(Header), export const NekoChat = extend(Chat)
} export const NekoClipboard = extend(Clipboard)
export const NekoEmoji = extend(Emoji)
export const NekoEmote = extend(Emote)
export const NekoMarkdown = extend(Markdown)
export const NekoContext = extend(Context)
export const NekoAvatar = extend(Avatar)
neko.initialise() neko.initialise()
export default neko export default neko