summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/index.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-27 14:36:33 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-27 14:36:33 +0900
commit9384f5399da39e53855beb8e7f8ded1aa56bf72e (patch)
treece5959571a981b9c4047da3c7b3fd080aa44222c /packages/frontend/src/components/index.ts
parentwip: retention for dashboard (diff)
downloadmisskey-9384f5399da39e53855beb8e7f8ded1aa56bf72e.tar.gz
misskey-9384f5399da39e53855beb8e7f8ded1aa56bf72e.tar.bz2
misskey-9384f5399da39e53855beb8e7f8ded1aa56bf72e.zip
rename: client -> frontend
Diffstat (limited to 'packages/frontend/src/components/index.ts')
-rw-r--r--packages/frontend/src/components/index.ts61
1 files changed, 61 insertions, 0 deletions
diff --git a/packages/frontend/src/components/index.ts b/packages/frontend/src/components/index.ts
new file mode 100644
index 0000000000..8639257003
--- /dev/null
+++ b/packages/frontend/src/components/index.ts
@@ -0,0 +1,61 @@
+import { App } from 'vue';
+
+import Mfm from './global/MkMisskeyFlavoredMarkdown.vue';
+import MkA from './global/MkA.vue';
+import MkAcct from './global/MkAcct.vue';
+import MkAvatar from './global/MkAvatar.vue';
+import MkEmoji from './global/MkEmoji.vue';
+import MkUserName from './global/MkUserName.vue';
+import MkEllipsis from './global/MkEllipsis.vue';
+import MkTime from './global/MkTime.vue';
+import MkUrl from './global/MkUrl.vue';
+import I18n from './global/i18n';
+import RouterView from './global/RouterView.vue';
+import MkLoading from './global/MkLoading.vue';
+import MkError from './global/MkError.vue';
+import MkAd from './global/MkAd.vue';
+import MkPageHeader from './global/MkPageHeader.vue';
+import MkSpacer from './global/MkSpacer.vue';
+import MkStickyContainer from './global/MkStickyContainer.vue';
+
+export default function(app: App) {
+ app.component('I18n', I18n);
+ app.component('RouterView', RouterView);
+ app.component('Mfm', Mfm);
+ app.component('MkA', MkA);
+ app.component('MkAcct', MkAcct);
+ app.component('MkAvatar', MkAvatar);
+ app.component('MkEmoji', MkEmoji);
+ app.component('MkUserName', MkUserName);
+ app.component('MkEllipsis', MkEllipsis);
+ app.component('MkTime', MkTime);
+ app.component('MkUrl', MkUrl);
+ app.component('MkLoading', MkLoading);
+ app.component('MkError', MkError);
+ app.component('MkAd', MkAd);
+ app.component('MkPageHeader', MkPageHeader);
+ app.component('MkSpacer', MkSpacer);
+ app.component('MkStickyContainer', MkStickyContainer);
+}
+
+declare module '@vue/runtime-core' {
+ export interface GlobalComponents {
+ I18n: typeof I18n;
+ RouterView: typeof RouterView;
+ Mfm: typeof Mfm;
+ MkA: typeof MkA;
+ MkAcct: typeof MkAcct;
+ MkAvatar: typeof MkAvatar;
+ MkEmoji: typeof MkEmoji;
+ MkUserName: typeof MkUserName;
+ MkEllipsis: typeof MkEllipsis;
+ MkTime: typeof MkTime;
+ MkUrl: typeof MkUrl;
+ MkLoading: typeof MkLoading;
+ MkError: typeof MkError;
+ MkAd: typeof MkAd;
+ MkPageHeader: typeof MkPageHeader;
+ MkSpacer: typeof MkSpacer;
+ MkStickyContainer: typeof MkStickyContainer;
+ }
+}