Skip to content

Commit

Permalink
update to v1.0.27-release
Browse files Browse the repository at this point in the history
  • Loading branch information
KOHGYLW committed Jan 14, 2020
1 parent 38eb22c commit 8b4952b
Show file tree
Hide file tree
Showing 15 changed files with 917 additions and 355 deletions.
Binary file modified .DS_Store
Binary file not shown.
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,26 @@ _注:kift为该功能的开发名称,其实际成果命名为kiftd。_

> 提示:当您更新版本后,请手动清除浏览器的缓存,之后刷新网盘主页以确保数据文件保持最新!否则可能导致新版页面功能无法使用。
### 常规更新v1.0.26
_本次更新为维护性的更新,修复一些已经发现的问题并优化使用体验,推荐所有用户升级。_
+ 优化了账户配置文件的载入和读取机制,确保在多人同时进行诸如修改密码或注册新账户等操作时不会因账户配置文件写入冲突而引发错误。
### 新版本v1.0.27
_本次更新加入了很多备受用户期待的、实用性较强的新功能,进一步增强kiftd的使用体验。推荐所有用户升级体验。_
+ 最大下载速度限制功能现已加入!该功能可以保护您的网络带宽,防止因某一访问者将网络带宽全部占满导致其他访问者无法正常访问的情况发生。设置方法可参阅《kiftd说明文档》中的相关介绍。
+ 新增了主页“公告栏”功能——这一功能在之前被很多用户提出过,现已正式加入。该功能可以帮助您将一些重要的信息或提示显示给所有访问者,从而令管理更加便捷。
+ “自由注册新账户”功能可以为新账户设置默认的小组了。
+ “扩展存储区”的最大数量现已提高到255个,同时还改进了文件系统的扩展存储区存储机制,以便更好地应对大数量、大体积文件存储的需求。
+ 优化文件夹视图加载机制——当需要加载的文件列表数目较多时,系统将会分段加载这些数据从而提高页面的响应速度。
+ 允许您强制关闭服务器的IP地址XFF解析功能,从而避免访问者通过伪造XFF请求头的方式伪造自己的IP地址。
+ 允许您根据自身的实际需求和使用环境选择强制禁用服务器的“打包下载”功能。
+ 允许您根据自身的实际需求和使用环境选择强制禁用服务器的“在线解码”功能。
+ 允许您自行替换“在线解码”功能所使用的ffmpeg引擎文件——当kiftd未找到适合您操作系统的ffmpeg引擎时,您可以自行提供ffmpeg可执行文件,从而确保“在线解码”功能能够正常使用。
+ 为排序功能添加了等待动画效果。当排序量较大且耗时较长时,这能够为用户带来更好的使用体验。
+ 修复了图片预览功能无法正常播放大体积GIF图片的问题。
+ 修复了文件管理功能在导入本地文件夹时可能导致其无法被任何人访问的问题——现在,本地导入的文件夹将与父级文件夹的创建者相同,从而确保其父级文件夹的拥有者能够对新导入的文件夹进行访问及操作。
+ 优化了日志功能中的异常记录机制,增加了对异常堆栈信息的记录,以便开发者和维护人员能够通过日志信息获取到更加详细的异常信息。
+ 修复了“移动”操作在日志记录中“NEW PATH”(目标路径)项记录不正确的问题。
+ 修复了当文件或文件夹名称中含有特殊字符时可能会出现的一些显示问题。
+ 修复了程序主界面与一些Linux系统的图形界面不兼容的问题。
+ 进一步优化了文件系统,增强其稳定性和安全性。
+ 完善了《kiftd说明文档》,新增了关于“设置页面背景图片”和“备份文件系统数据”的相关介绍。

> 需要查看更多版本历史信息?请访问: https://kohgylw.gitee.io/News.html
Expand Down Expand Up @@ -122,4 +139,4 @@ _本次更新为维护性的更新,修复一些已经发现的问题并优化

