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
jenkins
slm-fileview
Commits
600dc349
Commit
600dc349
authored
Nov 18, 2021
by
liangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ppt左边显示问题
parent
e8beb6cb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
OnlinePreviewController.java
...ava/cn/keking/web/controller/OnlinePreviewController.java
+3
-1
notTrustHost.html
server/src/main/resources/web/notTrustHost.html
+1
-2
ppt.ftl
server/src/main/resources/web/ppt.ftl
+4
-0
No files found.
server/src/main/java/cn/keking/web/controller/OnlinePreviewController.java
View file @
600dc349
...
...
@@ -65,7 +65,9 @@ public class OnlinePreviewController {
model
.
addAttribute
(
"file"
,
fileAttribute
);
FilePreview
filePreview
=
previewFactory
.
get
(
fileAttribute
);
logger
.
info
(
"预览文件url:{},previewType:{}"
,
fileUrl
,
fileAttribute
.
getType
());
return
filePreview
.
filePreviewHandle
(
fileUrl
,
model
,
fileAttribute
);
String
index
=
filePreview
.
filePreviewHandle
(
fileUrl
,
model
,
fileAttribute
);
logger
.
info
(
"访问.{}ftl"
,
index
);
return
index
;
}
@RequestMapping
(
value
=
"/picturesPreview"
)
...
...
server/src/main/resources/web/notTrustHost.html
View file @
600dc349
...
...
@@ -32,8 +32,7 @@
<div
class=
"container"
>
<img
src=
"images/sorry.jpg"
/>
<p>
预览源文件来自不受信任的站点:
<span
style=
"color: red; display: inline;"
>
${current_host}
</span>
,请联系管理员
<br>
有任何疑问,请加
<a
href=
"https://jq.qq.com/?_wv=1027&k=5c0UAtu"
>
官方QQ群:613025121
</a>
咨询
预览源文件来自不受信任的站点:
<span
style=
"color: red; display: inline;"
>
${current_host}
</span>
</p>
</div>
</body>
...
...
server/src/main/resources/web/ppt.ftl
View file @
600dc349
...
...
@@ -67,6 +67,10 @@
*/
cursor
:
pointer
;
}
.thumbnail
>
img
{
height
:
100%
;
}
</style>
<!--[if lt IE 9]>
...
...
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