summaryrefslogtreecommitdiff
path: root/ui/lib/state
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-06-11 12:39:28 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-06-11 12:39:28 -0400
commit6e6b068ae2adc8c5ef8acb633dcadfbdc3221b61 (patch)
tree79831028416b0d6934f32961a3fc77d8b004369e /ui/lib/state
parent1f009e06fd6db82a91536eec88ef3232267385bf (diff)
tools/reformat
Diffstat (limited to 'ui/lib/state')
-rw-r--r--ui/lib/state/local/channels.svelte.js10
-rw-r--r--ui/lib/state/remote/channels.svelte.js2
-rw-r--r--ui/lib/state/remote/messages.svelte.js2
-rw-r--r--ui/lib/state/remote/state.svelte.js2
4 files changed, 8 insertions, 8 deletions
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,
});
}