|
@@ -68,6 +68,7 @@ var Assist = function (vm, assist) {
|
|
|
name: "__HUEROOT__",
|
|
name: "__HUEROOT__",
|
|
|
path: "__HUEROOT__",
|
|
path: "__HUEROOT__",
|
|
|
aclBit: false,
|
|
aclBit: false,
|
|
|
|
|
+ striked: false,
|
|
|
selected: false,
|
|
selected: false,
|
|
|
nodes: [
|
|
nodes: [
|
|
|
{
|
|
{
|
|
@@ -76,6 +77,7 @@ var Assist = function (vm, assist) {
|
|
|
isDir: true,
|
|
isDir: true,
|
|
|
isExpanded: true,
|
|
isExpanded: true,
|
|
|
aclBit: false,
|
|
aclBit: false,
|
|
|
|
|
+ striked: false,
|
|
|
selected: false,
|
|
selected: false,
|
|
|
nodes: []
|
|
nodes: []
|
|
|
}
|
|
}
|
|
@@ -165,6 +167,7 @@ var Assist = function (vm, assist) {
|
|
|
name: _chunks[_chunks.length - 1],
|
|
name: _chunks[_chunks.length - 1],
|
|
|
path: item.path,
|
|
path: item.path,
|
|
|
aclBit: item.rwx.indexOf('+') != -1,
|
|
aclBit: item.rwx.indexOf('+') != -1,
|
|
|
|
|
+ striked: item.striked != null,
|
|
|
isExpanded: true,
|
|
isExpanded: true,
|
|
|
isDir: item.type == "dir",
|
|
isDir: item.type == "dir",
|
|
|
nodes: []
|
|
nodes: []
|
|
@@ -215,10 +218,11 @@ var Assist = function (vm, assist) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
self.fetchPath = function () {
|
|
self.fetchPath = function () {
|
|
|
- $.getJSON('/filebrowser/view' + self.path(), {
|
|
|
|
|
|
|
+ $.getJSON('/security/api/hdfs/list' + self.path(), {
|
|
|
'pagesize': 15,
|
|
'pagesize': 15,
|
|
|
'format': 'json',
|
|
'format': 'json',
|
|
|
- 'doas': vm.doAs()
|
|
|
|
|
|
|
+ 'doas': vm.doAs(),
|
|
|
|
|
+ 'isDiffMode': self.isDiffMode(),
|
|
|
}, function (data) {
|
|
}, function (data) {
|
|
|
self.treeLoadingStatus[self.path()] = true;
|
|
self.treeLoadingStatus[self.path()] = true;
|
|
|
self.loadParents(data.breadcrumbs);
|
|
self.loadParents(data.breadcrumbs);
|
|
@@ -228,7 +232,8 @@ var Assist = function (vm, assist) {
|
|
|
self.convertItemToObject(item);
|
|
self.convertItemToObject(item);
|
|
|
self.files.push(ko.mapping.fromJS({
|
|
self.files.push(ko.mapping.fromJS({
|
|
|
'path': item.path,
|
|
'path': item.path,
|
|
|
- 'aclBit': item.rwx.indexOf('+') != -1
|
|
|
|
|
|
|
+ 'aclBit': item.rwx.indexOf('+') != -1,
|
|
|
|
|
+ 'striked': item.striked != null,
|
|
|
})
|
|
})
|
|
|
);
|
|
);
|
|
|
});
|
|
});
|
|
@@ -320,7 +325,6 @@ var HdfsViewModel = function (initial) {
|
|
|
self.assist.path(path);
|
|
self.assist.path(path);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
self.fetchUsers = function () {
|
|
self.fetchUsers = function () {
|
|
|
$.getJSON('/desktop/api/users/autocomplete', function (data) {
|
|
$.getJSON('/desktop/api/users/autocomplete', function (data) {
|
|
|
$.each(data.users, function (i, user) {
|
|
$.each(data.users, function (i, user) {
|