forked from coracle/flotilla
Lint
This commit is contained in:
@@ -3,15 +3,14 @@
|
||||
import {onMount} from "svelte"
|
||||
import {page} from "$app/stores"
|
||||
import {createEventStore} from "@welshman/store"
|
||||
import {fly} from "@lib/transition"
|
||||
import ModalBox from "@lib/components/ModalBox.svelte"
|
||||
import Toast from "@app/components/Toast.svelte"
|
||||
import Landing from "@app/components/Landing.svelte"
|
||||
import PrimaryNav from "@app/components/PrimaryNav.svelte"
|
||||
import {modals, clearModal} from "@app/modal"
|
||||
import {theme} from "@app/theme"
|
||||
import {session, sessions, pk, repository} from "@app/base"
|
||||
import {plaintext, relays, handles} from "@app/state"
|
||||
import {session, repository} from "@app/base"
|
||||
import {relays, handles} from "@app/state"
|
||||
import {initStorage} from "@app/storage"
|
||||
|
||||
let ready: Promise<void>
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
<script lang="ts">
|
||||
import {onMount} from "svelte"
|
||||
import Masonry from "svelte-bricks"
|
||||
import {append, remove} from "@welshman/lib"
|
||||
import {GROUP_META, displayRelayUrl} from "@welshman/util"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import {makeSpacePath} from "@app/routes"
|
||||
import {load, relays, groups, searchGroups, relayUrlsByNom, userMembership} from "@app/state"
|
||||
import {addGroupMemberships} from "@app/commands"
|
||||
import {load, relays, searchGroups, relayUrlsByNom, userMembership} from "@app/state"
|
||||
|
||||
const getRelayUrls = (nom: string): string[] => $relayUrlsByNom.get(nom) || []
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<script lang="ts">
|
||||
import {goto} from "$app/navigation"
|
||||
import {fly} from "@lib/transition"
|
||||
import Icon from "@lib/components/Icon.svelte"
|
||||
import Page from "@lib/components/Page.svelte"
|
||||
@@ -12,7 +11,6 @@
|
||||
import SpaceExit from "@app/components/SpaceExit.svelte"
|
||||
import {deriveGroup} from "@app/state"
|
||||
import {pushModal} from "@app/modal"
|
||||
import {removeGroupMemberships} from "@app/commands"
|
||||
|
||||
export let nom
|
||||
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
<script lang="ts">
|
||||
import {sleep, sortBy} from "@welshman/lib"
|
||||
import {sortBy} from "@welshman/lib"
|
||||
import type {CustomEvent} from "@welshman/util"
|
||||
import {page} from "$app/stores"
|
||||
import {fly} from "@lib/transition"
|
||||
import {formatTimestampAsDate} from "@lib/util"
|
||||
import Spinner from "@lib/components/Spinner.svelte"
|
||||
import Avatar from "@lib/components/Avatar.svelte"
|
||||
import GroupNote from "@app/components/GroupNote.svelte"
|
||||
import {deriveGroup, deriveGroupConversation} from "@app/state"
|
||||
import {deriveGroupConversation} from "@app/state"
|
||||
|
||||
$: group = deriveGroup($page.params.nom)
|
||||
$: conversation = deriveGroupConversation($page.params.nom)
|
||||
|
||||
const assertEvent = (e: any) => e as CustomEvent
|
||||
@@ -31,7 +28,7 @@
|
||||
let previousPubkey
|
||||
|
||||
for (const {event} of sortBy(m => m.event.created_at, $conversation?.messages || [])) {
|
||||
const {id, kind, pubkey, created_at} = event
|
||||
const {id, pubkey, created_at} = event
|
||||
const date = formatTimestampAsDate(created_at)
|
||||
|
||||
if (date !== previousDate) {
|
||||
|
||||
Reference in New Issue
Block a user