diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 51f8672ba..7e9b7ab4d 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1030,6 +1030,7 @@ _widgets: slideshow: "スライドショー" button: "ボタン" onlineUsers: "オンラインユーザー" + jobQueue: "ジョブキュー" serverMetric: "サーバーメトリクス" _cw: diff --git a/src/client/widgets/index.ts b/src/client/widgets/index.ts index 8e9232cd9..0c7e82430 100644 --- a/src/client/widgets/index.ts +++ b/src/client/widgets/index.ts @@ -16,6 +16,7 @@ export default function(app: App) { app.component('MkwSlideshow', defineAsyncComponent(() => import('./slideshow.vue'))); 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('MkwButton', defineAsyncComponent(() => import('./button.vue'))); } @@ -35,5 +36,6 @@ export const widgets = [ 'slideshow', 'serverMetric', 'onlineUsers', + 'jobQueue', 'button', ]; diff --git a/src/client/widgets/job-queue.vue b/src/client/widgets/job-queue.vue new file mode 100644 index 000000000..8aad00a9c --- /dev/null +++ b/src/client/widgets/job-queue.vue @@ -0,0 +1,158 @@ + + + + Inbox queue + + + Process + {{ number(inbox.activeSincePrevTick) }} + + + Active + {{ number(inbox.active) }} + + + Delayed + {{ number(inbox.delayed) }} + + + Waiting + {{ number(inbox.waiting) }} + + + + + Deliver queue + + + Process + {{ number(deliver.activeSincePrevTick) }} + + + Active + {{ number(deliver.active) }} + + + Delayed + {{ number(deliver.delayed) }} + + + Waiting + {{ number(deliver.waiting) }} + + + + + + + + +