CI / Check (push) Successful in 5m59s
Pages polled `/api/version` every three seconds, then fetched the pending list and replaced it, or reloaded a request's page. Now each page follows one stream from `/events`, whose `morph` events carry a region of the page: the pending list, or the request, as a whole element with its `id`, rendered by the page's own templates. The page script morphs it into the page with idiomorph, vendored, so open details, the focus and typing stay. The stream starts with the current region, so a page catches up when the browser reconnects, and it ends when the approver signs out. `/api/version` and `/pending` are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
850 B
HTML
30 lines
850 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="/style.css">
|
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
<link rel="icon" href="/icon.svg">
|
|
<script src="/idiomorph.js" defer></script>
|
|
<script src="/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
{% block header -%}
|
|
<header>
|
|
<nav><a href="/">Pending</a> <a href="/log">Log</a></nav>
|
|
<form method="post" action="/auth/logout" class="account">
|
|
<span class="version">slop-broker {{ crate::web::page::VERSION }}</span>
|
|
<span>{{ name }}</span>
|
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
|
<button type="submit" class="quiet">Sign out</button>
|
|
</form>
|
|
</header>
|
|
{%- endblock %}
|
|
<main>
|
|
{% block main %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|