From d06f61f23f29b2571fb720666fb8b616bdc52e95 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 9 Jan 2023 20:35:36 +0900 Subject: [PATCH] feat(client): add instance info widget --- CHANGELOG.md | 7 +- locales/ja-JP.yml | 1 + packages/frontend/src/widgets/index.ts | 2 + .../frontend/src/widgets/instance-info.vue | 94 +++++++++++++++++++ packages/frontend/src/widgets/profile.vue | 2 +- 5 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 packages/frontend/src/widgets/instance-info.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index b1ac3211c6..3c1d99d831 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,7 +66,6 @@ You should also include the user name that made the change. - Server: delete outdated notes of antenna regularly to improve db performance @syuilo - Server: improve activitypub deliver performance @syuilo - Client: use tabler-icons instead of fontawesome to better design @syuilo -- Client: Add AiScript App widget - Client: Add new gabber kick sounds (thanks for noizenecio) - Client: Add link to user RSS feed in profile menu @ssmucny - Client: Compress non-animated PNG files @saschanaz @@ -74,16 +73,18 @@ You should also include the user name that made the change. - Client: enhance dashboard of control panel @syuilo - Client: Vite is upgraded to v4 @syuilo, @tamaina - Client: HMR is available while yarn dev @tamaina -- Client: Make widgets of universal/classic sync between devices @tamaina - Client: Implement the button to subscribe push notification @tamaina - Client: Implement the toggle to or not to close push notifications when notifications or messages are read @tamaina -- Client: Improve RSS widget @tamaina - Client: show Unicode emoji tooltip with its name in MkReactionsViewer.reaction @saschanaz - Client: OpenSearch support @SoniEx2 @chaoticryptidz - Client: Support remote objects in search @SoniEx2 - Client: user activity page @syuilo +- Client: Make widgets of universal/classic sync between devices @tamaina - Client: add user list widget @syuilo +- Client: Add AiScript App widget - Client: add profile widget @syuilo +- Client: add instance info widget @syuilo +- Client: Improve RSS widget @tamaina - Client: add heatmap of daily active users to about page @syuilo - Client: introduce fluent emoji @syuilo - Client: add new theme @syuilo diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index bdbd6efea5..aac89d8fe4 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1336,6 +1336,7 @@ _weekday: _widgets: profile: "プロフィール" + instanceInfo: "インスタンス情報" memo: "付箋" notifications: "通知" timeline: "タイムライン" 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 @@
- +