lint/format
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
{@const following = getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)}
|
||||
<div class="divider" />
|
||||
<Button class="chat chat-start" on:click={onClick}>
|
||||
<div class="chat-bubble text-left bg-alt">
|
||||
<div class="bg-alt chat-bubble text-left">
|
||||
<Content hideMedia={!following} {event} />
|
||||
<p class="text-right text-xs">{formatTimestamp(event.created_at)}</p>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
||||
import ModalFooter from '@lib/components/ModalFooter.svelte'
|
||||
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
||||
import {addRoomMembership} from "@app/commands"
|
||||
import {makeSpacePath} from "@app/routes"
|
||||
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
<script lang="ts">
|
||||
import {onMount} from 'svelte'
|
||||
import {goto} from '$app/navigation'
|
||||
import {sleep} from '@welshman/lib'
|
||||
import {displayRelayUrl} from '@welshman/util'
|
||||
import {onMount} from "svelte"
|
||||
import {goto} from "$app/navigation"
|
||||
import {sleep} from "@welshman/lib"
|
||||
import {displayRelayUrl} from "@welshman/util"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import Spinner from "@lib/components/Spinner.svelte"
|
||||
import CardButton from "@lib/components/CardButton.svelte"
|
||||
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
||||
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
||||
import {attemptRelayAccess} from '@app/commands'
|
||||
import {makeSpacePath} from '@app/routes'
|
||||
import {attemptRelayAccess} from "@app/commands"
|
||||
import {makeSpacePath} from "@app/routes"
|
||||
|
||||
export let url
|
||||
|
||||
const back = () => history.back()
|
||||
|
||||
const next = () => goto(makeSpacePath(url))
|
||||
const next = () => goto(makeSpacePath(url), {replaceState: true})
|
||||
|
||||
let error: string | undefined
|
||||
let loading = true
|
||||
@@ -34,22 +33,20 @@
|
||||
Connecting you to to <span class="text-primary">{displayRelayUrl(url)}</span>
|
||||
</div>
|
||||
</ModalHeader>
|
||||
<div class="flex flex-col m-auto gap-4">
|
||||
<div class="m-auto flex flex-col gap-4">
|
||||
{#if loading}
|
||||
<Spinner loading>Hold tight, we're checking your connection.</Spinner>
|
||||
{:else if error}
|
||||
<p>
|
||||
Oops! We ran into some problems:
|
||||
</p>
|
||||
<p>Oops! We ran into some problems:</p>
|
||||
<p class="card2 bg-alt">{error}</p>
|
||||
<p>
|
||||
If you're not sure what the error message means, you may
|
||||
need to contact the space administrator to get more information.
|
||||
If you're not sure what the error message means, you may need to contact the space
|
||||
administrator to get more information.
|
||||
</p>
|
||||
{:else}
|
||||
<p>
|
||||
Looking good, we were able to connect you to this space!
|
||||
Click below to continue when you're ready.
|
||||
Looking good, we were able to connect you to this space! Click below to continue when you're
|
||||
ready.
|
||||
</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
<script lang="ts">
|
||||
import {goto} from "$app/navigation"
|
||||
import {ctx, tryCatch} from "@welshman/lib"
|
||||
import {tryCatch} from "@welshman/lib"
|
||||
import {isRelayUrl, normalizeRelayUrl} from "@welshman/util"
|
||||
import {loadRelay} from "@welshman/app"
|
||||
import CardButton from "@lib/components/CardButton.svelte"
|
||||
import Spinner from "@lib/components/Spinner.svelte"
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import Field from "@lib/components/Field.svelte"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
||||
import ModalFooter from '@lib/components/ModalFooter.svelte'
|
||||
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
||||
import InfoRelay from "@app/components/InfoRelay.svelte"
|
||||
import {pushToast} from "@app/toast"
|
||||
import {pushModal} from "@app/modal"
|
||||
|
||||
Reference in New Issue
Block a user