summaryrefslogtreecommitdiff
path: root/cgithub/src
AgeCommit message (Collapse)Author
2026-08-11Deploy only to Cloudflare WorkersJoe Mou
The Node server entry, esbuild bundle, and Makefile rsync/systemd deploy are gone; wrangler dev and wrangler deploy are the only paths now, so the dev:cf/deploy:cf scripts take over the plain dev/deploy names. @hono/ node-server and esbuild drop out with src/index.ts, and the README's systemd socket and nginx snippets go with them. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11Link repo header and add a "View original" linkJoe Mou
The owner/name header in the layout now links to the owner page and the repository root. tryRender passes the request's path and query through as githubUrl — our URLs mirror GitHub's, so the same path is the page we scraped — and the footer links there with rel="noreferrer", matching the no-referrer policy used on redirects to github.com. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-11Add language percentages to repo pagesJoe Mou
GitHub no longer server-renders the repository sidebar; its React UI lazily fetches /:owner/:repo/_sidebar as JSON, which carries the language breakdown (name, percentage, color). getGitHubLanguages() uses that endpoint, and a new /api/:owner/:repo/languages fragment route renders the bar and legend the same way refs and latest-commit already work, so repo page loads still cost a single scrape. The latest-commit placeholder loader in refs.js is generalized over .placeholder[data-src] so both placeholders share it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-22Add async branch/tag dropdown and latest-commit barJoe Mou
Adds two lazily-fetched UI pieces to match vanilla GitHub while keeping initial page loads plain server-rendered HTML: a branch/tag selector (native <dialog>, CSS anchor-positioned to its button, light-dismissed via closedby="any") and a latest-commit bar above the file listing. Both are populated by new /api/:owner/:repo/refs/:type and /api/:owner/:repo/latest-commit/:branch/:path routes; the latter calls GitHub's own /latest-commit JSON endpoint (the same one the React UI uses) rather than scraping the full commit history page.
2026-07-15Add Cloudflare Workers deployment targetJoe Mou
Split routes into a shared createApp() (src/app.ts) used by both the Node entry (src/index.ts) and a new Workers entry (src/worker.ts). Workers disallow runtime code generation, so scripts/compile-views.ts precompiles the Eta templates into src/views.generated.ts and rendering switches from renderAsync to the sync render. Static files move to public/static so Workers Static Assets can serve them; the Node build and serveStatic root are updated to match. Deploy with pnpm run deploy:cf, local dev with pnpm run dev:cf. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15Replace null overview files with HTML commentsJoe Mou
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15Owner page nav menu and layout restructureJoe Mou
Add a menu bar of profile tab links, split the org repository list from pinned repos, and restructure the owner template to match repo pages. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15Add organization support to owner pagesJoe Mou
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15Remove watchers, no longer rendered by GitHubJoe Mou
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-15User profile pagesJoe Mou
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-05-27Pull request indexJoe Mou
2026-05-27Add repo-scoped search support for issues and PRsJoe Mou
We do not support hybrid issue/PR search. Any searches on the issues endpoint will redirect to an explicit issue-only search.
2026-05-27Update unit testsJoe Mou
2026-04-28Support redirectsJoe Mou
2026-04-20Apply overlapping styling drectives instead of duplicating contentJoe Mou
2026-04-20Fallback to issue titleHtmlJoe Mou
2026-04-20Update for unexpected actions/deploy-pages releaseJoe Mou
2026-03-14Fix tree overviewHtml: use tree.readme instead of overview.overviewFilesJoe Mou
2026-03-13Fix GitHub scraping for new JSON structure, update TypeScript interfacesJoe Mou
GitHub restructured their embedded JSON: tree/blob data is now split across codeViewRepoRoute, codeViewTreeRoute, codeViewBlobLayoutRoute, codeViewBlobLayoutRoute.StyledBlob, codeViewBlobRoute, and the shared codeViewLayoutRoute (repo, refInfo, path). Replace RawPayload and OverviewFile with typed interfaces for each route, add AppPayload as the top-level union, and simplify parsePayload to always extract react-app.embeddedData.
2026-02-21Release assetsJoe Mou
Also fix release content parsing.
2026-02-21Add latest release detailsJoe Mou
By Gemini
2026-02-21Parse repo info from DOM instead of regexesJoe Mou
By Gemini
2026-02-21Add single release detail pages and refactor templatesJoe Mou
Refactored releases display into reusable partial template (_release.eta) and added support for viewing individual releases at /:owner/:repo/releases/tag/:tag with navigation back to all releases. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-21Parse release page HTMLJoe Mou
Fixes reading complex release descriptions that had unbalanced tags. Written with Gemini.
2026-02-11Add GitHub releases supportJoe Mou
Scrapes releases page HTML to display version tags, publish dates, and changelog content. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-28Commits listJoe Mou
2026-01-28Image supportJoe Mou
2026-01-28Syntax highlightingJoe Mou
Sometimes GitHub returns colorizedLines and sometimes it returns a terser stylingDirectives, which needs to be applied to rawLines.
2026-01-28Render Markdown blobsJoe Mou
2026-01-27List issuesJoe Mou
2026-01-27Propagate GitHub HTTP errorsJoe Mou
Render `error.eta` on HTTP error from GitHub. Implemented with Gemini.
2026-01-27GitHub scraper testJoe Mou
2026-01-26Show releasesJoe Mou
2026-01-26Use Node native TypeScript elisionJoe Mou
See https://nodejs.org/api/typescript.html#type-stripping
2026-01-26Redirect any unhandled routes to GitHubJoe Mou
2026-01-26Overview (README) in treesJoe Mou
2026-01-26Raw route that just redirects to GitHubJoe Mou
2026-01-25Use Phosphor IconsJoe Mou
2026-01-25Repository page with infoJoe Mou
2026-01-25RefactorJoe Mou
2026-01-25Support systemd socket activationJoe Mou
2026-01-25esbuild to bundle for deploymentJoe Mou
2026-01-23Add blob view for displaying file contentsJoe Mou
2026-01-23Simple web server for viewing treesJoe Mou