mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
add some
This commit is contained in:
parent
4d8a21fd54
commit
f30bdb9696
@ -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) {
|
||||
|
@ -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:])
|
||||
}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
title "ide"
|
@ -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)))
|
||||
}
|
||||
}},
|
||||
|
@ -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(`
|
||||
<import src="../../app.wxml"/>
|
||||
<view class="output"></view>
|
||||
`)
|
||||
}},
|
||||
})},
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user