2024-08-05 21:45:16 +00:00
|
|
|
<script lang="ts">
|
2024-10-22 18:38:44 +00:00
|
|
|
import {onMount} from "svelte"
|
2026-09-08 22:47:51 +00:00
|
|
|
import Home from "@assets/icons/home.svg?dataurl"
|
2024-10-09 21:19:27 +00:00
|
|
|
import Icon from "@lib/components/Icon.svelte"
|
2026-09-08 22:47:51 +00:00
|
|
|
import Page from "@lib/components/Page.svelte"
|
|
|
|
|
import PageBar from "@lib/components/PageBar.svelte"
|
2026-06-24 20:56:53 +00:00
|
|
|
import PageContent from "@lib/components/PageContent.svelte"
|
2026-09-08 22:47:51 +00:00
|
|
|
import HomeInbox from "@app/components/HomeInbox.svelte"
|
|
|
|
|
import HomeNetwork from "@app/components/HomeNetwork.svelte"
|
|
|
|
|
import HomeHealthChecks from "@app/components/HomeHealthChecks.svelte"
|
|
|
|
|
import HomeHosting from "@app/components/HomeHosting.svelte"
|
2026-06-08 21:14:40 +00:00
|
|
|
import {goToSpace} from "@app/routes"
|
2026-09-08 22:47:51 +00:00
|
|
|
import {HOSTING_ENABLED} from "@app/hosting"
|
|
|
|
|
import {PLATFORM_RELAYS} from "@app/env"
|
2026-02-18 19:02:39 +00:00
|
|
|
|
2026-09-08 22:47:51 +00:00
|
|
|
// A single-space build has no dashboard to show - everything on it is scoped to the one space.
|
|
|
|
|
onMount(() => {
|
2026-02-18 19:02:39 +00:00
|
|
|
if (PLATFORM_RELAYS.length > 0) {
|
2026-09-02 23:42:29 +00:00
|
|
|
goToSpace(PLATFORM_RELAYS[0], {replaceState: true})
|
2024-10-22 18:10:49 +00:00
|
|
|
}
|
|
|
|
|
})
|
2024-08-05 21:45:16 +00:00
|
|
|
</script>
|
|
|
|
|
|
2026-09-08 22:47:51 +00:00
|
|
|
<Page>
|
|
|
|
|
<PageBar>
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
<Icon icon={Home} size={6} />
|
|
|
|
|
<strong>Home</strong>
|
|
|
|
|
</div>
|
|
|
|
|
</PageBar>
|
|
|
|
|
<PageContent class="flex flex-col gap-4 p-2 sm:p-4 lg:flex-row lg:items-start">
|
|
|
|
|
<div class="flex min-w-0 flex-col gap-4 lg:flex-[2]">
|
|
|
|
|
<HomeInbox />
|
|
|
|
|
<HomeNetwork />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex min-w-0 flex-col gap-4 lg:flex-1">
|
|
|
|
|
<HomeHealthChecks />
|
|
|
|
|
{#if HOSTING_ENABLED}
|
|
|
|
|
<HomeHosting />
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
|
|
|
|
</PageContent>
|
|
|
|
|
</Page>
|