summaryrefslogtreecommitdiff
path: root/ui/lib/state/remote/channels.svelte.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/state/remote/channels.svelte.js')
-rw-r--r--ui/lib/state/remote/channels.svelte.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/ui/lib/state/remote/channels.svelte.js b/ui/lib/state/remote/channels.svelte.js
deleted file mode 100644
index 1e40075..0000000
--- a/ui/lib/state/remote/channels.svelte.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import { DateTime } from 'luxon';
-
-class Channel {
- static boot({ at, id, name }) {
- return new Channel({
- at: DateTime.fromISO(at),
- id,
- name,
- });
- }
-
- constructor({ at, id, name }) {
- this.at = at;
- this.id = id;
- this.name = name;
- }
-}
-
-export class Channels {
- all = $state([]);
-
- add({ at, id, name }) {
- this.all.push(Channel.boot({ at, id, name }));
- }
-
- remove(id) {
- this.all = this.all.filter((channel) => channel.id !== id);
- }
-}