Kiosk start, offline and setup pages in the InfoFlow display style
Dark grey background, name top left, date and clock top right, a flat panel with a blue top edge. The pages show the kiosk link (token masked) and the management address; the clock code is shared in kiosk.js. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
efc581e0ae
commit
19595aaf39
11 files changed
+169
-89
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
from urllib.parse import parse_qs, urlsplit
|
||||
|
||||
from voxip_kiosk import browser as b
|
||||
from voxip_kiosk.config import DEFAULTS
|
||||
@@ -74,9 +75,16 @@ def test_start_page_url_contains_target(paths):
|
||||
assert "next=https%3A%2F%2Fe.org%2Fx%3Ftoken%3Dabc" in url and "name=Hal+1" in url
|
||||
|
||||
|
||||
def test_start_page_shows_only_the_masked_link(paths):
|
||||
url = b.start_page_url(paths, dict(DEFAULTS, url="https://e.org/x?token=geheim123456"))
|
||||
query = parse_qs(urlsplit(url).query)
|
||||
assert query["url"] == ["https://e.org/x?token=…3456"]
|
||||
assert query["admin"][0].endswith(".local:8080")
|
||||
|
||||
|
||||
def test_local_pages_exist():
|
||||
www = Path(__file__).resolve().parents[1] / "www"
|
||||
for page in ("start.html", "offline.html", "setup.html", "kiosk.css", "logo.svg"):
|
||||
for page in ("start.html", "offline.html", "setup.html", "kiosk.css", "kiosk.js"):
|
||||
assert (www / page).exists()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user