diff --git a/frontend/src/graphql/queries.js b/frontend/src/graphql/queries.js index b7d778147..58549750c 100644 --- a/frontend/src/graphql/queries.js +++ b/frontend/src/graphql/queries.js @@ -229,3 +229,17 @@ export const listAllContributions = gql` } } ` + +export const communityStatistics = gql` + query { + communityStatistics { + totalUsers + activeUsers + deletedUsers + totalGradidoCreated + totalGradidoDecayed + totalGradidoAvailable + totalGradidoUnbookedDecayed + } + } +` diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index 0b8920912..acccd0bc8 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -36,6 +36,14 @@ "submitContribution": "Beitrag einreichen", "switch-to-this-community": "zu dieser Gemeinschaft wechseln" }, + "statistic": { + "activeUsers":"aktive Mitglieder", + "deletedUsers":"gelöschte Mitglieder", + "totalGradidoCreated":"GDD insgesamt geschöpft", + "totalGradidoDecayed":"GDD insgesamt verfallen", + "totalGradidoAvailable":"GDD insgesamt im Umflauf", + "totalGradidoUnbookedDecayed":"GDD nicht gebuchter verfall" + }, "contribution": { "activity": "Tätigkeit", "alert": { diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 342dc6678..86a9166a1 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -154,6 +154,14 @@ }, "your_amount": "Your amount" }, + "statistic": { + "activeUsers":"active members", + "deletedUsers":"deleted members", + "totalGradidoCreated":"GDD total created", + "totalGradidoDecayed":"Total GDD decayed", + "totalGradidoAvailable":"Total GDD in circulation", + "totalGradidoUnbookedDecayed":"GDD not booked decayed" + }, "GDD": "GDD", "gdd_per_link": { "choose-amount": "Select an amount that you would like to send via link. You can also enter a message. Click 'Generate now' to create a link that you can share.", diff --git a/frontend/src/pages/InfoStatistic.vue b/frontend/src/pages/InfoStatistic.vue index 7b48eaf64..24ae11013 100644 --- a/frontend/src/pages/InfoStatistic.vue +++ b/frontend/src/pages/InfoStatistic.vue @@ -47,7 +47,31 @@
{{ $t('community.members') }} - {{ membersCount }} + {{ totalUsers }} +
+
+ {{ $t('statistic.activeUsers') }} + {{ activeUsers }} +
+
+ {{ $t('statistic.deletedUsers') }} + {{ deletedUsers }} +
+
+ {{ $t('statistic.totalGradidoCreated') }} + {{ totalGradidoCreated }} +
+
+ {{ $t('statistic.totalGradidoDecayed') }} + {{ totalGradidoDecayed }} +
+
+ {{ $t('statistic.totalGradidoAvailable') }} + {{ totalGradidoAvailable }} +
+
+ {{ $t('statistic.totalGradidoUnbookedDecayed') }} + {{ totalGradidoUnbookedDecayed }}
@@ -55,7 +79,7 @@