vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Fix HTMX inline styles and Prism worker message parsing
ac00929fcb2269e874a0b7c0e6868885f57723ce · Keenan Nemetz · 12d ago · parent a76b2f38
Fix HTMX inline styles and Prism worker message parsing HTMX injects a <style> element for its indicator classes, which style-src 'self' blocks. Turn that off through its config meta tag and keep the indicator rules in the stylesheet instead. Prism installs its own worker message handler that expects a JSON string, so it threw JSON.parse on every structured job before prism-worker.js could highlight it. Disable that handler; the worker already owns the message path.
server/web/static/vole.css +10
| @@ -1904,6 +1904,16 @@ h2 .icon { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; c | |||
| 1904 | 1904 | while its request is in flight. */ | |
| 1905 | 1905 | form.htmx-request .label-tokens { opacity: 0.6; } | |
| 1906 | 1906 | ||
| 1907 | /* HTMX's indicator rules live here rather than in the <style> element it would | ||
| 1908 | inject, because the CSP allows style-src 'self' only. Keep them in step with | ||
| 1909 | the config in chrome.html that turns that injection off. */ | ||
| 1910 | .htmx-indicator { opacity: 0; visibility: hidden; } | ||
| 1911 | .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { | ||
| 1912 | opacity: 1; | ||
| 1913 | visibility: visible; | ||
| 1914 | transition: opacity 200ms ease-in; | ||
| 1915 | } | ||
| 1916 | |||
| 1907 | 1917 | /* Line-anchored review comments: a small button on each line opens the composer. */ | |
| 1908 | 1918 | .diff td.comment-cell { | |
| 1909 | 1919 | padding: 0 3px; | |