summaryrefslogtreecommitdiff
path: root/ui/lib
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-11-02 21:26:41 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-11-02 21:26:41 -0400
commit3010dd7000126654092d95c127ef7361c2a4e977 (patch)
treec6cbaf8ba4c5b58019d57a092f26444c24e51e1a /ui/lib
parent22ce0549e20ee397cf5953bd6b7aafc752deaa28 (diff)
Address outstanding lint issues.
Diffstat (limited to 'ui/lib')
-rw-r--r--ui/lib/apiServer.js4
-rw-r--r--ui/lib/components/CreateChannelForm.svelte2
-rw-r--r--ui/lib/components/Message.svelte1
3 files changed, 2 insertions, 5 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 @@
<div class="message relative">
<span class="timestamp chip variant-soft absolute top-0 right-0">{at}</span>
<section use:scroll class="py-1 message-body">
+ <!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html renderedBody}
</section>
</div>