magnetar/fe_calckey/frontend/client/src/widgets/index.ts

103 lines
2.5 KiB
TypeScript
Raw Normal View History

2023-07-07 19:22:30 +00:00
import { App, defineAsyncComponent } from "vue";
export default function (app: App) {
app.component(
"MkwMemo",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./memo.vue")),
);
app.component(
"MkwNotifications",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./notifications.vue")),
);
app.component(
"MkwTimeline",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./timeline.vue")),
);
app.component(
"MkwCalendar",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./calendar.vue")),
);
app.component(
"MkwRss",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./rss.vue")),
);
app.component(
"MkwRssTicker",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./rss-ticker.vue")),
);
app.component(
"MkwTrends",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./trends.vue")),
);
app.component(
"MkwClock",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./clock.vue")),
);
app.component(
"MkwActivity",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./activity.vue")),
);
app.component(
"MkwPhotos",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./photos.vue")),
);
app.component(
"MkwDigitalClock",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./digital-clock.vue")),
);
app.component(
"MkwUnixClock",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./unix-clock.vue")),
);
app.component(
"MkwFederation",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./federation.vue")),
);
app.component(
"MkwPostForm",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./post-form.vue")),
);
app.component(
"MkwSlideshow",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./slideshow.vue")),
);
app.component(
"MkwOnlineUsers",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./online-users.vue")),
);
app.component(
"MkwJobQueue",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./job-queue.vue")),
);
app.component(
"MkwUserList",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./user-list.vue")),
);
app.component(
"MkwServerInfo",
2024-04-08 01:10:23 +00:00
defineAsyncComponent(() => import("./server-info.vue")),
);
2023-07-07 19:22:30 +00:00
}
export const widgets = [
"memo",
"notifications",
"timeline",
"calendar",
"userList",
"rss",
"rssTicker",
"trends",
"clock",
"activity",
"photos",
"digitalClock",
"unixClock",
"federation",
"postForm",
"slideshow",
"serverInfo",
"onlineUsers",
"jobQueue",
2023-07-07 19:22:30 +00:00
];