diff --git a/frame.js b/frame.js index 54169a10..52999804 100644 --- a/frame.js +++ b/frame.js @@ -156,8 +156,12 @@ Volcanos("onengine", {help: "解析引擎", list: [], _init: function(can, meta, "nfs": {name: "文件 nfs", index: [ "nfs.cat", "nfs.dir", "nfs.tail", "nfs.trash", ]}, + "aaa": {name: "权限 aaa", index: [ - "user", "sess", "role", + "user", "sess", "role", "totp", + ]}, + "ctx": {name: "模块 ctx", index: [ + "context", "command", "config", ]}, }}, }, diff --git a/panel/Header.js b/panel/Header.js index 1b3f405f..36fee063 100644 --- a/panel/Header.js +++ b/panel/Header.js @@ -85,7 +85,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, }, _daemon: function(can, msg, target) { - can.misc.WSS(can, {type: "chrome", name: can.user.Search(can, "daemon")}, function(event, msg, cmd, arg) { if (!msg) { return } + can.misc.WSS(can, {type: "chrome", name: can.user.Search(can, "daemon")||""}, function(event, msg, cmd, arg) { if (!msg) { return } can.run(event, ["search"].concat(msg["detail"]||[]), function(msg) { msg.Reply() }) diff --git a/plugin/local/code/inner.css b/plugin/local/code/inner.css index 068d8fc0..d62a1c00 100644 --- a/plugin/local/code/inner.css +++ b/plugin/local/code/inner.css @@ -86,3 +86,13 @@ body.white fieldset.editor>div.output div.content td.text span.string { body.white fieldset.editor>div.output div.content tr { background-color:#e1f1ff00; } + +.unselectable { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select:none; + user-select: none; +} diff --git a/plugin/local/code/inner.js b/plugin/local/code/inner.js index dde1d5a0..43f69a05 100644 --- a/plugin/local/code/inner.js +++ b/plugin/local/code/inner.js @@ -186,7 +186,7 @@ Volcanos("onaction", {help: "控件交互", list: ["项目", "收藏", "搜索", appendLine: function(can, value) { var ui = can.page.Append(can, can.ui.content, [{type: "tr", list: [ - {view: ["line", "td", ++can.max], onclick: function(event) { + {view: ["line unselectable", "td", ++can.max], onclick: function(event) { can.onaction.selectLine(can, ui.tr) }, ondblclick: function(event) {