1
0
forked from x/volcanos
This commit is contained in:
harveyshao 2022-10-29 12:56:54 +08:00
parent c7e818db41
commit af1540163e
2 changed files with 8 additions and 2 deletions

View File

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

View File

@ -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