mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
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>
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
"lodash": "catalog:",
|
||||
"jszip": "^3.10.1",
|
||||
"mermaid": "^10.9.4",
|
||||
"mime": "catalog:",
|
||||
"minio": "catalog:",
|
||||
"nanoid": "^5.1.3",
|
||||
"next": "catalog:",
|
||||
|
||||
Reference in New Issue
Block a user