7 Commits
Author SHA1 Message Date
lotherk 0e54cb8a02 feat(cgi): switch branches and tags with ?ref
Read the ref query parameter, validate it, pass it to got for tree, blob, raw, and log views, and render a no-JavaScript branch/tag bar. Preserve the ref in repository links and cover dev/main switching and traversal rejection in tests.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 14:08:02 +00:00
lotherk 1a62123fad feat(cgi): accept CDE .dp palettes
Parse eight-slot CDE palette files in addition to key=value themes. Map the active frame, inactive frame, text-area, application-background and front-panel slots, derive readable text and code colours, and add a sample palette plus tests.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:35:18 +00:00
lotherk 17156e1d97 fix(pages): remove got worktree refs after publishing
Every got checkout creates refs/got/worktree/base-<uuid> in the bare repo. Delete it in the publisher trap so repeated pushes do not accumulate refs and block object cleanup, and assert the ref count stays stable in the hook test.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:32:06 +00:00
lotherk a5ac6bf52f fix(cgi): normalize SCRIPT_NAME when mounted at root
A CGI mounted at / produced scheme-relative // links. Strip trailing slashes from SCRIPT_NAME, emit root-relative links, and cover the root mount in the pages tests.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:30:49 +00:00
lotherk a5bc30bfaa fix(cgi): match pages host via SERVER_NAME fallback
CGI servers are not required to set HTTP_HOST. Fall back to SERVER_NAME:SERVER_PORT, omitting 80 and 443, and document the pages host contract. Also omit the redundant Status header on 200 file responses.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:29:28 +00:00
lotherk 802572bae9 feat(pages): build and publish bb sites on push
Add a Gotea Pages prototype: a pages branch is checked out with got, built with the vendored bb, swapped atomically into a pages root, and served only on a separate host from an allowlist. A post-receive hook installer wires the flow through Gitea delegate hooks. The CGI pages mode isolates the host and contains paths with realpath.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:28:02 +00:00
lotherk feda8568da feat(cgi): add HTML 4.01 CDE frontend
Add a C99/POSIX CGI browser for bare Git-format repositories, using got for every read. Pages are HTML 4.01 Transitional with CSS1, table layout, no JavaScript, and a configurable CDE/Motif palette. The browser supports flat and owner-scoped repository layouts, tree, blob, raw, log, and commit views, and has tests plus generated-page validation.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:14:26 +00:00