gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commite3f85afbe3f85afblog: commit mention slipmree3f85afb/components/index.hl

1.4 KB

  1. // components/index.hl — `/` ON EVERY ADDRESS (ticket #6, gitoria#16). The request's host decides, on the SERVER
  2. // (`host = null`, hybriel#74): the main address (gitoria.worldapi.org) shows the repo list (list.hl), a repo
  3. // address (<slug>.gitoria.worldapi.org) shows that repo's Readme view (readme.hl) — or "No such repository".
  4. parent './repo.hl'
  5. import { siteName } from '../project.hl'
  6. import RepoList from './list.hl'
  7. import OrgList from './orglist.hl'
  8. import Readme from './readme.hl'
  9. import { titleSlug } from '../lib/repos.hl'
  10. import { pageTitle } from '../lib/repos-helpers.hl'
  11. import { slugOfRequest } from '../lib/orgs.hl'
  12. import { slugOfHost } from '../lib/util.hl'
  13. import { orgFor } from '../lib/repos.hl'
  14. import { userIdOfSession } from '../lib/users.hl'
  15. host = null
  16. orepo = ''
  17. session = null
  18. // the main address: the repo list · an organization's address (a name that is one the viewer may see): its repos · else a repo's page (or "No such repository")
  19. onMain = slugOfHost(host) == '' && orepo == ''
  20. onOrg = slugOfHost(host) != '' && orepo == '' && orgFor(slugOfHost(host), userIdOfSession(session)) != null
  21. onRepo = !onMain && !onOrg
  22. __title = pageTitle(siteName, titleSlug(host, orepo, session), '')
  23. View {
  24. repoHome {
  25. if (onMain) { RepoList { } }
  26. if (onOrg) { OrgList { } }
  27. if (onRepo) { Readme { orepo = orepo } }
  28. }
  29. }
  30. Style {
  31. repoHome {
  32. display = 'grid'
  33. gap = '1rem'
  34. minWidth = '0'
  35. // Direct-child universal selectors have no bare language form.
  36. '> *' {
  37. margin = '0'
  38. }
  39. }
  40. }

Branches

Latest commits

  • e3f85afblog: commit mention slipmre
  • 4d1a4cf4log: #25 numbersmre
  • 1af0a60ddocs: H25 run() correctionmre
  • 8c8ba2f1log: PR flow announcedmre
  • fa00cd35log: Kunibert pings provenmre
  • 3a68cfaclog: components decisionmre
  • 87de8e31log: Kunibert connected to 9 app reposmre
  • c22aff69log: PR-only rollout startedmre
  • 25309981log: STOP and paused workers 2026-11-08mre
  • 5286803alog: worker briefs and reports of 2026-11-08mre
  • 85c86605log: 2026-11-08 Arachne on list shapemre
  • cb634512log: 2026-11-08 keyed lists livemre
  • 07c98d4aLists: keyed rows with @id, remove(id) and one whole-list assignment instead of hand-rebuilt loopsmre
  • 0db0d81elog: 2026-11-08 day52 live, W30 startedmre
  • b05f6d92tests/status: the gate's 3 s app token expired during the restart; it lives 60 s like status-keyedmre
  • 1e8f4f0avendor: Hybriel set-day52 (fault-path leak fix #335, keyed rows #331)mre
  • f5f0fb7blog: 2026-11-08 day50/#29 live, H25 correction, V52 startedmre
  • dc77fb95main: offline note from __hlOnline, tick removed (#29)mre
  • 37a86d93tests/reviews: seeded fake hook's DNS failures are not server errors (flaky gate)mre
  • 07ab845bvendor: Hybriel set-day50 (run() leak fix #335)mre