gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit1997e77d1997e77dgitoria#40: stable PR numbers, refs/pull/N/head, ssh pushes reach the app (merge w40-pr-number)mre1997e77d/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

  • 1997e77dgitoria#40: stable PR numbers, refs/pull/N/head, ssh pushes reach the app (merge w40-pr-number)mre
  • 9364fb16gitoria#40: ssh pushes call /__git/pushed before and after (ensurePulls, notifyPush, syncPulls); gate over the sshd imagemre
  • fdb9ed28gitoria#41: repo owners can connect an app (merge w41-apps-connect)mre
  • 2ef23df0gitoria#40: the browser gate reads the title without the #Nmre
  • 9af07ecegitoria#41: connect an app to a repo (apps table, connect flow, manual add, allow-list, settings)mre
  • b9137ff0gitoria#40: pull requests are stored with a number, refs/pull/N/head, syncPulls and pullObject; /pulls shows #Nmre
  • 06d622daown image tag gitoria-runtime:debian12 for gitoria and standby (shared tag lost git)mre
  • 20caa33agitoria#37: media queries in the language's @media block (minWidth = '60rem') in list, codebrowser and repomre
  • c4175e6dgitoria: a startup error prints its message before exit 1 (hybriel#247)mre
  • c50d17efKeep function-route not-found style in shared stylesheetmre
  • e42d78d3Preserve ticket state CSS and document function-route style gapmre
  • c6b7154eWIP gitoria#26: move styles into nested component blocksmre
  • 77a2c31cgitoria#31: plain declarations instead of needless let in lib/ and tools/ (103 let removed, 137 kept because reassigned); no other changemre
  • 4b98ab62gitoria: an ident access key (idt_) works as the git password; read key clones only, bad key 401, ident down 503 (ident#27); gate tests/ident-access-gitoria.mjs in deploy.shmre
  • 1185f686gitoria#36: a failed return from tickets shows a note on the settings page and leaves one log line per outcome; no code is exchangedmre
  • 5d2c385agitoria: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 71+5 failing → 76 passed; deploy.sh runs tests/private.mjs toomre
  • 241ef3f9deploy.sh: rebuild the sshd image before up -d (GO34c)mre
  • 821cdbb1gitoria#34b: styles, create-repo tool, docs, push/ssh gates sign in through the selector, shots scriptmre
  • a81abdc9gitoria#34: org page via function route, member-reachable orgs, selects, reportmre
  • 17f031f0gitoria#34: private repos, organizations, members, move tool, gatemre