From cb3af35de1f17034495da1f5dd1ae9ea6abef8eb Mon Sep 17 00:00:00 2001 From: shy Date: Fri, 13 Oct 2023 22:27:19 +0800 Subject: [PATCH] add some --- core/wiki/portal.go | 2 +- misc/git/repos.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/wiki/portal.go b/core/wiki/portal.go index f336f70d..b86272f7 100644 --- a/core/wiki/portal.go +++ b/core/wiki/portal.go @@ -82,7 +82,7 @@ func init() { } }}, web.DREAM_TABLES: {Hand: func(m *ice.Message, arg ...string) { - kit.Switch(m.Option(mdb.TYPE), kit.Simple(web.WORKER, web.SERVER), func() { m.PushButton(ice.Maps{PORTAL: "官网"}) }) + kit.Switch(m.Option(mdb.TYPE), kit.Simple(web.WORKER, web.SERVER), func() { m.PushButton(kit.Dict(PORTAL, "官网")) }) }}, web.DREAM_ACTION: {Hand: func(m *ice.Message, arg ...string) { web.DreamProcess(m, nil, arg...) }}, }, aaa.WhiteAction(), aaa.RoleAction()), Hand: func(m *ice.Message, arg ...string) { diff --git a/misc/git/repos.go b/misc/git/repos.go index 54b2793d..2b14458a 100644 --- a/misc/git/repos.go +++ b/misc/git/repos.go @@ -598,8 +598,9 @@ func init() { return } else if !nfs.Exists(m, path.Join(ice.USR_LOCAL_WORK, m.Option(mdb.NAME), ".git")) { return + } else { + m.PushButton(kit.Dict(m.CommandKey(), "源码")) } - m.PushButton(kit.Dict(m.CommandKey(), "源码")) }}, web.DREAM_ACTION: {Hand: func(m *ice.Message, arg ...string) { web.DreamProcess(m, []string{}, arg...) }}, }, aaa.RoleAction(REMOTE), web.DreamAction(), mdb.HashAction(mdb.SHORT, REPOS, mdb.FIELD, "time,repos,branch,version,message,origin"), mdb.ClearOnExitHashAction()), Hand: func(m *ice.Message, arg ...string) {