mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
43 lines
933 B
Vue
43 lines
933 B
Vue
<template>
|
|
<div class="community-statistic">
|
|
<statistic-table v-model="statistics" />
|
|
</div>
|
|
</template>
|
|
<script>
|
|
import { communityStatistics } from '@/graphql/communityStatistics.js'
|
|
import StatisticTable from '../components/Tables/StatisticTable.vue'
|
|
|
|
export default {
|
|
name: 'CommunityStatistic',
|
|
components: {
|
|
StatisticTable,
|
|
},
|
|
data() {
|
|
return {
|
|
statistics: {
|
|
totalUsers: null,
|
|
activeUsers: null,
|
|
deletedUsers: null,
|
|
totalGradidoCreated: null,
|
|
totalGradidoDecayed: null,
|
|
totalGradidoAvailable: null,
|
|
totalGradidoUnbookedDecayed: null,
|
|
},
|
|
}
|
|
},
|
|
apollo: {
|
|
CommunityStatistics: {
|
|
query() {
|
|
return communityStatistics
|
|
},
|
|
update({ communityStatistics }) {
|
|
this.statistics = communityStatistics
|
|
},
|
|
error({ message }) {
|
|
this.toastError(message)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
</script>
|