提交 409d9c04 编写于 作者: 青阳龙野's avatar 青阳龙野

update to v1.0.16

上级 3f810511
......@@ -34,7 +34,7 @@ _注:kift为该功能的开发名称,其实际成果命名为kiftd。_
## kiftd有哪些优势?
![mark](https://github.com/KOHGYLW/kiftd-showPicture/blob/master/mark_icon.png?raw=true) 无上传限制——1MB的文档和超过4GB的高清电影资源?均能够随意上传和下载。
![mark](https://github.com/KOHGYLW/kiftd-showPicture/blob/master/mark_icon.png?raw=true) 主流商业网盘特有的高级功能甚至需要收费的功能——文件夹访问权限控制、MP4视频在线影院、MP3音乐在线欣赏、图片文件在线预览、PDF文档在线阅读...kiftd均一一具备,每一份kiftd均是“完全版”。
![mark](https://github.com/KOHGYLW/kiftd-showPicture/blob/master/mark_icon.png?raw=true) 主流商业网盘特有的高级功能甚至需要收费的功能——文件夹访问权限控制、MP4视频在线影院、MP3音乐在线欣赏、图片文件在线预览、Word & PDF文档在线阅读...kiftd均一一具备,每一份kiftd均是“完全版”。
![mark](https://github.com/KOHGYLW/kiftd-showPicture/blob/master/mark_icon.png?raw=true) 操作系统全兼容——无论是Windows、Linux还是Unix(包括Mac OS X),均可运行使用。
......@@ -76,10 +76,12 @@ _注:kift为该功能的开发名称,其实际成果命名为kiftd。_
> 提示:当您更新版本后,请手动清除浏览器的缓存,之后刷新网盘主页以确保数据文件保持最新!否则可能导致新版页面功能无法使用。
### 新版本v1.0.15
### 新版本v1.0.16
_本次更新增加了提高可用性的新功能,同时修复了一些已知问题,推荐所有用户升级。_
+ Word文档在线预览——现在,众多用户期待已久的Word文档在线预览功能正式上线,方便办公使用。Word预览功能提供docx格式的在线打开和预览,且该功能无需额外安装任何插件,可免费用于商业用途。注:在线预览展示的格式可能会与官方Word格式有所差异。
+ 修正“上传”权限可能导致的越权问题——当用户具备“上传”权限时,可能会恶意上传同名文件并覆盖原文件,从而导致原文件丢失。为避免该漏洞导致的越权现象,现已将其修复为:当用户上传同名文件时,如仅具备“上传”权限,则能选择“跳过”和“保留两者”;如同时具备“删除”权限,可额外选择“覆盖”,从而避免您的文件丢失。
+ TXT文档在线预览——众多用户期待已久的TXT文档在线预览功能正式上线。
+ 修正“移动”权限可能导致的越权问题——当用户具备“移动”权限时,可能会恶意移动同名文件并覆盖原文件,从而导致原文件丢失。为避免该漏洞导致的越权现象,现已将其修复为:当用户“粘贴”同名文件时,如仅具备“上传”权限,则能选择“跳过”和“保留两者”;如同时具备“删除”权限,可额外选择“覆盖”,从而避免您的文件丢失。
+ 修正“移动”权限无法被授予全局权限的问题——现在,“移动”也可以被正确设定为全局权限了。
+ 新增MySQL数据库接入时区设置“mysql.timezone”,以解决用户连接MySQL时时区不一致的问题。该问题可能会导致无法接入MySQL,详情请见说明文档中的相关介绍。
> 需要查看更多版本历史信息?请访问: https://kohgylw.gitee.io/News.html
......
......@@ -591,7 +591,7 @@
全部应用
</p>
<p>
<button type="button" class="btn btn-danger btn-sm"
<button id="movecoverbtn" type="button" class="btn btn-danger btn-sm"
onclick="selectFileMoveModel('cover')">覆盖</button>
<button type="button" class="btn btn-default btn-sm"
onclick="selectFileMoveModel('skip')">跳过</button>
......
......@@ -784,6 +784,13 @@ function showFolderTable(folderView) {
+ fi.fileId
+ '"'
+ ")' class='btn btn-link btn-xs'><span class='glyphicon glyphicon-eye-open'></span> 预览</button>";
} else if(getSuffix(fi.fileName) == "txt"){
fileRow = fileRow
+ "<button onclick='txtView("
+ '"'
+ fi.fileId
+ '"'
+ ")' class='btn btn-link btn-xs'><span class='glyphicon glyphicon-eye-open'></span> 预览</button>";
}
}
if (aD) {
......@@ -1457,10 +1464,15 @@ function pdfView(filePath) {
window.open("/pdfview/web/viewer.html?file=/fileblocks/" + filePath);
}
// 预览Docx文档
function docxView(fileId){
window.open("/pdfview/web/viewer.html?file=/resourceController/getWordView/" + fileId);
}
function txtView(fileId){
window.open("/pdfview/web/viewer.html?file=/resourceController/getTxtView/" + fileId);
}
// 查看图片
function showPicture(fileId) {
$.ajax({
......@@ -2033,6 +2045,12 @@ function doMoveFiles(){
}else{
$("#mrepeFileName").text(repeMap.repeNodes[repeIndex].fileName);
}
var authList = originFolderView.authList;
if(checkAuth(authList, "D")){
$("#movecoverbtn").show();
}else{
$("#movecoverbtn").hide();
}
$("#selectFileMoveModelAlert").show();
} else if(result.startsWith("CANT_MOVE_TO_INSIDE:")){
$('#moveFilesMessage').text("错误:不能将一个文件夹移动到其自身内部:"+result.substring(20));
......
此差异已折叠。
......@@ -45,7 +45,7 @@ See https://github.com/adobe-type-tools/cmap-resources
z-index: 1000;
background-color: rgba(0, 0, 0, 0.5);
}
.pdf-modal-content {
display: flex;
flex-flow: column nowrap;
......@@ -59,7 +59,6 @@ See https://github.com/adobe-type-tools/cmap-resources
-webkit-animation: zoom 0.1s;
animation: zoom 0.1s;
resize: both;
color: #545454;
background: #FFFFFF url(loading.gif) no-repeat 10px 50%;
opacity: 0.7;
......@@ -71,7 +70,7 @@ See https://github.com/adobe-type-tools/cmap-resources
@-webkit-keyframes zoom {
from {
-webkit-transform: scale(0)
-webkit-transform:scale(0)
}
to {
-webkit-transform: scale(1)
......@@ -79,8 +78,8 @@ See https://github.com/adobe-type-tools/cmap-resources
}
@keyframes zoom {
from {
transform: scale(0)
from {
transform:scale(0)
}
to {
transform: scale(1)
......@@ -91,7 +90,7 @@ See https://github.com/adobe-type-tools/cmap-resources
font-size: 18px;
box-sizing: border-box;
text-align: center;
padding: 22px;
padding: 23px;
}
@media only screen and (max-width: 800px) {
......@@ -530,7 +529,9 @@ See https://github.com/adobe-type-tools/cmap-resources
<div id="pdf-modal" class="pdf-modal">
<div class="pdf-modal-content">
<div class="pdf-modal-body">
<p>正在打开Word文档,请稍候...</p>
<p>
正在打开 <span id="doc-type-box"></span> 文档,请稍候...
</p>
</div>
</div>
</div>
......@@ -541,6 +542,11 @@ See https://github.com/adobe-type-tools/cmap-resources
var url = location.search;
if (url.indexOf(".block") < 0) {
var modal = document.getElementById('pdf-modal');
if (url.indexOf("getWordView") >= 0) {
document.getElementById('doc-type-box').innerHTML="Word";
}else{
document.getElementById('doc-type-box').innerHTML="TXT";
}
modal.style.display = "block";
var interval = setInterval(function() {
if (PDFViewerApplication.pdfDocument != null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册