mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
80ce58801f
commit
35842bd525
@ -49,18 +49,11 @@ Volcanos(chat.ONACTION, {_init: function(can) {},
|
||||
onunload: function(can) { can._wss && can._wss.close() },
|
||||
onaction_cmd: function(can) { can.onappend.style(can, html.HIDE) },
|
||||
oncommand_focus: function(can) { can.page.Select(can, can._output, ["div.cmd", html.INPUT], function(target) { can.onmotion.focus(can, target) }) },
|
||||
ondebugs: function(can, msg) {
|
||||
can.runAction(msg, msg.Option(ctx.ACTION), [msg.Option(ctx.INDEX)], function(_msg) {
|
||||
_msg.Table(function(item) { item.mode = chat.FLOAT
|
||||
can.onappend.plugin(can, item, function(sub) {
|
||||
sub.run = function(event, cmds, cb) { can.run(can.request(event, {_method: http.POST, space: sub.Conf(web.SPACE)}), [ctx.ACTION, msg.Option(ctx.ACTION), ctx.RUN].concat(cmds), cb) }
|
||||
can.getActionSize(function(left, top, width, height) { sub.onimport.size(sub, sub.ConfHeight(height/2), sub.ConfWidth(width), true)
|
||||
can.onmotion.move(can, sub._target, {left: left||0, top: (top||0)+height/4})
|
||||
}), sub.onaction.close = function() { can.page.Remove(can, sub._target) }
|
||||
}, document.body)
|
||||
})
|
||||
ondebugs: function(can, msg) { can.runAction(msg, msg.Option(ctx.ACTION), [msg.Option(ctx.INDEX)], function(_msg) { _msg.Table(function(item) {
|
||||
can.onappend._float(can, item, can.base.Obj(item.args, []), function(sub) {
|
||||
sub.run = function(event, cmds, cb) { can.run(can.request(event, {_method: http.POST, space: sub.Conf(web.SPACE)}), [ctx.ACTION, msg.Option(ctx.ACTION), ctx.RUN].concat(cmds), cb) }
|
||||
})
|
||||
},
|
||||
}) }) },
|
||||
})
|
||||
Volcanos(chat.ONEXPORT, {list: [NTIP, NLOG, NCMD, NKEY, html.WIDTH, html.HEIGHT, nfs.VERSION],
|
||||
height: function(can) { return can._target.offsetHeight },
|
||||
|
Loading…
x
Reference in New Issue
Block a user