Added widget to display global stats about the instance

This commit is contained in:
Antoine Nguyen
2025-08-20 09:29:21 +02:00
parent 6bf0e5b741
commit cbebb75910
7 changed files with 100 additions and 1 deletions
+10
View File
@@ -7,7 +7,12 @@
<v-row>
<v-col sm="12" md="6">
<NewsFeedWidget />
<GlobalStatisticsWidget
v-if="authStore.authUser.role === constants.SUPER_ADMIN"
class="mt-4"
/>
</v-col>
<v-col sm="12" md="6"> </v-col>
</v-row>
</div>
</template>
@@ -15,10 +20,15 @@
<script setup>
import { onMounted, ref } from 'vue'
import { useGettext } from 'vue3-gettext'
import { useAuthStore } from '@/stores'
import GlobalStatisticsWidget from '@/components/admin/dashboard/GlobalStatisticsWidget'
import NewsFeedWidget from '@/components/admin/dashboard/NewsFeedWidget'
import parametersApi from '@/api/parameters'
import constants from '@/constants.json'
const { $gettext } = useGettext()
const authStore = useAuthStore()
const welcomeMsg = ref('')