Mercurial
comparison hg-web/README.md @ 224:3007ef5fc0ed hg-web
[hg-web] Simplify visuals and preview static files
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sun, 02 Aug 2026 13:51:11 -0700 |
| parents | 0e7b9464248d |
| children | 8bb0ac8f4587 |
comparison
equal
deleted
inserted
replaced
| 223:0e7b9464248d | 224:3007ef5fc0ed |
|---|---|
| 36 │ │ ├── theme.tsx | 36 │ │ ├── theme.tsx |
| 37 │ │ └── repo-browser.tsx | 37 │ │ └── repo-browser.tsx |
| 38 │ ├── index.html | 38 │ ├── index.html |
| 39 │ ├── index.css | 39 │ ├── index.css |
| 40 │ ├── base.css | 40 │ ├── base.css |
| 41 │ └── custom pencil, panda, icon, and background assets | 41 │ └── custom pencil, panda, and icon assets |
| 42 ├── Build | 42 ├── Build |
| 43 │ ├── BUILD | 43 │ ├── BUILD |
| 44 │ ├── ../gui_ze/gui_ze.bzl | 44 │ ├── ../gui_ze/gui_ze.bzl |
| 45 │ ├── ../markdown_converter | 45 │ ├── ../markdown_converter |
| 46 │ └── ../third_party/highlight | 46 │ └── ../third_party/highlight |
| 98 | 98 |
| 99 file or README selection | 99 file or README selection |
| 100 -> GET /api/repo/file?path=... | 100 -> GET /api/repo/file?path=... |
| 101 -> ApiGetFile | 101 -> ApiGetFile |
| 102 -> GET hg-serve/raw-file/tip/<path> | 102 -> GET hg-serve/raw-file/tip/<path> |
| 103 -> highlight.js or markdown_converter WASM | 103 -> highlight.js, markdown_converter WASM, or inline static preview |
| 104 ``` | 104 ``` |
| 105 | |
| 106 Images, SVG, video, audio, and PDF files open in the forge preview modal. | |
| 107 Unknown binary files retain a download link. The raw file API supplies explicit | |
| 108 MIME types, `nosniff`, inline disposition for supported previews, and sandboxed | |
| 109 SVG responses. | |
| 105 | 110 |
| 106 ### Commit graph | 111 ### Commit graph |
| 107 | 112 |
| 108 ```text | 113 ```text |
| 109 graph.tsx | 114 graph.tsx |