1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-05-28 22:42:53 +08:00
parent 745ea23b48
commit 22ccf77a66
2 changed files with 3 additions and 20 deletions

View File

@ -122,31 +122,14 @@ func init() {
}},
web.DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) {
kit.If(m.IsDebug() && aaa.IsTechOrRoot(m), func() {
// m.PushButton(cli.RUNTIME)
m.PushButton(cli.RUNTIME, kit.Dict(m.CommandKey(), m.Commands("").Help))
})
// kit.If(m.IsDebug(), func() { list = append(list, cli.RUNTIME) })
}},
web.DREAM_ACTION: {Hand: func(m *ice.Message, arg ...string) { web.DreamProcess(m, "", cli.SH, arg...) }},
}, web.DreamTablesAction(), mdb.HashAction(mdb.FIELD, "time,hash,type,name,text,path,daemon")), Hand: func(m *ice.Message, arg ...string) {
if mdb.HashSelect(m, arg...); len(arg) == 0 {
list := m.CmdMap(web.SPACE, mdb.NAME)
m.Table(func(value ice.Maps) {
if list[value[cli.DAEMON]] == nil {
m.Push(mdb.STATUS, web.OFFLINE)
} else {
m.Push(mdb.STATUS, web.ONLINE)
}
})
} else {
if mdb.HashSelect(m, arg...); len(arg) > 0 {
kit.If(m.Length() == 0, func() {
kit.If(arg[0] == cli.SH, func() {
if runtime.GOOS == cli.WINDOWS {
arg[0] = "ish"
} else {
arg[0] = cli.Shell(m)
}
})
kit.If(arg[0] == cli.SH, func() { arg[0] = kit.Select(cli.Shell(m), "ish", runtime.GOOS == cli.WINDOWS) })
arg[0] = m.Cmdx("", mdb.CREATE, arg)
mdb.HashSelect(m, arg[0])
})

View File

@ -63,7 +63,7 @@ Volcanos(chat.ONIMPORT, {
can.page.style(can, can.ui.nav, html.HEIGHT, "", html.WIDTH, can.page.width())
can.page.style(can, can.ui.main, html.HEIGHT, "", html.WIDTH, can.page.width())
}
can.core.List(can._plugins, function(sub) { sub.onimport.size(sub, can.base.Min(html.FLOAT_HEIGHT, can.ConfHeight()/2, can.ConfHeight()), sub.Conf("_width")||(can.ConfWidth()-2*padding), true) })
can.core.List(can._plugins, function(sub) { sub.onimport.size(sub, can.base.Min(html.FLOAT_HEIGHT, can.ConfHeight()/2, can.ConfHeight()), (can.ConfWidth()-2*padding), true) })
},
}, [""])
Volcanos(chat.ONACTION, {