diff --git a/base/web/dream.go b/base/web/dream.go index 15e46b9d..6f4e6a35 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -507,13 +507,19 @@ func init() { m.Cmd(SPACE).Table(func(value ice.Maps, index int, head []string) { kit.If(value[mdb.TYPE] == m.ActionKey(), func() { m.PushRecord(value, head...) }) }) - m.Sort(mdb.TIME, ice.STR_R) }}, SERVER: {Hand: func(m *ice.Message, arg ...string) { m.Cmd(SPACE).Table(func(value ice.Maps, index int, head []string) { kit.If(value[mdb.TYPE] == m.ActionKey(), func() { m.PushRecord(value, head...) }) }) - m.Sort(mdb.TIME, ice.STR_R) + if len(arg) > 0 { + m.Cut(arg...) + } + }}, + WORKER: {Hand: func(m *ice.Message, arg ...string) { + m.Cmd(SPACE).Table(func(value ice.Maps, index int, head []string) { + kit.If(value[mdb.TYPE] == m.ActionKey(), func() { m.PushRecord(value, head...) }) + }) }}, DOWNLOAD: {Name: "download path link", Hand: func(m *ice.Message, arg ...string) { GoToast(m, func(toast func(string, int, int)) []string { @@ -571,8 +577,9 @@ func init() { m.Sort("type,status,name", []string{aaa.LOGIN, WORKER, SERVER, ORIGIN}, []string{cli.START, cli.STOP, cli.BEGIN}, ice.STR_R) m.StatusTimeCountStats(mdb.TYPE, mdb.STATUS) ctx.DisplayTableCard(m) - kit.If(!aaa.IsTechOrRoot(m), func() { m.Options(ice.MSG_TOOLKIT, "", ice.MSG_ONLINE, ice.FALSE) }) - kit.If(!m.IsDebug(), func() { m.Options(ice.MSG_TOOLKIT, "") }) + // kit.If(!aaa.IsTechOrRoot(m), func() { m.Options(ice.MSG_TOOLKIT, "", ice.MSG_ONLINE, ice.FALSE) }) + // kit.If(!m.IsDebug(), func() { m.Options(ice.MSG_TOOLKIT, "") }) + m.Options(ice.MSG_TOOLKIT, "web.code.compose.insight") } else if arg[0] == ctx.ACTION { gdb.Event(m, DREAM_ACTION, arg) } else { diff --git a/base/web/matrix.go b/base/web/matrix.go index 9fb4701b..cdfd804e 100644 --- a/base/web/matrix.go +++ b/base/web/matrix.go @@ -119,7 +119,7 @@ func init() { }}, }, ctx.ConfAction( mdb.FIELD, "time,domain,status,type,name,text,icons,repos,binary,module,version,access", - ctx.TOOLS, kit.Simple(VERSION), ONLINE, ice.TRUE, cli.TIMEOUT, "10s", + ctx.TOOLS, kit.Simple("web.code.compose.insight", VERSION), ONLINE, ice.TRUE, cli.TIMEOUT, "10s", )), Hand: func(m *ice.Message, arg ...string) { if kit.HasPrefixList(arg, ctx.ACTION) { _matrix_action(m, arg[1], arg[2:]...)