mirror of https://gitee.com/zhang_1334717033/kiftd
update to version 1.0.2v2
parent
1096f152a1
commit
c39b842c97
16
README.md
16
README.md
|
|
@ -1,21 +1,21 @@
|
||||||
# kiftd——青阳网络文件系统 #
|
# kiftd——青阳网络文件传输系统 #
|
||||||
## 一款小型、便捷、开源的个人网盘系统。 ##
|
## 一款便捷、开源、功能完善的个人&团队&小型组织网盘服务器系统。 ##
|
||||||
|
|
||||||
### 快速导航
|
### 快速导航
|
||||||
* 外网访问太慢?可以转至国内托管地址进行下载: https://gitee.com/kohgylw/kiftd
|
* 外网访问太慢?可以转至国内托管地址进行下载: https://gitee.com/kohgylw/kiftd
|
||||||
* 需要从github上浏览项目?可以访问github上的项目主页: https://github.com/KOHGYLW/kiftd
|
* 需要从github上浏览项目?可以访问github上的项目主页: https://github.com/KOHGYLW/kiftd
|
||||||
* 图示预览:请见本页面最下方。
|
* 图示预览:请见本页面最下方。
|
||||||
|
|
||||||
### 什么是kift?
|
### 什么是kiftd?
|
||||||
* 您还在使用U盘分享软件么?
|
* 您还在使用U盘分享软件么?
|
||||||
> 很不幸,U盘易丢,同时又无法兼容各种平台的文件系统,在需要大规模分享时--通过U盘拷贝简直就像是接力赛一样原始又低效。
|
> 很不幸,U盘易丢,同时又无法兼容各种平台的文件系统,在需要大规模分享时--通过U盘拷贝简直就像是接力赛一样原始又低效。
|
||||||
* 您还在使用免费的公用网盘么?
|
* 您还在使用免费的公用网盘么?
|
||||||
> 时不时传来的网盘关停热潮令人担忧,而其由外人管理的特性则让您不敢轻易把隐私文件存放在上面。
|
> 时不时传来的网盘关停热潮令人担忧,而其由外人管理的特性则让您不敢轻易把隐私文件存放在上面。
|
||||||
* 您需要利用自己的资源搭建起一个网盘系统而苦于没有好的选择?
|
* 您需要利用自己的资源搭建起一个网盘系统而苦于没有好的选择?
|
||||||
> 使用破解软件同样无法确保安全性,闭源的特性令人担忧。同时,很多已有的网盘服务器软件性能笨重、功能简单、语言的障碍更是使用中不可忽视的问题。
|
> 使用破解软件同样无法确保安全性,闭源的特性令人担忧。同时,很多已有的网盘服务器软件性能笨重、功能简单、语言的障碍更是使用中不可忽视的问题。
|
||||||
_注:kift的解压即用版即为kiftd_
|
_注:kift为功能性内核的开发代号,其应用版本被称为kiftd_
|
||||||
|
|
||||||
### 现在,您可以选择kift了。
|
### 现在,您可以选择kiftd了。
|
||||||
|
|
||||||
本应用的作者 _青阳龙野@kohgylw_ 相信:不仅仅是他本人,而是还有很多人都需要在局域网内自己搭建起一个属于个人或团体的网盘服务器系统,这样就可以让所有在同一局域网内的朋友、同事或学生去访问、上传或下载自己网盘上的文件。
|
本应用的作者 _青阳龙野@kohgylw_ 相信:不仅仅是他本人,而是还有很多人都需要在局域网内自己搭建起一个属于个人或团体的网盘服务器系统,这样就可以让所有在同一局域网内的朋友、同事或学生去访问、上传或下载自己网盘上的文件。
|
||||||
|
|
||||||
|
|
@ -55,6 +55,12 @@ _注:kift的解压即用版即为kiftd_
|
||||||
## News
|
## News
|
||||||
|
|
||||||
最新讯息:
|
最新讯息:
|
||||||
|
### 常规更新v1.0.2v2
|
||||||
|
该更新为1.0.2版本基础上的性能优化更新,该版本建议所有用户升级体验。
|
||||||
|
+ 优化了登录逻辑——现在进行登录和注销操作不会再返回到根目录了,而是保持在当前浏览路径内。这一点是为了方便用户进行频繁的登录和注销操作。
|
||||||
|
+ 为登录操作增加了等待效果——让用户在较差的网络环境下能够获得更好的登录操作体验,防止重复操作。
|
||||||
|
+ 优化了kiftd应用主界面的显示——使得其能够自适应各种不同的分辨率,从而解决了在高分辨率显示器下kiftd应用主界面显示过小的问题。
|
||||||
|
|
||||||
### 常规更新v1.0.2v1
|
### 常规更新v1.0.2v1
|
||||||
该更新为1.0.2版本基础上的性能优化更新,该版本建议所有用户升级体验。
|
该更新为1.0.2版本基础上的性能优化更新,该版本建议所有用户升级体验。
|
||||||
+ 优化了主页设计,使其在较差的网络环境下的能够更加快速地加载。
|
+ 优化了主页设计,使其在较差的网络环境下的能够更加快速地加载。
|
||||||
|
|
|
||||||
Binary file not shown.
BIN
kift说明文档.pdf
BIN
kift说明文档.pdf
Binary file not shown.
|
|
@ -110,7 +110,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,18 @@ $(function() {
|
||||||
window.clearInterval(zipTimer);
|
window.clearInterval(zipTimer);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// 关闭登陆模态框自动清空输入数据
|
||||||
|
$('#loginModal').on('hidden.bs.modal', function(e) {
|
||||||
|
$("#accountid").val('');
|
||||||
|
$("#accountpwd").val('');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//全局请求失败提示
|
||||||
|
function doAlert(){
|
||||||
|
alert("kiftd错误:无法连接到服务器,请检查网络连接或服务器运行状态。");
|
||||||
|
}
|
||||||
|
|
||||||
// 获取服务器操作系统
|
// 获取服务器操作系统
|
||||||
function getServerOS() {
|
function getServerOS() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
@ -65,8 +75,8 @@ function showFolderView(fid) {
|
||||||
},
|
},
|
||||||
url : 'homeController/getFolderView.ajax',
|
url : 'homeController/getFolderView.ajax',
|
||||||
success : function(result) {
|
success : function(result) {
|
||||||
if (result == "mustLogin") {
|
|
||||||
endLoading();
|
endLoading();
|
||||||
|
if (result == "mustLogin") {
|
||||||
window.location.href = "login.html";
|
window.location.href = "login.html";
|
||||||
} else {
|
} else {
|
||||||
var folderView = eval("(" + result + ")");
|
var folderView = eval("(" + result + ")");
|
||||||
|
|
@ -76,29 +86,44 @@ function showFolderView(fid) {
|
||||||
showAccountView(folderView);
|
showAccountView(folderView);
|
||||||
showPublishTime(folderView);
|
showPublishTime(folderView);
|
||||||
showFolderTable(folderView);
|
showFolderTable(folderView);
|
||||||
endLoading();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function() {
|
error : function() {
|
||||||
|
endLoading();
|
||||||
|
doAlert();
|
||||||
$("#tb").html("<span class='graytext'>获取失败,请尝试刷新</span>");
|
$("#tb").html("<span class='graytext'>获取失败,请尝试刷新</span>");
|
||||||
$("#publishTime").html("<span class='graytext'>获取失败,请尝试刷新</span>");
|
$("#publishTime").html("<span class='graytext'>获取失败,请尝试刷新</span>");
|
||||||
$("#parentlistbox")
|
$("#parentlistbox")
|
||||||
.html("<span class='graytext'>获取失败,请尝试刷新</span>");
|
.html("<span class='graytext'>获取失败,请尝试刷新</span>");
|
||||||
endLoading();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 开始加载动画
|
// 开始文件视图加载动画
|
||||||
function startLoading(){
|
function startLoading(){
|
||||||
|
$('#loadingModal').modal({backdrop:'static', keyboard: false});
|
||||||
$('#loadingModal').modal('show');
|
$('#loadingModal').modal('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
// 结束加载动画
|
// 结束文件视图加载动画
|
||||||
function endLoading(){
|
function endLoading(){
|
||||||
$('#loadingModal').modal('hide');
|
$('#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() {
|
function dologin() {
|
||||||
var accountId = $("#accountid").val();
|
var accountId = $("#accountid").val();
|
||||||
|
|
@ -117,6 +142,7 @@ function dologin() {
|
||||||
$("#accountpwdbox").removeClass("has-error");
|
$("#accountpwdbox").removeClass("has-error");
|
||||||
}
|
}
|
||||||
if (check == "y") {
|
if (check == "y") {
|
||||||
|
startLogin();
|
||||||
// 加密认证-获取公钥并将请求加密发送给服务器,避免中途被窃取
|
// 加密认证-获取公钥并将请求加密发送给服务器,避免中途被窃取
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : 'homeController/getPublicKey.ajax',
|
url : 'homeController/getPublicKey.ajax',
|
||||||
|
|
@ -134,6 +160,7 @@ function dologin() {
|
||||||
sendLoginInfo(encrypted);
|
sendLoginInfo(encrypted);
|
||||||
},
|
},
|
||||||
error : function() {
|
error : function() {
|
||||||
|
finishLogin();
|
||||||
$("#alertbox").addClass("alert");
|
$("#alertbox").addClass("alert");
|
||||||
$("#alertbox").addClass("alert-danger");
|
$("#alertbox").addClass("alert-danger");
|
||||||
$("#alertbox").text("提示:登录请求失败,请检查网络或服务器运行状态");
|
$("#alertbox").text("提示:登录请求失败,请检查网络或服务器运行状态");
|
||||||
|
|
@ -152,6 +179,7 @@ function sendLoginInfo(encrypted) {
|
||||||
encrypted : encrypted
|
encrypted : encrypted
|
||||||
},
|
},
|
||||||
success : function(result) {
|
success : function(result) {
|
||||||
|
finishLogin();
|
||||||
$("#alertbox").removeClass("alert");
|
$("#alertbox").removeClass("alert");
|
||||||
$("#alertbox").removeClass("alert-danger");
|
$("#alertbox").removeClass("alert-danger");
|
||||||
$("#alertbox").text("");
|
$("#alertbox").text("");
|
||||||
|
|
@ -159,7 +187,8 @@ function sendLoginInfo(encrypted) {
|
||||||
case "permitlogin":
|
case "permitlogin":
|
||||||
$("#accountidbox").removeClass("has-error");
|
$("#accountidbox").removeClass("has-error");
|
||||||
$("#accountpwdbox").removeClass("has-error");
|
$("#accountpwdbox").removeClass("has-error");
|
||||||
window.location.href = "home.html";
|
$('#loginModal').modal('hide');
|
||||||
|
showFolderView(locationpath);
|
||||||
break;
|
break;
|
||||||
case "accountnotfound":
|
case "accountnotfound":
|
||||||
$("#accountidbox").addClass("has-error");
|
$("#accountidbox").addClass("has-error");
|
||||||
|
|
@ -188,6 +217,7 @@ function sendLoginInfo(encrypted) {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error : function() {
|
error : function() {
|
||||||
|
finishLogin();
|
||||||
$("#alertbox").addClass("alert");
|
$("#alertbox").addClass("alert");
|
||||||
$("#alertbox").addClass("alert-danger");
|
$("#alertbox").addClass("alert-danger");
|
||||||
$("#alertbox").text("提示:登录请求失败,请检查网络或服务器运行状态");
|
$("#alertbox").text("提示:登录请求失败,请检查网络或服务器运行状态");
|
||||||
|
|
@ -198,7 +228,20 @@ function sendLoginInfo(encrypted) {
|
||||||
// 注销操作
|
// 注销操作
|
||||||
function dologout() {
|
function dologout() {
|
||||||
$('#logoutModal').modal('hide');
|
$('#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
Loading…
Reference in New Issue