_作者会每隔1-3周浏览一次邮箱,如未能及时回复请耐心等待。回复或许会迟到,但它不会缺席。_

2018-2019 kohgylw@青阳龙野 作者保留版权
2018-2020 kohgylw@青阳龙野 作者保留版权
Binary file removed kiftd-1.0.26-RELEASE.jar
Binary file not shown.
Binary file added kiftd-1.0.27-RELEASE.jar
Binary file not shown.
Binary file modified kiftd说明文档.pdf
Binary file not shown.
Binary file added libs/flexmark-0.50.44.jar
Binary file not shown.
Binary file added libs/flexmark-util-0.50.44.jar
Binary file not shown.
40 changes: 31 additions & 9 deletions mybatisResource/mapperXML/FolderMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,35 @@

<select id="queryById" parameterType="java.lang.String"
resultMap="BaseResultMap">
SELECT * FROM FOLDER WHERE folder_id = #{fid,jdbcType=VARCHAR}
SELECT * FROM FOLDER WHERE folder_id =
#{fid,jdbcType=VARCHAR}
</select>

<select id="queryByParentId" parameterType="java.lang.String"
resultMap="BaseResultMap">
SELECT * FROM FOLDER WHERE folder_parent = #{pid,jdbcType=VARCHAR}
SELECT * FROM FOLDER WHERE folder_parent =
#{pid,jdbcType=VARCHAR} LIMIT 0,2147483647
</select>

<select id="countByParentId" parameterType="java.lang.String"
resultType="java.lang.Long">
SELECT COUNT(folder_id) FROM FOLDER WHERE folder_parent =
#{pid,jdbcType=VARCHAR}
</select>

<select id="queryByParentIdSection" parameterType="java.util.Map"
resultMap="BaseResultMap">
SELECT * FROM FOLDER WHERE folder_parent =
#{pid,jdbcType=VARCHAR} LIMIT
#{offset,jdbcType=INTEGER},#{rows,jdbcType=INTEGER}
</select>

<select id="queryByParentIdAndFolderName" parameterType="java.util.Map"
resultMap="BaseResultMap">
SELECT * FROM FOLDER WHERE folder_parent = #{parentId,jdbcType=VARCHAR} AND
folder_name = #{folderName,jdbcType=VARCHAR}
SELECT * FROM FOLDER WHERE folder_parent =
#{parentId,jdbcType=VARCHAR} AND
folder_name =
#{folderName,jdbcType=VARCHAR}
</select>

<insert id="insertNewFolder" parameterType="kohgylw.kiftd.server.model.Folder">
Expand All @@ -33,19 +50,24 @@
</insert>

<delete id="deleteById" parameterType="java.lang.String">
DELETE FROM FOLDER WHERE folder_id=#{folderId,jdbcType=VARCHAR}
DELETE FROM FOLDER WHERE
folder_id=#{folderId,jdbcType=VARCHAR}
</delete>

<update id="updateFolderNameById" parameterType="java.util.Map">
UPDATE FOLDER SET folder_name = #{newName,jdbcType=VARCHAR} WHERE folder_id
= #{folderId,jdbcType=VARCHAR}
UPDATE FOLDER
SET folder_name = #{newName,jdbcType=VARCHAR} WHERE folder_id
=
#{folderId,jdbcType=VARCHAR}
</update>

<update id="updateFolderConstraintById" parameterType="java.util.Map">
UPDATE FOLDER SET folder_constraint = #{newConstraint,jdbcType=INTEGER} WHERE folder_id
UPDATE
FOLDER SET folder_constraint = #{newConstraint,jdbcType=INTEGER} WHERE
folder_id
= #{folderId,jdbcType=VARCHAR}
</update>

