From bb342c76016d71fddb9c272c855292bec604fc87 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 13 Aug 2020 19:56:46 +0900 Subject: [PATCH] WIP: Improve admin dashboard --- src/client/pages/instance/index.vue | 19 ++++++++++++++++--- src/client/widgets/federation.vue | 14 +++++++++++++- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/src/client/pages/instance/index.vue b/src/client/pages/instance/index.vue index 5b5b8657c..9cdf97833 100644 --- a/src/client/pages/instance/index.vue +++ b/src/client/pages/instance/index.vue @@ -27,11 +27,22 @@
-
{{ table[0] }}{{ table[1].count | number }}{{ table[1].size | bytes }}
+ + + + + + + + + + + +
TableRecordsSize
{{ table[0] }}{{ table[1].count | number }}{{ table[1].size | bytes }}
- + @@ -497,7 +508,7 @@ export default Vue.extend({ }); this.$root.api('admin/get-table-stats', {}).then(res => { - this.dbInfo = res; + this.dbInfo = Object.entries(res).sort((a, b) => b[1].size - a[1].size); }); this.$nextTick(() => { @@ -630,11 +641,13 @@ export default Vue.extend({ > .db { flex: 1; flex-grow: 0; + height: 100%; } > .fed { flex: 1; flex-grow: 0; + height: 100%; } > *:not(:last-child) { diff --git a/src/client/widgets/federation.vue b/src/client/widgets/federation.vue index 7bafb67c8..7c3fc6238 100644 --- a/src/client/widgets/federation.vue +++ b/src/client/widgets/federation.vue @@ -1,5 +1,5 @@