mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 09:14:06 +08:00
opt some
This commit is contained in:
parent
3ec543539f
commit
f104e1a3c4
@ -27,7 +27,7 @@ Volcanos(chat.ONIMPORT, {help: "导入数据", _init: function(can, msg, cb, tar
|
|||||||
}, [""])
|
}, [""])
|
||||||
Volcanos(chat.ONFIGURE, {help: "索引导航",
|
Volcanos(chat.ONFIGURE, {help: "索引导航",
|
||||||
create: function(can, target, zone, path) {
|
create: function(can, target, zone, path) {
|
||||||
can.isCmdMode()? can.onappend._action(can, can.base.Obj(can._msg.Option(ice.MSG_ACTION)).concat(window.webview? ["日志", "编辑器", "浏览器"]: []), target): can.onmotion.hidden(can, target.parentNode)
|
can.isCmdMode()? can.onappend._action(can, can.base.Obj(can._msg.Option(ice.MSG_ACTION)).concat(window.webview? ["日志", "录屏", "编辑器", "浏览器"]: []), target): can.onmotion.hidden(can, target.parentNode)
|
||||||
},
|
},
|
||||||
recent: function(can, target, zone, path) { var total = 0
|
recent: function(can, target, zone, path) { var total = 0
|
||||||
can.runAction(can.request({}), code.FAVOR, ["_vimer"], function(msg) {
|
can.runAction(can.request({}), code.FAVOR, ["_vimer"], function(msg) {
|
||||||
@ -324,6 +324,9 @@ Volcanos(chat.ONACTION, {help: "控件交互",
|
|||||||
"日志": function(event, can) {
|
"日志": function(event, can) {
|
||||||
window.opencmd("cd ~/contexts; tail -f var/log/bench.log")
|
window.opencmd("cd ~/contexts; tail -f var/log/bench.log")
|
||||||
},
|
},
|
||||||
|
"录屏": function(event, can) {
|
||||||
|
window.openapp("QuickTime Player")
|
||||||
|
},
|
||||||
"编辑器": function(event, can) {
|
"编辑器": function(event, can) {
|
||||||
window.opencmd("cd ~/contexts; vim +"+can.Option(nfs.LINE)+" "+can.Option(nfs.PATH)+can.Option(nfs.FILE))
|
window.opencmd("cd ~/contexts; vim +"+can.Option(nfs.LINE)+" "+can.Option(nfs.PATH)+can.Option(nfs.FILE))
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user