feat(sandbox): support multimedia preview and source/preview toggle in editor (#6723)
* style: re-component Editor * style: re-component Editor * feat: sandbox file preview support with binary detection and mime type handling * feat: preview support for markdown, svg, and html files in sandbox editor * feat(sandbox): support multimedia preview and source/preview toggle in editor * fix: XSS SVG rendering with MyPhotoView * refactor: blob URL lifecycle management, improve filename encoding in downloads * feat: implement S3-based HTML preview for sandbox editor and add PDF support to binary file detection * refactor: improve sandbox editor stability by adding file size validation * feat: introduce fileService to encapsulate sandbox file operations and add unit tests * refactor: secure HTML sandbox preview by fetching content from server and injecting CSP meta tags * refactor: replace unified file operation API with dedicated endpoints for list, read, write, and download operations * chore: remove packageManager field from package.json * fix: sandbox file read error message * refactor: improve sandbox editor UI styling, type safety, and CSP security policy * feat: HTML preview link API and standardize sandbox request/response types * fix: improve log view layout responsiveness by adding overflow handling and flex constraints * perf: fix review --------- Co-authored-by: archer <545436317@qq.com>
Showing
| ... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
| "jsonwebtoken": "^9.0.2", | "jsonwebtoken": "^9.0.2", | ||
| "lodash": "catalog:", | "lodash": "catalog:", | ||
| "mammoth": "^1.11.0", | "mammoth": "^1.11.0", | ||
| "mime": "^4.1.0", | "mime": "catalog:", | ||
| "minio": "catalog:", | "minio": "catalog:", | ||
| "mongoose": "^8.10.1", | "mongoose": "^8.10.1", | ||
| "multer": "2.1.0", | "multer": "2.1.0", | ||
| ... | ... |
| ... | @@ -56,6 +56,7 @@ | ... | @@ -56,6 +56,7 @@ |
| "lodash": "catalog:", | "lodash": "catalog:", | ||
| "jszip": "^3.10.1", | "jszip": "^3.10.1", | ||
| "mermaid": "^10.9.4", | "mermaid": "^10.9.4", | ||
| "mime": "catalog:", | |||
| "minio": "catalog:", | "minio": "catalog:", | ||
| "nanoid": "^5.1.3", | "nanoid": "^5.1.3", | ||
| "next": "catalog:", | "next": "catalog:", | ||
| ... | ... |
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment