feat: share target für android und desktop-chrome
- LAN-Clipboard erscheint im Teilen-Menü (GET /share mit title/text/url) - geteilter Inhalt landet vorausgefüllt in der Schnell-Eingabe - Link wird nicht doppelt übernommen, wenn er schon im Text steht Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9cf163c295
commit
6d58a697e3
6 files changed
+91
No files matched your search
@@ -23,6 +23,17 @@ watch([content, kind], () => {
|
||||
language.value = detectLanguage(content.value) ?? 'plaintext'
|
||||
})
|
||||
|
||||
// Content shared from another app (share target) arrives as a draft
|
||||
watch(
|
||||
() => store.draft,
|
||||
(draft) => {
|
||||
if (!draft) return
|
||||
content.value = draft
|
||||
store.draft = null
|
||||
},
|
||||
{ immediate: true },
|
||||
)
|
||||
|
||||
async function paste(): Promise<void> {
|
||||
error.value = null
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user