forked from coracle/flotilla
remove notes from people
This commit is contained in:
@@ -86,7 +86,7 @@
|
|||||||
</Button>
|
</Button>
|
||||||
{:else if space}
|
{:else if space}
|
||||||
<p class="mb-4 text-2xl center gap-2">
|
<p class="mb-4 text-2xl center gap-2">
|
||||||
<Icon icon="remote-controller-minimalistic" size={7} />
|
<Icon icon="compass-big" size={7} />
|
||||||
<span class="text-primary">{displayRelayUrl(space)}</span>
|
<span class="text-primary">{displayRelayUrl(space)}</span>
|
||||||
</p>
|
</p>
|
||||||
<div class="grid sm:grid-cols-3 gap-2">
|
<div class="grid sm:grid-cols-3 gap-2">
|
||||||
|
|||||||
@@ -42,24 +42,11 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="card2 bg-alt flex flex-col shadow-xl">
|
<div class="card2 bg-alt col-2 shadow-xl">
|
||||||
<Profile {pubkey} />
|
<Profile {pubkey} />
|
||||||
<ProfileInfo {pubkey} />
|
<ProfileInfo {pubkey} />
|
||||||
{#if roots.length > 0}
|
{#if roots.length > 0}
|
||||||
{@const event = first(sortBy(e => -e.created_at, roots))}
|
{@const event = first(sortBy(e => -e.created_at, roots))}
|
||||||
{@const relays = ctx.app.router.Event(event).getUrls()}
|
|
||||||
{@const nevent = nip19.neventEncode({id: event.id, relays})}
|
|
||||||
{@const following = getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)}
|
|
||||||
<div class="divider" />
|
|
||||||
<button type="button" class="chat chat-start flex cursor-default max-w-full ml-2" on:click|stopPropagation>
|
|
||||||
<div class="bg-alt col-4 chat-bubble text-left">
|
|
||||||
<Content showEntire hideMedia={!following} {event} />
|
|
||||||
<Link external href={entityLink(nevent)} class="row-2 group justify-end whitespace-nowrap">
|
|
||||||
<Icon icon="link-round" size={3} />
|
|
||||||
<p class="text-xs">{formatTimestamp(event.created_at)}</p>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</button>
|
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<div class="bg-alt badge badge-neutral border-none">
|
<div class="bg-alt badge badge-neutral border-none">
|
||||||
{roots.length} recent {roots.length === 1 ? "note" : "notes"}
|
{roots.length} recent {roots.length === 1 ? "note" : "notes"}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<Avatar icon="letter" class="!h-10 !w-10" />
|
<Avatar icon="letter" class="!h-10 !w-10" />
|
||||||
</PrimaryNavItem>
|
</PrimaryNavItem>
|
||||||
<PrimaryNavItem title="Spaces" on:click={showSpacesMenu}>
|
<PrimaryNavItem title="Spaces" on:click={showSpacesMenu}>
|
||||||
<SpaceAvatar />
|
<Avatar icon="add-circle" class="!h-10 !w-10" />
|
||||||
</PrimaryNavItem>
|
</PrimaryNavItem>
|
||||||
</div>
|
</div>
|
||||||
<PrimaryNavItem title="Settings" on:click={showSettingsMenu}>
|
<PrimaryNavItem title="Settings" on:click={showSettingsMenu}>
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
import {WEEK, ctx, ago} from "@welshman/lib"
|
import {WEEK, ctx, ago} from "@welshman/lib"
|
||||||
import {WRAP} from "@welshman/util"
|
import {WRAP} from "@welshman/util"
|
||||||
import {pubkey, subscribe} from "@welshman/app"
|
import {pubkey, subscribe} from "@welshman/app"
|
||||||
import {fly} from "@lib/transition"
|
|
||||||
import Icon from "@lib/components/Icon.svelte"
|
import Icon from "@lib/components/Icon.svelte"
|
||||||
import Page from "@lib/components/Page.svelte"
|
import Page from "@lib/components/Page.svelte"
|
||||||
import Button from "@lib/components/Button.svelte"
|
import Button from "@lib/components/Button.svelte"
|
||||||
@@ -38,23 +37,17 @@
|
|||||||
|
|
||||||
<SecondaryNav>
|
<SecondaryNav>
|
||||||
<SecondaryNavSection>
|
<SecondaryNavSection>
|
||||||
<div in:fly>
|
<SecondaryNavItem href={notesPath}>
|
||||||
<SecondaryNavItem href={notesPath}>
|
<Icon icon="notes-minimalistic" /> Your Notes
|
||||||
<Icon icon="notes-minimalistic" /> Your Notes
|
</SecondaryNavItem>
|
||||||
</SecondaryNavItem>
|
<SecondaryNavHeader>
|
||||||
</div>
|
Chats
|
||||||
<div in:fly={{delay: 50}}>
|
<Button on:click={startChat}>
|
||||||
<SecondaryNavHeader>
|
<Icon icon="add-circle" />
|
||||||
Chats
|
</Button>
|
||||||
<Button on:click={startChat}>
|
</SecondaryNavHeader>
|
||||||
<Icon icon="add-circle" />
|
|
||||||
</Button>
|
|
||||||
</SecondaryNavHeader>
|
|
||||||
</div>
|
|
||||||
</SecondaryNavSection>
|
</SecondaryNavSection>
|
||||||
<label
|
<label class="input input-sm input-bordered mx-6 -mt-4 mb-2 flex items-center gap-2">
|
||||||
class="input input-sm input-bordered mx-6 -mt-4 mb-2 flex items-center gap-2"
|
|
||||||
in:fly={{delay: 100}}>
|
|
||||||
<Icon icon="magnifer" />
|
<Icon icon="magnifer" />
|
||||||
<input bind:value={term} class="grow" type="text" />
|
<input bind:value={term} class="grow" type="text" />
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user