From d8226884d878e8a023f08dd53b3eba12db35dcb0 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sat, 1 Jul 2023 20:54:37 -0700 Subject: [PATCH] feat: :sparkles: add emoji count to admin panel --- .../client/src/pages/admin/overview.stats.vue | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/admin/overview.stats.vue b/packages/client/src/pages/admin/overview.stats.vue index b6d9e0bf1..35f74953d 100644 --- a/packages/client/src/pages/admin/overview.stats.vue +++ b/packages/client/src/pages/admin/overview.stats.vue @@ -22,7 +22,7 @@ :value="usersComparedToThePrevDay" > -
Users
+
{{ i18n.ts.users }}
@@ -41,7 +41,7 @@ :value="notesComparedToThePrevDay" >
-
Posts
+
{{ i18n.ts.notes }}
@@ -55,7 +55,7 @@ style="margin-right: 0.5em" />
-
Instances
+
{{ i18n.ts.instances }}
@@ -69,10 +69,24 @@ style="margin-right: 0.5em" />
-
Online
+
{{ i18n.ts.online }}
+
+
+ +
+
+
+ +
+
{{ i18n.ts.emojis }}
+
+
@@ -90,6 +104,7 @@ let stats: any = $ref(null); let usersComparedToThePrevDay = $ref(); let notesComparedToThePrevDay = $ref(); let onlineUsersCount = $ref(0); +let emojiCount = $ref(0); let fetching = $ref(true); onMounted(async () => { @@ -110,6 +125,10 @@ onMounted(async () => { stats.originalNotesCount - chart.local.total[1]; }); + os.apiGet("meta").then((meta) => { + emojiCount = meta.emojis.length; + }); + fetching = false; });