From 99dcd7bb27da3b12d51b685f9562a89b15cd138f Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 29 Jun 2022 23:28:52 +0900 Subject: [PATCH] feat(client): add instance-cloud widget --- CHANGELOG.md | 1 + locales/ja-JP.yml | 1 + packages/client/src/widgets/index.ts | 2 + .../client/src/widgets/instance-cloud.vue | 80 +++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 packages/client/src/widgets/instance-cloud.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index e9bb600ff..063ebf525 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ You should also include the user name that made the change. - Server: Add rate limit to i/notifications @tamaina - Client: Improve control panel @syuilo - Client: Show warning in control panel when there is an unresolved abuse report @syuilo +- Client: Add instance-cloud widget @syuilo - Make possible to delete an account by admin @syuilo - Improve player detection in URL preview @mei23 - Add Badge Image to Push Notification #8012 @tamaina diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 139643f72..9de5b99d1 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1247,6 +1247,7 @@ _widgets: photos: "フォト" digitalClock: "デジタル時計" federation: "連合" + instanceCloud: "インスタンスクラウド" postForm: "投稿フォーム" slideshow: "スライドショー" button: "ボタン" diff --git a/packages/client/src/widgets/index.ts b/packages/client/src/widgets/index.ts index 51a82af08..feda16c91 100644 --- a/packages/client/src/widgets/index.ts +++ b/packages/client/src/widgets/index.ts @@ -17,6 +17,7 @@ export default function(app: App) { 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'))); app.component('MkwAichan', defineAsyncComponent(() => import('./aichan.vue'))); @@ -34,6 +35,7 @@ export const widgets = [ 'photos', 'digitalClock', 'federation', + 'instance-cloud', 'postForm', 'slideshow', 'serverMetric', diff --git a/packages/client/src/widgets/instance-cloud.vue b/packages/client/src/widgets/instance-cloud.vue new file mode 100644 index 000000000..aa76c37a0 --- /dev/null +++ b/packages/client/src/widgets/instance-cloud.vue @@ -0,0 +1,80 @@ + + + + +