gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7e8aabea7e8aabeareport: W51b pull source verificationmre7e8aabea/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. '> *' {
  36. margin = '0'
  37. }
  38. }
  39. }

Branches

Latest commits

  • 7e8aabeareport: W51b pull source verificationmre
  • 6c18de76fix: preserve pull sources across containing branchesmre
  • fc36fa2elog: W51b pull source bugmre
  • 56bc1220log: v1.5.1 livemre
  • 845fc0aareport: W51mre
  • 83127391fix: return v1.5.1 app and merge error detailsmre
  • b07d0e97log: W51 v1.5.1 startedmre
  • 0b417d06docs: apps-api v1.5 user tokens (#48, W49)mre
  • d046940alog: vinzenz contract note sentmre
  • db443456log: vinzenz note retry 2mre
  • 802f229alog: kunibert repo ping provenmre
  • 2d2eaa92log: Kunibert connected to kunibert repomre
  • 65d5f80alogmre
  • dab74b0dW49 report, logmre
  • fd4fc028Exercise member status reads with a populated check statemre
  • 536ca6f9Allow repository members to read pull workflow APIs with user tokensmre
  • 705dd834W49 missionmre
  • b554cd5flogmre
  • f4c9440ddeploy.sh: tar --hard-dereference for the live data backupmre
  • 1a687b15Merge branch 'w48-member-merge'mre