From d06f61f23f29b2571fb720666fb8b616bdc52e95 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 9 Jan 2023 20:35:36 +0900 Subject: feat(client): add instance info widget --- packages/frontend/src/widgets/index.ts | 2 + packages/frontend/src/widgets/instance-info.vue | 94 +++++++++++++++++++++++++ packages/frontend/src/widgets/profile.vue | 2 +- 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 packages/frontend/src/widgets/instance-info.vue (limited to 'packages') diff --git a/packages/frontend/src/widgets/index.ts b/packages/frontend/src/widgets/index.ts index 0b81892419..10b8d94234 100644 --- a/packages/frontend/src/widgets/index.ts +++ b/packages/frontend/src/widgets/index.ts @@ -2,6 +2,7 @@ import { App, defineAsyncComponent } from 'vue'; export default function(app: App) { app.component('MkwProfile', defineAsyncComponent(() => import('./profile.vue'))); + app.component('MkwInstanceInfo', defineAsyncComponent(() => import('./instance-info.vue'))); app.component('MkwMemo', defineAsyncComponent(() => import('./memo.vue'))); app.component('MkwNotifications', defineAsyncComponent(() => import('./notifications.vue'))); app.component('MkwTimeline', defineAsyncComponent(() => import('./timeline.vue'))); @@ -31,6 +32,7 @@ export default function(app: App) { export const widgets = [ 'profile', + 'instanceInfo', 'memo', 'notifications', 'timeline', diff --git a/packages/frontend/src/widgets/instance-info.vue b/packages/frontend/src/widgets/instance-info.vue new file mode 100644 index 0000000000..990802d847 --- /dev/null +++ b/packages/frontend/src/widgets/instance-info.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/packages/frontend/src/widgets/profile.vue b/packages/frontend/src/widgets/profile.vue index 3c70be12c3..c6e66c1df2 100644 --- a/packages/frontend/src/widgets/profile.vue +++ b/packages/frontend/src/widgets/profile.vue @@ -6,7 +6,7 @@
- +
-- cgit v1.2.3-freya