From c9cdd070a6c85e0f208e339adb71593e23a49461 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Wed, 24 Nov 2021 11:13:56 +0800 Subject: [PATCH] opt some --- lib/user.js | 2 +- plugin/state.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/user.js b/lib/user.js index 0fff521a..4e9c1ddb 100644 --- a/lib/user.js +++ b/lib/user.js @@ -74,7 +74,7 @@ Volcanos("user", {help: "用户操作", agent: { "begin": "开始", "end": "结束", "clear": "清空", "refresh": "刷新", "submit": "提交", "cancel": "取消", - "label": "标签", + "label": "标签", "exec": "执行", }[text]||text }, toast: function(can, content, title, duration, progress) { diff --git a/plugin/state.js b/plugin/state.js index 9dea8f40..1f312a82 100644 --- a/plugin/state.js +++ b/plugin/state.js @@ -102,9 +102,8 @@ Volcanos("onaction", {help: "交互操作", list: [ }, "生成脚本": function(event, can, button) { var conf = can.Conf() var args = 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+args, "ish_sys_dev_run_command "+args, - "ish_sys_dev_run_action", "ish_sys_dev_run_source", + "export ctx_dev="+location.origin+"; ctx_temp=$(mktemp); curl -fsSL $ctx_dev -o $ctx_temp;"+" source $ctx_temp "+(conf.index||"")+ice.SP+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: '
'+ @@ -112,6 +111,7 @@ Volcanos("onaction", {help: "交互操作", list: [ action: [cli.CLOSE], }) can.onmotion.story.auto(can, ui._target) + can.user.copy(event, can, list[0]) }, "保存参数": function(event, can) { var meta = can.Conf() var msg = can.request(event, {river: can.Conf(chat.RIVER), storm: can.Conf(chat.STORM), id: meta.id})