Repository navigation
Add /demo: live demos of every product on sample data - #27
Merged
Merged
Conversation
- public/demo/<slug>/: static demo builds of 24 products (dtwinuz and wonmortech repos), each served under its own base path, plus WebP covers in public/demo/_covers/. - /demo, /uz/demo, /ru/demo gallery (src/components/demos/DemosPage.astro, data in src/data/demos.ts): cover, tagline per language, demo sign-in, Open demo / Source (public repos only) / Product page. xnosir.io is listed as a live site. - "Demos" in the header (from 1400px; also in the Products menu, the mobile menu and the footer) and "Live demo" buttons on product pages. - deploy/Caddyfile: SPA fallback for /demo/<slug>/ routes without a file extension, a separate CSP only for /demo/<slug>/ (inline boot scripts, wasm, blob workers, MSW service workers, Google Fonts, OpenFreeMap and OpenStreetMap tiles, Telegram WebApp SDK, frame-ancestors 'self'), X-Robots-Tag noindex, immutable cache for hashed demo chunks and no-cache for routes, html and service workers. The rest of the site keeps its strict CSP. - check-site/check-links/check-art skip demo internals (secret scan still runs on them); Pagefind ignores them (no data-pagefind-body); Lighthouse CI also audits /demo/. - Privacy notice: new "Product demos" section and the one exception noted in the summary and page lede. - Patched in the copied output (base path only): oilaviy hero srcset entry without /demo/oilaviy/, teletwin admin and PWA pages without a favicon link (browser fell back to /favicon.ico). Signed-off-by: xnosir <283333996+xnosir@users.noreply.github.com>
xnosir
approved these changes
Nov 17, 2026
xnosir
left a comment
Member
There was a problem hiding this comment.
Checked locally: build and checks pass, all 24 demos render under the demo CSP.
Member
|
CodeQL alerts here are all inside |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
public/demo/<slug>/(24 demo builds, about 113 MB),/demogallery in 3 languages, header/footer/product-page links,deploy/Caddyfile, site checks, privacy noticeWhat changes
/demo/,/uz/demo/,/ru/demo/: 24 demos in 4 groups plus xnosir.io as a live site. Each card: cover, tagline in the page language, sign-in if any, Open demo / Source (public repos only) / Product page./demo/<slug>/without a file extension fall back to that demo'sindex.html; a separate CSP for/demo/<slug>/only;X-Robots-Tag: noindex; hashed demo chunks immutable, routes/html/service workersno-cache. The gallery and the rest of the site keep the current strict CSP (the deploy smoke test still checksconnect-src 'self';on/).WM_FORBIDDENscan still runs on them); Pagefind ignores them; Lighthouse CI also audits/demo/.Verification (local, Caddy 2.11.9 with this Caddyfile + edge
X-Frame-Options: DENY)npm run build: check-site ok (256 pages, 1297 demo files secret-scanned), check-links ok, check-art ok, Pagefind 252 pages (no demo pages).undefinedand triest.me/_websync_(blocked by the demo CSP on purpose)./demo/: performance 0.93, accessibility 1, best practices 1, SEO 1. No horizontal overflow at 390px.Notes
imagesrcsetentry, teletwin favicon link.