2023-01-13 05:40:33 +01:00
|
|
|
import { App, defineAsyncComponent } from "vue";
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2023-01-13 05:40:33 +01:00
|
|
|
export default function (app: App) {
|
|
|
|
app.component(
|
|
|
|
"MkwMemo",
|
|
|
|
defineAsyncComponent(() => import("./memo.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwNotifications",
|
|
|
|
defineAsyncComponent(() => import("./notifications.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwTimeline",
|
|
|
|
defineAsyncComponent(() => import("./timeline.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwCalendar",
|
|
|
|
defineAsyncComponent(() => import("./calendar.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwRss",
|
|
|
|
defineAsyncComponent(() => import("./rss.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwRssTicker",
|
|
|
|
defineAsyncComponent(() => import("./rss-ticker.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwTrends",
|
|
|
|
defineAsyncComponent(() => import("./trends.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwClock",
|
|
|
|
defineAsyncComponent(() => import("./clock.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwActivity",
|
|
|
|
defineAsyncComponent(() => import("./activity.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwPhotos",
|
|
|
|
defineAsyncComponent(() => import("./photos.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwDigitalClock",
|
|
|
|
defineAsyncComponent(() => import("./digital-clock.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwUnixClock",
|
|
|
|
defineAsyncComponent(() => import("./unix-clock.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwFederation",
|
|
|
|
defineAsyncComponent(() => import("./federation.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwPostForm",
|
|
|
|
defineAsyncComponent(() => import("./post-form.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwSlideshow",
|
|
|
|
defineAsyncComponent(() => import("./slideshow.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwServerMetric",
|
|
|
|
defineAsyncComponent(() => import("./server-metric/index.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwOnlineUsers",
|
|
|
|
defineAsyncComponent(() => import("./online-users.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwJobQueue",
|
|
|
|
defineAsyncComponent(() => import("./job-queue.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwInstanceCloud",
|
|
|
|
defineAsyncComponent(() => import("./instance-cloud.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwButton",
|
|
|
|
defineAsyncComponent(() => import("./button.vue")),
|
|
|
|
);
|
|
|
|
app.component(
|
|
|
|
"MkwAiscript",
|
|
|
|
defineAsyncComponent(() => import("./aiscript.vue")),
|
|
|
|
);
|
2023-01-16 20:19:20 +01:00
|
|
|
app.component(
|
|
|
|
"MkwUserList",
|
|
|
|
defineAsyncComponent(() => import("./user-list.vue")),
|
|
|
|
);
|
2020-10-17 13:12:00 +02:00
|
|
|
}
|
2020-07-11 03:13:11 +02:00
|
|
|
|
|
|
|
export const widgets = [
|
2023-01-13 05:40:33 +01:00
|
|
|
"memo",
|
|
|
|
"notifications",
|
|
|
|
"timeline",
|
|
|
|
"calendar",
|
|
|
|
"rss",
|
|
|
|
"rssTicker",
|
|
|
|
"trends",
|
|
|
|
"clock",
|
|
|
|
"activity",
|
|
|
|
"photos",
|
|
|
|
"digitalClock",
|
|
|
|
"unixClock",
|
|
|
|
"federation",
|
|
|
|
"instanceCloud",
|
|
|
|
"postForm",
|
|
|
|
"slideshow",
|
|
|
|
"serverMetric",
|
|
|
|
"onlineUsers",
|
|
|
|
"jobQueue",
|
|
|
|
"button",
|
|
|
|
"aiscript",
|
2023-01-16 20:19:20 +01:00
|
|
|
"userList",
|
2020-07-11 03:13:11 +02:00
|
|
|
];
|