+
+
diff --git a/Web-App/frontend/src/locales/en.json b/Web-App/frontend/src/locales/en.json
index a920352..97a2e58 100644
--- a/Web-App/frontend/src/locales/en.json
+++ b/Web-App/frontend/src/locales/en.json
@@ -278,5 +278,21 @@
"search": {
"placeholder": "Search pages…",
"none": "Nothing found for \"{q}\"."
+ },
+ "share": {
+ "button": "Share",
+ "title": "Share this page",
+ "access": "Who can open it",
+ "privateSpace": "Only the people and groups added to {space}, plus workspace admins.",
+ "openSpace": "Everyone in the workspace, as {role} in {space}, plus the people and groups below.",
+ "manageAccess": "Change access in the space settings",
+ "copyPageLink": "Copy page link",
+ "public": "Public link",
+ "publicToggle": "Anyone with the link can read",
+ "publicHint": "No account needed. Turning it off makes the link stop working.",
+ "subpages": "Include the pages inside it",
+ "editorsOnly": "Editors of this space can turn the public link on or off.",
+ "readOnly": "Shared page · read only",
+ "gone": "This link does not work any more. Ask the person who shared it for a new one."
}
}
diff --git a/Web-App/frontend/src/locales/pl.json b/Web-App/frontend/src/locales/pl.json
index 0d652b7..00c8997 100644
--- a/Web-App/frontend/src/locales/pl.json
+++ b/Web-App/frontend/src/locales/pl.json
@@ -278,5 +278,21 @@
"search": {
"placeholder": "Szukaj stron…",
"none": "Nic nie znaleziono dla „{q}”."
+ },
+ "share": {
+ "button": "Udostępnij",
+ "title": "Udostępnij tę stronę",
+ "access": "Kto może ją otworzyć",
+ "privateSpace": "Tylko osoby i grupy dodane do {space} oraz administratorzy obszaru roboczego.",
+ "openSpace": "Każdy w obszarze roboczym, z rolą {role} w {space}, oraz osoby i grupy poniżej.",
+ "manageAccess": "Zmień dostęp w ustawieniach przestrzeni",
+ "copyPageLink": "Kopiuj link do strony",
+ "public": "Link publiczny",
+ "publicToggle": "Każdy z linkiem może czytać",
+ "publicHint": "Konto nie jest potrzebne. Wyłączenie sprawia, że link przestaje działać.",
+ "subpages": "Uwzględnij strony wewnątrz",
+ "editorsOnly": "Edytorzy tej przestrzeni mogą włączać i wyłączać link publiczny.",
+ "readOnly": "Udostępniona strona · tylko do odczytu",
+ "gone": "Ten link już nie działa. Poproś osobę, która go udostępniła, o nowy."
}
}
diff --git a/Web-App/frontend/src/router.ts b/Web-App/frontend/src/router.ts
index 47a3044..61f8943 100644
--- a/Web-App/frontend/src/router.ts
+++ b/Web-App/frontend/src/router.ts
@@ -89,6 +89,21 @@ export function createDocwellRouter(platform: Platform) {
component: () => import("./views/auth/VerifyEmailView.vue"),
meta: { public: true },
},
+ // Pages shared by public link; readable without an account.
+ {
+ path: "/share/:token",
+ name: "share",
+ component: () => import("./views/ShareView.vue"),
+ props: true,
+ meta: { public: true },
+ },
+ {
+ path: "/share/:token/p/:page",
+ name: "share-page",
+ component: () => import("./views/ShareView.vue"),
+ props: true,
+ meta: { public: true },
+ },
// Linked from invite and sign-in emails sent by docwell-server and PocketBase.
{
path: "/invite",
diff --git a/Web-App/frontend/src/views/ShareView.vue b/Web-App/frontend/src/views/ShareView.vue
new file mode 100644
index 0000000..47b3ac6
--- /dev/null
+++ b/Web-App/frontend/src/views/ShareView.vue
@@ -0,0 +1,110 @@
+
+
+
+
+