1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-12-23 17:02:56 +08:00
parent 80ce58801f
commit 35842bd525

View File

@ -49,18 +49,11 @@ Volcanos(chat.ONACTION, {_init: function(can) {},
onunload: function(can) { can._wss && can._wss.close() }, onunload: function(can) { can._wss && can._wss.close() },
onaction_cmd: function(can) { can.onappend.style(can, html.HIDE) }, 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) }) }, 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) { ondebugs: function(can, msg) { can.runAction(msg, msg.Option(ctx.ACTION), [msg.Option(ctx.INDEX)], function(_msg) { _msg.Table(function(item) {
can.runAction(msg, msg.Option(ctx.ACTION), [msg.Option(ctx.INDEX)], function(_msg) { can.onappend._float(can, item, can.base.Obj(item.args, []), function(sub) {
_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) } 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)
}) })
}) }) }) },
},
}) })
Volcanos(chat.ONEXPORT, {list: [NTIP, NLOG, NCMD, NKEY, html.WIDTH, html.HEIGHT, nfs.VERSION], Volcanos(chat.ONEXPORT, {list: [NTIP, NLOG, NCMD, NKEY, html.WIDTH, html.HEIGHT, nfs.VERSION],
height: function(can) { return can._target.offsetHeight }, height: function(can) { return can._target.offsetHeight },