<update id="moveById" parameterType="java.util.Map">
UPDATE FOLDER SET
folder_parent = #{locationpath,jdbcType=VARCHAR} WHERE folder_id =
Expand Down
19 changes: 14 additions & 5 deletions mybatisResource/mapperXML/NodeMapper.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
<select id="queryByParentFolderId" parameterType="java.lang.String"
resultMap="BaseResultMap">
SELECT * FROM FILE WHERE file_parent_folder =
#{pfid,jdbcType=VARCHAR} LIMIT 0,2147483647
</select>

<select id="queryByParentFolderIdSection" parameterType="java.util.Map"
resultMap="BaseResultMap">
SELECT * FROM FILE WHERE file_parent_folder =
#{pfid,jdbcType=VARCHAR} LIMIT
#{offset,jdbcType=INTEGER},#{rows,jdbcType=INTEGER}
</select>

<select id="countByParentFolderId" parameterType="java.lang.String"
resultType="java.lang.Long">
SELECT COUNT(file_id) FROM FILE WHERE file_parent_folder =
#{pfid,jdbcType=VARCHAR}
</select>

Expand Down Expand Up @@ -57,10 +70,6 @@
#{fileId,jdbcType=VARCHAR}
</update>

<select id="queryAll" resultMap="BaseResultMap">
SELECT * FROM FILE
</select>

