forked from coracle/flotilla
Lint/format
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
<script lang="ts">
|
||||
import {nip19} from 'nostr-tools'
|
||||
import {ctx} from '@welshman/lib'
|
||||
import {nip19} from "nostr-tools"
|
||||
import {ctx} from "@welshman/lib"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import FieldInline from "@lib/components/FieldInline.svelte"
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import ModalHeader from "@lib/components/ModalHeader.svelte"
|
||||
import {clip} from '@app/toast'
|
||||
import {clip} from "@app/toast"
|
||||
|
||||
export let event
|
||||
|
||||
const relays = ctx.app.router.Event(event).getUrls()
|
||||
const note1 = nip19.noteEncode(event.id)
|
||||
const npub1 = nip19.npubEncode(event.pubkey)
|
||||
const json = JSON.stringify(event, null, 2)
|
||||
@@ -27,7 +26,7 @@
|
||||
<p slot="label">Event ID</p>
|
||||
<label class="input input-bordered flex w-full items-center gap-2" slot="input">
|
||||
<Icon icon="file" />
|
||||
<input type="text" class="grow ellipsize" value={note1} />
|
||||
<input type="text" class="ellipsize grow" value={note1} />
|
||||
<Button on:click={copyId} class="flex items-center">
|
||||
<Icon icon="copy" />
|
||||
</Button>
|
||||
@@ -37,7 +36,7 @@
|
||||
<p slot="label">Author Pubkey</p>
|
||||
<label class="input input-bordered flex w-full items-center gap-2" slot="input">
|
||||
<Icon icon="user-circle" />
|
||||
<input type="text" class="grow ellipsize" value={npub1} />
|
||||
<input type="text" class="ellipsize grow" value={npub1} />
|
||||
<Button on:click={copyPubkey} class="flex items-center">
|
||||
<Icon icon="copy" />
|
||||
</Button>
|
||||
@@ -45,8 +44,8 @@
|
||||
</FieldInline>
|
||||
<div class="relative">
|
||||
<pre class="card2 card2-sm bg-alt overflow-auto"><code>{json}</code></pre>
|
||||
<p class="absolute right-2 top-2 flex justify-between items-center flex-grow">
|
||||
<Button on:click={copyJson} class="flex items-center btn btn-sm btn-neutral">
|
||||
<p class="absolute right-2 top-2 flex flex-grow items-center justify-between">
|
||||
<Button on:click={copyJson} class="btn btn-neutral btn-sm flex items-center">
|
||||
<Icon icon="copy" /> Copy
|
||||
</Button>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user