Compare commits

..

No commits in common. "3fc8933b1ec5723f29abdd65c215a8c90e151a2b" and "b731228fb86325543b6ae22763895ee86b3798e8" have entirely different histories.

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> {
return await fetchWithApi('/me/friends', { method: "POST", body: { username } }); await fetchWithApi('/me/friends', { method: "POST", body: { username } });
} }
async function removeFriend(userId: string): Promise<void> { async function removeFriend(userId: string): Promise<void> {
return await fetchWithApi(`/me/friends/${userId}`, { method: "DELETE" }); 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>