vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Load the Prism worker from the static route
9a9e708c1def7250086e612cdee88e1ea12298ab · Keenan Nemetz · 21d ago · parent 7c02af12
Load the Prism worker from the static route The highlighting script asked for /static/prism-worker.js, but every browser asset is served under /-/static/. The request fell through to the HTML 404 page, so the browser refused the worker for its MIME type and every blob stayed plain. HTMX also compiles an hx-trigger filter with Function(), which script-src 'self' blocks. The two polling triggers used a visibility filter for that; drop the filter, pause the request in app.js while the tab is hidden, and turn eval off in the HTMX config so a future filter is caught instead of failing in production. Tests hold the worker to its route and the templates to trigger forms that do not need eval.
server/web/templates/requests.html +1−1
| @@ -108,7 +108,7 @@ | |||
| 108 | 108 | {{define "request_aside"}} | |
| 109 | 109 | <div id="request-aside" | |
| 110 | 110 | hx-get="/{{.Name}}/changes/{{.Request.ID}}/live" | |
| 111 | hx-trigger="every 20s [document.visibilityState === 'visible']" | ||
| 111 | hx-trigger="every 20s" | ||
| 112 | 112 | hx-sync="this:replace" | |
| 113 | 113 | hx-swap="none"> | |
| 114 | 114 | {{template "request_sidebar" .}} | |