forked from coracle/flotilla
Fix space switcher in platform mode, move favicon link
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href={import.meta.env.PLATFORM_LOGO} />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
import RelayDescription from "@app/components/RelayDescription.svelte"
|
||||
import SpaceCreateExternal from "@app/components/SpaceCreateExternal.svelte"
|
||||
import SpaceInviteAccept from "@app/components/SpaceInviteAccept.svelte"
|
||||
import {userMembership, getMembershipUrls} from "@app/state"
|
||||
import {userMembership, getMembershipUrls, PLATFORM_RELAY} from "@app/state"
|
||||
import {makeSpacePath} from "@app/routes"
|
||||
import {pushModal} from "@app/modal"
|
||||
|
||||
@@ -19,17 +19,28 @@
|
||||
</script>
|
||||
|
||||
<div class="column menu gap-2">
|
||||
{#each getMembershipUrls($userMembership) as url (url)}
|
||||
<Link href={makeSpacePath(url)}>
|
||||
{#if PLATFORM_RELAY}
|
||||
<Link href={makeSpacePath(PLATFORM_RELAY)}>
|
||||
<CardButton>
|
||||
<div slot="icon"><SpaceAvatar {url} /></div>
|
||||
<div slot="title"><RelayName {url} /></div>
|
||||
<div slot="info"><RelayDescription {url} /></div>
|
||||
<div slot="icon"><SpaceAvatar url={PLATFORM_RELAY} /></div>
|
||||
<div slot="title"><RelayName url={PLATFORM_RELAY} /></div>
|
||||
<div slot="info"><RelayDescription url={PLATFORM_RELAY} /></div>
|
||||
</CardButton>
|
||||
</Link>
|
||||
{/each}
|
||||
{#if getMembershipUrls($userMembership).length > 0}
|
||||
<Divider />
|
||||
{:else}
|
||||
{#each getMembershipUrls($userMembership) as url (url)}
|
||||
<Link href={makeSpacePath(url)}>
|
||||
<CardButton>
|
||||
<div slot="icon"><SpaceAvatar {url} /></div>
|
||||
<div slot="title"><RelayName {url} /></div>
|
||||
<div slot="info"><RelayDescription {url} /></div>
|
||||
</CardButton>
|
||||
</Link>
|
||||
{/each}
|
||||
{#if getMembershipUrls($userMembership).length > 0}
|
||||
<Divider />
|
||||
{/if}
|
||||
{/if}
|
||||
<Button on:click={startJoin}>
|
||||
<CardButton>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
import AppContainer from "@app/components/AppContainer.svelte"
|
||||
import ModalContainer from "@app/components/ModalContainer.svelte"
|
||||
import {theme} from "@app/theme"
|
||||
import {INDEXER_RELAYS} from "@app/state"
|
||||
import {INDEXER_RELAYS, PLATFORM_LOGO} from "@app/state"
|
||||
import {loadUserData} from "@app/commands"
|
||||
import * as state from "@app/state"
|
||||
|
||||
@@ -133,6 +133,10 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<link rel="icon" href={PLATFORM_LOGO} />
|
||||
</svelte:head>
|
||||
|
||||
{#await ready}
|
||||
<div data-theme={$theme} />
|
||||
{:then}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import {onMount} from 'svelte'
|
||||
import {onMount} from "svelte"
|
||||
import {goto} from "$app/navigation"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import Link from "@lib/components/Link.svelte"
|
||||
|
||||
Reference in New Issue
Block a user