mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add some
This commit is contained in:
parent
56bfde1aa5
commit
c1b9b86330
@ -405,6 +405,9 @@ func init() {
|
||||
mdb.SHORT, mdb.NAME, mdb.FIELD, "time,name,icon,repos,binary,template,restart", ctx.TOOLS, kit.Simple(STORE, SPIDE, ROUTE),
|
||||
html.BUTTON, kit.JoinWord(PORTAL, ADMIN, DESKTOP, WIKI_WORD, STATUS, VIMER, XTERM, COMPILE),
|
||||
)), Hand: func(m *ice.Message, arg ...string) {
|
||||
if ice.Info.NodeType == WORKER {
|
||||
return
|
||||
}
|
||||
if len(arg) == 0 {
|
||||
_dream_list(m).RewriteAppend(func(value, key string, index int) string {
|
||||
if key == mdb.ICON {
|
||||
|
@ -37,22 +37,31 @@ func init() {
|
||||
ctx.ProcessField(m, CHAT_IFRAME, S(m.Option(mdb.NAME)), arg...)
|
||||
}},
|
||||
OPEN: {Hand: func(m *ice.Message, arg ...string) {
|
||||
if !kit.HasPrefixList(arg, ctx.RUN) {
|
||||
defer m.Push(TITLE, m.Option(mdb.NAME))
|
||||
}
|
||||
ctx.ProcessField(m, CHAT_IFRAME, S(m.Option(mdb.NAME)), arg...)
|
||||
kit.If(!kit.HasPrefixList(arg, ctx.RUN), func() { m.Push(TITLE, m.Option(mdb.NAME)) })
|
||||
}},
|
||||
PORTAL: {Hand: func(m *ice.Message, arg ...string) {
|
||||
if !kit.HasPrefixList(arg, ctx.RUN) {
|
||||
defer m.Push(TITLE, m.Option(mdb.NAME))
|
||||
}
|
||||
ctx.ProcessField(m, CHAT_IFRAME, m.Option(ORIGIN)+S(m.Option(mdb.NAME))+C(PORTAL), arg...)
|
||||
kit.If(!kit.HasPrefixList(arg, ctx.RUN), func() { m.Push(TITLE, m.Option(mdb.NAME)) })
|
||||
}},
|
||||
}, ctx.ConfAction(ctx.TOOLS, DREAM)), Hand: func(m *ice.Message, arg ...string) {
|
||||
if ice.Info.NodeType == WORKER {
|
||||
return
|
||||
}
|
||||
if len(arg) == 0 {
|
||||
m.Cmd(SPIDE, arg, kit.Dict(ice.MSG_FIELDS, "time,client.type,client.name,client.origin")).Table(func(value ice.Maps) {
|
||||
if value[CLIENT_TYPE] == nfs.REPOS && value[CLIENT_NAME] != ice.OPS {
|
||||
m.Push(mdb.NAME, value[CLIENT_NAME])
|
||||
}
|
||||
})
|
||||
m.Action(html.FILTER, mdb.CREATE).Display("")
|
||||
ctx.Toolkit(m)
|
||||
if ctx.Toolkit(m.Display("")); ice.Info.NodeType == WORKER {
|
||||
return
|
||||
}
|
||||
m.Action(html.FILTER, mdb.CREATE)
|
||||
} else {
|
||||
origin := SpideOrigin(m, arg[0])
|
||||
list := m.Spawn(ice.Maps{ice.MSG_FIELDS: ""}).CmdMap(DREAM, mdb.NAME)
|
||||
@ -61,8 +70,7 @@ func init() {
|
||||
return
|
||||
}
|
||||
m.Push("", value, kit.Split("time,name,icon,repos,binary,module,version"))
|
||||
m.Push(mdb.TEXT, value[nfs.REPOS])
|
||||
m.Push(ORIGIN, origin)
|
||||
m.Push(mdb.TEXT, value[nfs.REPOS]).Push(ORIGIN, origin)
|
||||
if _, ok := list[value[mdb.NAME]]; ok {
|
||||
m.PushButton(OPEN, PORTAL)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user