forked from x/ContextOS
opt love
This commit is contained in:
parent
4ad2b0e534
commit
b0e77165e1
@ -4,5 +4,5 @@ var version = struct {
|
|||||||
host string
|
host string
|
||||||
self int
|
self int
|
||||||
}{
|
}{
|
||||||
"2019-09-17 20:58:54", "centos", 526,
|
"2019-09-18 07:48:00", "com", 527,
|
||||||
}
|
}
|
||||||
|
@ -369,6 +369,7 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心",
|
|||||||
default:
|
default:
|
||||||
m.Confm("componet", arg[0:], func(value map[string]interface{}) {
|
m.Confm("componet", arg[0:], func(value map[string]interface{}) {
|
||||||
if kit.Format(value["type"]) == "private" && m.Option("userrole") != "root" {
|
if kit.Format(value["type"]) == "private" && m.Option("userrole") != "root" {
|
||||||
|
m.Log("warn", "%v private", arg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ func (web *WEB) Login(msg *ctx.Message, w http.ResponseWriter, r *http.Request)
|
|||||||
|
|
||||||
} else if msg.Options("relay") {
|
} else if msg.Options("relay") {
|
||||||
relay := msg.Cmd("aaa.relay", "check", msg.Option("relay"))
|
relay := msg.Cmd("aaa.relay", "check", msg.Option("relay"))
|
||||||
if relay.Appendi("count") < 1 {
|
if relay.Appendi("count") == 0 {
|
||||||
msg.Err("共享失效")
|
msg.Err("共享失效")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
fun meet "第一眼" public \
|
kit imports "导入" "" "" private "ssh.data" "import" \
|
||||||
|
text "love" name table \
|
||||||
|
text "" name file \
|
||||||
|
button "导入"
|
||||||
|
|
||||||
|
fun meets "第一眼" private \
|
||||||
text "love" name table imports plugin_table \
|
text "love" name table imports plugin_table \
|
||||||
text "date" name when \
|
text "date" name when \
|
||||||
text "" name where \
|
text "" name where \
|
||||||
@ -11,7 +16,7 @@ fun meet "第一眼" public \
|
|||||||
copy ssh.data insert _ when _ where __
|
copy ssh.data insert _ when _ where __
|
||||||
end
|
end
|
||||||
|
|
||||||
kit imports "导入" "" "" private "ssh.data" "import" \
|
fun meet "第一眼" protected "ssh.data" show \
|
||||||
text "love" name table \
|
text "love" name table imports plugin_table \
|
||||||
text "" name file \
|
button "查看" action auto
|
||||||
button "导入"
|
|
||||||
|
@ -496,7 +496,10 @@ var page = Page({check: true,
|
|||||||
page.steam.Pane.Show()
|
page.steam.Pane.Show()
|
||||||
},
|
},
|
||||||
"共享": function(event) {
|
"共享": function(event) {
|
||||||
page.login.Pane.Run(["relay", "storm", "username", kit.prompt("分享给用户"), "url", ctx.Share({
|
var user = kit.prompt("分享给用户")
|
||||||
|
if (user == null) {return}
|
||||||
|
|
||||||
|
page.login.Pane.Run(["relay", "storm", "username", user, "url", ctx.Share({
|
||||||
"river": page.river.Pane.which.get(),
|
"river": page.river.Pane.which.get(),
|
||||||
"storm": page.storm.Pane.which.get(),
|
"storm": page.storm.Pane.which.get(),
|
||||||
"layout": page.action.Pane.Layout(),
|
"layout": page.action.Pane.Layout(),
|
||||||
|
@ -564,7 +564,7 @@ function Pane(page, field) {
|
|||||||
|
|
||||||
list.push(ui.last), field.scrollBy(0, field.scrollHeight+100)
|
list.push(ui.last), field.scrollBy(0, field.scrollHeight+100)
|
||||||
key && key.length > 0 && (member[line[which]] = member[line[key[0]]] = {index:index, key:line[which]});
|
key && key.length > 0 && (member[line[which]] = member[line[key[0]]] = {index:index, key:line[which]});
|
||||||
(type == "plugin" || type == "field") && pane.Plugin(page, pane, ui.field, function(event, cmds, cbs) {
|
line.name && (type == "plugin" || type == "field") && pane.Plugin(page, pane, ui.field, function(event, cmds, cbs) {
|
||||||
typeof cb == "function" && cb(line, index, event, cmds, cbs)
|
typeof cb == "function" && cb(line, index, event, cmds, cbs)
|
||||||
})
|
})
|
||||||
return ui
|
return ui
|
||||||
|
Loading…
x
Reference in New Issue
Block a user