forked from x/icebergs
add some
This commit is contained in:
parent
ceb2758c3e
commit
6e05c8243e
@ -447,10 +447,14 @@ func DreamListSpide(m *ice.Message, list []string, types string, cb func(dev, or
|
|||||||
m.Cmds(DREAM).Table(func(value ice.Maps) {
|
m.Cmds(DREAM).Table(func(value ice.Maps) {
|
||||||
kit.If(value[mdb.TYPE] == types, func() { list = append(list, value[mdb.NAME]) })
|
kit.If(value[mdb.TYPE] == types, func() { list = append(list, value[mdb.NAME]) })
|
||||||
})
|
})
|
||||||
|
has := map[string]bool{}
|
||||||
GoToast(m, "", func(toast func(name string, count, total int)) []string {
|
GoToast(m, "", func(toast func(name string, count, total int)) []string {
|
||||||
kit.For(list, func(index int, dev string) {
|
kit.For(list, func(index int, dev string) {
|
||||||
toast(dev, index, len(list))
|
toast(dev, index, len(list))
|
||||||
cb(dev, m.Cmdv(SPIDE, dev, CLIENT_ORIGIN))
|
if origin := m.Cmdv(SPIDE, dev, CLIENT_ORIGIN); !has[origin] {
|
||||||
|
has[origin] = true
|
||||||
|
cb(dev, origin)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
|
|
||||||
func _js_show(m *ice.Message, arg ...string) {
|
func _js_show(m *ice.Message, arg ...string) {
|
||||||
if arg[1] == MAIN_JS {
|
if arg[1] == MAIN_JS {
|
||||||
ctx.ProcessField(m, web.CHAT_IFRAME, kit.Simple(m.MergePodCmd("", web.ADMIN)))
|
m.EchoIFrame(m.MergePodCmd("", web.ADMIN))
|
||||||
} else if arg[2] == ice.USR_VOLCANOS {
|
} else if arg[2] == ice.USR_VOLCANOS {
|
||||||
if strings.HasPrefix(arg[1], "publish/client/mp/") {
|
if strings.HasPrefix(arg[1], "publish/client/mp/") {
|
||||||
ctx.ProcessField(m, "web.chat.wx.ide", nil)
|
ctx.ProcessField(m, "web.chat.wx.ide", nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user