1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 01:12:03 +00:00

Wiki optimized third (#2406)

This commit is contained in:
shanshuirenjia
2018-09-29 15:47:53 +08:00
committed by Daniel Pan
parent 5cffd4cb69
commit 3ab4cbff4f
22 changed files with 612 additions and 107 deletions

View File

@@ -186,6 +186,8 @@ class Tree {
type: model.type,
size: bytesToSize(model.size),
last_update_time: moment.unix(model.last_update_time).fromNow(),
permission: model.permission,
parent_path: model.parent_path,
isExpanded: false
});
if (model.children instanceof Array) {
@@ -214,6 +216,8 @@ class Tree {
type: nodeObj.type,
size: bytesToSize(nodeObj.size),
last_update_time: moment.unix(nodeObj.last_update_time).fromNow(),
permission: nodeObj.permission,
parent_path: nodeObj.parent_path,
isExpanded: false
});
node.parent_path = nodeObj.parent_path;
@@ -240,6 +244,8 @@ class Tree {
type: node.type,
size: bytesToSize(node.size),
last_update_time: moment.unix(node.last_update_time).fromNow(),
permission: node.permission,
parent_path: node.parent_path,
isExpanded: false
});
if (node.children instanceof Array) {