Portal demo for Vercel
- The real portal over a router that lives in the page (web/src/portal/demo): "User" on "Dawnline Preview", ten scenarios (first visit, settings changed, out of data, outside the hours, paused, ended, plain HTTP, plain WireGuard, no free slots), devices kept per visitor in localStorage. Keys are random and the server's address never resolves: nothing is installed and nothing connects - A "Demo" chip after the breadcrumb opens a drawer with the scenarios and Start over; a new device "connects" a few seconds after its settings - A GitHub pill beside the page's QR knob; on a phone, where the names need the room, a GitHub button in the drawer instead - npm run build:demo builds the static site into web/dist/demo; web/vercel.json deploys it with the portal's CSP and headers, and builds only commits on main that change web/ - README links to the live demo (dawnline-demo.vercel.app) - Tests for the demo router (tests/demo.test.ts)
This commit is contained in:
1 parent
8e7c15ad56
commit
caed976e63
14 files changed
+1007
-3
No files matched your search
@@ -3,3 +3,4 @@ coverage/
|
||||
package-lock.json
|
||||
src/portal/fonts/
|
||||
src/admin/styles/*.css
|
||||
dist/
|
||||
Reference in new issue
Block a user