Move editor stuff to its own folder

This commit is contained in:
Jon Staab
2024-09-23 13:58:01 -07:00
parent 26eb4faf37
commit ad4944d512
28 changed files with 312 additions and 397 deletions
+3 -8
View File
@@ -15,19 +15,14 @@
formatTimestampAsTime,
} from "@welshman/app"
import type {PublishStatusData} from "@welshman/app"
import {
REACTION,
ZAP_RESPONSE,
displayRelayUrl,
getAncestorTags,
} from "@welshman/util"
import {REACTION, ZAP_RESPONSE, displayRelayUrl, getAncestorTags} from "@welshman/util"
import {repository} from "@welshman/app"
import {fly} from "@lib/transition"
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
import Avatar from "@lib/components/Avatar.svelte"
import {REPLY, deriveEvent, displayReaction} from "@app/state"
import {getChatViewOptions} from "@app/editor"
import {getViewOptions} from "@lib/editor"
export let event: TrustedEvent
export let showPubkey: boolean
@@ -79,7 +74,7 @@
!isPending && !isPublished && findStatus($ps, [PublishStatus.Failure, PublishStatus.Timeout])
onMount(() => {
editor = createEditor(getChatViewOptions(event.content))
editor = createEditor(getViewOptions(event))
})
</script>