From 3010dd7000126654092d95c127ef7361c2a4e977 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sat, 2 Nov 2024 21:26:41 -0400 Subject: Address outstanding lint issues. --- ui/lib/apiServer.js | 4 ---- ui/lib/components/CreateChannelForm.svelte | 2 +- ui/lib/components/Message.svelte | 1 + ui/routes/(app)/+layout.svelte | 15 +-------------- ui/routes/(login)/invite/[invite]/+page.js | 5 ++--- ui/routes/+layout.svelte | 4 ++-- 6 files changed, 7 insertions(+), 24 deletions(-) diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js index 3714b63..e537abc 100644 --- a/ui/lib/apiServer.js +++ b/ui/lib/apiServer.js @@ -34,10 +34,6 @@ export async function postToChannel(channelId, body) { return apiServer.post(`/channels/${channelId}`, { body }); } -export async function deleteMessage(messageId) { - // TODO -} - export async function createInvite() { return apiServer.post(`/invite`, {}); } diff --git a/ui/lib/components/CreateChannelForm.svelte b/ui/lib/components/CreateChannelForm.svelte index 6b50fb1..6eee5db 100644 --- a/ui/lib/components/CreateChannelForm.svelte +++ b/ui/lib/components/CreateChannelForm.svelte @@ -5,7 +5,7 @@ let pending = false; $: disabled = pending; - async function handleSubmit(event) { + async function handleSubmit() { pending = true; const response = await createChannel(name); if (200 <= response.status && response.status < 300) { diff --git a/ui/lib/components/Message.svelte b/ui/lib/components/Message.svelte index 9376cbe..0b91b66 100644 --- a/ui/lib/components/Message.svelte +++ b/ui/lib/components/Message.svelte @@ -15,6 +15,7 @@
{at}
+ {@html renderedBody}
diff --git a/ui/routes/(app)/+layout.svelte b/ui/routes/(app)/+layout.svelte index 9843979..f860a6d 100644 --- a/ui/routes/(app)/+layout.svelte +++ b/ui/routes/(app)/+layout.svelte @@ -12,14 +12,6 @@ let loading = true; let events = null; - let showMenuValue; - showMenu.subscribe((value) => { - showMenuValue = value; - }); - - function toggleMenu() { - showMenu.update((value) => !value); - } $: channel = $page?.params?.channel; @@ -70,7 +62,7 @@

Loading…

{:else}
-