mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-11-08 18:34:51 +08:00
舍弃缩略图,优化多图片预览轮播效率问题
This commit is contained in:
@@ -157,6 +157,7 @@ public class ZipReader {
|
||||
private void addNodes(Map<String, FileNode> appender, String parentName, FileNode node) {
|
||||
if (appender.containsKey(parentName)) {
|
||||
appender.get(parentName).getChildList().add(node);
|
||||
appender.get(parentName).getChildList().sort((final FileNode h1, final FileNode h2) -> h1.getOriginName().compareTo(h2.getOriginName()));//排序
|
||||
}else { // 根节点
|
||||
FileNode nodeRoot = new FileNode(parentName, parentName, "", new ArrayList<>(), true);
|
||||
nodeRoot.getChildList().add(node);
|
||||
|
||||
@@ -9,5 +9,6 @@ server.tomcat.uri-encoding = UTF-8
|
||||
converted.file.charset = GBK
|
||||
#======================================#<23>ļ<EFBFBD><C4BC>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD>#======================================#
|
||||
spring.http.multipart.max-file-size=100MB
|
||||
spring.http.multipart.max-request-size=100MB
|
||||
## ֧<>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
||||
simText = txt,html,xml,java,properties,mp3,mp4,sql
|
||||
@@ -0,0 +1,18 @@
|
||||
#=============================================#spring Redisson<6F><6E><EFBFBD><EFBFBD>#===================================#
|
||||
spring.redisson.address = 10.19.140.7:6379
|
||||
spring.redisson.database = 0
|
||||
##<23><>Դӳ<D4B4><D3B3>·<EFBFBD><C2B7>(<28><>Ϊjar<61><72>ʽ<EFBFBD><CABD><EFBFBD>е<EFBFBD>ԭ<EFBFBD><D4AD>)
|
||||
file.dir = /data/file-preview/convertedFile/
|
||||
spring.resources.static-locations = classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
|
||||
## openoffice<63><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
office.home = /opt/openoffice4
|
||||
|
||||
## <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
server.tomcat.uri-encoding = utf-8
|
||||
converted.file.charset = utf-8
|
||||
## <20>ļ<EFBFBD><C4BC>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD>ֵ
|
||||
spring.http.multipart.max-file-size = 100MB
|
||||
|
||||
## ֧<>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>
|
||||
simText = txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,mp3,mp4,css,cnf
|
||||
|
||||
|
||||
@@ -14,13 +14,14 @@
|
||||
<body>
|
||||
<ul id="dowebok">
|
||||
<#list imgurls as img>
|
||||
<li><img id="${img}" url="${img}" src="${img}" width="50px" height="50px"></li>
|
||||
<li><img id="${img}" url="${img}" src="${img}" width="1px" height="1px"></li>
|
||||
</#list>
|
||||
</ul>
|
||||
<script src="js/viewer.min.js"></script>
|
||||
<script>
|
||||
var viewer = new Viewer(document.getElementById('dowebok'), {
|
||||
url: 'src'
|
||||
url: 'src',
|
||||
navbar:false
|
||||
});
|
||||
document.getElementById("${currentUrl}").click();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user