Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
hexbee
Cloudreve
提交
07fef77c
C
Cloudreve
项目概览
hexbee
/
Cloudreve
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
Cloudreve
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
07fef77c
编写于
5月 17, 2018
作者:
H
HFO4
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
目录分享侧边连
上级
81abe89e
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
1036 addition
and
34 deletion
+1036
-34
application/index/model/Directory.php
application/index/model/Directory.php
+3
-0
application/index/view/share/share_dir.html
application/index/view/share/share_dir.html
+3
-28
static/css/angular-filemanager.min.css
static/css/angular-filemanager.min.css
+1
-1
static/css/share_dir.css
static/css/share_dir.css
+1024
-1
static/js/filemanager_share.js
static/js/filemanager_share.js
+3
-3
static/js/share_dir.js
static/js/share_dir.js
+2
-1
未找到文件。
application/index/model/Directory.php
浏览文件 @
07fef77c
...
@@ -30,6 +30,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{
...
@@ -30,6 +30,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{
}
}
function
createFile
(
$name
,
$data
=
NULL
){
function
createFile
(
$name
,
$data
=
NULL
){
$name
=
str_replace
(
" "
,
""
,
$name
);
$userData
=
Db
::
name
(
"users"
)
->
where
(
"id"
,
$this
->
uid
)
->
find
();
$userData
=
Db
::
name
(
"users"
)
->
where
(
"id"
,
$this
->
uid
)
->
find
();
$groupData
=
Db
::
name
(
"groups"
)
->
where
(
"id"
,
$userData
[
"user_group"
])
->
find
();
$groupData
=
Db
::
name
(
"groups"
)
->
where
(
"id"
,
$userData
[
"user_group"
])
->
find
();
$policyData
=
Db
::
name
(
"policy"
)
->
where
(
"id"
,
$groupData
[
"policy_name"
])
->
find
();
$policyData
=
Db
::
name
(
"policy"
)
->
where
(
"id"
,
$groupData
[
"policy_name"
])
->
find
();
...
@@ -137,6 +138,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{
...
@@ -137,6 +138,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{
}
}
function
getChild
(
$name
)
{
function
getChild
(
$name
)
{
$name
=
str_replace
(
" "
,
""
,
$name
);
if
(
!
$this
->
childExists
(
$name
)){
if
(
!
$this
->
childExists
(
$name
)){
throw
new
DAV\Exception\NotFound
(
'File with name '
.
$name
.
' could not be located'
);
throw
new
DAV\Exception\NotFound
(
'File with name '
.
$name
.
' could not be located'
);
}
}
...
@@ -150,6 +152,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{
...
@@ -150,6 +152,7 @@ class Directory extends DAV\Node implements DAV\ICollection, DAV\IQuota{
}
}
function
childExists
(
$name
)
{
function
childExists
(
$name
)
{
$name
=
str_replace
(
" "
,
""
,
$name
);
$fileObj
=
new
Objects
(
$this
->
uid
.
rtrim
(
$this
->
myPath
,
"/"
)
.
'/'
.
$name
);
$fileObj
=
new
Objects
(
$this
->
uid
.
rtrim
(
$this
->
myPath
,
"/"
)
.
'/'
.
$name
);
if
(
$this
->
findDir
(
rtrim
(
$this
->
myPath
,
"/"
)
.
'/'
.
$name
)
||
$fileObj
->
isExist
){
if
(
$this
->
findDir
(
rtrim
(
$this
->
myPath
,
"/"
)
.
'/'
.
$name
)
||
$fileObj
->
isExist
){
return
true
;
return
true
;
...
...
application/index/view/share/share_dir.html
浏览文件 @
07fef77c
...
@@ -70,34 +70,9 @@
...
@@ -70,34 +70,9 @@
</div>
</div>
</div>
</div>
</div>
</div>
<nav
class=
"navbar navbar-inverse"
>
<angular-filemanager></angular-filemanager>
<div
class=
"container-fluid"
>
<div
class=
"container"
>
{include file="navbar_public" loginStatus=$loginStatus userData=$userInfo /}
<div
class=
"header-panel shadow-z-2"
>
<div
class=
"container-fluid"
>
<div
class=
"row"
>
</div>
</div>
</div>
<div
class=
"container main-h"
>
<div
class=
""
>
<div
class=
"jumbotron"
>
<div
class=
"card_botom"
>
<div
class=
"row bottom-width"
>
<div
class=
"manager"
><angular-filemanager></angular-filemanager>
</div>
</div>
</div>
</div></div>
</div>
</div>
</body>
</body>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
shareInfo
=
{
shareInfo
=
{
...
...
static/css/angular-filemanager.min.css
浏览文件 @
07fef77c
...
@@ -337,7 +337,7 @@ textarea.code {
...
@@ -337,7 +337,7 @@ textarea.code {
padding
:
0
;
padding
:
0
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
overflow-y
:
auto
;
border-right
:
1px
solid
#eee
border-right
:
1px
solid
#eee
;
}
}
.btn-go-back
{
.btn-go-back
{
...
...
static/css/share_dir.css
浏览文件 @
07fef77c
此差异已折叠。
点击以展开。
static/js/filemanager_share.js
浏览文件 @
07fef77c
此差异已折叠。
点击以展开。
static/js/share_dir.js
浏览文件 @
07fef77c
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
config
.
set
({
config
.
set
({
appName
:
'
angular-filemanager
'
,
appName
:
'
angular-filemanager
'
,
defaultLang
:
'
zh_cn
'
,
defaultLang
:
'
zh_cn
'
,
sidebar
:
fals
e
,
sidebar
:
tru
e
,
pickCallback
:
function
(
item
)
{
pickCallback
:
function
(
item
)
{
var
msg
=
'
Picked %s "%s" for external use
'
var
msg
=
'
Picked %s "%s" for external use
'
.
replace
(
'
%s
'
,
item
.
type
)
.
replace
(
'
%s
'
,
item
.
type
)
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
changePermissions
:
false
,
changePermissions
:
false
,
upload
:
false
,
upload
:
false
,
shareFile
:
false
,
shareFile
:
false
,
shareFile
:
false
,
}),
}),
});
});
}]);
}]);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录