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
- cd442066gitoria#43: app-auth unit test reads the apps table from its new filemre
- 5dccbe38gitoria#43: in-flight rows are left alone by the other process; gate in deploy.sh; READMEmre
- 8c8805f3merge main (gitoria#42), delivery log and redelivery routes, sweep fixmre
- 5a996ea8gitoria#42: short-lived app tokens, read-only git fetch with them (merge w42-app-token)mre
- afdb0cbfgitoria#43: rename the moved helper (name clash in the browser build)mre
- 15e01e94gitoria#43: tests/events.mjs and its probemre
- 77829b73gitoria#43: signed events to connected apps (deliveries table, sender timer, pull_request events, ping)mre
- b5d696fegitoria#42: app tokens (gat_, one hour), appOfRequest, app token as the git read passwordmre
- 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