Browse Source

新增CAD类型 .dwf文件支持

pull/115/head
gaoxiongzaq 2 years ago
parent
commit
8649f20841
  1. 2
      README.cn.md
  2. 2
      README.md
  3. 2
      server/src/main/java/cn/keking/model/FileType.java
  4. 2
      server/src/main/resources/web/main/index.ftl
  5. 1
      server/src/main/resources/web/main/record.ftl

2
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 等图片预览翻转缩放镜像

2
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.

2
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();

2
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
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">

Loading…
Cancel
Save