forked from x/icebergs
add some
This commit is contained in:
parent
361f4ee8e9
commit
ef50bef040
@ -319,7 +319,9 @@ func init() {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
kit.If(m.Option(mdb.NAME) == "", func() { m.Sleep3s().Cmdy(ROUTE, cli.BUILD).ProcessInner() })
|
kit.If(m.Option(mdb.NAME) == "", func() {
|
||||||
|
m.Sleep("5s").Cmdy(ROUTE, cli.BUILD).ProcessInner()
|
||||||
|
})
|
||||||
}},
|
}},
|
||||||
PUBLISH: {Name: "publish name", Hand: func(m *ice.Message, arg ...string) {
|
PUBLISH: {Name: "publish name", Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Option(ice.MSG_TITLE, kit.Keys(m.Option(ice.MSG_USERPOD0), m.Option(ice.MSG_USERPOD), m.CommandKey(), m.ActionKey()))
|
m.Option(ice.MSG_TITLE, kit.Keys(m.Option(ice.MSG_USERPOD0), m.Option(ice.MSG_USERPOD), m.CommandKey(), m.ActionKey()))
|
||||||
|
@ -163,7 +163,10 @@ func _space_domain(m *ice.Message) (link string) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
func _space_exec(m *ice.Message, name string, source, target []string, c *websocket.Conn) {
|
func _space_exec(m *ice.Message, name string, source, target []string, c *websocket.Conn) {
|
||||||
switch kit.Select(cli.PWD, m.Detailv(), 0) {
|
switch kit.Select("", m.Detailv(), 0) {
|
||||||
|
case "":
|
||||||
|
m.Warn(true, ice.ErrNotValid)
|
||||||
|
return
|
||||||
case cli.PWD:
|
case cli.PWD:
|
||||||
mdb.HashModify(m, mdb.HASH, name,
|
mdb.HashModify(m, mdb.HASH, name,
|
||||||
aaa.USERNICK, m.Option(ice.MSG_USERNICK), aaa.USERNAME, m.Option(ice.MSG_USERNAME), aaa.USERROLE, m.Option(ice.MSG_USERROLE),
|
aaa.USERNICK, m.Option(ice.MSG_USERNICK), aaa.USERNAME, m.Option(ice.MSG_USERNAME), aaa.USERROLE, m.Option(ice.MSG_USERROLE),
|
||||||
|
@ -185,7 +185,7 @@ func (s relay) Dream(m *ice.Message) {
|
|||||||
m.Push(MACHINE, tcp.LOCALHOST).Push(tcp.HOST, tcp.PublishLocalhost(m.Message, tcp.LOCALHOST))
|
m.Push(MACHINE, tcp.LOCALHOST).Push(tcp.HOST, tcp.PublishLocalhost(m.Message, tcp.LOCALHOST))
|
||||||
m.Push("", kit.Dict(cli.ParseMake(_msg.Result()), ice.SPACE, ice.CONTEXTS), kit.Split("time,space,module,version,commitTime,compileTime,bootTime"))
|
m.Push("", kit.Dict(cli.ParseMake(_msg.Result()), ice.SPACE, ice.CONTEXTS), kit.Split("time,space,module,version,commitTime,compileTime,bootTime"))
|
||||||
m.Push(mdb.TYPE, web.SERVER).Push(mdb.STATUS, web.ONLINE).Push(web.LINK, web.UserHost(m.Message))
|
m.Push(mdb.TYPE, web.SERVER).Push(mdb.STATUS, web.ONLINE).Push(web.LINK, web.UserHost(m.Message))
|
||||||
m.Push(mdb.ICONS, "src/main.ico")
|
m.Push(mdb.ICONS, ice.SRC_MAIN_ICO)
|
||||||
}
|
}
|
||||||
if _msg := m.Spawn().SplitIndex(m.Cmdx(cli.SYSTEM, kit.Split(s.admin(m, web.ROUTE)))); _msg.Length() > 0 {
|
if _msg := m.Spawn().SplitIndex(m.Cmdx(cli.SYSTEM, kit.Split(s.admin(m, web.ROUTE)))); _msg.Length() > 0 {
|
||||||
m.Message.Copy(_msg.Table(func(value ice.Maps) {
|
m.Message.Copy(_msg.Table(func(value ice.Maps) {
|
||||||
@ -202,7 +202,6 @@ func (s relay) Dream(m *ice.Message) {
|
|||||||
value = kit.MergeURL2(m.Appendv(web.LINK)[index], value)
|
value = kit.MergeURL2(m.Appendv(web.LINK)[index], value)
|
||||||
} else if kit.HasPrefix(value, nfs.USR, nfs.SRC) {
|
} else if kit.HasPrefix(value, nfs.USR, nfs.SRC) {
|
||||||
value = m.Option(ice.MSG_USERHOST) + "/require/" + value
|
value = m.Option(ice.MSG_USERHOST) + "/require/" + value
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user