From 989071cf66fbb90912a2d89926ce00e643d24001 Mon Sep 17 00:00:00 2001 From: shy Date: Thu, 12 Jun 2025 08:22:17 +0800 Subject: [PATCH] add some --- core/code/css.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/code/css.go b/core/code/css.go index b3d66d0e..27518e81 100644 --- a/core/code/css.go +++ b/core/code/css.go @@ -22,6 +22,16 @@ func _css_show(m *ice.Message, arg ...string) { m.EchoIFrame(m.MergePodCmd("", web.ADMIN)) return } + if cmd := ctx.GetFileCmd(path.Join(arg[2], arg[1])); cmd != "" { + if p := path.Join(arg[2], strings.Split(arg[1], "/")[0], "portal.go"); nfs.Exists(m, p) { + if _cmd := ctx.GetFileCmd(p); _cmd != "" { + if msg := m.Cmd(_cmd, "commandSelect", cmd); msg.Length() > 0 { + ctx.ProcessField(m, _cmd, kit.Simple()) + return + } + } + } + } cmd := kit.Select(ice.CAN_PLUGIN, ctx.GetFileCmd(kit.ExtChange(path.Join(arg[2], arg[1]), GO))) ctx.DisplayBaseCSS(m, require(arg[2], arg[1]), "render", "replace", ctx.INDEX, cmd, ice.POD, m.Option(ice.MSG_USERPOD)) ctx.DisplayBase(m, require(arg[2], arg[1]))