Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
qq_36762414
kiftd
提交
7881acbb
kiftd
项目概览
qq_36762414
/
kiftd
与 Fork 源项目一致
Fork自
青阳龙野 / kiftd
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
kiftd
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7881acbb
编写于
9月 13, 2023
作者:
高
高源
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update to v1.1.1-release
上级
6647c762
变更
12
展开全部
隐藏空白更改
内联
并排
Showing
12 changed file
with
1033 addition
and
1017 deletion
+1033
-1017
.DS_Store
.DS_Store
+0
-0
README.md
README.md
+7
-9
filesystem/.DS_Store
filesystem/.DS_Store
+0
-0
kiftd-1.1.1-RELEASE.jar
kiftd-1.1.1-RELEASE.jar
+0
-0
kiftd说明文档.pdf
kiftd说明文档.pdf
+0
-0
webContext/home.html
webContext/home.html
+1
-1
webContext/js/home.js
webContext/js/home.js
+960
-955
webContext/js/home.min.js
webContext/js/home.min.js
+3
-3
webContext/quickview/kplayer.js
webContext/quickview/kplayer.js
+59
-46
webContext/quickview/kplayer.min.js
webContext/quickview/kplayer.min.js
+1
-1
webContext/quickview/video.html
webContext/quickview/video.html
+1
-1
使用许可
使用许可
+1
-1
未找到文件。
.DS_Store
浏览文件 @
7881acbb
无法预览此类型文件
README.md
浏览文件 @
7881acbb
...
...
@@ -77,14 +77,12 @@ _注:kift为该功能的开发名称,其实际成果命名为kiftd。_
> 提示:当您更新版本后,请手动清除浏览器的缓存,之后刷新网盘主页以确保数据文件保持最新!否则可能导致新版页面功能无法使用。
### 新版本v1.1.0
_本次更新大幅升级了底层框架,并加入了众多用户期待的新功能,推荐所有用户升级。_
+
新增WebDAV支持功能!该功能允许用户将kiftd作为一个“网络驱动器”挂载至本地操作系统中,并让用户像在普通文件夹中一样访问和编辑kiftd中的文件。详细挂载方法请参阅《kiftd说明文档》。
+
新增“删除留档”功能——当您启用该功能后,所有被删除的文件都会留档至指定文件夹中以便您做进一步的处理,从而避免因操作失误而导致重要文件被误删。详细启用方法请参阅《kiftd说明文档》。
+
程序框架升级——kiftd现已支持新的Java版本(例如Java 17)和操作系统(例如Windows 11),并进一步提高了系统的稳定性。
+
优化了下载限速算法,现在下载限速功能的精度更高了。
+
修复了主页“公告栏”不能及时更新的问题。
+
其他一些细节优化。
### 新版本v1.1.1
_本次更新为常规更新,修复了一些已知问题并进一步提高了稳定性,推荐所有用户升级。_
+
优化了文件体积显示,现在大文件的体积可以自动换算为GB或TB单位了。
+
优化了文件搜索功能,现在可以进行英文大小写模糊搜索了。
+
优化了剪切和复制操作,使其操作逻辑更贴合主流操作系统中的“剪切板”逻辑。
+
解决了文件功能中存在的Java高版本兼容性问题。
> 需要查看更多版本历史信息?请访问: https://kohgylw.gitee.io/News.html
...
...
@@ -128,4 +126,4 @@ _本次更新大幅升级了底层框架,并加入了众多用户期待的新
_作者会每隔1-3周浏览一次邮箱,如未能及时回复请耐心等待。回复或许会迟到,但它不会缺席。_
2018-202
2
kohgylw@青阳龙野 作者保留版权
2018-202
3
kohgylw@青阳龙野 作者保留版权
filesystem/.DS_Store
浏览文件 @
7881acbb
无法预览此类型文件
kiftd-1.1.
0
-RELEASE.jar
→
kiftd-1.1.
1
-RELEASE.jar
浏览文件 @
7881acbb
无法预览此类型文件
kiftd说明文档.pdf
浏览文件 @
7881acbb
无法预览此类型文件
webContext/home.html
浏览文件 @
7881acbb
<!doctype html>
<!-- 青阳网络文件传输系统 kiftd v1.1.
0
-RELEASE -->
<!-- 青阳网络文件传输系统 kiftd v1.1.
1
-RELEASE -->
<!-- 欢迎访问主界面 -->
<!-- by 青阳龙野(kohgylw@163.com) -->
<html>
...
...
webContext/js/home.js
浏览文件 @
7881acbb
此差异已折叠。
点击以展开。
webContext/js/home.min.js
浏览文件 @
7881acbb
此差异已折叠。
点击以展开。
webContext/quickview/kplayer.js
浏览文件 @
7881acbb
...
...
@@ -11,38 +11,51 @@ $(function() {
pingInt
=
setInterval
(
"
ping()
"
,
60000
);
var
fileId
=
getFileId
();
$
.
ajax
({
url
:
'
homeController/playVideo.ajax
'
,
type
:
'
POST
'
,
dataType
:
'
text
'
,
data
:
{
fileId
:
fileId
},
success
:
function
(
result
)
{
if
(
result
!=
"
ERROR
"
)
{
f
=
eval
(
"
(
"
+
result
+
"
)
"
);
$
(
"
#vname
"
).
text
(
f
.
fileName
);
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
);
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
);
$
(
"
#vsize
"
).
text
(
f
.
fileSize
);
if
(
f
.
needEncode
==
"
N
"
)
{
playVideo
();
}
else
{
$
(
"
#playerMassage
"
)
.
html
(
"
<h2>播放器正在努力解码中...</h2><h3>已完成:<span id='transcodeProgress'>0</span>%</h3><p class='text-muted'>提示:该视频需解码后播放,请耐心等待!</p>
"
);
doTranscode
();
}
.
ajax
({
url
:
'
homeController/playVideo.ajax
'
,
type
:
'
POST
'
,
dataType
:
'
text
'
,
data
:
{
fileId
:
fileId
},
success
:
function
(
result
)
{
if
(
result
!=
"
ERROR
"
)
{
f
=
eval
(
"
(
"
+
result
+
"
)
"
);
$
(
"
#vname
"
).
text
(
f
.
fileName
);
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
);
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
);
var
fileSizeToInt
=
parseInt
(
f
.
fileSize
);
// 将文件体积(MB)数值转化为整型
if
(
fileSizeToInt
==
0
)
{
// 文件体积小于1MB时
$
(
"
#vsize
"
).
text
(
"
<1 MB
"
);
}
else
if
(
fileSizeToInt
<
1000
)
{
// 文件体积大于1MB但小于1000MB时
$
(
"
#vsize
"
).
text
(
fileSizeToInt
+
"
MB
"
);
}
else
if
(
fileSizeToInt
<
1024000
)
{
// 文件体积大于1000MB但小于1000GB时
$
(
"
#vsize
"
).
text
((
fileSizeToInt
/
1024
).
toFixed
(
2
)
+
"
GB
"
);
}
else
{
alert
(
"
错误:无法定位要预览的文件或该操作未被授权。
"
);
reMainPage
(
);
// 文件体积大于1000GB
$
(
"
#vsize
"
).
text
((
fileSizeToInt
/
1048576
).
toFixed
(
2
)
+
"
TB
"
);
}
},
error
:
function
()
{
alert
(
"
错误:请求失败,请刷新重试。
"
);
if
(
f
.
needEncode
==
"
N
"
)
{
playVideo
();
}
else
{
$
(
"
#playerMassage
"
)
.
html
(
"
<h2>播放器正在努力解码中...</h2><h3>已完成:<span id='transcodeProgress'>0</span>%</h3><p class='text-muted'>提示:该视频需解码后播放,请耐心等待!</p>
"
);
doTranscode
();
}
}
else
{
alert
(
"
错误:无法定位要预览的文件或该操作未被授权。
"
);
reMainPage
();
}
});
},
error
:
function
()
{
alert
(
"
错误:请求失败,请刷新重试。
"
);
reMainPage
();
}
});
});
// 获取URL上的视频id参数,它必须是第一个参数。
function
getFileId
()
{
...
...
@@ -57,12 +70,12 @@ function getFileId() {
// 显示视频信息并播放视频
function
playVideo
()
{
$
(
"
#playerbox
"
)
.
html
(
"
<video id='kiftplayer' class='video-js col-md-12' controls preload='auto' height='500'>
"
+
"
<source src='resourceController/getResource/
"
+
f
.
fileId
+
"
' type='video/mp4'></video>
"
);
.
html
(
"
<video id='kiftplayer' class='video-js col-md-12' controls preload='auto' height='500'>
"
+
"
<source src='resourceController/getResource/
"
+
f
.
fileId
+
"
' type='video/mp4'></video>
"
);
var
player
=
videojs
(
'
kiftplayer
'
,
{
preload
:
'
auto
'
preload
:
'
auto
'
});
player
.
ready
(
function
()
{
this
.
play
();
...
...
@@ -85,13 +98,13 @@ function reMainPage() {
// 进行转码请求并监听进度状态(轮询)
function
doTranscode
()
{
tReq
=
$
.
ajax
({
url
:
'
resourceController/getVideoTranscodeStatus.ajax
'
,
type
:
'
POST
'
,
dataType
:
'
text
'
,
data
:
{
fileId
:
f
.
fileId
url
:
'
resourceController/getVideoTranscodeStatus.ajax
'
,
type
:
'
POST
'
,
dataType
:
'
text
'
,
data
:
{
fileId
:
f
.
fileId
},
success
:
function
(
result
)
{
success
:
function
(
result
)
{
if
(
result
==
"
FIN
"
)
{
playVideo
();
}
else
if
(
result
==
"
ERROR
"
)
{
...
...
@@ -102,7 +115,7 @@ function doTranscode() {
tTimer
=
setTimeout
(
'
doTranscode()
'
,
500
);
// 每隔1秒询问一次进度
}
},
error
:
function
()
{
error
:
function
()
{
alert
(
"
错误:请求失败,请刷新重试。
"
);
reMainPage
();
}
...
...
@@ -121,16 +134,16 @@ function showCloseBtn() {
// 防止播放视频时会话超时的应答器,每分钟应答一次
function
ping
()
{
$
.
ajax
({
url
:
"
homeController/ping.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:
{},
success
:
function
(
result
)
{
url
:
"
homeController/ping.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:
{},
success
:
function
(
result
)
{
if
(
result
!=
'
pong
'
)
{
window
.
clearInterval
(
pingInt
);
}
},
error
:
function
()
{
error
:
function
()
{
window
.
clearInterval
(
pingInt
);
}
});
...
...
webContext/quickview/kplayer.min.js
浏览文件 @
7881acbb
function
getFileId
(){
var
b
,
a
=
location
.
search
;
return
-
1
!=
a
.
indexOf
(
"
?
"
)?(
b
=
a
.
substr
(
1
),
strs
=
b
.
split
(
"
=
"
),
strs
[
1
]):
""
}
function
playVideo
(){
$
(
"
#playerbox
"
).
html
(
"
<video id='kiftplayer' class='video-js col-md-12' controls preload='auto' height='500'><source src='resourceController/getResource/
"
+
f
.
fileId
+
"
' type='video/mp4'></video>
"
);
var
a
=
videojs
(
"
kiftplayer
"
,{
preload
:
"
auto
"
});
a
.
ready
(
function
(){
this
.
play
()})}
function
reMainPage
(){
null
!=
tReq
&&
tReq
.
abort
(),
null
!=
tTimer
&&
window
.
clearTimeout
(
tTimer
),
window
.
opener
=
null
,
window
.
open
(
""
,
"
_self
"
),
window
.
close
()}
function
doTranscode
(){
tReq
=
$
.
ajax
({
url
:
"
resourceController/getVideoTranscodeStatus.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
f
.
fileId
},
success
:
function
(
a
){
"
FIN
"
==
a
?
playVideo
():
"
ERROR
"
==
a
?(
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()):(
$
(
"
#transcodeProgress
"
).
text
(
a
),
tTimer
=
setTimeout
(
"
doTranscode()
"
,
500
))},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})}
function
showCloseBtn
(){
var
a
=
$
(
window
).
width
();
450
>
a
?
$
(
"
#closeBtn
"
).
addClass
(
"
hidden
"
):
$
(
"
#closeBtn
"
).
removeClass
(
"
hidden
"
)}
function
ping
(){
$
.
ajax
({
url
:
"
homeController/ping.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{},
success
:
function
(
a
){
"
pong
"
!=
a
&&
window
.
clearInterval
(
pingInt
)},
error
:
function
(){
window
.
clearInterval
(
pingInt
)}})}
var
tReq
,
tTimer
,
pingInt
;
$
(
function
(){
window
.
onresize
=
function
(){
showCloseBtn
()},
pingInt
=
setInterval
(
"
ping()
"
,
6
e4
);
var
fileId
=
getFileId
();
$
.
ajax
({
url
:
"
homeController/playVideo.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
fileId
},
success
:
function
(
result
){
"
ERROR
"
!=
result
?(
f
=
eval
(
"
(
"
+
result
+
"
)
"
),
$
(
"
#vname
"
).
text
(
f
.
fileName
),
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
),
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
),
$
(
"
#vsize
"
).
text
(
f
.
fileSize
),
"
N
"
==
f
.
needEncode
?
playVideo
():(
$
(
"
#playerMassage
"
).
html
(
"
<h2>播放器正在努力解码中...</h2><h3>已完成:<span id='transcodeProgress'>0</span>%</h3><p class='text-muted'>提示:该视频需解码后播放,请耐心等待!</p>
"
),
doTranscode
())):(
alert
(
"
错误:无法定位要预览的文件或该操作未被授权。
"
),
reMainPage
())},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})});
\ No newline at end of file
function
getFileId
(){
var
b
,
a
=
location
.
search
;
return
-
1
!=
a
.
indexOf
(
"
?
"
)?(
b
=
a
.
substr
(
1
),
strs
=
b
.
split
(
"
=
"
),
strs
[
1
]):
""
}
function
playVideo
(){
$
(
"
#playerbox
"
).
html
(
"
<video id='kiftplayer' class='video-js col-md-12' controls preload='auto' height='500'><source src='resourceController/getResource/
"
+
f
.
fileId
+
"
' type='video/mp4'></video>
"
);
var
a
=
videojs
(
"
kiftplayer
"
,{
preload
:
"
auto
"
});
a
.
ready
(
function
(){
this
.
play
()})}
function
reMainPage
(){
null
!=
tReq
&&
tReq
.
abort
(),
null
!=
tTimer
&&
window
.
clearTimeout
(
tTimer
),
window
.
opener
=
null
,
window
.
open
(
""
,
"
_self
"
),
window
.
close
()}
function
doTranscode
(){
tReq
=
$
.
ajax
({
url
:
"
resourceController/getVideoTranscodeStatus.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
f
.
fileId
},
success
:
function
(
a
){
"
FIN
"
==
a
?
playVideo
():
"
ERROR
"
==
a
?(
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()):(
$
(
"
#transcodeProgress
"
).
text
(
a
),
tTimer
=
setTimeout
(
"
doTranscode()
"
,
500
))},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})}
function
showCloseBtn
(){
var
a
=
$
(
window
).
width
();
450
>
a
?
$
(
"
#closeBtn
"
).
addClass
(
"
hidden
"
):
$
(
"
#closeBtn
"
).
removeClass
(
"
hidden
"
)}
function
ping
(){
$
.
ajax
({
url
:
"
homeController/ping.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{},
success
:
function
(
a
){
"
pong
"
!=
a
&&
window
.
clearInterval
(
pingInt
)},
error
:
function
(){
window
.
clearInterval
(
pingInt
)}})}
var
tReq
,
tTimer
,
pingInt
;
$
(
function
(){
window
.
onresize
=
function
(){
showCloseBtn
()},
pingInt
=
setInterval
(
"
ping()
"
,
6
e4
);
var
fileId
=
getFileId
();
$
.
ajax
({
url
:
"
homeController/playVideo.ajax
"
,
type
:
"
POST
"
,
dataType
:
"
text
"
,
data
:{
fileId
:
fileId
},
success
:
function
(
result
){
if
(
"
ERROR
"
!=
result
){
f
=
eval
(
"
(
"
+
result
+
"
)
"
),
$
(
"
#vname
"
).
text
(
f
.
fileName
),
$
(
"
#vcreator
"
).
text
(
f
.
fileCreator
),
$
(
"
#vcdate
"
).
text
(
f
.
fileCreationDate
);
var
fileSizeToInt
=
parseInt
(
f
.
fileSize
);
0
==
fileSizeToInt
?
$
(
"
#vsize
"
).
text
(
"
<1 MB
"
):
1
e3
>
fileSizeToInt
?
$
(
"
#vsize
"
).
text
(
fileSizeToInt
+
"
MB
"
):
1024
e3
>
fileSizeToInt
?
$
(
"
#vsize
"
).
text
((
fileSizeToInt
/
1024
).
toFixed
(
2
)
+
"
GB
"
):
$
(
"
#vsize
"
).
text
((
fileSizeToInt
/
1048576
).
toFixed
(
2
)
+
"
TB
"
),
"
N
"
==
f
.
needEncode
?
playVideo
():(
$
(
"
#playerMassage
"
).
html
(
"
<h2>播放器正在努力解码中...</h2><h3>已完成:<span id='transcodeProgress'>0</span>%</h3><p class='text-muted'>提示:该视频需解码后播放,请耐心等待!</p>
"
),
doTranscode
())}
else
alert
(
"
错误:无法定位要预览的文件或该操作未被授权。
"
),
reMainPage
()},
error
:
function
(){
alert
(
"
错误:请求失败,请刷新重试。
"
),
reMainPage
()}})});
\ No newline at end of file
webContext/quickview/video.html
浏览文件 @
7881acbb
...
...
@@ -62,7 +62,7 @@
</p>
<p
class=
"subtitle"
>
<span
id=
"vcreator"
>
加载中...
</span>
/
<span
id=
"vcdate"
>
加载中...
</span>
/
<span
id=
"vsize"
>
加载中...
</span>
MB
id=
"vsize"
>
加载中...
</span>
</p>
<br
/>
<!-- 播放窗口组件位置 -->
...
...
使用许可
浏览文件 @
7881acbb
kiftd 使用许可
Copyright © 2018-202
2
青阳龙野 <kohgylw@163.com>
Copyright © 2018-202
3
青阳龙野 <kohgylw@163.com>
使用、分发或修改kiftd及其程序的源代码均代表您接受如下条款:
1,任何组织或个人均能够自由、无偿地获得kiftd发行版及其源代码的原版拷贝,并对其享有无限制使用的权利——无论是商业性的还是非商业性的。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录