mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'master' into 2157-remove-fetchPolicy-network-only-from-statistics
This commit is contained in:
commit
e60d10c9cc
@ -304,12 +304,9 @@
|
||||
}
|
||||
},
|
||||
"statistic": {
|
||||
"activeUsers": "Aktive Mitglieder",
|
||||
"deletedUsers": "Gelöschte Mitglieder",
|
||||
"totalGradidoAvailable": "GDD insgesamt im Umlauf",
|
||||
"totalGradidoCreated": "GDD insgesamt geschöpft",
|
||||
"totalGradidoDecayed": "GDD insgesamt verfallen",
|
||||
"totalGradidoUnbookedDecayed": "Gesamter ungebuchter GDD Verfall"
|
||||
"totalGradidoDecayed": "GDD insgesamt verfallen"
|
||||
},
|
||||
"success": "Erfolg",
|
||||
"time": {
|
||||
|
||||
@ -304,12 +304,9 @@
|
||||
}
|
||||
},
|
||||
"statistic": {
|
||||
"activeUsers": "Active members",
|
||||
"deletedUsers": "Deleted members",
|
||||
"totalGradidoAvailable": "Total GDD in circulation",
|
||||
"totalGradidoCreated": "Total created GDD",
|
||||
"totalGradidoDecayed": "Total GDD decay",
|
||||
"totalGradidoUnbookedDecayed": "Total unbooked GDD decay"
|
||||
"totalGradidoCreated": "Total GDD created",
|
||||
"totalGradidoDecayed": "Total GDD decayed"
|
||||
},
|
||||
"success": "Success",
|
||||
"time": {
|
||||
|
||||
@ -304,12 +304,9 @@
|
||||
}
|
||||
},
|
||||
"statistic": {
|
||||
"activeUsers": "miembros activos",
|
||||
"deletedUsers": "miembros eliminados",
|
||||
"totalGradidoAvailable": "GDD total en circulación",
|
||||
"totalGradidoCreated": "GDD total creado",
|
||||
"totalGradidoDecayed": "GDD total decaído",
|
||||
"totalGradidoUnbookedDecayed": "GDD no contabilizado decaído"
|
||||
"totalGradidoDecayed": "GDD total decaído"
|
||||
},
|
||||
"success": "Lo lograste",
|
||||
"time": {
|
||||
|
||||
@ -304,12 +304,9 @@
|
||||
}
|
||||
},
|
||||
"statistic": {
|
||||
"activeUsers": "Membres actifs",
|
||||
"deletedUsers": "Membres supprimés",
|
||||
"totalGradidoAvailable": "GDD total en circulation",
|
||||
"totalGradidoCreated": "GDD total puisé",
|
||||
"totalGradidoDecayed": "Total de GDD écoulé",
|
||||
"totalGradidoUnbookedDecayed": "Total GDD non comptabilisé écoulé"
|
||||
"totalGradidoDecayed": "Total de GDD écoulé"
|
||||
},
|
||||
"success": "Avec succès",
|
||||
"time": {
|
||||
|
||||
@ -304,12 +304,9 @@
|
||||
}
|
||||
},
|
||||
"statistic": {
|
||||
"activeUsers": "Actieve leden",
|
||||
"deletedUsers": "Verwijderde leden",
|
||||
"totalGradidoAvailable": "Totaal GDD in omloop",
|
||||
"totalGradidoCreated": "Totaal GDD geschept",
|
||||
"totalGradidoDecayed": "Totaal GDD vervallen",
|
||||
"totalGradidoUnbookedDecayed": "Totaal niet geboekte GDD vervallen"
|
||||
"totalGradidoDecayed": "Totaal GDD vervallen"
|
||||
},
|
||||
"success": "Succes",
|
||||
"time": {
|
||||
|
||||
@ -45,12 +45,12 @@ const apolloQueryMock = jest
|
||||
data: {
|
||||
communityStatistics: {
|
||||
totalUsers: 3113,
|
||||
activeUsers: 1057,
|
||||
deletedUsers: 35,
|
||||
// activeUsers: 1057,
|
||||
// deletedUsers: 35,
|
||||
totalGradidoCreated: '4083774.05000000000000000000',
|
||||
totalGradidoDecayed: '-1062639.13634129622923372197',
|
||||
totalGradidoAvailable: '2513565.869444365732411569',
|
||||
totalGradidoUnbookedDecayed: '-500474.6738366222166261272',
|
||||
// totalGradidoUnbookedDecayed: '-500474.6738366222166261272',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@ -51,14 +51,6 @@
|
||||
{{ $t('community.members') }}
|
||||
<span class="h4">{{ totalUsers }}</span>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('statistic.activeUsers') }}
|
||||
<span class="h4">{{ activeUsers }}</span>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('statistic.deletedUsers') }}
|
||||
<span class="h4">{{ deletedUsers }}</span>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('statistic.totalGradidoCreated') }}
|
||||
<span class="h4">{{ totalGradidoCreated | GDD }}</span>
|
||||
@ -71,10 +63,6 @@
|
||||
{{ $t('statistic.totalGradidoAvailable') }}
|
||||
<span class="h4">{{ totalGradidoAvailable | GDD }}</span>
|
||||
</div>
|
||||
<div>
|
||||
{{ $t('statistic.totalGradidoUnbookedDecayed') }}
|
||||
<span class="h4">{{ totalGradidoUnbookedDecayed | GDD }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</b-container>
|
||||
</div>
|
||||
@ -95,12 +83,9 @@ export default {
|
||||
supportMail: 'support@supportemail.de',
|
||||
membersCount: '1203',
|
||||
totalUsers: null,
|
||||
activeUsers: null,
|
||||
deletedUsers: null,
|
||||
totalGradidoCreated: null,
|
||||
totalGradidoDecayed: null,
|
||||
totalGradidoAvailable: null,
|
||||
totalGradidoUnbookedDecayed: null,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -137,13 +122,11 @@ export default {
|
||||
})
|
||||
.then((result) => {
|
||||
this.totalUsers = result.data.communityStatistics.totalUsers
|
||||
this.activeUsers = result.data.communityStatistics.activeUsers
|
||||
this.deletedUsers = result.data.communityStatistics.deletedUsers
|
||||
this.totalGradidoCreated = result.data.communityStatistics.totalGradidoCreated
|
||||
this.totalGradidoCreated =
|
||||
Number(result.data.communityStatistics.totalGradidoCreated) -
|
||||
Number(result.data.communityStatistics.totalGradidoUnbookedDecayed)
|
||||
this.totalGradidoDecayed = result.data.communityStatistics.totalGradidoDecayed
|
||||
this.totalGradidoAvailable = result.data.communityStatistics.totalGradidoAvailable
|
||||
this.totalGradidoUnbookedDecayed =
|
||||
result.data.communityStatistics.totalGradidoUnbookedDecayed
|
||||
})
|
||||
.catch(() => {
|
||||
this.toastError('communityStatistics has no result, use default data')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user