Every node now serves a search and listing-detail UI at GET /. It is vanilla TypeScript, bundled unminified into web/dist (committed) and embedded with go:embed, so `go build` is enough to run a node. The browser verifies each listing itself (certificate, binding, validity, signature, proof-of-work) with pure-JS ed25519, so a gateway can withhold listings but not forge them. Unverifiable results are hidden and their content is never shown. Listing text is only inserted via textContent and the UI is served with a strict CSP. Canonical JSON is reimplemented in TypeScript and tested against a golden fixture signed by the Go code. /api/v1/status now reports difficulty. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
23 lines
793 B
HTML
23 lines
793 B
HTML
<!doctype html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="color-scheme" content="light dark">
|
|
<meta name="referrer" content="no-referrer">
|
|
<title>Allmende</title>
|
|
<link rel="icon" href="data:,">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<header class="top">
|
|
<a class="brand" href="#/">Allmende</a>
|
|
<span id="status" class="status"></span>
|
|
</header>
|
|
<main id="app"></main>
|
|
<footer id="foot" class="foot"></footer>
|
|
<noscript><p class="error pad">Allmende braucht JavaScript, um Signaturen in deinem Browser zu prüfen. / Allmende needs JavaScript to verify signatures in your browser.</p></noscript>
|
|
<script type="module" src="app.js"></script>
|
|
</body>
|
|
</html>
|