diff --git a/src/contexts/cli/version.go b/src/contexts/cli/version.go index a8237008..c120d22b 100644 --- a/src/contexts/cli/version.go +++ b/src/contexts/cli/version.go @@ -4,5 +4,5 @@ var version = struct { host string self int }{ - "2019-07-02 20:23:38", "ZYB-20190522USI", 85, + "2019-07-02 21:24:03", "ZYB-20190522USI", 90, } diff --git a/src/contexts/ssh/ssh.go b/src/contexts/ssh/ssh.go index f449833f..871f64da 100644 --- a/src/contexts/ssh/ssh.go +++ b/src/contexts/ssh/ssh.go @@ -206,6 +206,17 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心", map[string]interface{}{"type": "button", "value": "查看"}, }, }, + map[string]interface{}{"componet_name": "email", "componet_help": "电子邮件", + "componet_tmpl": "componet", "componet_view": "Context", "componet_init": "", + "componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "email", + "componet_args": []interface{}{}, "inputs": []interface{}{ + map[string]interface{}{"label": "收件人", "type": "text", "name": "to", "view": "long"}, + map[string]interface{}{"label": "主题", "type": "text", "name": "title", "view": "long"}, + map[string]interface{}{"type": "button", "value": "发送", "view": "clear"}, + map[string]interface{}{"type": "textarea", "name": "content", "view": "clear"}, + }, + "display": map[string]interface{}{"map": true}, + }, map[string]interface{}{"componet_name": "baidu", "componet_help": "百度地图", "componet_tmpl": "componet", "componet_view": "Context", "componet_init": "", "componet_type": "public", "componet_ctx": "aaa", "componet_cmd": "location", diff --git a/usr/librarys/example.css b/usr/librarys/example.css index e913b5d9..364103ef 100644 --- a/usr/librarys/example.css +++ b/usr/librarys/example.css @@ -30,6 +30,9 @@ fieldset>form.option div.cmd input.args { background-color: black; width:160px; } +fieldset>form.option div.clear { + clear:both; +} fieldset>form.option div.long input.args { width:320px; } diff --git a/usr/librarys/example.js b/usr/librarys/example.js index 1580ade6..584f3345 100644 --- a/usr/librarys/example.js +++ b/usr/librarys/example.js @@ -612,6 +612,12 @@ function Plugin(page, pane, field) { plugin.Check(action) } + case "textarea": + if (item.type == "textarea") { + input.type = "textarea" + item.style = "width:600px;height:300px" + } + default: if (item.type == "text") { item.onclick = function(event) {