From f30bdb969699c97f1380e766c5029bcc2d99ff83 Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 8 Jun 2024 08:01:15 +0800 Subject: [PATCH] add some --- base/web/space.go | 1 + core/chat/pod.go | 1 - misc/wx/ide.shy | 1 - misc/wx/pages.go | 2 -- misc/wx/wxml.go | 11 +++++++++-- 5 files changed, 10 insertions(+), 6 deletions(-) delete mode 100644 misc/wx/ide.shy diff --git a/base/web/space.go b/base/web/space.go index 8a878535..9dd8f203 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -338,6 +338,7 @@ func init() { m.Cmd(SERVE, m.ActionKey(), arg) return } + m.Option(mdb.ICONS, "") kit.If(ice.Info.NodeMain, func(cmd string) { RenderPodCmd(m, "", cmd) }, func() { RenderMain(m) }) }}, ice.INFO: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) { diff --git a/core/chat/pod.go b/core/chat/pod.go index 8e6c6ce9..ce10a08b 100644 --- a/core/chat/pod.go +++ b/core/chat/pod.go @@ -50,7 +50,6 @@ func init() { m.Cmdy(web.SPACE, arg[0], arg[2], arg[3:]) } else { m.Options(m.Cmd(web.SPACE, arg[0]).AppendSimple()) - m.Options(mdb.ICONS, "") web.RenderPodCmd(m, arg[0], arg[2], arg[3:]) } } diff --git a/misc/wx/ide.shy b/misc/wx/ide.shy deleted file mode 100644 index 93d6e902..00000000 --- a/misc/wx/ide.shy +++ /dev/null @@ -1 +0,0 @@ -title "ide" diff --git a/misc/wx/pages.go b/misc/wx/pages.go index 4bd5302c..d7fc7e42 100644 --- a/misc/wx/pages.go +++ b/misc/wx/pages.go @@ -15,8 +15,6 @@ func init() { if len(arg[0]) == 0 || arg[0] == "" || arg[0] == chat.RIVER { web.RenderMain(m) } else { - if m.IsWeixinUA() { - } web.RenderCmd(m, kit.Select(m.Option(ctx.INDEX), m.Option(ice.CMD))) } }}, diff --git a/misc/wx/wxml.go b/misc/wx/wxml.go index 9d0a2e63..c07b99b9 100644 --- a/misc/wx/wxml.go +++ b/misc/wx/wxml.go @@ -10,7 +10,7 @@ const WXML = "wxml" func init() { Index.MergeCommands(ice.Commands{ - WXML: {Actions: code.PlugAction(code.PLUG, kit.Dict( + WXML: {Actions: ice.MergeActions(code.PlugAction(code.PLUG, kit.Dict( code.INCLUDE, code.HTML, code.KEYWORD, kit.Dict( "page", code.KEYWORD, @@ -40,6 +40,13 @@ func init() { "bindinput", code.FUNCTION, "bindchange", code.FUNCTION, ), - ))}, + )), ice.Actions{ + code.TEMPLATE: {Hand: func(m *ice.Message, arg ...string) { + m.Echo(` + + +`) + }}, + })}, }) }