update to version 1.0.2v2

add-license-1
kohgylw 2018-08-01 11:25:37 +08:00
parent 1096f152a1
commit c39b842c97
6 changed files with 63 additions and 14 deletions

View File

@ -1,21 +1,21 @@
# kiftd——青阳网络文件系统 #
## 一款小型、便捷、开源的个人网盘系统。 ##
# kiftd——青阳网络文件传输系统 #
## 一款便捷、开源、功能完善的个人&团队&小型组织网盘服务器系统。 ##
### 快速导航
* 外网访问太慢?可以转至国内托管地址进行下载: https://gitee.com/kohgylw/kiftd
* 需要从github上浏览项目可以访问github上的项目主页 https://github.com/KOHGYLW/kiftd
* 图示预览:请见本页面最下方。
### 什么是kift?
### 什么是kiftd?
* 您还在使用U盘分享软件么
> 很不幸U盘易丢同时又无法兼容各种平台的文件系统在需要大规模分享时--通过U盘拷贝简直就像是接力赛一样原始又低效。
* 您还在使用免费的公用网盘么?
> 时不时传来的网盘关停热潮令人担忧,而其由外人管理的特性则让您不敢轻易把隐私文件存放在上面。
* 您需要利用自己的资源搭建起一个网盘系统而苦于没有好的选择?
> 使用破解软件同样无法确保安全性,闭源的特性令人担忧。同时,很多已有的网盘服务器软件性能笨重、功能简单、语言的障碍更是使用中不可忽视的问题。
_注kift的解压即用版即为kiftd_
_注kift为功能性内核的开发代号,其应用版本被称为kiftd_
### 现在您可以选择kift了。
### 现在您可以选择kiftd了。
本应用的作者 _青阳龙野@kohgylw_ 相信:不仅仅是他本人,而是还有很多人都需要在局域网内自己搭建起一个属于个人或团体的网盘服务器系统,这样就可以让所有在同一局域网内的朋友、同事或学生去访问、上传或下载自己网盘上的文件。
@ -55,6 +55,12 @@ _注kift的解压即用版即为kiftd_
## News
最新讯息:
### 常规更新v1.0.2v2
该更新为1.0.2版本基础上的性能优化更新,该版本建议所有用户升级体验。
+ 优化了登录逻辑——现在进行登录和注销操作不会再返回到根目录了,而是保持在当前浏览路径内。这一点是为了方便用户进行频繁的登录和注销操作。
+ 为登录操作增加了等待效果——让用户在较差的网络环境下能够获得更好的登录操作体验,防止重复操作。
+ 优化了kiftd应用主界面的显示——使得其能够自适应各种不同的分辨率从而解决了在高分辨率显示器下kiftd应用主界面显示过小的问题。
### 常规更新v1.0.2v1
该更新为1.0.2版本基础上的性能优化更新,该版本建议所有用户升级体验。
+ 优化了主页设计,使其在较差的网络环境下的能够更加快速地加载。

Binary file not shown.

Binary file not shown.

View File

@ -110,7 +110,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-primary" onclick="dologin()">登录</button>
<button type="button" id="dologinButton" class="btn btn-primary" onclick="dologin()">登录</button>
</div>
</div>
</div>

View File

@ -31,8 +31,18 @@ $(function() {
window.clearInterval(zipTimer);
}
});
// 关闭登陆模态框自动清空输入数据
$('#loginModal').on('hidden.bs.modal', function(e) {
$("#accountid").val('');
$("#accountpwd").val('');
});
});
//全局请求失败提示
function doAlert(){
alert("kiftd错误无法连接到服务器请检查网络连接或服务器运行状态。");
}
// 获取服务器操作系统
function getServerOS() {
$.ajax({
@ -65,8 +75,8 @@ function showFolderView(fid) {
},
url : 'homeController/getFolderView.ajax',
success : function(result) {
endLoading();
if (result == "mustLogin") {
endLoading();
window.location.href = "login.html";
} else {
var folderView = eval("(" + result + ")");
@ -76,29 +86,44 @@ function showFolderView(fid) {
showAccountView(folderView);
showPublishTime(folderView);
showFolderTable(folderView);
endLoading();
}
},
error : function() {
endLoading();
doAlert();
$("#tb").html("<span class='graytext'>获取失败,请尝试刷新</span>");
$("#publishTime").html("<span class='graytext'>获取失败,请尝试刷新</span>");
$("#parentlistbox")
.html("<span class='graytext'>获取失败,请尝试刷新</span>");
endLoading();
}
});
}
// 开始加载动画
// 开始文件视图加载动画
function startLoading(){
$('#loadingModal').modal({backdrop:'static', keyboard: false});
$('#loadingModal').modal('show');
}
// 结束加载动画
// 结束文件视图加载动画
function endLoading(){
$('#loadingModal').modal('hide');
}
//开始登陆加载动画
function startLogin(){
$("#accountid").attr('disabled','disabled');
$("#accountpwd").attr('disabled','disabled');
$("#dologinButton").attr('disabled','disabled');
}
//结束登陆加载动画
function finishLogin(){
$("#accountid").removeAttr('disabled','disabled');
$("#accountpwd").removeAttr('disabled','disabled');
$("#dologinButton").removeAttr('disabled','disabled');
}
// 登录操作
function dologin() {
var accountId = $("#accountid").val();
@ -117,6 +142,7 @@ function dologin() {
$("#accountpwdbox").removeClass("has-error");
}
if (check == "y") {
startLogin();
// 加密认证-获取公钥并将请求加密发送给服务器,避免中途被窃取
$.ajax({
url : 'homeController/getPublicKey.ajax',
@ -134,6 +160,7 @@ function dologin() {
sendLoginInfo(encrypted);
},
error : function() {
finishLogin();
$("#alertbox").addClass("alert");
$("#alertbox").addClass("alert-danger");
$("#alertbox").text("提示:登录请求失败,请检查网络或服务器运行状态");
@ -152,6 +179,7 @@ function sendLoginInfo(encrypted) {
encrypted : encrypted
},
success : function(result) {
finishLogin();
$("#alertbox").removeClass("alert");
$("#alertbox").removeClass("alert-danger");
$("#alertbox").text("");
@ -159,7 +187,8 @@ function sendLoginInfo(encrypted) {
case "permitlogin":
$("#accountidbox").removeClass("has-error");
$("#accountpwdbox").removeClass("has-error");
window.location.href = "home.html";
$('#loginModal').modal('hide');
showFolderView(locationpath);
break;
case "accountnotfound":
$("#accountidbox").addClass("has-error");
@ -188,6 +217,7 @@ function sendLoginInfo(encrypted) {
}
},
error : function() {
finishLogin();
$("#alertbox").addClass("alert");
$("#alertbox").addClass("alert-danger");
$("#alertbox").text("提示:登录请求失败,请检查网络或服务器运行状态");
@ -198,7 +228,20 @@ function sendLoginInfo(encrypted) {
// 注销操作
function dologout() {
$('#logoutModal').modal('hide');
window.location.href = "homeController/doLogout.do";
$.ajax({
url:'homeController/doLogout.ajax',
type:'POST',
data:{},
dataType:'text',
success:function(result){
if(result=="SUCCESS"){
showFolderView(locationpath);
}
},
error:function(){
doAlert();
}
});
}
// 显示当前文件夹的父级路径

File diff suppressed because one or more lines are too long