diff --git a/page/index.css b/page/index.css index ee75cace..c434bda6 100644 --- a/page/index.css +++ b/page/index.css @@ -44,6 +44,9 @@ div.story[data-type=spark] span:hover { cursor:copy; } +.hidden { + display:none; +} select { height:25px; font-size:14px; box-shadow: 4px 4px 10px 1px #626bd0; diff --git a/panel/cmd.js b/panel/cmd.js index 7f3f6a65..b2573201 100644 --- a/panel/cmd.js +++ b/panel/cmd.js @@ -1,5 +1,6 @@ Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg, list, cb, target) { can.onmotion.float.auto(can, can._output, chat.CARTE) + can.onmotion.float.auto(can, window, chat.CARTE) can.base.isFunc(cb) && cb() }, onmain: function(can) { can._names = location.pathname diff --git a/plugin/state.js b/plugin/state.js index 6076aa58..9ad17525 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -99,11 +99,16 @@ Volcanos("onaction", {help: "交互操作", list: [ can.search(event, ["Header.onaction.share"]) }, "生成脚本": function(event, can, button) { var conf = can.Conf() - var ui = can.user.toast(can, {title: button, duration: -1, width: -300, - content: '
'+''+ + var args = (conf.index||"")+ice.SP+can.Input("", true).join(ice.SP) + var list = [ "export ctx_dev="+location.origin+"; ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp;"+ - " source $ctx_temp "+(conf.index||"")+ice.SP+can.Input("", true).join(ice.SP)+ - ''+'
', action: [cli.CLOSE], + " source $ctx_temp "+args, "ish_sys_dev_run_command "+args, + "ish_sys_dev_run_action", "ish_sys_dev_run_source", + ] + var ui = can.user.toast(can, {title: button, duration: -1, width: -300, + content: '
'+ + ''+''+list.join("
")+''+'
', + action: [cli.CLOSE], }) can.onmotion.story.auto(can, ui._target) }, diff --git a/proto.js b/proto.js index c16698aa..33add85c 100644 --- a/proto.js +++ b/proto.js @@ -267,6 +267,7 @@ Volcanos.meta._load = function(url, cb) { _can_path = url } function cmd(tool) { Volcanos({name: "chat", panels: [ + {name: "Header", help: "标题栏", pos: "hidden", state: ["time", "usernick", "avatar"]}, {name: "cmd", help: "工作台", pos: chat.MAIN, tool: tool}, ], main: {name: "cmd", list: []}, plugin: [ "/plugin/state.js",