Browse Source

!115 新增CAD类型 .dwf文件支持
Merge pull request !115 from 高雄/dwf

kailing 1 năm trước cách đây
mục cha
commit
10d5b20c81

+ 1 - 1
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 等图片预览(翻转,缩放,镜像)

+ 1 - 1
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.

+ 1 - 1
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();

+ 1 - 1
server/src/main/resources/web/main/index.ftl

@@ -70,7 +70,7 @@
             <li>支持 eml 邮件文件</li>
             <li>支持 epub 图书文档</li>
             <li>支持 obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, dae, wrl, 3mf, ifc, brep, step, iges, fcstd, bim 等 3D 模型文件</li>
-            <li>支持 dwg, dxf 等 CAD 模型文件</li>
+            <li>支持 dwg, dxf, dwf 等 CAD 模型文件</li>
             <li>支持 txt, xml(渲染), md(渲染), java, php, py, js, css 等所有纯文本</li>
             <li>支持 zip, rar, jar, tar, gzip, 7z 等压缩包</li>
             <li>支持 jpg, jpeg, png, gif, bmp, ico, jfif, webp 等图片预览(翻转,缩放,镜像)</li>

+ 1 - 0
server/src/main/resources/web/main/record.ftl

@@ -56,6 +56,7 @@
                 1.新增 dcm 等医疗数位影像预览<br>
                 2.新增 drawio 绘图预览<br>
                 3.新增开启缓存的情况下重新生成的命令 &forceUpdatedCache=true <br>
+                4.新增 dwf CAD文件预览 <br>
             </div>
         </div>
     <div class="panel panel-success">