diff options
Diffstat (limited to 'hi-ui/src/routes/(app)/ch')
| -rw-r--r-- | hi-ui/src/routes/(app)/ch/[channel]/+page.js | 13 | ||||
| -rw-r--r-- | hi-ui/src/routes/(app)/ch/[channel]/+page.svelte | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/hi-ui/src/routes/(app)/ch/[channel]/+page.js b/hi-ui/src/routes/(app)/ch/[channel]/+page.js new file mode 100644 index 0000000..5fd493a --- /dev/null +++ b/hi-ui/src/routes/(app)/ch/[channel]/+page.js @@ -0,0 +1,13 @@ +export const ssr = false; + +import { activeChannel } from '$lib/store'; + + +/** @type {import('./$types').PageLoad} */ +export function load({ params }) { + let { channel } = params; + activeChannel.update((value) => { + value.set(channel) + return value; + }); +} diff --git a/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte b/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte new file mode 100644 index 0000000..26b493e --- /dev/null +++ b/hi-ui/src/routes/(app)/ch/[channel]/+page.svelte @@ -0,0 +1,5 @@ +<script> + import ActiveChannel from '$lib/components/ActiveChannel.svelte'; +</script> + +<ActiveChannel /> |
