forked from x/icebergs
add some
This commit is contained in:
parent
36f1fe2a7b
commit
2fe571f9d6
@ -150,7 +150,7 @@ func RenderMain(m *ice.Message) *ice.Message {
|
|||||||
}
|
}
|
||||||
m.Options(nfs.SCRIPT, ice.SRC_MAIN_JS, nfs.VERSION, RenderVersion(m))
|
m.Options(nfs.SCRIPT, ice.SRC_MAIN_JS, nfs.VERSION, RenderVersion(m))
|
||||||
m.OptionDefault(mdb.ICONS, strings.Split(m.Resource(ice.Info.NodeIcon), "?")[0]+m.Option(nfs.VERSION))
|
m.OptionDefault(mdb.ICONS, strings.Split(m.Resource(ice.Info.NodeIcon), "?")[0]+m.Option(nfs.VERSION))
|
||||||
m.OptionDefault(TITLE, kit.Select("localhost:9020", UserWeb(m).Host, m.Option(ice.MSG_USERPOD), ice.Info.Titles))
|
m.OptionDefault(TITLE, kit.Select("localhost:9020", UserWeb(m).Host, m.Option(ice.MSG_USERPOD), kit.Select("", ice.Info.Titles, ice.Info.Titles != "ContextOS")))
|
||||||
return m.RenderResult(kit.Renders(m.Cmdx(nfs.CAT, ice.SRC_MAIN_HTML), m))
|
return m.RenderResult(kit.Renders(m.Cmdx(nfs.CAT, ice.SRC_MAIN_HTML), m))
|
||||||
}
|
}
|
||||||
func RenderCmds(m *ice.Message, cmds ...ice.Any) {
|
func RenderCmds(m *ice.Message, cmds ...ice.Any) {
|
||||||
|
@ -50,6 +50,9 @@ func init() {
|
|||||||
XTERM: {Hand: func(m *ice.Message, arg ...string) {
|
XTERM: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
web.ProcessPodCmd(m, m.Option(web.SPACE), m.ActionKey(), cli.SH, arg...)
|
web.ProcessPodCmd(m, m.Option(web.SPACE), m.ActionKey(), cli.SH, arg...)
|
||||||
}},
|
}},
|
||||||
|
VIMER: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
web.ProcessPodCmd(m, m.Option(web.SPACE), m.ActionKey(), nil, arg...)
|
||||||
|
}},
|
||||||
STATUS: {Hand: func(m *ice.Message, arg ...string) {
|
STATUS: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
web.ProcessPodCmd(m, m.Option(web.SPACE), m.ActionKey(), nil, arg...)
|
web.ProcessPodCmd(m, m.Option(web.SPACE), m.ActionKey(), nil, arg...)
|
||||||
}},
|
}},
|
||||||
@ -101,7 +104,7 @@ func init() {
|
|||||||
})
|
})
|
||||||
kit.If(list[space][DIFF] != "", func() { button = append(button, STATUS) })
|
kit.If(list[space][DIFF] != "", func() { button = append(button, STATUS) })
|
||||||
kit.If(strings.Contains(list[space][VERSION], "-"), func() { button = append(button, TAG) })
|
kit.If(strings.Contains(list[space][VERSION], "-"), func() { button = append(button, TAG) })
|
||||||
button = append(button, XTERM)
|
button = append(button, VIMER, XTERM)
|
||||||
m.Push(DIFF, list[space][DIFF]).Push(mdb.STATUS, status).PushButton(button...)
|
m.Push(DIFF, list[space][DIFF]).Push(mdb.STATUS, status).PushButton(button...)
|
||||||
}
|
}
|
||||||
fields := []string{}
|
fields := []string{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user