comparison hg-web/src/README.md @ 195:f8f5004a920a

Merging back hg-web-tip
author MrJuneJune <me@mrjunejune.com>
date Tue, 27 Jan 2026 06:51:44 -0800
parents b818a4561a3c
children
comparison
equal deleted inserted replaced
189:14cc84ba35a0 195:f8f5004a920a
1 # src
2
3 Frontend source files for the Mercurial repository browser.
4
5 ## Files
6
7 | File | Description |
8 |------|-------------|
9 | `repo-browser.tsx` | Main React component for the repository browser UI |
10 | `main.tsx` | React entry point, renders RepoBrowser |
11 | `index.html` | HTML template |
12 | `index.js` | JavaScript entry point |
13 | `index.css` | highlight.js theme styles |
14 | `base.css` | Base/reset styles |
15 | `build.ts` | esbuild configuration for bundling |
16
17 ## Components (repo-browser.tsx)
18
19 - `RepoBrowser` - Main app component with routing and state
20 - `FileList` - Renders directory listing
21 - `FileRow` - Individual file/folder row with prefetch on hover
22 - `FileViewer` - Modal for viewing code files with syntax highlighting
23 - `MarkdownViewerModal` - Modal for rendered markdown files
24 - `ReadmeViewer` - Inline README.md display
25 - `Breadcrumb` - Navigation breadcrumb
26 - `GlobalStyles` - CSS-in-JS with dark/light theme support
27
28 ## Subdirectories
29
30 - `icons/` - Static icon assets