mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add some
This commit is contained in:
parent
cc87ddf937
commit
264f0b1afa
@ -54,7 +54,8 @@ Volcanos(chat.ONACTION, {_init: function(can, target) { can.db.list = can.misc.S
|
||||
if (can.base.beginWith(location.pathname, "/share/")) { can._names = location.pathname }
|
||||
can.Conf(chat.TOOL)? can.onappend.layout(can, can.core.List(can.Conf(chat.TOOL), function(item, index, list) { item.type = chat.PLUGIN
|
||||
if (list.length == 1) { can.user.mod.cmd = item.index
|
||||
can.base.isIn(item.index, web.CHAT_MACOS_DESKTOP) || can.user.title(item.index)
|
||||
var pod = can.misc.Search(can, ice.POD)
|
||||
can.base.isIn(item.index, web.CHAT_MACOS_DESKTOP) || can.user.title(item.index+(pod? " "+pod: ""))
|
||||
can.onaction._onaction_cmd(can), item.mode = chat.CMD, item.opts = can.misc.Search(can)
|
||||
can.onappend.style(can, ice.CMD, document.body), can.onappend.style(can, item.index, document.body)
|
||||
} return item
|
||||
|
@ -142,7 +142,8 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb) { var paths = can.core.Sp
|
||||
function show(skip) { can._msg && can._msg.Option && can._msg.Option(nfs.LINE, can.Option(nfs.LINE)), can._msg = can.db.tabview[key]
|
||||
can.Option(can.onimport.history(can, {path: path, file: file, line: line||can.onexport.session(can, SELECT_LINE+nfs.DF+path+file)||can._msg.Option(nfs.LINE)||1}))
|
||||
can.onsyntax._init(can, can._msg, function(content) { var msg = can._msg; can.onexport.hash(can)
|
||||
can.isCmdMode() && can.onexport.title(can, (isIndex()||isSpace()? "": path)+file), can.onmotion.select(can, can.ui._tabs, html.DIV_TABS, msg._tab), can.isCmdMode() && msg._tab.scrollIntoView()
|
||||
var pod = can.misc.Search(can, ice.POD)
|
||||
can.isCmdMode() && can.onexport.title(can, (isIndex()||isSpace()? "": path)+file+(pod && path != pod? " "+pod: "")), can.onmotion.select(can, can.ui._tabs, html.DIV_TABS, msg._tab), can.isCmdMode() && msg._tab.scrollIntoView()
|
||||
can.onmotion.toggle(can, can.ui.path, true)
|
||||
if (isSpace()) {
|
||||
can.ui.path.innerHTML = can.page.Format(html.A, can.base.trimPrefix(can.misc.MergePodCmd(can, {pod: can.Option(nfs.FILE)}), location.origin))
|
||||
|
Loading…
x
Reference in New Issue
Block a user