2020-10-17 13:12:00 +02:00
|
|
|
import { App } from 'vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2021-11-12 10:41:56 +01:00
|
|
|
import Mfm from './global/misskey-flavored-markdown.vue';
|
|
|
|
import MkA from './global/a.vue';
|
|
|
|
import MkAcct from './global/acct.vue';
|
|
|
|
import MkAvatar from './global/avatar.vue';
|
|
|
|
import MkEmoji from './global/emoji.vue';
|
|
|
|
import MkUserName from './global/user-name.vue';
|
|
|
|
import MkEllipsis from './global/ellipsis.vue';
|
|
|
|
import MkTime from './global/time.vue';
|
|
|
|
import MkUrl from './global/url.vue';
|
|
|
|
import I18n from './global/i18n';
|
2022-06-20 10:38:49 +02:00
|
|
|
import RouterView from './global/router-view.vue';
|
2021-11-12 10:41:56 +01:00
|
|
|
import MkLoading from './global/loading.vue';
|
|
|
|
import MkError from './global/error.vue';
|
|
|
|
import MkAd from './global/ad.vue';
|
2022-06-20 10:38:49 +02:00
|
|
|
import MkPageHeader from './global/page-header.vue';
|
2021-11-12 10:41:56 +01:00
|
|
|
import MkSpacer from './global/spacer.vue';
|
|
|
|
import MkStickyContainer from './global/sticky-container.vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
export default function(app: App) {
|
2021-11-12 10:41:56 +01:00
|
|
|
app.component('I18n', I18n);
|
2022-06-20 10:38:49 +02:00
|
|
|
app.component('RouterView', RouterView);
|
2021-11-12 10:41:56 +01:00
|
|
|
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);
|
2022-06-20 10:38:49 +02:00
|
|
|
app.component('MkPageHeader', MkPageHeader);
|
2021-11-12 10:41:56 +01:00
|
|
|
app.component('MkSpacer', MkSpacer);
|
|
|
|
app.component('MkStickyContainer', MkStickyContainer);
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module '@vue/runtime-core' {
|
|
|
|
export interface GlobalComponents {
|
|
|
|
I18n: typeof I18n;
|
2022-06-20 10:38:49 +02:00
|
|
|
RouterView: typeof RouterView;
|
2021-11-12 10:41:56 +01:00
|
|
|
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;
|
2022-06-20 10:38:49 +02:00
|
|
|
MkPageHeader: typeof MkPageHeader;
|
2021-11-12 10:41:56 +01:00
|
|
|
MkSpacer: typeof MkSpacer;
|
|
|
|
MkStickyContainer: typeof MkStickyContainer;
|
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|