From c87fffe6c96226846e916bff4e02c6a520fd684d Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Sun, 20 Jul 2025 02:33:57 +0200 Subject: [PATCH 1/5] feat: add fetchInvite function --- composables/api.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/composables/api.ts b/composables/api.ts index eff2c73..75a3811 100644 --- a/composables/api.ts +++ b/composables/api.ts @@ -94,6 +94,10 @@ export const useApi = () => { await fetchWithApi("/auth/reset-password", { method: "POST", body: { password, token } }); } + async function fetchInvite(id: string): Promise { + return await fetchWithApi(`/invites/${id}`); + } + return { fetchGuilds, fetchGuild, @@ -115,6 +119,7 @@ export const useApi = () => { fetchInstanceStats, sendVerificationEmail, sendPasswordResetEmail, - resetPassword + resetPassword, + fetchInvite } } From 6a65b257e09c86b27338d53e16de1cb38da5ff6c Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Sun, 20 Jul 2025 02:34:30 +0200 Subject: [PATCH 2/5] feat: add basic page for viewing and accepting an invite --- pages/invite/[inviteId].vue | 180 ++++++++++++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 pages/invite/[inviteId].vue diff --git a/pages/invite/[inviteId].vue b/pages/invite/[inviteId].vue new file mode 100644 index 0000000..ff4166e --- /dev/null +++ b/pages/invite/[inviteId].vue @@ -0,0 +1,180 @@ + + + + + \ No newline at end of file From ddf173ee8b2d386160c379ec610ccdad7ca06be7 Mon Sep 17 00:00:00 2001 From: JustTemmie <47639983+JustTemmie@users.noreply.github.com> Date: Sun, 20 Jul 2025 04:57:56 +0200 Subject: [PATCH 3/5] fix: broken cropping tool due to missing imports --- components/Popups/CropPopup.vue | 1 + components/Settings/UserSettings/Profile.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/Popups/CropPopup.vue b/components/Popups/CropPopup.vue index 12c3a0b..3a9586c 100644 --- a/components/Popups/CropPopup.vue +++ b/components/Popups/CropPopup.vue @@ -10,6 +10,7 @@