From 41e24f4a8e9f5a05ca50049287b887ded2c1a865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Wed, 11 Oct 2023 13:25:18 -0400 Subject: [PATCH] feat(components): add "shared ip" section to admin panel --- components/profile/adminPanel.vue | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/components/profile/adminPanel.vue b/components/profile/adminPanel.vue index 3d920b8..1a3a123 100644 --- a/components/profile/adminPanel.vue +++ b/components/profile/adminPanel.vue @@ -7,6 +7,10 @@ const short = props.user?.profile.isAdmin; const showBanUnban = ref(false); const showDemote = ref(false); + const { data: commonIps } = await useApiFetch<{ + [key: string]: { _id: number; username: string }[]; + }>(`/user/${props.user!._id}/shared-ip`); + const handle = async () => { await useApiFetch(`/user/${props.user?._id}/ban`, { method: "post", @@ -48,7 +52,25 @@