1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00
This commit is contained in:
harveyshao 2022-07-13 08:20:26 +08:00
parent 22826f8d1e
commit 239cab91ef
6 changed files with 31 additions and 6 deletions

View File

@ -8,12 +8,9 @@
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"
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"
~web.code.input
# wubi load file usr/wubi-dict/wubi86

17
src/h2/h2.go Normal file
View File

@ -0,0 +1,17 @@
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{}) }

4
src/h2/h2.js Normal file
View File

@ -0,0 +1,4 @@
Volcanos("onimport", {help: "导入数据", _init: function(can, msg) {
msg.Echo("hello world")
msg.Dump(can)
}})

3
src/h2/h2.shy Normal file
View File

@ -0,0 +1,3 @@
chapter "h2"
field "示例" web.code.h2.h2

View File

@ -40,6 +40,8 @@ import (
_ "shylinux.com/x/linux-story/src/qemu"
_ "shylinux.com/x/contexts/src/hi"
_ "shylinux.com/x/contexts/src/h2"
)
func main() { print(ice.Run()) }

View File

@ -64,3 +64,5 @@ label `
Windows MacOSX Linux iOS Android
c/c++ golang python java javascript
`
source h2/h2.shy