forked from x/volcanos
opt some
This commit is contained in:
parent
c7e818db41
commit
af1540163e
8
frame.js
8
frame.js
@ -99,7 +99,13 @@ Volcanos(chat.ONDAEMON, {_init: function(can, name) { if (can.user.isLocalFile)
|
||||
var _sub = can.core.Value(sub, chat._OUTPUTS_CURRENT); if (_sub && _sub.onaction) { return _sub.onaction && _sub.onaction._daemon({}, _sub, arg) }
|
||||
sub.runAction({}, arg[0], arg.slice(1))
|
||||
},
|
||||
grow: function(can, msg, sub, arg) { sub.onimport._grow(sub, msg, can.page.Color(arg.join(""))) },
|
||||
grow: function(can, msg, sub, arg) {
|
||||
if (sub.onimport && sub.onimport._grow) {
|
||||
sub.onimport._grow(sub, msg, can.page.Color(arg.join("")))
|
||||
} if (sub.sup && sub.sup.onimport._grow) {
|
||||
sub.sup.onimport._grow(sub.sup, msg, can.page.Color(arg.join("")))
|
||||
}
|
||||
},
|
||||
close: function(can, msg, sub) { can.user.close() },
|
||||
exit: function(can, msg, sub) { can.user.close() },
|
||||
})
|
||||
|
@ -28,7 +28,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
||||
Volcanos(chat.ONFIGURE, {help: "索引导航",
|
||||
create: function(can, target, zone, path) {
|
||||
can.isCmdMode()? can.onappend._action(can, can.base.Obj(can._msg.Option(ice.MSG_ACTION)).concat(
|
||||
["查找", "首页", "百度", "plan", "git"], window.webview? ["录屏", "日志", "编辑器", "浏览器"]: [],
|
||||
["查找", "首页", "百度", "plan", "git", "vim"], window.webview? ["录屏", "日志", "编辑器", "浏览器"]: [],
|
||||
), target): can.onmotion.hidden(can, target.parentNode)
|
||||
},
|
||||
recent: function(can, target, zone, path) { var total = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user