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
594bd895
Commit
594bd895
authored
Dec 27, 2020
by
chenkailing
Committed by
kl
Dec 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复压缩包里文件再次预览失败的bug
parent
486c09b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
freemarker_implicit.ftl
server/src/main/config/freemarker_implicit.ftl
+1
-0
compress.ftl
server/src/main/resources/web/compress.ftl
+2
-5
No files found.
server/src/main/config/freemarker_implicit.ftl
View file @
594bd895
[#ftl]
[#-- @implicitly included --]
[#-- @ftlvariable name="fileTree" type="java.lang.String" --]
[#-- @ftlvariable name="baseUrl" type="java.lang.String" --]
[#-- @ftlvariable name="imgUrls" type="String" --]
[#-- @ftlvariable name="textData" type="java.lang.String" --]
...
...
server/src/main/resources/web/compress.ftl
View file @
594bd895
...
...
@@ -23,9 +23,6 @@
h6
{
font-weight
:
normal
;
font-size
:
12px
;
letter-spacing
:
1px
;
line-height
:
24px
;
text-align
:
center
;}
a
{
color
:
#3C6E31
;
text-decoration
:
underline
;}
a
:hover
{
background-color
:
#3C6E31
;
color
:
white
;}
input
.radio
{
margin
:
0
2px
0
8px
;}
input
.radio.first
{
margin-left
:
0
;}
input
.empty
{
color
:
lightgray
;}
code
{
color
:
#2f332a
;}
div
.zTreeDemoBackground
{
width
:
600px
;
text-align
:
center
;
margin
:
0
auto
;
background-color
:
#ffffff
;}
</style>
...
...
@@ -41,7 +38,7 @@
<script
type=
"text/javascript"
src=
"js/base64.min.js"
></script>
<script
type=
"text/javascript"
>
var
data
=
JSON
.
parse
(
'${fileTree}'
);
const
data
=
JSON
.
parse
(
'${fileTree}'
);
var
baseUrl
=
"${baseUrl}"
;
var
setting
=
{
view
:
{
...
...
@@ -74,7 +71,7 @@
}
else
{
fulls
+=
",resizable"
;
// 对于不支持screen属性的浏览器,可以手工进行最大化。 manually
}
var
previewUrl
=
baseUrl
+
treeNode
.
fileName
+
"
&
fileKey="
+
treeNode
.
fileKey
;
var
previewUrl
=
baseUrl
+
treeNode
.
fileName
+
"
?
fileKey="
+
treeNode
.
fileKey
;
window
.
open
(
"onlinePreview?url="
+
encodeURIComponent
(
Base64
.
encode
(
previewUrl
)),
"_blank"
,
fulls
);
}
}
...
...
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