1
0
forked from x/icebergs

opt frame.js

This commit is contained in:
harveyshao 2023-01-16 22:21:00 +08:00
parent 7bf0bd877c
commit 805fe37ec8
4 changed files with 4 additions and 3 deletions

View File

@ -131,7 +131,7 @@ func init() {
if m.IsCliUA() { if m.IsCliUA() {
_qrcode_cli(m, kit.Select(kit.Select(ice.Info.Make.Domain, ice.Info.Domain), arg, 0)) _qrcode_cli(m, kit.Select(kit.Select(ice.Info.Make.Domain, ice.Info.Domain), arg, 0))
} else { } 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)) _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)) m.StatusTime(mdb.LINK, kit.Select(m.Option(ice.MSG_USERWEB), arg, 0))
} }

View File

@ -206,6 +206,7 @@ var _cmd_template = `<!DOCTYPE html>
<meta name="viewport" content="width=device-width,initial-scale=0.8,maximum-scale=0.8,user-scalable=no"> <meta name="viewport" content="width=device-width,initial-scale=0.8,maximum-scale=0.8,user-scalable=no">
<meta charset="utf-8"><title>volcanos</title> <meta charset="utf-8"><title>volcanos</title>
<link href="/page/can.css{{.version}}" rel="stylesheet"> <link href="/page/can.css{{.version}}" rel="stylesheet">
<link href="/page/favicon.ico" rel="shortcut icon" type="image/ico">
</head> </head>
<body> <body>
<script>_version = "{{.version}}"</script> <script>_version = "{{.version}}"</script>

View File

@ -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) { 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)) _binpack_file(m, w, path.Join(dir, k))
} }
for _, k := range []string{LIB, PAGE, PANEL, PLUGIN, "publish/client/nodejs/"} { for _, k := range []string{LIB, PAGE, PANEL, PLUGIN, "publish/client/nodejs/"} {

View File

@ -172,7 +172,7 @@ const STATUS = "status"
func init() { func init() {
Index.MergeCommands(ice.Commands{ 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) { mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) {
switch arg[0] { switch arg[0] {
case COMMENT: case COMMENT: