Lighthouse desktop flagged the one in-text link that relied on colour alone;
the hero and rail images gain a 480w candidate so a 2× phone no longer
downloads the 600w file.
- Screenshots retaken from the v1.3.7 demo build (the old set still showed the
pre-1.3.3 workout screen with its button rows). The five phone images are now
served through <picture> as WebP at 600/1170 px with the PNG as fallback; the
hero image is preloaded. website/build-images.sh produces img/ from assets/.
- og:image on every page is a 1200×630 card (assets/social.jpg) with width,
height and alt; robots meta with max-image-preview:large; preconnect to the
analytics host; SoftwareApplication JSON-LD carries version, dates,
screenshots and a feature list.
- Every page starts with a Skip-to-content link and the content sits in
<main id="main">; scroll reveals are also disabled for print.
- The GitHub and Discord counters wait for requestIdleCallback instead of
racing the hero image. Cache-bust ?v=18. llms.txt names GitHub as the home.
- robots.txt, sitemap.xml and llms.txt now live in website/ so the site is
fully regenerable from the repo.
api.html was Swagger UI with the site's colors painted over it — a foreign layout in
a black-and-green frame. It is now generated: scripts/build-api-docs.mjs reads
api/openapi.yaml and emits the whole reference as static HTML, so the page needs no
runtime rendering and no CDN bundle. One card per endpoint (method badge, path, one
line of summary) that unfolds into the description, what authentication it wants, the
parameter and body tables and the response codes; the named schemas live once in their
own section and every type links to them. The chapter rail is the site's own .side
markup — the hamburger sheet on a phone, a Contents drawer from 980px up.
The generator is deterministic and re-runnable: node scripts/build-api-docs.mjs
rewrites website/api.html, and the file says so in its first comment. js-yaml is a
build-time devDependency in the repo root; nothing new ships to the browser.
Also drops gym.duarte-santos.ch as an example server from the spec. That instance is
semi-private, and the docs have no business pointing anyone at it: the servers are now
the relative / and a neutral https://opengym.example.com ("your self-hosted instance").
The nav bar keeps only the brand, GitLab, Discord and the download button.
Everything else moves into a topic rail — a title/subtitle list of every
section, fixed beside the page on wide screens and behind the hamburger
below 1300px, with a scrollspy lighting the section under the reader.
The GitHub-suspension notice comes off all three pages.
This has been serving on opengym.duarte-santos.ch for a while without ever being
committed, so the repository and the live site had drifted apart — a deploy from
a clean checkout would have rolled the site back to the old page. This commits
what is actually running.
The page is rebuilt around a bento layout with real device frames, a mobile nav
that opens a proper menu instead of hiding the links, and a scroll reveal that
checks prefers-reduced-motion before animating anything. New "Elsewhere" section
collecting where the project actually lives: GitLab for code, issues and
releases, Discord, and Buy Me a Coffee.
The download line still reads v1.2.9 and the APK next to it is still the 1.2.9
build; both are corrected in the release commit, where the new APK exists.
gitea.com hat keinen Actions-Runner, also gab es dort seit dem Umzug weder
Container-Images noch einen gebauten APK noch gruene Tests auf Merge Requests.
GitLab kann alles vier, also zieht das Projekt dorthin um.
.gitlab-ci.yml deckt die komplette Kette ab:
- test: Frontend-Suite (346 Tests), Locale-Checks, Fatigue-Probe, MCP-Suite
- build: api- und web-Image nach registry.gitlab.com/duartesantos8/opengym/*,
auf v*-Tags amd64+arm64 mit latest/X.Y/X.Y.Z, sonst amd64 als edge
- package: signierter APK (zipalign + apksigner) plus Upload in die Generic
Package Registry; der Key liegt in geschuetzten CI-Variablen und existiert
damit nur auf main und v*-Tags
- deploy: der Browser-Demo-Build auf GitLab Pages
- release: GitLab-Release mit dem passenden CHANGELOG-Abschnitt und Links auf
APK und Images
GitHub konnte "Tag gepusht" von "Release veroeffentlicht" unterscheiden und hat
Images nur aus letzterem gebaut (Issue #87). GitLab kann das nicht - dort ist die
Tag-Pipeline das, was das Release anlegt. Die Regel steht deshalb als Kommentar
im CI-File, und v*-Tags sind geschuetzt.
Ausserdem: Issue-/MR-Vorlagen unter .gitlab/, und saemtliche Repo-Links in
README, Docs, App, Dockerfile-Labels, docker-compose und Website zeigen auf
GitLab. site.js liest Sterne und Releases jetzt aus der GitLab-API (andere
Feldnamen, deshalb neue sessionStorage-Keys). SECURITY.md hat wieder einen
privaten Meldeweg: ein vertrauliches Issue.
.github/ und .gitea/ bleiben liegen - Spiegel bzw. fuer den Tag, an dem das
GitHub-Konto zurueckkommt.
Wer sich anmeldet, wer es vergeblich versucht und was ein Admin aendert, stand
bisher nirgends — der Server hat schlicht nichts protokolliert.
Aktivitaetslog:
- ./data/audit.log, eine JSON-Zeile pro Event, angehaengt statt neu geschrieben.
Bewusst NICHT in db.json: die Datei wird bei jedem Save komplett neu geschrieben,
und der Login-Handshake ist unauthentifiziert — ein Log darin haette aus einem
Muell-Request einen vollen Rewrite gemacht.
- Aufbewahrung ist eine Obergrenze, kein Archiv: AUDIT_MAX (5000) bzw. AUDIT_DAYS (90).
- Per Default an (AUDIT_LOG=0 schaltet es ganz ab). IP-Adressen per Default AUS;
AUDIT_IP=net speichert nur das Netz, full die ganze Adresse. Nie der User-Agent,
nie die Passkey-ID eines Fehlversuchs, nie ein abgelehnter Invite-Code.
- Adresse kommt aus CF-Connecting-IP, dann X-Forwarded-For, dann X-Real-IP —
ein Cloudflare-Tunnel schreibt den Besucher NICHT in XFF, dort steht sonst nur
der Tunnel selbst und sieht dabei voellig plausibel aus.
- Loeschen wird selbst protokolliert, die Event-IDs zaehlen weiter: die Luecke bleibt sichtbar.
- Neue Karte in views/Admin.jsx (Filter, "Show more"), Aufbereitung in lib/audit.js
mit 20 Tests. GET /api/admin/audit und POST /api/admin/audit/clear, beide hinter requireAdmin.
Demo:
- Die Live-Demo laeuft wieder, jetzt auf der Projektseite selbst statt auf GitHub Pages:
opengym.duarte-santos.ch/demo/. Das eingebettete Telefon auf der Startseite geht damit auch
wieder — es muss derselbe Host sein, X-Frame-Options ist SAMEORIGIN.
Doku: README-Config-Tabelle, .env.example, SELF_HOSTING, SECURITY (inkl. der
api/server.js-Zeilenverweise, die wieder stimmen).
Die Seite auf opengym.duarte-santos.ch wurde am Ausfalltag direkt im dist bearbeitet,
die Quelle hier blieb auf dem alten Stand: GitHub-Links, GitHub-API fuer die Zaehler,
Demo-iframe auf die tote Pages-Instanz.
Uebernommen: Hinweisblock zur Sperre auf allen drei Seiten, Links und Zaehler auf
gitea.com (site.js liest jetzt stars_count/open_issues_count und die Releases von
dort), Discord-Abschnitt, Demo-Sektion als "Temporarily offline" mit Verweis auf APK
und Selfhosting, dazu die neuen Styles und der Umami-Tag der Website.
Die Zeitleiste auf about.html fuellt sich, sobald hier Releases stehen - die
Release-API von gitea.com liefert aktuell noch nichts.
website/ holds the source of opengym.duarte-santos.ch — landing with live
GitHub stats, docs and the story behind the app; no build step. The
native app icons are now generated (capacitor-assets) from the same
blocky dumbbell as the PWA icon, traced into resources/icon.svg, so the
APK, home-screen PWA, and website favicon all match.