1
0
forked from x/ContextOS

opt vimer

This commit is contained in:
harveyshao 2022-05-15 23:29:44 +08:00
parent 1f435e66f0
commit 93d0f88987
11 changed files with 70 additions and 113 deletions

2
go.mod
View File

@ -11,7 +11,7 @@ require (
) )
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/icebergs v1.2.4
shylinux.com/x/toolkits v0.5.9 shylinux.com/x/toolkits v0.5.9
) )

View File

@ -11,7 +11,7 @@ require (
) )
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/icebergs v1.2.4
shylinux.com/x/toolkits v0.5.9 shylinux.com/x/toolkits v0.5.9
) )

View File

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

View File

@ -2,27 +2,21 @@ package hi
import ( import (
"shylinux.com/x/ice" "shylinux.com/x/ice"
"shylinux.com/x/icebergs/base/ctx"
) )
type hi struct { type hi struct {
ice.Zone 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) { func (s hi) Show(m *ice.Message, arg ...string) {
if !m.PodCmd(ctx.COMMAND, arg) { m.Echo("hello world")
m.Cmdy(ctx.COMMAND, arg)
}
} }
func (h hi) Run(m *ice.Message, arg ...string) {
if m.Right(arg) && !m.PodCmd(arg) { func (s hi) List(m *ice.Message, arg ...string) {
m.Cmdy(arg) s.Zone.List(m, arg...)
} m.Echo("hello world")
}
func (h hi) List(m *ice.Message, arg ...string) {
h.Zone.List(m, arg...)
} }
func init() { ice.Cmd("web.code.hi.hi", hi{}) } func init() { ice.Cmd("web.code.hi.hi", hi{}) }

View File

@ -1,7 +1,4 @@
Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, cb, target) { Volcanos("onimport", {help: "导入数据", _init: function(can, msg) {
msg.Echo("hello world") msg.Echo("hello world")
can.onmotion.clear(can) msg.Dump(can)
can.onappend.table(can, msg) }})
can.onappend.board(can, msg)
can.base.isFunc(cb) && cb(msg)
}}, [""])

View File

@ -1 +1,2 @@
print "hello world" print "hello world"
print "hello world"

View File

@ -1,13 +1,12 @@
#! /bin/sh #! /bin/sh
echo "*$#*" _list
echo "*$@*" echo
echo "*$**"
_list hi
echo
_list hi 1
echo
date
uptime
uname
echo "hello world" echo "hello world"
echo "hello world"
echo "hello world"
env

View File

@ -1,5 +1,31 @@
chapter "hi" chapter "hi"
field "hi" web.code.hi.hi chain `
field "hi" web.code.hi.hi contexts
field "hi" web.code.hi.hi 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

View File

@ -36,3 +36,4 @@ field "趋势图" web.code.git.trend args `intshell`
field "架构图" web.code.git.spide args `intshell` field "架构图" web.code.git.spide args `intshell`
spark md README.md spark md README.md

View File

@ -1,10 +1,6 @@
系统 系统
命令 命令
hi/hi.sh cli.system
hi/hi.shy
hi/hi.py
hi/hi.go
hi/hi.js
环境 环境
cli.runtime cli.runtime
开发 开发
@ -12,4 +8,7 @@
hi/hi.go hi/hi.go
脚本 脚本
hi/hi.sh hi/hi.sh
hi/hi.shy
hi/hi.py
hi/hi.go
hi/hi.js hi/hi.js

View File

@ -1,40 +1,15 @@
head left
基础配置
高级配置
h1
h2
h3
h4
导航配置
username username
left style.width 240 系统
tabs 命令 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 cli.runtime 文档 index hi/hi.shy
南京市 index web.code.git.repos 数据 index hi/hi.py
苏州 index cli.qrcode 后端 index hi/hi.go
无锡 index web.code.git.trend args icebergs 前端 index hi/hi.js
北京市
海淀区 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 main