<select id="queryByPath" parameterType="java.lang.String"
resultMap="BaseResultMap">
SELECT * FROM FILE WHERE file_path =
Expand All @@ -72,7 +81,7 @@
SELECT * FROM FILE WHERE file_parent_folder in (SELECT
file_parent_folder
FROM FILE WHERE file_id =
#{fileId,jdbcType=VARCHAR})
#{fileId,jdbcType=VARCHAR}) LIMIT 0,2147483647
</select>

<update id="moveById" parameterType="java.util.Map">
Expand Down
25 changes: 25 additions & 0 deletions webContext/css/overrall.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ body {
opacity: 0.7;
}

.shownoticebox {
width: 40px;
height: 75px;
position: fixed;
top: 50px;
right: 0px;
}

.shownoticebutton {
width: 100%;
height: 100%;
background-color: #FCFCFC;
color: #104E8B; alpha (Opacity=70);
}

td {
word-break: break-all;
word-wrap: break-all;
Expand All @@ -105,4 +120,14 @@ td {
width: 100%;
max-height: 35px;
cursor: pointer
}

.loadingremaininngbox {
width: 100%;
height: 40px;
position: fixed;
bottom: 0px;
left: 0px;
line-height: 40px;
color: #104E8B; alpha (Opacity=70);
}
2 changes: 1 addition & 1 deletion webContext/css/overrall.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 53 additions & 12 deletions webContext/home.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<!-- 青阳网络文件传输系统 kiftd v1.0.26-RELEASE -->
<!-- 青阳网络文件传输系统 kiftd v1.0.27-RELEASE -->
<!-- 欢迎访问主界面 -->
<!-- by 青阳龙野([email protected]) -->
<html>
Expand Down Expand Up @@ -40,8 +40,9 @@
class="graytext">KIFT</span>
</small>
</em>
</span> <span id="tb" class="rightbtn"></span>
<button class="btn btn-link rightbtn" onclick="refreshFolderView()">
</span> <span id="tb" class="rightbtn hidden-xs"></span>
<button class="btn btn-link rightbtn hidden-xs"
onclick="refreshFolderView()">
刷新 <span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
</button>
</div>
Expand All @@ -51,7 +52,7 @@
<!-- 信息栏、操作栏与文件列表 -->
<div class="row">
<div class="col-md-12">
<p id="vicetbbox" class="subtitle" style="display: none;">
<p class="subtitle visible-xs-block">
<span id="tb2"></span>
<button class="btn btn-link" onclick="refreshFolderView()">
刷新 <span class="glyphicon glyphicon-repeat" aria-hidden="true"></span>
Expand Down Expand Up @@ -83,13 +84,12 @@
class="caret"></span></a>
<ul class="dropdown-menu" id="parentFolderList"></ul></li>
</ul>
<form id="filetableoptmenusreach"
class="navbar-form navbar-left">
<form class="navbar-form navbar-left hidden-xs">
<div class="form-group">
<input id="sreachKeyWordIn" type="text" class="form-control"
placeholder="请输入文件名...">
</div>
<button type="button" class="btn btn-default"
<button id="searchbtn" type="button" class="btn btn-default"
onclick="doSearchFile()">搜索</button>
</form>
<ul class="nav navbar-nav navbar-right">
Expand Down Expand Up @@ -129,13 +129,14 @@
<tr>
<th onclick="sortbyfn()">文件名<span id="sortByFN"
aria-hidden="true" style="float: right"></span></th>
<th class="hiddenColumn" onclick="sortbycd()">创建日期<span
<th class="hidden-xs" onclick="sortbycd()">创建日期<span
id="sortByCD" aria-hidden="true" style="float: right"></span></th>
<th onclick="sortbyfs()">大小<span id="sortByFS"
aria-hidden="true" style="float: right"></span></th>
<th class="hiddenColumn" onclick="sortbycn()">创建者<span
<th class="hidden-xs" onclick="sortbycn()">创建者<span
id="sortByCN" aria-hidden="true" style="float: right"></span></th>
<th onclick="showOriginFolderView()">操作</th>
<th onclick="showOriginFolderView()">操作<span id="sortByOR"
aria-hidden="true" style="float: right"></span></th>
</tr>
</thead>
<tbody id="foldertable"></tbody>
Expand Down Expand Up @@ -797,23 +798,63 @@ <h4 class="modal-title" id="chainModalLabel">
</h4>
</div>
<div class="modal-body">
<textarea id="fileChainTextarea" class="form-control" rows="3" readonly></textarea>
<textarea id="fileChainTextarea" class="form-control" rows="3"
readonly></textarea>
</div>
<div class="modal-footer">
<button id="copyChainBtn" type="button" class="btn btn-info" onclick="copyFileChain()">复制链接</button>
<button id="copyChainBtn" type="button" class="btn btn-info"
onclick="copyFileChain()">复制链接</button>
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<!-- end 永久资源链接 -->
<!-- 公告信息栏 -->
<div class="modal fade" id="noticeModal" tabindex="-1" role="dialog"
aria-labelledby="noticeModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title" id="noticeModalLabel">公告信息</h4>
</div>
<div class="modal-body" style="overflow: scroll;"
id="noticeModalBody"></div>
<div class="modal-footer">
<label class="text-muted"> <input type="checkbox"
id="dontShowSomeNoticeAt30Day"> 30天内不再显示相同的公告信息
</label>
<button type="button" class="btn btn-primary" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
<!-- end 公告信息栏 -->
<!-- 显示公告按钮 -->
<div id="shownoticebox" class="shownoticebox text-center hidden">
<button type="button" onclick="showNotice()" class="shownoticebutton">
<span class="glyphicon glyphicon-bookmark" aria-hidden="true"></span><br /><br />
</button>
</div>
<!-- end 显示公告按钮 -->
<!-- 返回顶部按钮(隐藏式) -->
<div id="gobacktotopbox" class="gobacktopbox text-center hidden">
<button type="button" onclick="goBackToTop()" class="gobacktopbutton">
返回顶部 <span class="glyphicon glyphicon-eject" aria-hidden="true"></span>
</button>
</div>
<!-- end 返回顶部按钮 -->
<!-- 加载余下部分的提示 -->
<div id="loadingremaininngbox"
class="loadingremaininngbox text-center bg-info hidden">
正在加载文件列表:<span id="loadingrate">0%</span>... <span
class="glyphicon glyphicon-hourglass" aria-hidden="true"></span>
</div>
<!-- end 加载余下部分的提示 -->
</body>
<!-- jquery基本框架 -->
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
Expand Down
Loading

0 comments on commit 8b4952b

Please sign in to comment.