diff --git a/etc/init.shy b/etc/init.shy index c11c355f..c6009fc9 100644 --- a/etc/init.shy +++ b/etc/init.shy @@ -9,8 +9,11 @@ ~web.code config inner meta.show.tabs "" - config inner meta.show.exts "inner/search.js?a=1,inner/favor.js" - config inner meta.show.plug "web.dream,cli.system" + config inner meta.show.exts "inner/search.js?a=1" + config inner meta.show.plug "" + config vimer meta.show.tabs "" + config vimer meta.show.exts "inner/search.js?a=1,inner/favor.js" + config vimer meta.show.plug "cli.system" ~web.code.input # wubi load file usr/wubi-dict/wubi86 diff --git a/src/h2/h2.go b/src/h2/h2.go deleted file mode 100644 index 31182c61..00000000 --- a/src/h2/h2.go +++ /dev/null @@ -1,17 +0,0 @@ -package h2 - -import ( - "shylinux.com/x/ice" -) - -type h2 struct { - ice.Zone - - list string `name:"list zone id auto insert" help:"示例"` -} - -func (s h2) List(m *ice.Message, arg ...string) { - s.Zone.List(m, arg...) -} - -func init() { ice.Cmd("web.code.h2.h2", h2{}) } diff --git a/src/h2/h2.js b/src/h2/h2.js deleted file mode 100644 index 41954ccd..00000000 --- a/src/h2/h2.js +++ /dev/null @@ -1,4 +0,0 @@ -Volcanos("onimport", {help: "导入数据", _init: function(can, msg) { - msg.Echo("hello world") - msg.Dump(can) -}}) \ No newline at end of file diff --git a/src/h2/h2.shy b/src/h2/h2.shy deleted file mode 100644 index 2aa4717e..00000000 --- a/src/h2/h2.shy +++ /dev/null @@ -1,3 +0,0 @@ -chapter "h2" - -field "示例" web.code.h2.h2 diff --git a/src/main.go b/src/main.go index b6af8d1d..80d7a873 100644 --- a/src/main.go +++ b/src/main.go @@ -38,10 +38,6 @@ import ( _ "shylinux.com/x/linux-story/src/busybox" _ "shylinux.com/x/linux-story/src/kernel" _ "shylinux.com/x/linux-story/src/qemu" - - _ "shylinux.com/x/contexts/src/hi" - - _ "shylinux.com/x/contexts/src/h2" ) func main() { print(ice.Run()) } \ No newline at end of file diff --git a/src/main.js b/src/main.js new file mode 100644 index 00000000..cfb3bdb8 --- /dev/null +++ b/src/main.js @@ -0,0 +1,10 @@ +Volcanos("onimport", {help: "导入数据", _init: function(can, msg) { + can.onaction.show(can, msg) + msg.Echo("hello world") + msg.Echo("hello world") + msg.Dump(can) +}}) +Volcanos("onaction", {help: "操作数据", show: function(can, msg) { + msg.Push("hi", "hello") + msg.Echo("hello world") +}}) diff --git a/src/main.shy b/src/main.shy index 90fd6697..3608f37e 100644 --- a/src/main.shy +++ b/src/main.shy @@ -65,4 +65,15 @@ Windows MacOSX Linux iOS Android c/c++ golang python java javascript ` -source h2/h2.shy \ No newline at end of file +source h2/h2.shy +source h4/h4.shy +source h5/h5.shy +source h6/h6.shy +source h7/h7.shy +source h8/h8.shy +source h9/h9.shy +source h10/h10.shy +source h1/h1.shy +source h2/h2.shy +source h3/h3.shy +source h4/h4.shy \ No newline at end of file