mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt vimer
This commit is contained in:
parent
1f435e66f0
commit
93d0f88987
2
go.mod
2
go.mod
@ -11,7 +11,7 @@ require (
|
||||
)
|
||||
|
||||
require (
|
||||
shylinux.com/x/ice v0.9.6
|
||||
shylinux.com/x/ice v0.9.7
|
||||
shylinux.com/x/icebergs v1.2.4
|
||||
shylinux.com/x/toolkits v0.5.9
|
||||
)
|
||||
|
@ -11,7 +11,7 @@ require (
|
||||
)
|
||||
|
||||
require (
|
||||
shylinux.com/x/ice v0.9.6
|
||||
shylinux.com/x/ice v0.9.7
|
||||
shylinux.com/x/icebergs v1.2.4
|
||||
shylinux.com/x/toolkits v0.5.9
|
||||
)
|
||||
|
35
src/hi/he.js
35
src/hi/he.js
@ -1,35 +0,0 @@
|
||||
Volcanos("onimport", {help: "导入数据", list: [
|
||||
{type: "button", name: "list"},
|
||||
{type: "button", name: "back"},
|
||||
{type: "button", name: "show"},
|
||||
], _init: function(can, msg, cb, target) {
|
||||
if (msg.Length() == 0) {
|
||||
msg.Push("hi", "hello")
|
||||
msg.Push("he", "world")
|
||||
msg.Echo("hello world")
|
||||
}
|
||||
can.onmotion.clear(can)
|
||||
can.onappend.table(can, msg)
|
||||
can.onappend.board(can, msg)
|
||||
can.base.isFunc(cb) && cb(msg)
|
||||
}})
|
||||
Volcanos("onaction", {help: "操作数据", list: ["show", "some"],
|
||||
_trans: {show: "展示", some: "其它"},
|
||||
show: function(event, can) { var msg = can.request(event)
|
||||
msg.Push("value", 200)
|
||||
msg.Push("value", 300)
|
||||
msg.Push("value", 300)
|
||||
msg.Push("value", 300)
|
||||
msg.Push("value", 400)
|
||||
msg.Option("height", 400)
|
||||
can.onappend._output(can.sup, msg, "/plugin/story/pie.js")
|
||||
},
|
||||
some: function(event, can) { var msg = can.request(event)
|
||||
msg.Push("hi", "hello")
|
||||
msg.Push("hi", "hello")
|
||||
msg.Push("hi", "hello")
|
||||
msg.Push("hi", "hello")
|
||||
msg.Push("hi", "hello")
|
||||
can.onappend.table(can, msg)
|
||||
},
|
||||
})
|
20
src/hi/hi.go
20
src/hi/hi.go
@ -2,27 +2,21 @@ package hi
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
"shylinux.com/x/icebergs/base/ctx"
|
||||
)
|
||||
|
||||
type hi struct {
|
||||
ice.Zone
|
||||
|
||||
list string `name:"list zone id auto insert" help:"示例"`
|
||||
list string `name:"list zone id auto insert show" help:"示例"`
|
||||
}
|
||||
|
||||
func (h hi) Command(m *ice.Message, arg ...string) {
|
||||
if !m.PodCmd(ctx.COMMAND, arg) {
|
||||
m.Cmdy(ctx.COMMAND, arg)
|
||||
}
|
||||
func (s hi) Show(m *ice.Message, arg ...string) {
|
||||
m.Echo("hello world")
|
||||
}
|
||||
func (h hi) Run(m *ice.Message, arg ...string) {
|
||||
if m.Right(arg) && !m.PodCmd(arg) {
|
||||
m.Cmdy(arg)
|
||||
}
|
||||
}
|
||||
func (h hi) List(m *ice.Message, arg ...string) {
|
||||
h.Zone.List(m, arg...)
|
||||
|
||||
func (s hi) List(m *ice.Message, arg ...string) {
|
||||
s.Zone.List(m, arg...)
|
||||
m.Echo("hello world")
|
||||
}
|
||||
|
||||
func init() { ice.Cmd("web.code.hi.hi", hi{}) }
|
||||
|
11
src/hi/hi.js
11
src/hi/hi.js
@ -1,7 +1,4 @@
|
||||
Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, cb, target) {
|
||||
msg.Echo("hello world")
|
||||
can.onmotion.clear(can)
|
||||
can.onappend.table(can, msg)
|
||||
can.onappend.board(can, msg)
|
||||
can.base.isFunc(cb) && cb(msg)
|
||||
}}, [""])
|
||||
Volcanos("onimport", {help: "导入数据", _init: function(can, msg) {
|
||||
msg.Echo("hello world")
|
||||
msg.Dump(can)
|
||||
}})
|
@ -1 +1,2 @@
|
||||
print "hello world"
|
||||
print "hello world"
|
17
src/hi/hi.sh
17
src/hi/hi.sh
@ -1,13 +1,12 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo "*$#*"
|
||||
echo "*$@*"
|
||||
echo "*$**"
|
||||
_list
|
||||
echo
|
||||
|
||||
_list hi
|
||||
echo
|
||||
|
||||
_list hi 1
|
||||
echo
|
||||
|
||||
date
|
||||
uptime
|
||||
uname
|
||||
echo "hello world"
|
||||
echo "hello world"
|
||||
echo "hello world"
|
||||
env
|
||||
|
@ -1,5 +1,31 @@
|
||||
chapter "hi"
|
||||
|
||||
field "hi" web.code.hi.hi
|
||||
field "hi" web.code.hi.hi
|
||||
field "hi" web.code.hi.hi
|
||||
chain `
|
||||
contexts
|
||||
volcanos
|
||||
volcanos
|
||||
lib
|
||||
page
|
||||
panel
|
||||
publish
|
||||
icebergs
|
||||
base
|
||||
core
|
||||
misc
|
||||
toolkits
|
||||
` ship.stroke-width 1 line.stroke-width 1
|
||||
|
||||
field cli.system
|
||||
|
||||
field cli.qrcode
|
||||
|
||||
chart sequence `
|
||||
fe be os hd
|
||||
0 call 1 some 3
|
||||
0 call 1 some 3
|
||||
0 call 1 some 3
|
||||
0 call 1 some 3
|
||||
0 call 1 some 3
|
||||
` marginx 80
|
||||
|
||||
field cli.system
|
||||
|
@ -36,3 +36,4 @@ field "趋势图" web.code.git.trend args `intshell`
|
||||
field "架构图" web.code.git.spide args `intshell`
|
||||
|
||||
spark md README.md
|
||||
|
||||
|
@ -1,10 +1,6 @@
|
||||
系统
|
||||
命令
|
||||
hi/hi.sh
|
||||
hi/hi.shy
|
||||
hi/hi.py
|
||||
hi/hi.go
|
||||
hi/hi.js
|
||||
cli.system
|
||||
环境
|
||||
cli.runtime
|
||||
开发
|
||||
@ -12,4 +8,7 @@
|
||||
hi/hi.go
|
||||
脚本
|
||||
hi/hi.sh
|
||||
hi/hi.shy
|
||||
hi/hi.py
|
||||
hi/hi.go
|
||||
hi/hi.js
|
@ -1,40 +1,15 @@
|
||||
head
|
||||
基础配置
|
||||
高级配置
|
||||
h1
|
||||
h2
|
||||
h3
|
||||
h4
|
||||
导航配置
|
||||
left
|
||||
username
|
||||
left style.width 240
|
||||
tabs
|
||||
地址
|
||||
山东省
|
||||
邹城市
|
||||
济南市
|
||||
青岛市
|
||||
江苏省
|
||||
徐州市 index cli.runtime
|
||||
南京市 index web.code.git.repos
|
||||
苏州 index cli.qrcode
|
||||
无锡 index web.code.git.trend args icebergs
|
||||
北京市
|
||||
海淀区 index hi/hi.sh
|
||||
昌平区 index hi/hi.shy
|
||||
朝阳区 index hi/hi.py
|
||||
西城区 index hi/hi.go
|
||||
东城区 index hi/hi.js
|
||||
广东省
|
||||
深圳市
|
||||
宝安区
|
||||
南山区
|
||||
福田区
|
||||
龙华区
|
||||
茂名市
|
||||
组件
|
||||
列表 index cli.runtime
|
||||
卡片 index cli.qrcode
|
||||
数据
|
||||
main
|
||||
|
||||
系统
|
||||
命令 index cli.system
|
||||
共享 index cli.qrcode
|
||||
代码
|
||||
趋势 index web.code.git.trend args icebergs action auto
|
||||
状态 index web.code.git.status args icebergs
|
||||
脚本
|
||||
终端 index hi/hi.sh
|
||||
文档 index hi/hi.shy
|
||||
数据 index hi/hi.py
|
||||
后端 index hi/hi.go
|
||||
前端 index hi/hi.js
|
||||
main
|
Loading…
x
Reference in New Issue
Block a user