mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +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),
|
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),
|
html.BUTTON, kit.JoinWord(PORTAL, ADMIN, DESKTOP, WIKI_WORD, STATUS, VIMER, XTERM, COMPILE),
|
||||||
)), Hand: func(m *ice.Message, arg ...string) {
|
)), Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
if ice.Info.NodeType == WORKER {
|
||||||
|
return
|
||||||
|
}
|
||||||
if len(arg) == 0 {
|
if len(arg) == 0 {
|
||||||
_dream_list(m).RewriteAppend(func(value, key string, index int) string {
|
_dream_list(m).RewriteAppend(func(value, key string, index int) string {
|
||||||
if key == mdb.ICON {
|
if key == mdb.ICON {
|
||||||
|
@ -37,22 +37,31 @@ func init() {
|
|||||||
ctx.ProcessField(m, CHAT_IFRAME, S(m.Option(mdb.NAME)), arg...)
|
ctx.ProcessField(m, CHAT_IFRAME, S(m.Option(mdb.NAME)), arg...)
|
||||||
}},
|
}},
|
||||||
OPEN: {Hand: func(m *ice.Message, arg ...string) {
|
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...)
|
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) {
|
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...)
|
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) {
|
}, ctx.ConfAction(ctx.TOOLS, DREAM)), Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
if ice.Info.NodeType == WORKER {
|
||||||
|
return
|
||||||
|
}
|
||||||
if len(arg) == 0 {
|
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) {
|
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 {
|
if value[CLIENT_TYPE] == nfs.REPOS && value[CLIENT_NAME] != ice.OPS {
|
||||||
m.Push(mdb.NAME, value[CLIENT_NAME])
|
m.Push(mdb.NAME, value[CLIENT_NAME])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
m.Action(html.FILTER, mdb.CREATE).Display("")
|
if ctx.Toolkit(m.Display("")); ice.Info.NodeType == WORKER {
|
||||||
ctx.Toolkit(m)
|
return
|
||||||
|
}
|
||||||
|
m.Action(html.FILTER, mdb.CREATE)
|
||||||
} else {
|
} else {
|
||||||
origin := SpideOrigin(m, arg[0])
|
origin := SpideOrigin(m, arg[0])
|
||||||
list := m.Spawn(ice.Maps{ice.MSG_FIELDS: ""}).CmdMap(DREAM, mdb.NAME)
|
list := m.Spawn(ice.Maps{ice.MSG_FIELDS: ""}).CmdMap(DREAM, mdb.NAME)
|
||||||
@ -61,8 +70,7 @@ func init() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
m.Push("", value, kit.Split("time,name,icon,repos,binary,module,version"))
|
m.Push("", value, kit.Split("time,name,icon,repos,binary,module,version"))
|
||||||
m.Push(mdb.TEXT, value[nfs.REPOS])
|
m.Push(mdb.TEXT, value[nfs.REPOS]).Push(ORIGIN, origin)
|
||||||
m.Push(ORIGIN, origin)
|
|
||||||
if _, ok := list[value[mdb.NAME]]; ok {
|
if _, ok := list[value[mdb.NAME]]; ok {
|
||||||
m.PushButton(OPEN, PORTAL)
|
m.PushButton(OPEN, PORTAL)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user