From 5dbe1d448b9406fbe5a79e62b6826c31df7f9cb0 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 27 May 2019 17:44:51 +0900 Subject: [PATCH] Improve job queue view --- locales/ja-JP.yml | 7 ++++- src/client/app/admin/views/queue.chart.vue | 2 +- src/client/app/admin/views/queue.vue | 30 +++++++++++++++---- .../app/common/views/components/ui/input.vue | 26 ++++++++++------ src/server/api/endpoints/admin/queue/stats.ts | 8 +++-- 5 files changed, 54 insertions(+), 19 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 493875af6e..52f1e2901c 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1245,10 +1245,15 @@ admin/views/queue.vue: domains: deliver: "配送" inbox: "受信" + db: "データベース" + objectStorage: "オブジェクトストレージ" state: "状態" states: - delayed: "遅延" + active: "処理中" + delayed: "予約済み" + waiting: "順番待ち" result-is-truncated: "結果は省略されています" + other-queues: "その他のキュー" admin/views/logs.vue: logs: "ログ" diff --git a/src/client/app/admin/views/queue.chart.vue b/src/client/app/admin/views/queue.chart.vue index c3d68d75af..ff29aa8392 100644 --- a/src/client/app/admin/views/queue.chart.vue +++ b/src/client/app/admin/views/queue.chart.vue @@ -176,6 +176,6 @@ export default Vue.extend({ diff --git a/src/client/app/admin/views/queue.vue b/src/client/app/admin/views/queue.vue index 358ed6cf74..43a41ffbe8 100644 --- a/src/client/app/admin/views/queue.vue +++ b/src/client/app/admin/views/queue.vue @@ -2,14 +2,28 @@
-
-
Deliver
+
+
{{ $t('domains.deliver') }}
-
-
Inbox
+
+
{{ $t('domains.inbox') }}
+
+
+ {{ $t('other-queues') }} +
+
{{ $t('domains.db') }}
+ +
+ +
+
{{ $t('domains.objectStorage') }}
+ +
+
+
{{ $t('remove-all-jobs') }}
@@ -23,9 +37,13 @@ + + + + @@ -48,7 +66,7 @@