2023-07-27 07:31:52 +02:00
|
|
|
/*
|
2024-02-13 16:59:27 +01:00
|
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 07:31:52 +02:00
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
import { App } from 'vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-10-31 05:46:58 +01:00
|
|
|
import Mfm from './global/MkMisskeyFlavoredMarkdown.js';
|
2022-08-30 17:24:33 +02:00
|
|
|
import MkA from './global/MkA.vue';
|
|
|
|
import MkAcct from './global/MkAcct.vue';
|
|
|
|
import MkAvatar from './global/MkAvatar.vue';
|
|
|
|
import MkEmoji from './global/MkEmoji.vue';
|
2023-05-05 01:16:55 +02:00
|
|
|
import MkCondensedLine from './global/MkCondensedLine.vue';
|
2023-01-26 07:48:12 +01:00
|
|
|
import MkCustomEmoji from './global/MkCustomEmoji.vue';
|
2023-02-08 12:07:19 +01:00
|
|
|
import MkUserName from './global/MkUserName.vue';
|
2022-08-30 17:24:33 +02:00
|
|
|
import MkEllipsis from './global/MkEllipsis.vue';
|
|
|
|
import MkTime from './global/MkTime.vue';
|
|
|
|
import MkUrl from './global/MkUrl.vue';
|
2024-01-20 00:11:59 +01:00
|
|
|
import I18n from './global/I18n.vue';
|
2022-08-30 17:24:33 +02:00
|
|
|
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';
|
2023-10-31 05:46:58 +01:00
|
|
|
import MkFooterSpacer from './global/MkFooterSpacer.vue';
|
2022-08-30 17:24:33 +02:00
|
|
|
import MkStickyContainer from './global/MkStickyContainer.vue';
|
2023-12-15 07:37:19 +01:00
|
|
|
import MkLazy from './global/MkLazy.vue';
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2020-10-17 13:12:00 +02:00
|
|
|
export default function(app: App) {
|
2023-03-13 01:46:33 +01:00
|
|
|
for (const [key, value] of Object.entries(components)) {
|
|
|
|
app.component(key, value);
|
|
|
|
}
|
2021-11-12 10:41:56 +01:00
|
|
|
}
|
|
|
|
|
2023-03-13 01:46:33 +01:00
|
|
|
export const components = {
|
|
|
|
I18n: I18n,
|
|
|
|
RouterView: RouterView,
|
|
|
|
Mfm: Mfm,
|
|
|
|
MkA: MkA,
|
|
|
|
MkAcct: MkAcct,
|
|
|
|
MkAvatar: MkAvatar,
|
|
|
|
MkEmoji: MkEmoji,
|
2023-05-05 01:16:55 +02:00
|
|
|
MkCondensedLine: MkCondensedLine,
|
2023-03-13 01:46:33 +01:00
|
|
|
MkCustomEmoji: MkCustomEmoji,
|
|
|
|
MkUserName: MkUserName,
|
|
|
|
MkEllipsis: MkEllipsis,
|
|
|
|
MkTime: MkTime,
|
|
|
|
MkUrl: MkUrl,
|
|
|
|
MkLoading: MkLoading,
|
|
|
|
MkError: MkError,
|
|
|
|
MkAd: MkAd,
|
|
|
|
MkPageHeader: MkPageHeader,
|
|
|
|
MkSpacer: MkSpacer,
|
2023-10-31 05:46:58 +01:00
|
|
|
MkFooterSpacer: MkFooterSpacer,
|
2023-03-13 01:46:33 +01:00
|
|
|
MkStickyContainer: MkStickyContainer,
|
2023-12-15 07:37:19 +01:00
|
|
|
MkLazy: MkLazy,
|
2023-03-13 01:46:33 +01:00
|
|
|
};
|
|
|
|
|
2021-11-12 10:41:56 +01:00
|
|
|
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;
|
2023-05-05 01:16:55 +02:00
|
|
|
MkCondensedLine: typeof MkCondensedLine;
|
2023-01-26 07:48:12 +01:00
|
|
|
MkCustomEmoji: typeof MkCustomEmoji;
|
2023-02-08 12:07:19 +01:00
|
|
|
MkUserName: typeof MkUserName;
|
2021-11-12 10:41:56 +01:00
|
|
|
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;
|
2023-10-31 05:46:58 +01:00
|
|
|
MkFooterSpacer: typeof MkFooterSpacer;
|
2021-11-12 10:41:56 +01:00
|
|
|
MkStickyContainer: typeof MkStickyContainer;
|
2023-12-15 07:37:19 +01:00
|
|
|
MkLazy: typeof MkLazy;
|
2021-11-12 10:41:56 +01:00
|
|
|
}
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|