Merge branch 'master' of https://github.com/b3log/wide
This commit is contained in:
commit
34ef9a2494
|
@ -58,7 +58,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) {
|
||||||
workspacePath := workspace + conf.PathSeparator + "src"
|
workspacePath := workspace + conf.PathSeparator + "src"
|
||||||
|
|
||||||
workspaceNode := FileNode{Name: workspace[strings.LastIndex(workspace, conf.PathSeparator)+1:],
|
workspaceNode := FileNode{Name: workspace[strings.LastIndex(workspace, conf.PathSeparator)+1:],
|
||||||
Title: workspace, Path: workspacePath, IconSkin: "ico-ztree-dir ", Type: "d", FileNodes: []*FileNode{}}
|
Title: workspace, Path: workspacePath, IconSkin: "ico-ztree-dir-workspace ", Type: "d", FileNodes: []*FileNode{}}
|
||||||
|
|
||||||
walk(workspacePath, &workspaceNode)
|
walk(workspacePath, &workspaceNode)
|
||||||
|
|
||||||
|
@ -73,8 +73,7 @@ func GetFiles(w http.ResponseWriter, r *http.Request) {
|
||||||
goapiBuildOKSignal := make(chan bool)
|
goapiBuildOKSignal := make(chan bool)
|
||||||
go func() {
|
go func() {
|
||||||
apiNode.Type = "d"
|
apiNode.Type = "d"
|
||||||
// TOOD: Go API use a special style
|
apiNode.IconSkin = "ico-ztree-dir-api "
|
||||||
apiNode.IconSkin = "ico-ztree-dir "
|
|
||||||
|
|
||||||
walk(apiPath, &apiNode)
|
walk(apiPath, &apiNode)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue