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 @@ + + + + +