From bc34ac82cf4effe2baba8471315ea4a78dae416a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Aug 2018 03:52:24 +0900 Subject: [PATCH] Show some charts in control panel --- .../views/pages/admin/admin.dashboard.vue | 39 ++++--- .../pages/admin/admin.notes-chart.chart.vue | 81 +++++++++++++ .../views/pages/admin/admin.notes-chart.vue | 33 ++++++ .../views/pages/admin/admin.suspend-user.vue | 12 -- .../pages/admin/admin.users-chart.chart.vue | 53 +++++++++ .../views/pages/admin/admin.users-chart.vue | 33 ++++++ .../app/desktop/views/pages/admin/admin.vue | 24 ++-- src/server/api/endpoints/aggregation/notes.ts | 110 ++++++++++++++++++ src/server/api/endpoints/aggregation/posts.ts | 84 ------------- src/server/api/endpoints/aggregation/users.ts | 95 ++++++++++----- 10 files changed, 413 insertions(+), 151 deletions(-) create mode 100644 src/client/app/desktop/views/pages/admin/admin.notes-chart.chart.vue create mode 100644 src/client/app/desktop/views/pages/admin/admin.notes-chart.vue create mode 100644 src/client/app/desktop/views/pages/admin/admin.users-chart.chart.vue create mode 100644 src/client/app/desktop/views/pages/admin/admin.users-chart.vue create mode 100644 src/server/api/endpoints/aggregation/notes.ts delete mode 100644 src/server/api/endpoints/aggregation/posts.ts diff --git a/src/client/app/desktop/views/pages/admin/admin.dashboard.vue b/src/client/app/desktop/views/pages/admin/admin.dashboard.vue index d0f11e73b6..182d974601 100644 --- a/src/client/app/desktop/views/pages/admin/admin.dashboard.vue +++ b/src/client/app/desktop/views/pages/admin/admin.dashboard.vue @@ -1,11 +1,11 @@