summaryrefslogtreecommitdiff
path: root/src/client/components/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/components/index.ts')
-rw-r--r--src/client/components/index.ts26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/client/components/index.ts b/src/client/components/index.ts
index 87547599a9..6cc06e37c3 100644
--- a/src/client/components/index.ts
+++ b/src/client/components/index.ts
@@ -1,4 +1,4 @@
-import Vue from 'vue';
+import { App } from 'vue';
import mfm from './misskey-flavored-markdown.vue';
import acct from './acct.vue';
@@ -12,14 +12,16 @@ import loading from './loading.vue';
import error from './error.vue';
import streamIndicator from './stream-indicator.vue';
-Vue.component('mfm', mfm);
-Vue.component('mk-acct', acct);
-Vue.component('mk-avatar', avatar);
-Vue.component('mk-emoji', emoji);
-Vue.component('mk-user-name', userName);
-Vue.component('mk-ellipsis', ellipsis);
-Vue.component('mk-time', time);
-Vue.component('mk-url', url);
-Vue.component('mk-loading', loading);
-Vue.component('mk-error', error);
-Vue.component('stream-indicator', streamIndicator);
+export default function(app: App) {
+ app.component('Mfm', mfm);
+ app.component('MkAcct', acct);
+ app.component('MkAvatar', avatar);
+ app.component('MkEmoji', emoji);
+ app.component('MkUserName', userName);
+ app.component('MkEllipsis', ellipsis);
+ app.component('MkTime', time);
+ app.component('MkUrl', url);
+ app.component('MkLoading', loading);
+ app.component('MkError', error);
+ app.component('StreamIndicator', streamIndicator);
+}