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