From feb09e48fac38582acc08de7fa838c3d98a33750 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 14 Nov 2022 14:29:10 +0100 Subject: [PATCH] implement statistic table on separate statistic page in admin area --- admin/src/components/CommunityStatistic.vue | 59 --------------- .../src/components/Tables/StatistcsTable.vue | 5 -- .../src/components/Tables/StatisticTable.vue | 71 +++++++++++++++++++ admin/src/locales/de.json | 2 + admin/src/locales/en.json | 2 + admin/src/pages/CommunityStatistic.vue | 54 ++++++++++++++ admin/src/router/routes.js | 4 ++ 7 files changed, 133 insertions(+), 64 deletions(-) delete mode 100644 admin/src/components/CommunityStatistic.vue delete mode 100644 admin/src/components/Tables/StatistcsTable.vue create mode 100644 admin/src/components/Tables/StatisticTable.vue create mode 100644 admin/src/pages/CommunityStatistic.vue diff --git a/admin/src/components/CommunityStatistic.vue b/admin/src/components/CommunityStatistic.vue deleted file mode 100644 index c19f8deec..000000000 --- a/admin/src/components/CommunityStatistic.vue +++ /dev/null @@ -1,59 +0,0 @@ - - diff --git a/admin/src/components/Tables/StatistcsTable.vue b/admin/src/components/Tables/StatistcsTable.vue deleted file mode 100644 index a402adf68..000000000 --- a/admin/src/components/Tables/StatistcsTable.vue +++ /dev/null @@ -1,5 +0,0 @@ - \ No newline at end of file diff --git a/admin/src/components/Tables/StatisticTable.vue b/admin/src/components/Tables/StatisticTable.vue new file mode 100644 index 000000000..668854bb6 --- /dev/null +++ b/admin/src/components/Tables/StatisticTable.vue @@ -0,0 +1,71 @@ + + diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index 987a42ca0..714f554b9 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -126,7 +126,9 @@ "save": "Speichern", "statistic": { "activeUsers": "Aktive Mitglieder", + "count": "Menge", "deletedUsers": "Gelöschte Mitglieder", + "detail": "Detail", "name": "Statistik", "totalGradidoAvailable": "GDD insgesamt im Umlauf", "totalGradidoCreated": "GDD insgesamt geschöpft", diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index 824522a66..057f07b68 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -127,6 +127,8 @@ "statistic": { "activeUsers": "Active members", "deletedUsers": "Deleted members", + "count": "Count", + "detail": "Detail", "name": "Statistic", "totalGradidoAvailable": "Total GDD in circulation", "totalGradidoCreated": "Total created GDD", diff --git a/admin/src/pages/CommunityStatistic.vue b/admin/src/pages/CommunityStatistic.vue new file mode 100644 index 000000000..562c9efc5 --- /dev/null +++ b/admin/src/pages/CommunityStatistic.vue @@ -0,0 +1,54 @@ + + diff --git a/admin/src/router/routes.js b/admin/src/router/routes.js index ee82f128e..e365a6e40 100644 --- a/admin/src/router/routes.js +++ b/admin/src/router/routes.js @@ -6,6 +6,10 @@ const routes = [ path: '/', component: () => import('@/pages/Overview.vue'), }, + { + path: '/statistic', + component: () => import('@/pages/CommunityStatistic.vue'), + }, { // TODO: Implement a "You are logged out"-Page path: '/logout',