mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
22826f8d1e
commit
239cab91ef
@ -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
17
src/h2/h2.go
Normal 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
4
src/h2/h2.js
Normal 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
3
src/h2/h2.shy
Normal file
@ -0,0 +1,3 @@
|
||||
chapter "h2"
|
||||
|
||||
field "示例" web.code.h2.h2
|
@ -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()) }
|
@ -64,3 +64,5 @@ label `
|
||||
Windows MacOSX Linux iOS Android
|
||||
c/c++ golang python java javascript
|
||||
`
|
||||
|
||||
source h2/h2.shy
|
Loading…
x
Reference in New Issue
Block a user