DocHub/frontend
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
..
src fix: add image preview and replace Monaco with CodeMirror 6 2026-08-01 18:12:19 +08:00
tests fix: add image preview and replace Monaco with CodeMirror 6 2026-08-01 18:12:19 +08:00
Dockerfile feat: scaffold frontend project with Vite, Vitest and Docker build 2026-08-01 02:40:18 +08:00
index.html feat: scaffold frontend project with Vite, Vitest and Docker build 2026-08-01 02:40:18 +08:00
nginx.conf feat: scaffold frontend project with Vite, Vitest and Docker build 2026-08-01 02:40:18 +08:00
package-lock.json fix: add image preview and replace Monaco with CodeMirror 6 2026-08-01 18:12:19 +08:00
package.json fix: add image preview and replace Monaco with CodeMirror 6 2026-08-01 18:12:19 +08:00
tsconfig.json feat: scaffold frontend project with Vite, Vitest and Docker build 2026-08-01 02:40:18 +08:00
vite.config.ts feat: scaffold frontend project with Vite, Vitest and Docker build 2026-08-01 02:40:18 +08:00