Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
梁杰芳
slm-fileview
Commits
6d621dc0
Commit
6d621dc0
authored
Jan 16, 2018
by
kl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
舍弃缩略图,优化多图片预览轮播效率问题
parent
4d6c5501
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
ZipReader.java
...ter-web/src/main/java/com/yudianbank/utils/ZipReader.java
+1
-0
application-dev.properties
...nverter-web/src/main/resources/application-dev.properties
+2
-0
application-prod.properties
...verter-web/src/main/resources/application-prod.properties
+18
-0
picture.ftl
jodconverter-web/src/main/resources/web/picture.ftl
+3
-2
No files found.
jodconverter-web/src/main/java/com/yudianbank/utils/ZipReader.java
View file @
6d621dc0
...
...
@@ -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
);
...
...
jodconverter-web/src/main/resources/application-dev.properties
View file @
6d621dc0
...
...
@@ -9,5 +9,6 @@ server.tomcat.uri-encoding = UTF-8
converted.file.charset
=
GBK
#======================================#文件上传限制#======================================#
spring.http.multipart.max-file-size
=
100MB
spring.http.multipart.max-request-size
=
100MB
## 支持的类文本格式的文件类型
simText
=
txt,html,xml,java,properties,mp3,mp4,sql
\ No newline at end of file
jodconverter-web/src/main/resources/application-prod.properties
View file @
6d621dc0
#=============================================#spring Redisson配置#===================================#
spring.redisson.address
=
10.19.140.7:6379
spring.redisson.database
=
0
##资源映射路径(因为jar方式运行的原因)
file.dir
=
/data/file-preview/convertedFile/
spring.resources.static-locations
=
classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${file.dir}
## openoffice相关配置
office.home
=
/opt/openoffice4
## 编码设置
server.tomcat.uri-encoding
=
utf-8
converted.file.charset
=
utf-8
## 文件上传最大值
spring.http.multipart.max-file-size
=
100MB
## 支持的类文本格式的文件类型
simText
=
txt,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,log,htm,mp3,mp4,css,cnf
jodconverter-web/src/main/resources/web/picture.ftl
View file @
6d621dc0
...
...
@@ -14,13 +14,14 @@
<body>
<ul
id=
"dowebok"
>
<
#
list
imgurls
as
img
>
<li><img
id=
"${img}"
url=
"${img}"
src=
"${img}"
width=
"
50px"
height=
"50
px"
></li>
<li><img
id=
"${img}"
url=
"${img}"
src=
"${img}"
width=
"
1px"
height=
"1
px"
></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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment