forked from x/icebergs
opt some
This commit is contained in:
parent
dd618ad60f
commit
44d802536f
@ -35,6 +35,7 @@ func init() {
|
|||||||
f.WriteString(`Volcanos.meta.pack = ` + kit.Formats(data))
|
f.WriteString(`Volcanos.meta.pack = ` + kit.Formats(data))
|
||||||
m.Echo(p)
|
m.Echo(p)
|
||||||
}
|
}
|
||||||
|
m.Cmdy("web.code.webpack")
|
||||||
}},
|
}},
|
||||||
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
m.Echo(m.Conf(HEADER, TITLE))
|
m.Echo(m.Conf(HEADER, TITLE))
|
||||||
|
@ -80,8 +80,10 @@ func _pack_icebergs(m *ice.Message, pack *os.File) {
|
|||||||
what = fmt.Sprintf("%v", b)
|
what = fmt.Sprintf("%v", b)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(what) > 0 {
|
||||||
what = strings.ReplaceAll(what, " ", ",")
|
what = strings.ReplaceAll(what, " ", ",")
|
||||||
pack.WriteString(fmt.Sprintf(` "%s": []byte{%v},`+"\n", "usr/icebergs/"+value["path"], what[1:len(what)-1]))
|
pack.WriteString(fmt.Sprintf(` "%s": []byte{%v},`+"\n", "usr/icebergs/"+value["path"], what[1:len(what)-1]))
|
||||||
|
}
|
||||||
})
|
})
|
||||||
pack.WriteString("\n")
|
pack.WriteString("\n")
|
||||||
}
|
}
|
||||||
@ -163,6 +165,7 @@ func init() {
|
|||||||
<style type="text/css">%s</style>
|
<style type="text/css">%s</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<script>Volcanos.meta.webpack = true</script>
|
||||||
<script>%s</script>
|
<script>%s</script>
|
||||||
<script>%s</script>
|
<script>%s</script>
|
||||||
<script>%s</script>
|
<script>%s</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user