From c87fffe6c96226846e916bff4e02c6a520fd684d Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Sun, 20 Jul 2025 02:33:57 +0200 Subject: [PATCH 1/2] 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/2] 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