mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-19 11:43:35 +00:00
Add contact info to relay detail
This commit is contained in:
parent
9ee96c45d7
commit
040e8955de
@ -1,10 +1,7 @@
|
||||
# Current
|
||||
|
||||
- [ ] Add messages to database after visiting a chat/dm detail *shrugs shoulders*
|
||||
- [ ] Move non-partials to pod file structure
|
||||
- [ ] Await publish, show error if it fails or times out
|
||||
- Show loading
|
||||
- [ ] Test chat/dms
|
||||
- [ ] Fix pagination
|
||||
- [ ] Relays get marked as slow too easily now
|
||||
|
||||
# Next
|
||||
|
||||
|
@ -298,7 +298,7 @@ const verifyNip05 = (pubkey, as) =>
|
||||
createMap('id', urls.flatMap(url => [
|
||||
calculateRoute(pubkey, url, 'nip05', 'write', now()),
|
||||
calculateRoute(pubkey, url, 'nip05', 'read', now()),
|
||||
]))
|
||||
]).filter(identity))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,7 @@
|
||||
import {poll} from "src/util/misc"
|
||||
import {between} from 'hurdak/lib/hurdak'
|
||||
import Content from "src/partials/Content.svelte"
|
||||
import Anchor from "src/partials/Anchor.svelte"
|
||||
import Feed from "src/views/notes/Feed.svelte"
|
||||
import database from 'src/agent/database'
|
||||
import pool from 'src/agent/pool'
|
||||
@ -57,22 +58,31 @@
|
||||
{message}
|
||||
</p>
|
||||
</div>
|
||||
<div class="whitespace-nowrap flex gap-3 items-center flex-wrap">
|
||||
{#if relay.contact}
|
||||
<Anchor type="button-circle" href={`mailto:${relay.contact}`}>
|
||||
<i class="fa fa-envelope" />
|
||||
</Anchor>
|
||||
{/if}
|
||||
{#if joined}
|
||||
{#if $relays.length > 1}
|
||||
<button
|
||||
class="flex gap-3 items-center text-light"
|
||||
<Anchor
|
||||
type="button"
|
||||
class="flex gap-2 items-center rounded-full"
|
||||
on:click={() => user.removeRelay(relay.url)}>
|
||||
<i class="fa fa-right-from-bracket" /> Leave
|
||||
</button>
|
||||
</Anchor>
|
||||
{/if}
|
||||
{:else}
|
||||
<button
|
||||
class="flex gap-3 items-center text-light"
|
||||
<Anchor
|
||||
type="button"
|
||||
class="flex gap-2 items-center rounded-full"
|
||||
on:click={() => user.addRelay(relay.url)}>
|
||||
<i class="fa fa-right-to-bracket" /> Join
|
||||
</button>
|
||||
</Anchor>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{#if relay.description}
|
||||
<p>{relay.description}</p>
|
||||
{/if}
|
||||
|
Loading…
Reference in New Issue
Block a user