gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb554cd5fb554cd5flogmreb554cd5f/components/code.hl

980 B

  1. // components/code.hl — THE CODE PAGE of a repo (gitoria#9, gitoria#16): /code, /code/<path>: the main branch (the owner's setting) at its last commit.
  2. // Its own route, rendered on the server (repo from the request's host, content from git: codebrowser.hl).
  3. // THE PATH AFTER /code/: the route `/code/*path` binds the rest of the path to the member `path` (hybriel#81).
  4. parent './repo.hl'
  5. import { siteName } from '../project.hl'
  6. import AddCode from './addcode.hl'
  7. import CodeBrowser from './codebrowser.hl'
  8. import { pageTitle } from '../lib/repos-helpers.hl'
  9. import { slugOfRequest } from '../lib/orgs.hl'
  10. import { titleSlug, repoAt } from '../lib/repos.hl'
  11. host = null
  12. orepo = ''
  13. session = null
  14. path = ''
  15. hasRepo = repoAt(slugOfRequest(host, orepo), session) != null
  16. __title = pageTitle(siteName, titleSlug(host, orepo, session), 'Code')
  17. View {
  18. repoPage {
  19. if (hasRepo) {
  20. AddCode { orepo = orepo }
  21. CodeBrowser { orepo = orepo kind = "code" rest = path }
  22. }
  23. }
  24. }

Branches

Latest commits

  • b554cd5flogmre
  • f4c9440ddeploy.sh: tar --hard-dereference for the live data backupmre
  • 1a687b15Merge branch 'w48-member-merge'mre
  • 166c775fW48 report, logmre
  • 1b4623f0Members merge pull requests: API route, button on /pulls and /pulls/N, one shared merge pathmre
  • 1075c38cW48 mission, logmre
  • 17bdd0d6V37/V39 missions, logmre
  • 146de5f8Re-vendor gitoria to Hybriel set-day39 (51e921d7)mre
  • e874e44dtests/status-keyed: app token lives 60 s so it outlives the gate's two restartsmre
  • 270b8d61deploy.sh: DEPLOY_STOP_START=1 stops, waits for the old pid, then starts (mpackdb freeze, replaces the standby swap)mre
  • 3f9235b8project.hl: drop the dummy /pulls/:n component route (hybriel#294 is fixed in day37)mre
  • c90daf19Re-vendor gitoria to Hybriel set-day37 (f6b3d45b)mre
  • 03b5bb08W39 report to reports/, drop scratch repro, mission + logmre
  • 154d333fMerge w39-create-api: POST /api/repos with a user token (#39)mre
  • 149dd512Rewrite W39 reportmre
  • e5385075Expect 401 for POST /api/repos without a tokenmre
  • 1a76055cDocument repository creation APImre
  • 4d779b3bAdd create-api gatemre
  • 88563122Add POST /api/repos for user tokensmre
  • b00860e3Create repositories with member checks in createRepoInmre