gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite307d69ae307d69agitoria: say what is per process during the hand-overmree307d69a/components/readme.hl

1.5 KB

  1. // components/readme.hl — THE README VIEW of a repo (ticket #8, gitoria#16): `/` on <slug>.<domain>, composed
  2. // into components/index.hl. Rendered on the SERVER with its content: the repo from the request's host, the
  3. // README.md / $docs Markdown from git (lib/homepage.hl homepageNow — hl:proc run() waits, hybriel#80).
  4. import Markdown from './markdown.hl'
  5. import { slugOfHost } from '../lib/util.hl'
  6. import { repoAt } from '../lib/repos.hl'
  7. import { homepageNow } from '../lib/homepage.hl'
  8. host = null
  9. slug = slugOfHost(host)
  10. repo = repoAt(slug)
  11. hasRepo = repo != null
  12. home = repo != null ? homepageNow(slug, repo.branch) : null
  13. docsFound = home != null && home.found
  14. docsNone = home != null && !home.found
  15. docsTruncated = home != null && home.truncated
  16. docs = home != null ? home.files : []
  17. View {
  18. repoPage {
  19. if (hasRepo) {
  20. dl {
  21. dt { "Address" }
  22. dd { a { id = "repoaddress" href = repo.address repo.address } }
  23. dt { "Owner" }
  24. dd { id = "repoowner" repo.owner }
  25. dt { "Created" }
  26. dd { time { id = "repocreated" repo.created } }
  27. }
  28. if (docsNone) { p { id = "nohomepage" class = "empty" "This repository has no README.md yet. Open the " a { id = "tocode" href = "/code" "Code" } " page to see how to push code." } }
  29. if (docsFound) {
  30. repoHomepage { id = "homepage"
  31. for (d of docs) {
  32. homepageFile {
  33. if (d.isDocs) { code { class = "path" d.path } }
  34. Markdown { blocks = d.blocks textHash = d.hash }
  35. }
  36. }
  37. if (docsTruncated) { p { id = "docstruncated" class = "muted" "Very long files are cut off here." } }
  38. }
  39. }
  40. }
  41. }
  42. }

Branches

Latest commits

  • e307d69agitoria: say what is per process during the hand-overmre
  • f0cbe6a6gitoria: standby service on port 45014 and a deploy that hands over through it without a gapmre
  • 727cd083gitoria#25: README: vendor notes for Hybriel c1b1010f and the page cachemre
  • 61b72dedgitoria#25: re-vendor Hybriel master c1b1010f (W149 page cache), key the repo Readme page by slug and main commit, extend the readme-cache gatemre
  • 5b0b4b9ereadme-cache gate: use the security gate's ports when no own ports are givenmre
  • bc8f20d9gitoria#25: re-vendor Hybriel c09538bb with the W141 render cache, cache the homepage per commit, add the readme-cache gatemre
  • 9feebbd3Re-vendor Hybriel to ded47c13 (W145: Firefox start script fix)mre
  • 28ed41e5gitoria#24: one sign-in comes from hl:web batch 20, the /session/share workaround is gonemre
  • 3b2669e4gs: drop the unbuildable legacy check, fix pwa fetchmre
  • 2a2fdd77gs: C2 check before cookie experimentsmre
  • 76e0587aWIP gs 2mre
  • a80da7bdWIP gs: security gate for lazy sessions, g24 browser checksmre
  • 23fb05d8re-vendor Hybriel aaa39e69 (hl:web batch 20: login emit and Sessions.mint, tab follows a login, signed-in session cookie wins among duplicates and is re-issued with the Domain, W85 faster render, lazy sessions)mre
  • a0727ca3ident#31: the selector's sign-in returns to the page the user started on (return attribute = the login callback with next), gate checkmre
  • a06975f9gitoria: a gap between your name and Log out in the phone header (they touched); gate checks itmre
  • 32ba9d59gitoria: leave the host-only cookie experiment out of the browser gate (gitoria#24 is a separate mission)mre
  • 43ad2bcfgitoria header: the selector alone plus your name and Log out as before the theme missions; tests follow (WIP: host-only cookie experiment fails)mre
  • ac2c4e3fident selector back in the header (creator 2026-10-24): selector top right signed in and out on phone and desktop, no second Log in button, new gate checks (WIP: gates not re-run after the last edits)mre
  • b279f536theme: sync from layouts 4994037 (list rows stack, td word-keep, heading code, edited tap target)mre
  • 2b01515ctests/ticketskit: a failed start kills the tickets server (own process group); stop() kills the groupmre