From f15d085450f89fdea677526a43006462fce24ddb Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 8 Aug 2022 12:45:10 +0200 Subject: [PATCH] add statistics overview for admin area --- admin/src/components/CommunityStatistic.vue | 63 +++++++++++++++++++++ admin/src/config/index.js | 5 ++ admin/src/locales/de.json | 11 ++++ admin/src/locales/en.json | 11 ++++ admin/src/pages/Overview.vue | 36 ++++++++++++ 5 files changed, 126 insertions(+) create mode 100644 admin/src/components/CommunityStatistic.vue diff --git a/admin/src/components/CommunityStatistic.vue b/admin/src/components/CommunityStatistic.vue new file mode 100644 index 000000000..ca450bf3d --- /dev/null +++ b/admin/src/components/CommunityStatistic.vue @@ -0,0 +1,63 @@ + + diff --git a/admin/src/config/index.js b/admin/src/config/index.js index fe373386d..7468227ef 100644 --- a/admin/src/config/index.js +++ b/admin/src/config/index.js @@ -32,6 +32,10 @@ const endpoints = { WALLET_URL: process.env.WALLET_URL || 'http://localhost/login', } +const community = { + COMMUNITY_NAME: process.env.COMMUNITY_NAME || 'Gradido Entwicklung', +} + const debug = { DEBUG_DISABLE_AUTH: process.env.DEBUG_DISABLE_AUTH === 'true' || false, } @@ -53,6 +57,7 @@ const CONFIG = { ...version, ...environment, ...endpoints, + ...community, ...debug, } diff --git a/admin/src/locales/de.json b/admin/src/locales/de.json index 3d88e0257..22cb833bf 100644 --- a/admin/src/locales/de.json +++ b/admin/src/locales/de.json @@ -73,6 +73,7 @@ "hide_details": "Details verbergen", "lastname": "Nachname", "math": { + "colon": ":", "exclaim": "!", "pipe": "|", "plus": "+" @@ -105,6 +106,16 @@ "removeNotSelf": "Als Admin/Moderator kannst du dich nicht selber löschen.", "remove_all": "alle Nutzer entfernen", "save": "Speichern", + "statistic": { + "activeUsers": "aktive Mitglieder", + "deletedUsers": "gelöschte Mitglieder", + "name": "Statistik", + "totalGradidoAvailable": "GDD insgesamt im Umflauf", + "totalGradidoCreated": "GDD insgesamt geschöpft", + "totalGradidoDecayed": "GDD insgesamt verfallen", + "totalGradidoUnbookedDecayed": "GDD nicht gebuchter verfall", + "totalUsers": "Mitglieder" + }, "status": "Status", "success": "Erfolg", "text": "Text", diff --git a/admin/src/locales/en.json b/admin/src/locales/en.json index f23c61e21..ca5928bcd 100644 --- a/admin/src/locales/en.json +++ b/admin/src/locales/en.json @@ -73,6 +73,7 @@ "hide_details": "Hide details", "lastname": "Lastname", "math": { + "colon": ":", "exclaim": "!", "pipe": "|", "plus": "+" @@ -105,6 +106,16 @@ "removeNotSelf": "As an admin/moderator, you cannot delete yourself.", "remove_all": "Remove all users", "save": "Speichern", + "statistic": { + "activeUsers": "active members", + "deletedUsers": "deleted members", + "name": "Statistic", + "totalGradidoAvailable": "Total GDD in circulation", + "totalGradidoCreated": "GDD total created", + "totalGradidoDecayed": "Total GDD decayed", + "totalGradidoUnbookedDecayed": "GDD not booked decayed", + "totalUsers": "Members" + }, "status": "Status", "success": "Success", "text": "Text", diff --git a/admin/src/pages/Overview.vue b/admin/src/pages/Overview.vue index 69aa15c1a..cbe0c1ae1 100644 --- a/admin/src/pages/Overview.vue +++ b/admin/src/pages/Overview.vue @@ -29,22 +29,36 @@ +