From 0a8d1ddb7614b770dd3c736aa411620c9934adc3 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 14 Nov 2022 11:24:26 +0100 Subject: [PATCH 01/16] remove statistics from admin overview page --- admin/src/pages/Overview.vue | 40 ------------------------------------ 1 file changed, 40 deletions(-) diff --git a/admin/src/pages/Overview.vue b/admin/src/pages/Overview.vue index 57bf7ff8c..115fffb72 100644 --- a/admin/src/pages/Overview.vue +++ b/admin/src/pages/Overview.vue @@ -28,32 +28,13 @@ - From bd3593551e66bf1b02931efd12d18c97948e5d5f Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 14 Nov 2022 11:29:59 +0100 Subject: [PATCH 02/16] add separate statistic page to admin area --- admin/src/components/NavBar.vue | 1 + admin/src/components/Tables/StatistcsTable.vue | 5 +++++ admin/src/locales/de.json | 1 + admin/src/locales/en.json | 1 + 4 files changed, 8 insertions(+) create mode 100644 admin/src/components/Tables/StatistcsTable.vue diff --git a/admin/src/components/NavBar.vue b/admin/src/components/NavBar.vue index f8dd008d1..87dd1e87c 100644 --- a/admin/src/components/NavBar.vue +++ b/admin/src/components/NavBar.vue @@ -10,6 +10,7 @@ {{ $t('navbar.overview') }} + {{ $t('navbar.statistic') }} {{ $t('navbar.user_search') }} {{ $t('navbar.multi_creation') }} +
+ // +
+ \ No newline at end of file diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index 456290ca7..987a42ca0 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -104,6 +104,7 @@ "my-account": "Mein Konto", "open_creation": "Offene Schöpfungen", "overview": "Übersicht", + "statistic": "Statistik", "user_search": "Nutzersuche" }, "not_open_creations": "Keine offenen Schöpfungen", diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index 9bff733c5..824522a66 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -104,6 +104,7 @@ "my-account": "My Account", "open_creation": "Open creations", "overview": "Overview", + "statistic": "Statistic", "user_search": "User search" }, "not_open_creations": "No open creations", From feb09e48fac38582acc08de7fa838c3d98a33750 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 14 Nov 2022 14:29:10 +0100 Subject: [PATCH 03/16] 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', From 14351f2004c7cb0042ada5b123109c44391eaaf7 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 14 Nov 2022 14:38:57 +0100 Subject: [PATCH 04/16] linting --- .../src/components/Tables/StatisticTable.vue | 29 ++++++++++++++----- admin/src/locales/de.json | 2 -- admin/src/locales/en.json | 2 -- 3 files changed, 21 insertions(+), 12 deletions(-) diff --git a/admin/src/components/Tables/StatisticTable.vue b/admin/src/components/Tables/StatisticTable.vue index 668854bb6..0095a8f57 100644 --- a/admin/src/components/Tables/StatisticTable.vue +++ b/admin/src/components/Tables/StatisticTable.vue @@ -1,6 +1,5 @@