gitoria
All repositories: gitoria
2.6 KB
// components/readme.hl — THE README VIEW of a repo (ticket #8, gitoria#16): `/` on <slug>.<domain>, composed// into components/index.hl. Rendered on the SERVER with its content: the repo from the request's host, the// README.md / $docs Markdown from git (lib/homepage.hl homepageNow — hl:proc run() waits, hybriel#80).import Markdown from './markdown.hl'import { slugOfRequest } from '../lib/orgs.hl'import { px, repoOrigin } from '../lib/util.hl'import { forwardOf } from '../lib/forwards.hl'import { repoAt } from '../lib/repos.hl'import { homepageNow } from '../lib/homepage.hl'host = nullorepo = ''session = nullslug = slugOfRequest(host, orepo)repo = repoAt(slug, session)hasRepo = repo != nullpre = px(slug)codeHref = pre + '/code'movedTo = repo == null ? forwardOf(slug) : nullwasMoved = movedTo != nullmovedHref = movedTo != null ? repoOrigin(movedTo) + '/' : ''home = repo != null ? homepageNow(slug, repo.branch) : nulldocsFound = home != null && home.founddocsNone = home != null && !home.founddocsTruncated = home != null && home.truncateddocs = home != null ? home.files : []View {repoPage {if (wasMoved) { p { id = "moved" class = "notice" "This repository moved to " a { id = "movedlink" href = movedHref movedTo } "." } }if (hasRepo) {dl {dt { "Address" }dd { a { id = "repoaddress" href = repo.address repo.address } }dt { "Owner" }dd { id = "repoowner" repo.owner }dt { "Created" }dd { time { id = "repocreated" repo.created } }}if (docsNone) { p { id = "nohomepage" class = "empty" "This repository has no README.md yet. Open the " a { id = "tocode" href = codeHref "Code" } " page to see how to push code." } }if (docsFound) {repoHomepage { id = "homepage"for (d of docs) {homepageFile {if (d.isDocs) { code { class = "path" d.path } }Markdown { blocks = d.blocks }}}if (docsTruncated) { p { id = "docstruncated" class = "muted" "Very long files are cut off here." } }}}}}}Style {dl {display = 'grid'gridTemplateColumns = 'auto minmax(0, 1fr)'gap = '.3rem 1rem'alignItems = 'center'margin = '0'}dt {color = 'var(--color-text-muted)'}dd {margin = '0'overflowWrap = 'anywhere''> a' {display = 'inline-flex'alignItems = 'center'minHeight = '2.75rem'}}homepageFile {display = 'grid'gap = '.5rem'minWidth = '0''> *' {margin = '0'}'> .path' {color = 'var(--color-text-muted)'fontSize = '.875rem'background = 'transparent'padding = '0'}}repoHomepage {display = 'grid'gap = '1.5rem'minWidth = '0'}}
Branches
- f1-broken-json
- f2-api-bugs
- gp-gate-ports
- heap-revert
- hl25-records
- ident-chooser-selector
- mainmain branch
- p51-public-pr-reads
- records-1112
- s25-no-session-on-login-error
- v59
- w52-person-approval
- w52b-approval-followup
- w52c-header-phone
- w53-pulls-speed-pr
- w54-repo-rename-pr
- w55-rename-org
- w56-owner-members
- w62-pr-close
- w63-force-push
- w64-org-slash
Latest commits
- 2ed09441Use layouts theme 17e0f03 for W61 compatibilitymre
- b8609a91Merge branch 'main' into w61-stylemre
- 4639caf7Report W61 theme startup blocker and day39 Style probemre
- 81f0a0bbREADME: two caches were restored by 90b4f72; log W62mre
- 4a3f557eImport layouts theme ebd00b6 for W61 (startup blocked)mre
- ab12a257Merge W62: #25 commit page measurements and proc repromre
- 41323e49gitoria#25: measure commit request costs and reproduce blocking process waitsmre
- 53ca42b2log: W60 merged, W61 W62 startedmre
- 80870a33mission W61: style passmre
- 560fd208Merge W60: helpers, bound forms, login in topics, two form fixes (gitoria#28 #32 #33)mre
- ac5ba6a4log: W60, #25 measuredmre
- 220f6342W60: record corrected form proof, full AE and remaining gapsmre
- 7e31cac5gitoria#28: restrict reply form layout to reply formsmre
- ae373cfdgitoria#28: keep each reply draft in its thread componentmre
- eeeebd5agitoria: insert a newly created organization oncemre
- 34d2d5cagitoria: clear the bound public-key textarea after creationmre
- 119e54c0W60: restore conductor-owned tracking filesmre
- 24b479e7W60: record final gates, Chrome failures and AE evidencemre
- 5e11184cW60: record partial validation, framework gaps and cleanupmre
- 20fe13fagitoria#33: centralize login and tickets connection statemre