diff --git a/etc/init.shy b/etc/init.shy index 52388d7b..b9966fb1 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -7,6 +7,13 @@ role white void web.wiki.word role white void web.wiki.draw +~web.code + # config inner meta.show.plug "web.chat.website,web.dream" + config inner meta.show.plug "cli.system,web.dream" + # config inner meta.show.exts "inner/search.js?a=1,inner/favor.js,inner/template.js" + config inner meta.show.exts "inner/search.js?a=1,inner/favor.js" + config inner meta.show.tabs "src/:main.go:1,src/:main.shy:1" + ~web.code.input # wubi load file usr/wubi-dict/wubi86 wubi load file usr/wubi-dict/person zone person diff --git a/src/main.shy b/src/main.shy index 5f3a0c89..e80a5e36 100644 --- a/src/main.shy +++ b/src/main.shy @@ -1,3 +1,21 @@ +field "src/hi/hi.go" web.code.inner spark ` +package hi + +import ( + "shylinux.com/x/ice" +) + +type hi struct { + ice.Zone +} + +func (h hi) List(m *ice.Message, arg ...string) { + h.Zone.List(m, arg...) +} + +func init() { ice.Cmd("web.code.hi.hi", hi{}) } +` + title "contexts" refer ` 官网 https://contexts.com.cn