From 805fe37ec85655bf312a7c2b7838df249298f42c Mon Sep 17 00:00:00 2001 From: harveyshao Date: Mon, 16 Jan 2023 22:21:00 +0800 Subject: [PATCH] opt frame.js --- base/cli/qrcode.go | 2 +- base/web/render.go | 1 + core/code/binpack.go | 2 +- misc/git/status.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/base/cli/qrcode.go b/base/cli/qrcode.go index 406335c3..66c249ac 100644 --- a/base/cli/qrcode.go +++ b/base/cli/qrcode.go @@ -131,7 +131,7 @@ func init() { if m.IsCliUA() { _qrcode_cli(m, kit.Select(kit.Select(ice.Info.Make.Domain, ice.Info.Domain), arg, 0)) } else { - m.Option(SIZE, kit.Select(kit.Format(kit.Min(480, kit.Int(m.Option(ice.MSG_HEIGHT)), kit.Int(m.Option(ice.MSG_WIDTH)))), arg, 3)) + m.Option(SIZE, kit.Select(kit.Format(kit.Max(240, kit.Min(480, kit.Int(m.Option(ice.MSG_HEIGHT)), kit.Int(m.Option(ice.MSG_WIDTH))))), arg, 3)) _qrcode_web(m, kit.Select(m.Option(ice.MSG_USERWEB), arg, 0)) m.StatusTime(mdb.LINK, kit.Select(m.Option(ice.MSG_USERWEB), arg, 0)) } diff --git a/base/web/render.go b/base/web/render.go index 25bc6f40..92472d97 100644 --- a/base/web/render.go +++ b/base/web/render.go @@ -206,6 +206,7 @@ var _cmd_template = ` volcanos + diff --git a/core/code/binpack.go b/core/code/binpack.go index 76bb218c..35c96a35 100644 --- a/core/code/binpack.go +++ b/core/code/binpack.go @@ -39,7 +39,7 @@ func _binpack_dir(m *ice.Message, w io.Writer, dir string) { } func _binpack_can(m *ice.Message, w io.Writer, dir string) { - for _, k := range []string{ice.PAGE_FAVICON_ICO, ice.PROTO_JS, ice.FRAME_JS} { + for _, k := range []string{ice.INDEX_CSS, ice.PROTO_JS, ice.FRAME_JS} { _binpack_file(m, w, path.Join(dir, k)) } for _, k := range []string{LIB, PAGE, PANEL, PLUGIN, "publish/client/nodejs/"} { diff --git a/misc/git/status.go b/misc/git/status.go index 5c34e2bd..97226108 100644 --- a/misc/git/status.go +++ b/misc/git/status.go @@ -172,7 +172,7 @@ const STATUS = "status" func init() { Index.MergeCommands(ice.Commands{ - STATUS: {Name: "status close:icon refresh:icon repos:text auto", Help: "状态机", Actions: ice.MergeActions(ice.Actions{ + STATUS: {Name: "status repos:text auto", Help: "状态机", Actions: ice.MergeActions(ice.Actions{ mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { switch arg[0] { case COMMENT: