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

opt publish

This commit is contained in:
shaoying 2021-02-25 18:38:57 +08:00
parent d73a77cb19
commit 4afa19296d
2 changed files with 17 additions and 10 deletions

View File

@ -129,15 +129,11 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
]}, ]},
}}, }},
"profile": {name: "测试群", storm: { "profile": {name: "测试群", storm: {
"auto": {name: "功能 auto", index: [ "release": {name: "发布 release", index: [
"web.code.publish", "web.code.publish", "web.code.compile", "web.code.autogen",
"web.code.compile",
"web.code.autogen",
]}, ]},
"code": {name: "性能 code", index: [ "research": {name: "测试 research", index: [
"web.code.favor", "web.code.favor", "web.code.bench", "web.code.pprof",
"web.code.bench",
"web.code.pprof",
]}, ]},
}}, }},
"operate": {name: "运维群", storm: { "operate": {name: "运维群", storm: {
@ -154,7 +150,7 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta,
"connect", "session", "service", "channel", "connect", "session", "service", "channel",
]}, ]},
"nfs": {name: "文件 nfs", index: [ "nfs": {name: "文件 nfs", index: [
"nfs.dir", "nfs.file", "nfs.cat", "nfs.dir", "nfs.tail", "nfs.trash",
]}, ]},
}}, }},
}, },
@ -452,7 +448,14 @@ Volcanos("onappend", {help: "渲染引擎", list: [], _init: function(can, meta,
return sort && can.page.RangeTable(can, table, sort), table return sort && can.page.RangeTable(can, table, sort), table
}, },
board: function(can, text, target) { text = can.page.Display(text||"") board: function(can, text, target) { text = can.page.Display(text||"")
return text && can.page.Append(can, target||can._output, [{view: ["code", "div", text]}]).code var code = text && can.page.Append(can, target||can._output, [{view: ["code", "div", text]}]).code
can.page.Select(can, code, "input[type=button]", function(target) {
target.onclick = function(event) {
var msg = can.sup.request(event, can.Option())
return can.run(event, ["action", target.name], function(msg) { can.run() }, true)
}
})
return code
}, },
figure: function(can, meta, key, target) { figure: function(can, meta, key, target) {

View File

@ -43,6 +43,10 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, conf,
}) }) }) })
return true return true
}, },
_open: function(can, msg) {
can.user.open(msg.Option("_arg"))
return true
},
}) })
Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) { Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) {
}, },