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
@@ -25,6 +25,8 @@ export const useClipsStore = defineStore('clips', () => {
|
||||
const loading = ref(false)
|
||||
const error = ref<string | null>(null)
|
||||
const loaded = ref(false)
|
||||
/** Content handed over from the share target, picked up by the quick-add form. */
|
||||
const draft = ref<string | null>(null)
|
||||
|
||||
/**
|
||||
* Insert or replace a clip locally. Used for API responses and live-sync events;
|
||||
@@ -49,6 +51,7 @@ export const useClipsStore = defineStore('clips', () => {
|
||||
total.value = 0
|
||||
error.value = null
|
||||
loaded.value = false
|
||||
draft.value = null
|
||||
}
|
||||
|
||||
function removeLocal(id: number): void {
|
||||
@@ -117,6 +120,7 @@ export const useClipsStore = defineStore('clips', () => {
|
||||
loading,
|
||||
error,
|
||||
loaded,
|
||||
draft,
|
||||
upsert,
|
||||
removeLocal,
|
||||
reset,
|
||||
|
||||
Reference in new issue
Block a user