diff --git a/README.cn.md b/README.cn.md index cd40d77e..920c1478 100644 --- a/README.cn.md +++ b/README.cn.md @@ -12,7 +12,7 @@ 10. 支持 eml 邮件文件 11. 支持 epub 图书文档 12. 支持 obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, dae, wrl, 3mf, ifc, brep, step, iges, fcstd, bim 等 3D 模型文件 -13. 支持 dwg, dxf 等 CAD 模型文件 +13. 支持 dwg, dxf, dwf 等 CAD 模型文件 14. 支持 txt, xml(渲染), md(渲染), java, php, py, js, css 等所有纯文本 15. 支持 zip, rar, jar, tar, gzip, 7z 等压缩包 16. 支持 jpg, jpeg, png, gif, bmp, ico, jfif, webp 等图片预览(翻转,缩放,镜像) diff --git a/README.md b/README.md index d952816f..ff5634e2 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Document online preview project solution, built using the popular Spring Boot fr 10. Support for `eml` mail files 11. Support for `epub` book documents 12. Supports 3D model files like `obj`, `3ds`, `stl`, `ply`, `gltf`, `glb`, `off`, `3dm`, `fbx`, `dae`, `wrl`, `3mf`, `ifc`, `brep`, `step`, `iges`, `fcstd`, `bim`, etc. -13. Supports CAD model files such as `dwg`, `dxf`. +13. Supports CAD model files such as `dwg`, `dxf`, 'dwf'. 14. Supports all plain text files such as `txt`, `xml` (rendering), `md` (rendering), `java`, `php`, `py`, `js`, `css`, etc. 15. Supports compressed packages such as `zip`, `rar`, `jar`, `tar`, `gzip`, `7z`, etc. 16. Supports image previewing (flip, zoom, mirror) of `jpg`, `jpeg`, `png`, `gif`, `bmp`, `ico`, `jfif`, `webp`, etc. diff --git a/server/src/main/java/cn/keking/model/FileType.java b/server/src/main/java/cn/keking/model/FileType.java index 50cabde4..a98dadd3 100644 --- a/server/src/main/java/cn/keking/model/FileType.java +++ b/server/src/main/java/cn/keking/model/FileType.java @@ -46,7 +46,7 @@ public enum FileType { private static final String[] TIFF_TYPES = {"tif", "tiff"}; private static final String[] OFD_TYPES = {"ofd"}; private static final String[] SVG_TYPES = {"svg"}; - private static final String[] CAD_TYPES = {"dwg", "dxf"}; + private static final String[] CAD_TYPES = {"dwg", "dxf", "dwf"}; private static final String[] SSIM_TEXT_TYPES = ConfigConstants.getSimText(); private static final String[] CODES = {"java", "c", "php", "go", "python", "py", "js", "html", "ftl", "css", "lua", "sh", "rb", "yaml", "yml", "json", "h", "cpp", "cs", "aspx", "jsp"}; private static final String[] MEDIA_TYPES = ConfigConstants.getMedia(); diff --git a/server/src/main/resources/web/main/index.ftl b/server/src/main/resources/web/main/index.ftl index e5001956..d4a12e43 100644 --- a/server/src/main/resources/web/main/index.ftl +++ b/server/src/main/resources/web/main/index.ftl @@ -70,7 +70,7 @@
  • 支持 eml 邮件文件
  • 支持 epub 图书文档
  • 支持 obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, dae, wrl, 3mf, ifc, brep, step, iges, fcstd, bim 等 3D 模型文件
  • -
  • 支持 dwg, dxf 等 CAD 模型文件
  • +
  • 支持 dwg, dxf, dwf 等 CAD 模型文件
  • 支持 txt, xml(渲染), md(渲染), java, php, py, js, css 等所有纯文本
  • 支持 zip, rar, jar, tar, gzip, 7z 等压缩包
  • 支持 jpg, jpeg, png, gif, bmp, ico, jfif, webp 等图片预览(翻转,缩放,镜像)
  • diff --git a/server/src/main/resources/web/main/record.ftl b/server/src/main/resources/web/main/record.ftl index e365e7c5..fda2f820 100644 --- a/server/src/main/resources/web/main/record.ftl +++ b/server/src/main/resources/web/main/record.ftl @@ -56,6 +56,7 @@ 1.新增 dcm 等医疗数位影像预览
    2.新增 drawio 绘图预览
    3.新增开启缓存的情况下重新生成的命令 &forceUpdatedCache=true
    + 4.新增 dwf CAD文件预览