diff --git a/core/code/xterm.go b/core/code/xterm.go index fea2a010..6b1bfc54 100644 --- a/core/code/xterm.go +++ b/core/code/xterm.go @@ -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]) }) diff --git a/core/wiki/portal.js b/core/wiki/portal.js index 4acf614b..f50f868f 100644 --- a/core/wiki/portal.js +++ b/core/wiki/portal.js @@ -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, {