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
@@ -18,7 +18,7 @@
|
||||
<a href="https://openwrt.org/"><picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/OpenWrt-25.12%20%C2%B7%20apk.svg?variant=secondary&font=geist&logo=openwrt&mode=dark"><img alt="OpenWrt 25.12" src="https://shieldcn.dev/badge/OpenWrt-25.12%20%C2%B7%20apk.svg?variant=secondary&font=geist&logo=openwrt&mode=light"></picture></a>
|
||||
<a href="https://docs.amnezia.org/"><picture><source media="(prefers-color-scheme: dark)" srcset="https://shieldcn.dev/badge/AmneziaWG-2.0%20%C2%B7%203.1.svg?variant=secondary&font=geist&logo=wireguard&mode=dark"><img alt="AmneziaWG 2.0 and 3.1" src="https://shieldcn.dev/badge/AmneziaWG-2.0%20%C2%B7%203.1.svg?variant=secondary&font=geist&logo=wireguard&mode=light"></picture></a>
|
||||
|
||||
[**Quick start**](#-quick-start) · [Features](#-features) · [How it works](#-how-it-works) · [Screenshots](#-a-closer-look) · [FAQ](#-faq) · [Development](#-development)
|
||||
[**Quick start**](#-quick-start) · [**Live demo**](https://dawnline-demo.vercel.app) · [Features](#-features) · [How it works](#-how-it-works) · [Screenshots](#-a-closer-look) · [FAQ](#-faq) · [Development](#-development)
|
||||
|
||||
</div>
|
||||
|
||||
@@ -31,9 +31,10 @@ computers** and connect with AmneziaVPN, AmneziaWG or WireGuard. You decide
|
||||
**for how long, how much and when**.
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/screenshots/portal.png" alt="The personal portal: devices and access, and adding a phone in three steps" width="860">
|
||||
<a href="https://dawnline-demo.vercel.app"><img src="docs/screenshots/portal.png" alt="The personal portal: devices and access, and adding a phone in three steps" width="860"></a>
|
||||
<br>
|
||||
<sub>A person's own page: their devices and access. Adding a phone takes three steps, and the page sees it connect.</sub>
|
||||
<sub>A person's own page: their devices and access. Adding a phone takes three steps, and the page sees it connect.
|
||||
<a href="https://dawnline-demo.vercel.app"><b>Try it in the live demo</b></a>: nothing installs and nothing connects.</sub>
|
||||
</p>
|
||||
|
||||
## 💡 Why Dawnline?
|
||||
|
||||
Reference in new issue
Block a user