From 5b0caf62a2ce21983419993e8cbd634bf1df0c34 Mon Sep 17 00:00:00 2001 From: Xylight Date: Mon, 17 Nov 2025 18:17:23 -0800 Subject: [PATCH] feat: add share target to PWA --- src/lib/app/i18n/en.json | 3 +- .../feature/post/actions/PostActions.svelte | 28 ++++++++++++-- src/lib/ui/icon/photon.ts | 38 +++++++++++++++++++ src/routes/go/+page.ts | 11 ++++++ src/routes/go/[...link]/+page.ts | 5 +++ .../[id=integer]/confirm/+page.svelte | 5 +-- static/manifest.json | 9 +++++ 7 files changed, 91 insertions(+), 8 deletions(-) create mode 100644 src/lib/ui/icon/photon.ts create mode 100644 src/routes/go/+page.ts create mode 100644 src/routes/go/[...link]/+page.ts diff --git a/src/lib/app/i18n/en.json b/src/lib/app/i18n/en.json index 929df57f..a98b15b5 100644 --- a/src/lib/app/i18n/en.json +++ b/src/lib/app/i18n/en.json @@ -325,7 +325,7 @@ "description": "That content does not originate from {{homeInstance}}.", "actions": { "back": "Go back", - "fetch": "Locate post on {{homeInstance}}", + "fetch": "Continue on {{homeInstance}}", "switch": "Switch to an account on {{destInstance}}" }, "automatic": { @@ -563,6 +563,7 @@ "share.from": "Share from", "share.global": "Origin server", "share.local": "Your server", + "share.photon": "Photon link", "crosspost": "Crosspost", "delete": "Delete", "restore": "Restore" diff --git a/src/lib/feature/post/actions/PostActions.svelte b/src/lib/feature/post/actions/PostActions.svelte index a60f4ec3..8c90f4af 100644 --- a/src/lib/feature/post/actions/PostActions.svelte +++ b/src/lib/feature/post/actions/PostActions.svelte @@ -1,10 +1,13 @@