components
All repositories: gitoria
1.0 KB
// components/main.hl — THE SHELL: the header (the site's name, a link home) and the slot every page renders into.// All CSS is in styles.hl.import { siteName } from '../project.hl'slot = null// OFFLINE (mission 046, as tracker.worldapi.org#10): the service worker opens `/` from its cache without a network; the// shell then says so. hl:web gives a page no connection state and no "mounted" hook, so a tick asks the browser:// `netProbe` runs an endless 1 s CSS animation (styles.hl), and each `animationiteration` reads navigator.onLine — a// write only when it changed.offline = falseView {body {applicationHeader {a { class = "brand" href = "/" siteName }p { "Hybriel components, developed standalone" }}if (offline) { offlineNote { id = "offline" "You are offline. The demos need the network." } }netProbe { "aria-hidden" = "true" on animationiteration(e) { emit netTick(e) } }main { slot }}}on netTick(e) {let down = window.navigator.onLine == falseif (down != offline) { offline = down }}
Branches
- mainmain branch
Latest commits
- d32b44e2antcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
- 0fb80b57components: Hybriel master ff51cf46 (re-vendor round)mre
- 57408b6ecomponents#14: installable app (manifest, service worker, offline index), own iconmre
- 317bd09fdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
- becbd59bcomponents#13: modal dialog (<dialog> based, focus wrap, backdrop/Esc/x close with reason, scroll lock, footer buttons)mre
- 367dd19adeploy.sh: never send .git or .gitignore to Byrodinmre
- 4b4dabe5State of 2026-09-27, before the move to gitoriamre