diff --git a/frame.js b/frame.js index 4fa263b6..d3ae0cfa 100644 --- a/frame.js +++ b/frame.js @@ -79,8 +79,16 @@ Volcanos(chat.ONDAEMON, {_init: function(can, name, type, cbs) { if (can.user.is }, _list: [""], pwd: function(can, arg) { can.misc.sessionStorage(can, "can.daemon", can._wss_name = can.ondaemon._list[0] = arg[0]) }, close: function(can, msg, sub) { can.user.close() }, exit: function(can, msg, sub) { can.user.close() }, toast: function(can, sub, arg, cb) { can.core.CallFunc(can.user.toast, [sub].concat(arg)) }, - grow: function(can, msg, sub, arg) { var _can = sub._fields && sub.sup? sub.sup: sub; _can.onimport._grow(_can, msg, arg.join("")) }, - rich: function(can, msg, sub, arg) { var _can = sub._fields && sub.sup? sub.sup: sub; _can.onimport._rich(_can, msg, arg) }, + grow: function(can, msg, sub, arg) { + var _can = sub._fields && sub.sup? sub.sup: sub + if (!_can.onimport._grow) { debugger } + _can.onimport._grow(_can, msg, arg.join("")) + }, + rich: function(can, msg, sub, arg) { + var _can = sub._fields && sub.sup? sub.sup: sub + if (!_can.onimport._rich) { debugger } + _can.onimport._rich(_can, msg, arg) + }, refresh: function(can, sub) { can.base.isFunc(sub.Update) && sub.Update() }, action: function(can, msg, sub, arg) { if (arg[0] == "ctrl") { var list = [] @@ -650,7 +658,8 @@ Volcanos(chat.ONAPPEND, {_init: function(can, meta, list, cb, target, field) { }); return ui._target = target, ui }, - plugin: function(can, meta, cb, target, field) { meta = meta||{}, meta.index = meta.index||can.core.Keys(meta.ctx, meta.cmd)||ice.CAN_PLUGIN, meta._space = meta._space||can.Conf("_space") + plugin: function(can, meta, cb, target, field) { + meta = meta||{}, meta.index = meta.index||can.core.Keys(meta.ctx, meta.cmd)||ice.CAN_PLUGIN, meta._space = meta._space||can.ConfSpace() var res = {}; function _cb(sub, meta, skip) { kit.proto(res, sub), cb && cb(sub, meta, skip) } if (meta.inputs && meta.inputs.length > 0 || meta.meta) { can.onappend._plugin(can, {meta: meta.meta, list: meta.list}, meta, _cb, target, field); return res } function _plugin(_meta) { var value = can.onengine.plugin(can, _meta.index) diff --git a/plugin/local/code/inner.css b/plugin/local/code/inner.css index 80b0e1a1..d4306904 100644 --- a/plugin/local/code/inner.css +++ b/plugin/local/code/inner.css @@ -69,7 +69,9 @@ fieldset.inner.cmd>div.output>div.layout>div.plug>legend:not(:hover)>span.remove fieldset.inner>div.output>div.layout>div.layout>div.profile fieldset.xterm.story>form.option>div.item.hash input { width:120px; } div.path span.item { padding:var(--input-padding); } div.carte.cmd.float { font-size:var(--code-font-size); } div.carte.cmd.float div.item { padding:var(--input-padding); } -div.carte.path.float { font-size:var(--code-font-size); } div.carte.path.float div.item { padding:var(--input-padding); } +div.carte.path.float { font-size:var(--code-font-size); } +div.carte.path.float div.item { padding:var(--input-padding); } +div.carte.path.float div.item.private { color:var(--disable-fg-color); } div.vimer.open.float td:first-child { display:none; } div.vimer.open.float td:nth-child(2) { display:none; } div.vimer.plug.float div.item.text input { width:var(--river-width); } diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index de3cfbd8..c3006686 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -107,6 +107,15 @@ Volcanos(chat.ONIMPORT, {_init: function(can, msg, cb) { var paths = can.core.Sp carte = can.user.carte(event, can, {_style: nfs.PATH}, list, function(ev, button) { last[button] = true, carte.close() can.onimport.tabview(can, "", can.Option(nfs.FILE), can.core.Split(button, nfs.DF, nfs.DF).pop()) }) + can.onmotion.delay(can, function() { + can.page.Select(can, carte._target, html.DIV_ITEM, function(target) { + if (can.base.beginWith(target.innerText, "- ")) { + can.onappend.style(can, "private", target) + } else { + can.onappend.style(can, "public", target) + } + }) + }) }}]) }, _tabMode: function(can) {