2024-08-16 19:42:00 +00:00
|
|
|
<script lang="ts">
|
2024-10-22 17:16:31 +00:00
|
|
|
import {onMount} from "svelte"
|
2024-08-16 22:17:30 +00:00
|
|
|
import {page} from "$app/stores"
|
2024-10-22 17:16:31 +00:00
|
|
|
import {load} from "@welshman/app"
|
2024-08-16 19:42:00 +00:00
|
|
|
import Page from "@lib/components/Page.svelte"
|
2024-10-18 22:58:44 +00:00
|
|
|
import Delay from "@lib/components/Delay.svelte"
|
2024-08-16 19:42:00 +00:00
|
|
|
import SecondaryNav from "@lib/components/SecondaryNav.svelte"
|
2024-10-21 21:35:12 +00:00
|
|
|
import MenuSpace from "@app/components/MenuSpace.svelte"
|
2024-10-22 17:16:31 +00:00
|
|
|
import {decodeRelay, MEMBERSHIPS} from "@app/state"
|
2024-08-16 19:42:00 +00:00
|
|
|
|
2024-10-21 17:30:12 +00:00
|
|
|
$: url = decodeRelay($page.params.relay)
|
2024-10-22 17:16:31 +00:00
|
|
|
|
|
|
|
|
onMount(() => {
|
|
|
|
|
load({
|
|
|
|
|
filters: [{kinds: [MEMBERSHIPS], "#r": [url]}],
|
|
|
|
|
relays: [url],
|
|
|
|
|
})
|
|
|
|
|
})
|
2024-08-16 19:42:00 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-09-11 17:48:34 +00:00
|
|
|
{#key url}
|
2024-10-18 22:58:44 +00:00
|
|
|
<Delay>
|
|
|
|
|
<SecondaryNav>
|
2024-10-21 21:35:12 +00:00
|
|
|
<MenuSpace {url} />
|
2024-10-18 22:58:44 +00:00
|
|
|
</SecondaryNav>
|
|
|
|
|
<Page>
|
|
|
|
|
{#key $page.params.room}
|
|
|
|
|
<slot />
|
|
|
|
|
{/key}
|
|
|
|
|
</Page>
|
|
|
|
|
</Delay>
|
2024-08-16 19:42:00 +00:00
|
|
|
{/key}
|