From 6e6b068ae2adc8c5ef8acb633dcadfbdc3221b61 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 11 Jun 2025 12:39:28 -0400 Subject: tools/reformat --- ui/lib/state/local/channels.svelte.js | 10 +++++----- ui/lib/state/remote/channels.svelte.js | 2 +- ui/lib/state/remote/messages.svelte.js | 2 +- ui/lib/state/remote/state.svelte.js | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ui/lib/state') diff --git a/ui/lib/state/local/channels.svelte.js b/ui/lib/state/local/channels.svelte.js index e3ee8df..669aa1e 100644 --- a/ui/lib/state/local/channels.svelte.js +++ b/ui/lib/state/local/channels.svelte.js @@ -14,7 +14,7 @@ class Channel { return new Channel({ draft, lastReadAt: lastReadAt == null ? null : DateTime.fromISO(lastReadAt), - scrollPosition + scrollPosition, }); } @@ -29,7 +29,7 @@ class Channel { return { draft, lastReadAt: lastReadAt?.toISO(), - scrollPosition + scrollPosition, }; } } @@ -49,7 +49,7 @@ export class Channels { static fromStored(stored) { const loaded = Object.keys(stored).map((channelId) => [ channelId, - Channel.fromStored(stored[channelId]) + Channel.fromStored(stored[channelId]), ]); const all = new SvelteMap(loaded); return new Channels({ all }); @@ -98,9 +98,9 @@ export class Channels { this.all.entries(), (stored, [channelId, channel]) => ({ ...stored, - [channelId]: channel.toStored() + [channelId]: channel.toStored(), }), - {} + {}, ); } diff --git a/ui/lib/state/remote/channels.svelte.js b/ui/lib/state/remote/channels.svelte.js index 19946f2..b2888cb 100644 --- a/ui/lib/state/remote/channels.svelte.js +++ b/ui/lib/state/remote/channels.svelte.js @@ -5,7 +5,7 @@ class Channel { return new Channel({ at: DateTime.fromISO(at), id, - name + name, }); } diff --git a/ui/lib/state/remote/messages.svelte.js b/ui/lib/state/remote/messages.svelte.js index 0a081bb..7ce28b4 100644 --- a/ui/lib/state/remote/messages.svelte.js +++ b/ui/lib/state/remote/messages.svelte.js @@ -9,7 +9,7 @@ class Message { channel, sender, body, - renderedBody: render(body) + renderedBody: render(body), }); } diff --git a/ui/lib/state/remote/state.svelte.js b/ui/lib/state/remote/state.svelte.js index e00d55c..a30e0fe 100644 --- a/ui/lib/state/remote/state.svelte.js +++ b/ui/lib/state/remote/state.svelte.js @@ -15,7 +15,7 @@ export class State { users: Users.boot(users), channels: Channels.boot(channels), messages: Messages.boot(messages), - resumePoint + resumePoint, }); } -- cgit v1.2.3