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.
Remove repository tab polling and rename Code to Source
cc7faea36a31373079df8fce68c1bc20a44873a0 · Keenan Nemetz · 3d ago · parent 0a12642f
Remove repository tab polling and rename Code to Source
The tab row no longer polls its open counts, so the /{name}/counts endpoint, its htmx trigger, and the badge animation are gone. The unfocused-window note has been removed while the other live regions still pause.
The Code tab is now Source, served at /{name}/source; links, sitemap entries, markdown tree links, and tests follow the new route.
server/web/static/vole.css +2−34
| @@ -544,26 +544,6 @@ img { max-width: 100%; } | |||
| 544 | 544 | margin-bottom: 16px; | |
| 545 | 545 | border-bottom: 1px solid var(--border); | |
| 546 | 546 | } | |
| 547 | /* How old a paused page's answer is. It sits in the tab row instead of in the | ||
| 548 | flow so gaining and losing focus does not move the page under the reader. */ | ||
| 549 | .live-note { | ||
| 550 | position: absolute; | ||
| 551 | right: 0; | ||
| 552 | bottom: 12px; | ||
| 553 | margin: 0; | ||
| 554 | padding: 2px 8px; | ||
| 555 | border-radius: 999px; | ||
| 556 | background: var(--bg-panel); | ||
| 557 | color: var(--fg-muted); | ||
| 558 | font-size: calc(11.55px * var(--font-scale)); | ||
| 559 | white-space: nowrap; | ||
| 560 | pointer-events: none; | ||
| 561 | } | ||
| 562 | /* Below the desktop widths the tab strip can reach the right edge, so the note | ||
| 563 | takes its own line instead of sitting on top of a tab. */ | ||
| 564 | @media (max-width: 1040px) { | ||
| 565 | .live-note { position: static; margin: 0 0 8px; } | ||
| 566 | } | ||
| 567 | 547 | .repo-title { padding: 26px 0 12px; } | |
| 568 | 548 | /* The repository actions sit on the title line, at the far right of the header. */ | |
| 569 | 549 | .repo-title-row { | |
| @@ -653,18 +633,6 @@ img { max-width: 100%; } | |||
| 653 | 633 | the content edges together. */ | |
| 654 | 634 | .tabrow { margin-bottom: 14px; border-bottom: 1px solid var(--border); } | |
| 655 | 635 | ||
| 656 | /* A count that moved while the reader was looking elsewhere keeps one short | ||
| 657 | ring, so the change is noticed; the number itself is the answer. app.js adds | ||
| 658 | the class when a poll changes a badge and drops it when the animation ends. */ | ||
| 659 | .tabs .chip-count.count-changed { | ||
| 660 | border-radius: 999px; | ||
| 661 | animation: count-changed 1.8s ease-out; | ||
| 662 | } | ||
| 663 | @keyframes count-changed { | ||
| 664 | from { color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } | ||
| 665 | to { box-shadow: 0 0 0 3px transparent; } | ||
| 666 | } | ||
| 667 | |||
| 668 | 636 | /* ---------- panels and tables ---------- */ | |
| 669 | 637 | ||
| 670 | 638 | .panel { | |
| @@ -1528,8 +1496,8 @@ pre code { background: none; border: 0; padding: 0; font-size: inherit; } | |||
| 1528 | 1496 | } | |
| 1529 | 1497 | ||
| 1530 | 1498 | /* An unfocused window is not being refreshed, and a queued or running word is | |
| 1531 | the only kind that can go out of date. Their dots go hollow and still; the | ||
| 1532 | repository header says how old the answer is. A finished run never changes. */ | ||
| 1499 | the only kind that can go out of date. Their dots go hollow and still. A | ||
| 1500 | finished run never changes. */ | ||
| 1533 | 1501 | .is-stale .status.running::before, | |
| 1534 | 1502 | .is-stale .status.queued::before { | |
| 1535 | 1503 | background: transparent; | |