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
80aebf15
Commit
80aebf15
authored
Nov 25, 2021
by
liangjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ppt左边显示问题及部署文档
parent
600dc349
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
ppt.js
server/src/main/resources/static/pptx/ppt.js
+4
-4
ppt.ftl
server/src/main/resources/web/ppt.ftl
+1
-1
部署.md
部署.md
+14
-0
No files found.
server/src/main/resources/static/pptx/ppt.js
View file @
80aebf15
...
...
@@ -5,8 +5,8 @@
var
ratio
=
0.75
;
var
pages
;
var
slideUrls
=
new
Array
()
;
var
slideThumbUrls
=
new
Array
()
;
var
slideUrls
=
[]
;
var
slideThumbUrls
=
[]
;
var
curSlide
=
1
;
var
totalSize
=
1
;
// PPT当前获取到的总页数
var
slideCount
=
1
;
// PPT文件总页数
...
...
@@ -17,11 +17,11 @@ $(document).ready(function() {
$
.
get
(
'onlinePreview?'
,
params
,
function
(
data
,
status
)
{
var
data
=
JSON
.
parse
(
data
);
var
code
=
data
.
code
;
if
(
1
==
code
)
{
if
(
1
==
=
code
)
{
uuid
=
data
.
uuid
;
pages
=
data
.
data
;
totalSize
=
pages
.
length
;
slideCount
=
data
.
totalSize
;
slideCount
=
totalSize
;
// title
$
(
'.container-fluid:first .btn:first'
).
after
(
'<a class="brand lnk-file-title" style="text-decoration: none;" href="'
+
contextPath
+
'/doc/download/'
+
uuid
+
(
!!
queryStr
?
'?'
+
queryStr
:
''
)
+
'" title="'
+
data
.
name
+
'">'
+
data
.
name
+
'</a>'
);
...
...
server/src/main/resources/web/ppt.ftl
View file @
80aebf15
...
...
@@ -17,7 +17,7 @@
"text": null,
"url": "${img}",
"destFile": null,
"viewCount":
0
,
"viewCount":
1
,
"downloadCount": 0,
"ctime": null,
"thumbUrl": "${img}",
...
...
部署.md
0 → 100644
View file @
80aebf15
# 部署fileview
1.
拉取/更新代码
http://139.159.244.151:2900/liangjf/slm-fileview
2.
本地打包
> mvn clean install
3.
创建/进入文件夹 /root/filePreview
4.
将./Dockerfile ./fonts ./server/target/kkFileView-
*
.tar.gz复制进/root/filePreview
5.
生成镜像 docker build -t slm/fileview .
6.
关闭旧容器并启动 docker run -it -d -p 8012:8012 slm/fileview
-
测试,开发环境映射8012端口到preview.sycdev.com
-
生产环境用preview.shengyc.com
\ No newline at end of file
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