diff --git a/NOTICE b/NOTICE index 903dcf1..606c47e 100644 --- a/NOTICE +++ b/NOTICE @@ -148,3 +148,19 @@ third-party project https://github.com/cryptpad/onlyoffice-x2t-wasm. Other trademarks named in this repository and on the site (Microsoft Word, Excel, PowerPoint, and others) are the property of their respective owners and are used only to describe the file formats this editor reads and writes. + + +Papel modifications (2026-11-28) +-------------------------------- + +This copy is modified for embedding in Papel (a free PDF and Office app): + - index.ts: `?new=docx|xlsx|pptx` is honoured in embed mode too, so a host + page can start a blank document. + - The site icon is served from the local img/64.png instead of a remote CDN + (src/layouts/Base.astro, src/components/Brand.astro, + src/components/LandingBody.astro, lib/onlyoffice/guards/brand.ts, + public/404.html, public/embed-demo.html). + - public/manifest.json: renamed to "Papel Office", remote icon removed. + - public/_redirects: the landing, home and history pages redirect to Papel. + - papel-serve.py: local test server (not part of the built site). +The ONLYOFFICE editors (sdkjs, web-apps) are unmodified, and their logo is kept. diff --git a/index.ts b/index.ts index 49d58aa..1b26892 100644 --- a/index.ts +++ b/index.ts @@ -207,7 +207,8 @@ void (async () => { return; } - if (createNewOnLoad && !isEmbedded) { + // Papel: also honour ?new= when embedded, so a host page can start a blank file. + if (createNewOnLoad) { await onCreateNew(`.${newExt}`, { docId: savedParam || undefined }); startAutosaveIndicator(); return; diff --git a/lib/onlyoffice/guards/brand.ts b/lib/onlyoffice/guards/brand.ts index 3567765..0ef2f99 100644 --- a/lib/onlyoffice/guards/brand.ts +++ b/lib/onlyoffice/guards/brand.ts @@ -29,7 +29,7 @@ import { isEmbedMode } from '../../embed-mode'; const BRAND_ID = 'oo-home-brand'; const STYLE_ID = 'oo-home-brand-css'; /** Same asset and lockup as the app bar's brand on /home and /history. */ -const LOGO_URL = 'https://hosted.inled.es/cdn/insuite.svg'; +const LOGO_URL = '/img/64.png'; /** * The vendor mark's own box is 86x20 (`#header-logo i`). 65x15 is that same diff --git a/public/404.html b/public/404.html index 2e0f3d6..5b861b4 100644 --- a/public/404.html +++ b/public/404.html @@ -3,7 +3,7 @@ - + Page not found — Insite Office