diff --git a/src/app/components/IntentHandler.svelte b/src/app/components/IntentHandler.svelte new file mode 100644 index 00000000..0b357ef3 --- /dev/null +++ b/src/app/components/IntentHandler.svelte @@ -0,0 +1,201 @@ + + +{#if hasSettings} +
+{/if} diff --git a/src/app/components/ThreadCreate.svelte b/src/app/components/ThreadCreate.svelte index 5f947e0d..5ffc9d4f 100644 --- a/src/app/components/ThreadCreate.svelte +++ b/src/app/components/ThreadCreate.svelte @@ -23,9 +23,10 @@ type Props = { url: string h?: string + initialContent?: string } - const {url, h}: Props = $props() + const {url, h, initialContent = ""}: Props = $props() const shouldProtect = canEnforceNip70(url) @@ -73,7 +74,13 @@ history.back() } - const editor = makeEditor({url, submit, uploading, placeholder: "What's on your mind?"}) + const editor = makeEditor({ + content: initialContent, + url, + submit, + uploading, + placeholder: "What's on your mind?", + }) let title: string = $state("") diff --git a/src/routes/intent/+page.svelte b/src/routes/intent/+page.svelte new file mode 100644 index 00000000..15708a89 --- /dev/null +++ b/src/routes/intent/+page.svelte @@ -0,0 +1,16 @@ + + +