diff --git a/bun.lockb b/bun.lockb index 66ef4ee..a5ba6a2 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 314149e..6cd632c 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,12 @@ "vite": "^6.0.0" }, "dependencies": { - "lucide-svelte": "^0.474.0", - "socket.io": "^4.8.1", "@types/express": "^5.0.0", "cassandra-driver": "^4.7.2", "express": "^4.21.2", + "lucide-svelte": "^0.474.0", + "mode-watcher": "^0.5.1", + "socket.io": "^4.8.1", "socket.io-client": "^4.8.1", "tsm": "^2.3.0", "uuid": "^11.0.4" diff --git a/src/lib/components/mainLayout.svelte b/src/lib/components/mainLayout.svelte index d7551e1..acef2da 100644 --- a/src/lib/components/mainLayout.svelte +++ b/src/lib/components/mainLayout.svelte @@ -1,5 +1,6 @@ -
-
-
+
+
+
Profile image for {user}
diff --git a/src/lib/components/modeSwitcher.svelte b/src/lib/components/modeSwitcher.svelte new file mode 100644 index 0000000..256a573 --- /dev/null +++ b/src/lib/components/modeSwitcher.svelte @@ -0,0 +1,12 @@ + + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 62819c0..9cb4ec7 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -2,10 +2,12 @@ import '../app.css'; import type { LayoutProps } from './$types'; import MainLayout from '$lib/components/mainLayout.svelte'; + import { ModeWatcher } from 'mode-watcher'; let { data, children }: LayoutProps = $props(); const channels = data.channels; + {@render children()} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index b2efb65..d15a2fa 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -47,7 +47,7 @@ {/each} {/snippet}
-
+
{@render message(log)} {@render message(data.messages)}