From 6acc10b4ba0cb1c21a377ca2a93fc3809c1d1cfc Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 26 Dec 2022 10:29:47 +0900 Subject: [PATCH] feat(client): add user list widget --- CHANGELOG.md | 1 + locales/ja-JP.yml | 3 + packages/client/src/widgets/index.ts | 2 + packages/client/src/widgets/user-list.vue | 136 ++++++++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 packages/client/src/widgets/user-list.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index af3fc75c06..2f633d43c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ You should also include the user name that made the change. - 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: show Unicode emoji tooltip with its name in MkReactionsViewer.reaction @saschanaz +- Client: add user list widget @syuilo - Client: improve overall performance of client @syuilo ### Bugfixes diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 98e435a6b5..6ebeaf65be 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1344,6 +1344,9 @@ _widgets: serverMetric: "サーバーメトリクス" aiscript: "AiScriptコンソール" aichan: "藍" + userList: "ユーザーリスト" + _userList: + chooseList: "リストを選択" _cw: hide: "隠す" diff --git a/packages/client/src/widgets/index.ts b/packages/client/src/widgets/index.ts index 66bec7c83f..39826f13c8 100644 --- a/packages/client/src/widgets/index.ts +++ b/packages/client/src/widgets/index.ts @@ -23,6 +23,7 @@ export default function(app: App) { app.component('MkwButton', defineAsyncComponent(() => import('./button.vue'))); app.component('MkwAiscript', defineAsyncComponent(() => import('./aiscript.vue'))); app.component('MkwAichan', defineAsyncComponent(() => import('./aichan.vue'))); + app.component('MkwUserList', defineAsyncComponent(() => import('./user-list.vue'))); } export const widgets = [ @@ -48,4 +49,5 @@ export const widgets = [ 'button', 'aiscript', 'aichan', + 'userList', ]; diff --git a/packages/client/src/widgets/user-list.vue b/packages/client/src/widgets/user-list.vue new file mode 100644 index 0000000000..9ffbf0d8e3 --- /dev/null +++ b/packages/client/src/widgets/user-list.vue @@ -0,0 +1,136 @@ + + + + +