mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt some
This commit is contained in:
parent
a66a4f1606
commit
db63632956
@ -22,7 +22,7 @@ kit upgrade "升级" private "ssh._route" _ "cli.upgrade" \
|
|||||||
button "升级"
|
button "升级"
|
||||||
|
|
||||||
kit missyou "任务" private "ssh._route" _ "cli.missyou" \
|
kit missyou "任务" private "ssh._route" _ "cli.missyou" \
|
||||||
text "" name pod imports plugin_pod action auto \
|
text "" name pod imports plugin_pod \
|
||||||
text "" name see imports plugin_see \
|
text "" name see imports plugin_see \
|
||||||
text "" name you view long \
|
text "" name you view long \
|
||||||
button "行动" action auto \
|
button "行动" action auto \
|
||||||
|
@ -1025,7 +1025,8 @@ function Plugin(page, pane, field, inits, runs) {
|
|||||||
kit.classList.add(item, "args")
|
kit.classList.add(item, "args")
|
||||||
break
|
break
|
||||||
case "textarea":
|
case "textarea":
|
||||||
input.type = "textarea", item.style = "height:100px;"+"width:"+(pane.target.clientWidth-30)+"px"
|
kit.AppendChild(option, "br")
|
||||||
|
input.type = "textarea", item.style = "height:"+(item.height||"50px")+";width:"+(pane.target.clientWidth-30)+"px"
|
||||||
// no break
|
// no break
|
||||||
case "text":
|
case "text":
|
||||||
item.value = value || item.value || ""
|
item.value = value || item.value || ""
|
||||||
@ -1283,8 +1284,8 @@ function Inputs(plugin, meta, item, target, option) {
|
|||||||
type == "select" && input.Event(event, {}) && plugin.Check(event, item.action == "auto"? undefined: target)
|
type == "select" && input.Event(event, {}) && plugin.Check(event, item.action == "auto"? undefined: target)
|
||||||
},
|
},
|
||||||
ondblclick: function(event) {
|
ondblclick: function(event) {
|
||||||
var txt = kit.History("txt", -1)
|
var txt = kit.History("txt", -1);
|
||||||
type == "text" && txt && (target.value = txt.data.trim())
|
(type == "text" || type == "textarea") && txt && (target.value = txt.data.trim())
|
||||||
},
|
},
|
||||||
onselect: function(event) {
|
onselect: function(event) {
|
||||||
kit.CopyText()
|
kit.CopyText()
|
||||||
@ -1408,6 +1409,10 @@ function Output(plugin, type, msg, cb, target, option) {
|
|||||||
output.onimport.meta._table(msg, msg.append) || (target.innerHTML = msg.result.join(""))
|
output.onimport.meta._table(msg, msg.append) || (target.innerHTML = msg.result.join(""))
|
||||||
kit._call(cb, [msg])
|
kit._call(cb, [msg])
|
||||||
},
|
},
|
||||||
|
code: function(msg, cb) {
|
||||||
|
target.innerHTML = "", output.onimport.meta._code(msg)
|
||||||
|
typeof cb == "function" && cb(msg)
|
||||||
|
},
|
||||||
table: function(msg, cb) {
|
table: function(msg, cb) {
|
||||||
target.innerHTML = ""
|
target.innerHTML = ""
|
||||||
output.onimport.meta._table(msg, msg.append) || output.onimport.meta._code(msg)
|
output.onimport.meta._table(msg, msg.append) || output.onimport.meta._code(msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user