gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfe5f707cfe5f707cgitoria 010: report, mission, comment on why current = true staysmrefe5f707c/components/readme.hl

1.6 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 RepoHead from './repohead.hl'
  5. import Markdown from './markdown.hl'
  6. import { slugOfHost } from '../lib/util.hl'
  7. import { repoAt } from '../lib/repos.hl'
  8. import { homepageNow } from '../lib/homepage.hl'
  9. host = null
  10. slug = slugOfHost(host)
  11. repo = repoAt(slug)
  12. hasRepo = repo != null
  13. home = repo != null ? homepageNow(slug, repo.branch) : null
  14. docsFound = home != null && home.found
  15. docsNone = home != null && !home.found
  16. docsTruncated = home != null && home.truncated
  17. docs = home != null ? home.files : []
  18. View {
  19. repoPage {
  20. RepoHead { }
  21. if (hasRepo) {
  22. dl {
  23. dt { "Address" }
  24. dd { a { id = "repoaddress" href = repo.address repo.address } }
  25. dt { "Owner" }
  26. dd { id = "repoowner" repo.owner }
  27. dt { "Created" }
  28. dd { time { id = "repocreated" repo.created } }
  29. }
  30. 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." } }
  31. if (docsFound) {
  32. repoHomepage { id = "homepage"
  33. for (d of docs) {
  34. homepageFile {
  35. if (d.isDocs) { code { class = "path" d.path } }
  36. Markdown { blocks = d.blocks }
  37. }
  38. }
  39. if (docsTruncated) { p { id = "docstruncated" class = "muted" "Very long files are cut off here." } }
  40. }
  41. }
  42. }
  43. }
  44. }

Branches

Latest commits

  • fe5f707cgitoria 010: report, mission, comment on why current = true staysmre
  • 9705ca86gitoria 010: gate: menu marker in the server HTMLmre
  • 8cff663agitoria 010: main-menu.hl from layouts 0bcc629 (route marker)mre
  • 359c79f7gitoria 010: re-vendor Hybriel master f9614007 (plugins whole, bin/ git-ignored)mre
  • 6bd7fb3cgitoria 009: theme re-copied from layouts 76f99f6 (menu marks the current page), current = true on the menu item, e2e marker checks, reportmre
  • 44de915cidentkit: refuse a taken ident port, cold-start deadline, abort on dead ident, clear no-code error (as notes)mre
  • 2bf5343egitoria 007: theme re-copied from layouts dbe3de7 (44 px taps), redundant tap overrides dropped, crumbs class, real-browser walk test, reportmre
  • 18843648deploy.sh: a gate without a 'passed,' line (check-theme) no longer ends the script silently (grep under pipefail) — print check-theme's summary, as layouts doesmre
  • e6dff0cbgitoria#23: report 005, STATUS, LOGmre
  • 7f992d62gitoria#23: phone first on the shared theme — brand, branch and pull links 44 px, readme code 14 px; gate block "phone first" (15 pages at 390 + the three dropdowns, fails 20 on old), dropdown-aware login/logout clicks, check-theme in GATESmre
  • a2a840a5gitoria#23 WIP (quota stop): theme from layouts, styles inherit it, shell on the theme's header/menus/sidebar, phone measurement script; gates not runmre
  • 12b665b0mission brief 005mre
  • b680c483Revert "gitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)"mre
  • 4fda244fgitoria#22: RepoTabs wrapping component for the repo tabs (active tab, no content for a missing repo)mre
  • 0fd5e280mission brief 004mre
  • e1d425e7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • e59ff114deploy.sh: wait up to DEPLOY_URL_WAIT (120 s) for 200 after the restart, as the other apps (cold compile, hybriel#148)mre
  • bcafcceb003: compose cache volume + tmpfs /tmp, gate start waits 120 s, report/LOG/STATUSmre
  • bed3f2d5Re-vendor Hybriel to the shared static build 0f396652 (plugins; bin/ is git-ignored)mre
  • 3207e128mission brief 003mre