2023-07-27 08:31:52 +03:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2020-10-17 14:12:00 +03:00
|
|
|
import { App, defineAsyncComponent } from 'vue';
|
2020-01-29 21:37:25 +02:00
|
|
|
|
2020-10-17 14:12:00 +03:00
|
|
|
export default function(app: App) {
|
2023-01-09 23:08:40 +02:00
|
|
|
app.component('WidgetProfile', defineAsyncComponent(() => import('./WidgetProfile.vue')));
|
|
|
|
app.component('WidgetInstanceInfo', defineAsyncComponent(() => import('./WidgetInstanceInfo.vue')));
|
|
|
|
app.component('WidgetMemo', defineAsyncComponent(() => import('./WidgetMemo.vue')));
|
|
|
|
app.component('WidgetNotifications', defineAsyncComponent(() => import('./WidgetNotifications.vue')));
|
|
|
|
app.component('WidgetTimeline', defineAsyncComponent(() => import('./WidgetTimeline.vue')));
|
|
|
|
app.component('WidgetCalendar', defineAsyncComponent(() => import('./WidgetCalendar.vue')));
|
|
|
|
app.component('WidgetRss', defineAsyncComponent(() => import('./WidgetRss.vue')));
|
|
|
|
app.component('WidgetRssTicker', defineAsyncComponent(() => import('./WidgetRssTicker.vue')));
|
|
|
|
app.component('WidgetTrends', defineAsyncComponent(() => import('./WidgetTrends.vue')));
|
|
|
|
app.component('WidgetClock', defineAsyncComponent(() => import('./WidgetClock.vue')));
|
|
|
|
app.component('WidgetActivity', defineAsyncComponent(() => import('./WidgetActivity.vue')));
|
|
|
|
app.component('WidgetPhotos', defineAsyncComponent(() => import('./WidgetPhotos.vue')));
|
|
|
|
app.component('WidgetDigitalClock', defineAsyncComponent(() => import('./WidgetDigitalClock.vue')));
|
|
|
|
app.component('WidgetUnixClock', defineAsyncComponent(() => import('./WidgetUnixClock.vue')));
|
|
|
|
app.component('WidgetFederation', defineAsyncComponent(() => import('./WidgetFederation.vue')));
|
|
|
|
app.component('WidgetPostForm', defineAsyncComponent(() => import('./WidgetPostForm.vue')));
|
|
|
|
app.component('WidgetSlideshow', defineAsyncComponent(() => import('./WidgetSlideshow.vue')));
|
|
|
|
app.component('WidgetServerMetric', defineAsyncComponent(() => import('./server-metric/index.vue')));
|
|
|
|
app.component('WidgetOnlineUsers', defineAsyncComponent(() => import('./WidgetOnlineUsers.vue')));
|
|
|
|
app.component('WidgetJobQueue', defineAsyncComponent(() => import('./WidgetJobQueue.vue')));
|
|
|
|
app.component('WidgetInstanceCloud', defineAsyncComponent(() => import('./WidgetInstanceCloud.vue')));
|
|
|
|
app.component('WidgetButton', defineAsyncComponent(() => import('./WidgetButton.vue')));
|
|
|
|
app.component('WidgetAiscript', defineAsyncComponent(() => import('./WidgetAiscript.vue')));
|
|
|
|
app.component('WidgetAiscriptApp', defineAsyncComponent(() => import('./WidgetAiscriptApp.vue')));
|
|
|
|
app.component('WidgetAichan', defineAsyncComponent(() => import('./WidgetAichan.vue')));
|
|
|
|
app.component('WidgetUserList', defineAsyncComponent(() => import('./WidgetUserList.vue')));
|
|
|
|
app.component('WidgetClicker', defineAsyncComponent(() => import('./WidgetClicker.vue')));
|
2023-12-01 00:45:13 +02:00
|
|
|
app.component('WidgetSearch', defineAsyncComponent(() => import('./WidgetSearch.vue')));
|
2023-11-30 07:49:26 +02:00
|
|
|
app.component('WidgetBirthdayFollowings', defineAsyncComponent(() => import('./WidgetBirthdayFollowings.vue')));
|
2020-10-17 14:12:00 +03:00
|
|
|
}
|
2020-07-11 04:13:11 +03:00
|
|
|
|
|
|
|
export const widgets = [
|
2023-01-09 13:23:06 +02:00
|
|
|
'profile',
|
2023-01-09 13:35:36 +02:00
|
|
|
'instanceInfo',
|
2020-07-11 04:13:11 +03:00
|
|
|
'memo',
|
|
|
|
'notifications',
|
|
|
|
'timeline',
|
|
|
|
'calendar',
|
|
|
|
'rss',
|
2022-07-03 10:50:51 +03:00
|
|
|
'rssTicker',
|
2020-07-11 04:13:11 +03:00
|
|
|
'trends',
|
|
|
|
'clock',
|
|
|
|
'activity',
|
|
|
|
'photos',
|
|
|
|
'digitalClock',
|
2022-08-04 16:20:00 +03:00
|
|
|
'unixClock',
|
2020-07-25 05:56:56 +03:00
|
|
|
'federation',
|
2022-06-30 17:45:11 +03:00
|
|
|
'instanceCloud',
|
2020-10-17 14:12:00 +03:00
|
|
|
'postForm',
|
2020-12-05 15:29:55 +02:00
|
|
|
'slideshow',
|
2021-01-03 15:38:32 +02:00
|
|
|
'serverMetric',
|
2020-12-30 06:07:16 +02:00
|
|
|
'onlineUsers',
|
2021-01-04 10:36:50 +02:00
|
|
|
'jobQueue',
|
2020-12-27 16:13:01 +02:00
|
|
|
'button',
|
2021-02-06 14:36:47 +02:00
|
|
|
'aiscript',
|
2023-01-05 06:59:48 +02:00
|
|
|
'aiscriptApp',
|
2021-09-04 11:54:24 +03:00
|
|
|
'aichan',
|
2022-12-26 03:29:47 +02:00
|
|
|
'userList',
|
2023-01-08 10:41:09 +02:00
|
|
|
'clicker',
|
2023-12-01 00:45:13 +02:00
|
|
|
'search',
|
2023-11-30 07:49:26 +02:00
|
|
|
'birthdayFollowings',
|
2020-07-11 04:13:11 +03:00
|
|
|
];
|