Compare commits

...

2 commits

Author SHA1 Message Date
3fc8933b1e
fix: VerticalSpacer being referred to as verticalSpacer
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
2025-07-12 19:24:38 +02:00
0d6786ffe9
fix: add missing return calls to add and remove friend 2025-07-12 19:21:43 +02:00
2 changed files with 4 additions and 4 deletions

View file

@ -38,11 +38,11 @@ export const useApi = () => {
} }
async function addFriend(username: string): Promise<void> { async function addFriend(username: string): Promise<void> {
await fetchWithApi('/me/friends', { method: "POST", body: { username } }); return await fetchWithApi('/me/friends', { method: "POST", body: { username } });
} }
async function removeFriend(userId: string): Promise<void> { async function removeFriend(userId: string): Promise<void> {
await fetchWithApi(`/me/friends/${userId}`, { method: "DELETE" }); return await fetchWithApi(`/me/friends/${userId}`, { method: "DELETE" });
} }
async function fetchMessages(channelId: string, options?: { amount?: number, offset?: number }): Promise<MessageResponse[] | undefined> { async function fetchMessages(channelId: string, options?: { amount?: number, offset?: number }): Promise<MessageResponse[] | undefined> {

View file

@ -17,13 +17,13 @@
:class="{ 'sidebar-focus': selectedPage === page.displayName }"> :class="{ 'sidebar-focus': selectedPage === page.displayName }">
{{ page.displayName }} {{ page.displayName }}
</li> </li>
<verticalSpacer /> <VerticalSpacer />
</div> </div>
<p> <p>
<Button text="Log Out" :callback=logout variant="scary"></Button> <Button text="Log Out" :callback=logout variant="scary"></Button>
</p> </p>
<verticalSpacer /> <VerticalSpacer />
<p id="links-and-socials"> <p id="links-and-socials">
<NuxtLink href="https://git.gorb.app/gorb/frontend" title="Source"><Icon name="lucide:git-branch-plus" /></NuxtLink> <NuxtLink href="https://git.gorb.app/gorb/frontend" title="Source"><Icon name="lucide:git-branch-plus" /></NuxtLink>