1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00

opt vimer.js

This commit is contained in:
harveyshao 2022-07-13 17:48:06 +08:00
parent 239cab91ef
commit 1ab770be44
7 changed files with 27 additions and 31 deletions

View File

@ -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

View File

@ -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{}) }

View File

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

View File

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

View File

@ -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()) }

10
src/main.js Normal file
View File

@ -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")
}})

View File

@ -65,4 +65,15 @@ Windows MacOSX Linux iOS Android
c/c++ golang python java javascript
`
source h2/h2.shy
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