From 76a881df3910e86601a0e05dc21df1cd5c756a9b Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Oct 2021 14:03:08 +0900 Subject: [PATCH 01/17] :art: --- src/client/components/ui/super-menu.vue | 2 +- src/client/pages/instance/overview.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/components/ui/super-menu.vue b/src/client/components/ui/super-menu.vue index 35fc81550d..6ab94d744d 100644 --- a/src/client/components/ui/super-menu.vue +++ b/src/client/components/ui/super-menu.vue @@ -120,7 +120,7 @@ export default defineComponent({ > .items { display: grid; - grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); grid-gap: 8px; padding: 0 16px; diff --git a/src/client/pages/instance/overview.vue b/src/client/pages/instance/overview.vue index 4a01eeb751..d48d7d12a5 100644 --- a/src/client/pages/instance/overview.vue +++ b/src/client/pages/instance/overview.vue @@ -156,7 +156,7 @@ export default defineComponent({ > .numbers { display: grid; grid-gap: 8px; - grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); + grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); margin: 16px; > .number { From d43b17519e43d28251ddd6442ba835b3a1b56144 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Oct 2021 15:33:56 +0900 Subject: [PATCH 02/17] Update number-diff.vue --- src/client/components/number-diff.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/components/number-diff.vue b/src/client/components/number-diff.vue index ba7e6964de..690f89dd59 100644 --- a/src/client/components/number-diff.vue +++ b/src/client/components/number-diff.vue @@ -1,6 +1,6 @@ From 4bb19b95960bac06ccce9e39f873248ecf9cfc14 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Oct 2021 15:34:02 +0900 Subject: [PATCH 03/17] fix typo --- src/client/components/chart.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/client/components/chart.vue b/src/client/components/chart.vue index 3599266cb6..8eb9f93f33 100644 --- a/src/client/components/chart.vue +++ b/src/client/components/chart.vue @@ -595,17 +595,17 @@ export default defineComponent({ case 'drive-files': return fetchDriveFilesChart(); case 'drive-files-total': return fetchDriveFilesTotalChart(); - case 'instances-requests': return fetchInstanceRequestsChart(); - case 'instances-users': return fetchInstanceUsersChart(false); - case 'instances-users-total': return fetchInstanceUsersChart(true); - case 'instances-notes': return fetchInstanceNotesChart(false); - case 'instances-notes-total': return fetchInstanceNotesChart(true); - case 'instances-ff': return fetchInstanceFfChart(false); - case 'instances-ff-total': return fetchInstanceFfChart(true); - case 'instances-drive-usage': return fetchInstanceDriveUsageChart(false); - case 'instances-drive-usage-total': return fetchInstanceDriveUsageChart(true); - case 'instances-drive-files': return fetchInstanceDriveFilesChart(false); - case 'instances-drive-files-total': return fetchInstanceDriveFilesChart(true); + case 'instance-requests': return fetchInstanceRequestsChart(); + case 'instance-users': return fetchInstanceUsersChart(false); + case 'instance-users-total': return fetchInstanceUsersChart(true); + case 'instance-notes': return fetchInstanceNotesChart(false); + case 'instance-notes-total': return fetchInstanceNotesChart(true); + case 'instance-ff': return fetchInstanceFfChart(false); + case 'instance-ff-total': return fetchInstanceFfChart(true); + case 'instance-drive-usage': return fetchInstanceDriveUsageChart(false); + case 'instance-drive-usage-total': return fetchInstanceDriveUsageChart(true); + case 'instance-drive-files': return fetchInstanceDriveFilesChart(false); + case 'instance-drive-files-total': return fetchInstanceDriveFilesChart(true); } }; fetching.value = true; From 967c655de0ec0330226a2e500f62400782e76a8b Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 22 Oct 2021 17:15:12 +0900 Subject: [PATCH 04/17] tweak ui --- src/client/pages/instance/overview.vue | 55 ++++++++++++++------------ 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/src/client/pages/instance/overview.vue b/src/client/pages/instance/overview.vue index d48d7d12a5..327a6492e6 100644 --- a/src/client/pages/instance/overview.vue +++ b/src/client/pages/instance/overview.vue @@ -3,19 +3,19 @@
-
+
Users
{{ number(stats.originalUsersCount) }} - +
Notes
{{ number(stats.originalNotesCount) }} - +
@@ -29,28 +29,31 @@ -
-
-
Misskey
-
{{ version }}
+ + +
+
+
Misskey
+
{{ version }}
+
+
+
Node.js
+
{{ serverInfo.node }}
+
+
+
PostgreSQL
+
{{ serverInfo.psql }}
+
+
+
Redis
+
{{ serverInfo.redis }}
+
+
+
Vue
+
{{ vueVersion }}
+
-
-
Node.js
-
{{ serverInfo.node }}
-
-
-
PostgreSQL
-
{{ serverInfo.psql }}
-
-
-
Redis
-
{{ serverInfo.redis }}
-
-
-
Vue
-
{{ vueVersion }}
-
-
+
@@ -78,6 +81,7 @@ export default defineComponent({ FormKeyValueView, MkInstanceStats, MkContainer, + MkFolder, XMetrics, }, @@ -153,11 +157,10 @@ export default defineComponent({ diff --git a/src/client/pages/admin/queue.chart.vue b/src/client/pages/admin/queue.chart.vue index 4f8fd762bb..084181a606 100644 --- a/src/client/pages/admin/queue.chart.vue +++ b/src/client/pages/admin/queue.chart.vue @@ -11,7 +11,7 @@
- +
@@ -27,177 +27,61 @@ From 4df409f77bd9f431f9a11caa5fd846bbd4880727 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 23 Oct 2021 00:04:19 +0900 Subject: [PATCH 10/17] improve dashboard --- src/client/components/ui/container.vue | 9 +++- src/client/pages/admin/overview.vue | 60 ++++++++++++++++++++++++-- 2 files changed, 64 insertions(+), 5 deletions(-) diff --git a/src/client/components/ui/container.vue b/src/client/components/ui/container.vue index 1940099096..14673dfcd7 100644 --- a/src/client/components/ui/container.vue +++ b/src/client/components/ui/container.vue @@ -1,5 +1,5 @@