1
0
forked from x/ContextOS

Revert "add some"

This reverts commit ff116d5ed04c442367176f1d539fd5ccf8089399.
This commit is contained in:
shaoying 2018-12-03 18:24:39 +08:00
parent ff116d5ed0
commit d59de8b6ce
3 changed files with 8 additions and 14 deletions

View File

@ -6,7 +6,6 @@ install:
@go get github.com/nsf/termbox-go
@go get github.com/skip2/go-qrcode
@go get github.com/gomarkdown/markdown
@go get github.com/PuerkitoBio/goquery
go install $(BENCH)
@date
# bench web.code.counter nmake 1
@ -21,10 +20,6 @@ install_all: install
run:
etc/bootstrap.sh
shy:
cp -r src/ ~/shycontext/
cp -r usr/template/ ~/shycontext/usr/
cp -r usr/librarys/ ~/shycontext/usr/
tar:
[ -e tar ] || mkdir tar

View File

@ -227,7 +227,6 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
msg := m
for k, v := range m.Confv("cmd_script").(map[string]interface{}) {
if strings.HasSuffix(detail[0], "."+k) {
detail[0] = m.Sess("nfs").Cmd("path", detail[0]).Result(0)
detail = append([]string{v.(string)}, detail...)
msg = m.Spawn(cli.target)
break

View File

@ -29,18 +29,18 @@ var Index = &ctx.Context{Name: "wiki", Help: "文档中心",
"componet_group": &ctx.Config{Name: "component_group", Value: "index", Help: "默认组件"},
"componet": &ctx.Config{Name: "componet", Value: map[string]interface{}{
"index": []interface{}{
map[string]interface{}{"componet_name": "head", "template": "head"},
map[string]interface{}{"componet_name": "header", "template": "header"},
map[string]interface{}{"componet_name": "list", "template": "list",
"componet_ctx": "web.wiki", "componet_cmd": "wiki_list", "arguments": []interface{}{"h2", "int_r"},
map[string]interface{}{"name": "head", "template": "head"},
map[string]interface{}{"name": "header", "template": "header"},
map[string]interface{}{"name": "list", "template": "list",
"context": "web.wiki", "command": "wiki_list", "arguments": []interface{}{"h2", "int_r"},
"pre_run": true,
},
map[string]interface{}{"componet_name": "text", "template": "text",
"componet_ctx": "web.wiki", "componet_cmd": "wiki_body", "arguments": []interface{}{"@wiki_favor"},
map[string]interface{}{"name": "text", "template": "text",
"context": "web.wiki", "command": "wiki_body", "arguments": []interface{}{"@wiki_favor"},
"pre_run": true,
},
map[string]interface{}{"componet_name": "footer", "template": "footer"},
map[string]interface{}{"componet_name": "tail", "template": "tail"},
map[string]interface{}{"name": "footer", "template": "footer"},
map[string]interface{}{"name": "tail", "template": "tail"},
},
}, Help: "组件列表"},
},