DocHub/backend/app
Tianyang 954b9bede4 fix: add image preview and replace Monaco with CodeMirror 6
Markdown and image previews were rendering blank because
@monaco-editor/react loads its core assets from cdn.jsdelivr.net at
runtime, which the deployment server's network can't reach. Switching
to @uiw/react-codemirror removes the CDN dependency entirely (all
assets ship in the build) and cuts bundle size from ~2.5MB to ~770KB.

Also add proper image/* content-type detection so images render via
<img> instead of being force-decoded as editor text.
2026-08-01 18:12:19 +08:00
..
routers fix: natural-sort file tree, indent nested folders, fix editor layout 2026-08-01 17:32:32 +08:00
__init__.py feat: scaffold FastAPI backend with config and health endpoint 2026-08-01 02:15:01 +08:00
config.py refactor: replace Garage/S3 storage with local filesystem storage 2026-08-01 16:30:02 +08:00
dependencies.py refactor: replace Garage/S3 storage with local filesystem storage 2026-08-01 16:30:02 +08:00
document_service.py fix: add image preview and replace Monaco with CodeMirror 6 2026-08-01 18:12:19 +08:00
local_file_client.py fix: natural-sort file tree, indent nested folders, fix editor layout 2026-08-01 17:32:32 +08:00
main.py refactor: replace Garage/S3 storage with local filesystem storage 2026-08-01 16:30:02 +08:00
search_client.py fix: natural-sort file tree, indent nested folders, fix editor layout 2026-08-01 17:32:32 +08:00
text_extract.py fix: remove duplicate /health route, escape extracted text, validate uploads, handle binary decode 2026-08-01 08:59:34 +08:00