This commit is contained in:
parent
7652d9d459
commit
475e5df0dc
|
@ -6,7 +6,7 @@
|
|||
"ShellChannel": "ws://{IP}:7070",
|
||||
"SessionChannel": "ws://{IP}:7070",
|
||||
"HTTPSessionMaxAge": 86400,
|
||||
"StaticResourceVersion": "201411041800",
|
||||
"StaticResourceVersion": "201411052200",
|
||||
"MaxProcs": 4,
|
||||
"RuntimeMode": "dev",
|
||||
"Pwd": "{pwd}",
|
||||
|
|
|
@ -68,7 +68,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
// construct Go API node
|
||||
apiPath := runtime.GOROOT() + conf.PathSeparator + "src" + conf.PathSeparator + "pkg"
|
||||
apiNode := FileNode{Name: "Go API", Path: apiPath, FileNodes: []*FileNode{}}
|
||||
apiNode := FileNode{Name: "Go API", Title: apiPath, Path: apiPath, FileNodes: []*FileNode{}}
|
||||
|
||||
goapiBuildOKSignal := make(chan bool)
|
||||
go func() {
|
||||
|
@ -270,7 +270,7 @@ func walk(path string, node *FileNode) {
|
|||
|
||||
fio, _ := os.Lstat(fpath)
|
||||
|
||||
child := FileNode{Name: filename, Path: fpath, FileNodes: []*FileNode{}}
|
||||
child := FileNode{Name: filename, Title: fpath, Path: fpath, FileNodes: []*FileNode{}}
|
||||
node.FileNodes = append(node.FileNodes, &child)
|
||||
|
||||
if nil == fio {
|
||||
|
|
|
@ -99,7 +99,13 @@ var tree = {
|
|||
var dirRMenu = $("#dirRMenu");
|
||||
var fileRMenu = $("#fileRMenu");
|
||||
var setting = {
|
||||
data: {
|
||||
key: {
|
||||
title: "title"
|
||||
}
|
||||
},
|
||||
view: {
|
||||
showTitle: true,
|
||||
selectedMulti: false
|
||||
},
|
||||
callback: {
|
||||
|
|
Loading…
Reference in New Issue