From be0a295b524f70e7e4e12627ff985c9823bbdc05 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Oct 2024 14:45:24 +0800 Subject: [PATCH] add some --- base/web/matrix.go | 2 +- core/code/vimer.go | 2 +- misc/git/status.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base/web/matrix.go b/base/web/matrix.go index a1d71f10..9fb4701b 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(SPIDE, VERSION, STATUS), ONLINE, ice.TRUE, cli.TIMEOUT, "10s", + ctx.TOOLS, kit.Simple(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:]...) diff --git a/core/code/vimer.go b/core/code/vimer.go index 726be5fa..2a0ff314 100644 --- a/core/code/vimer.go +++ b/core/code/vimer.go @@ -164,7 +164,7 @@ func init() { m.PushButton(kit.Dict(m.CommandKey(), "编程")) }) }}, - }, web.DreamTablesAction("编程"), ctx.ConfAction(ctx.TOOLS, "xterm,compile,runtime", web.ONLINE, ice.TRUE)), Hand: func(m *ice.Message, arg ...string) { + }, web.DreamTablesAction("编程"), ctx.ConfAction(ctx.TOOLS, "compile,runtime,xterm", web.ONLINE, ice.TRUE)), Hand: func(m *ice.Message, arg ...string) { if m.Cmdy(INNER, arg); arg[0] == ctx.ACTION { return } else if len(arg) == 1 { diff --git a/misc/git/status.go b/misc/git/status.go index 23ea13f2..eb86370a 100644 --- a/misc/git/status.go +++ b/misc/git/status.go @@ -78,7 +78,7 @@ func init() { m.Cmd(CONFIGS, mdb.CREATE, "credential.helper", "store") m.ProcessClose() }}, - }, ctx.ConfAction(ctx.TOOLS, "xterm,compile"), web.DreamTablesAction(), web.DevTokenAction(web.ORIGIN, web.ORIGIN), Prefix(REPOS)), Hand: func(m *ice.Message, arg ...string) { + }, web.DreamTablesAction(), web.DevTokenAction(web.ORIGIN, web.ORIGIN), Prefix(REPOS)), Hand: func(m *ice.Message, arg ...string) { if len(arg) > 0 && arg[0] == ctx.ACTION { m.Cmdy(REPOS, arg) } else if config, err := config.LoadConfig(config.GlobalScope); err == nil && config.User.Email == "" && mdb.Config(m, aaa.EMAIL) == "" {