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/chrome.html +2−2
| @@ -10,7 +10,7 @@ | |||
| 10 | 10 | <meta name="csrf" content="{{.CSRF}}"> | |
| 11 | 11 | <meta name="color-scheme" content="dark light"> | |
| 12 | 12 | {{if .NoIndex}}<meta name="robots" content="noindex">{{end}} | |
| 13 | <meta name="htmx-config" content='{"includeIndicatorStyles":false}'> | ||
| 13 | <meta name="htmx-config" content='{"includeIndicatorStyles":false,"allowEval":false}'> | ||
| 14 | 14 | <title>{{.Title}} · {{.InstanceName}}</title> | |
| 15 | 15 | <link rel="icon" type="image/png" sizes="32x32" href="/-/static/favicon-32.png" media="(prefers-color-scheme: light)"> | |
| 16 | 16 | <link rel="icon" type="image/png" sizes="32x32" href="/-/static/favicon-32-dark.png" media="(prefers-color-scheme: dark)"> | |
| @@ -142,7 +142,7 @@ | |||
| 142 | 142 | keep asking. */}} | |
| 143 | 143 | <nav class="tabs" aria-label="Repository" | |
| 144 | 144 | hx-get="/{{.Name}}/counts" | |
| 145 | hx-trigger="every 30s [document.visibilityState === 'visible']" | ||
| 145 | hx-trigger="every 30s" | ||
| 146 | 146 | hx-sync="this:replace" | |
| 147 | 147 | hx-swap="none"> | |
| 148 | 148 | <a class="repotab{{if eq .Tab "overview"}} active{{end}}" href="/{{.Name}}"{{if eq .Tab "overview"}} aria-current="page"{{end}}>{{icon "layout-dashboard"}}Overview</a> | |