1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
shylinux 2020-08-10 11:55:20 +08:00
parent dd618ad60f
commit 44d802536f
2 changed files with 10 additions and 6 deletions

View File

@ -35,6 +35,7 @@ func init() {
f.WriteString(`Volcanos.meta.pack = ` + kit.Formats(data))
m.Echo(p)
}
m.Cmdy("web.code.webpack")
}},
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Echo(m.Conf(HEADER, TITLE))

View File

@ -80,8 +80,10 @@ func _pack_icebergs(m *ice.Message, pack *os.File) {
what = fmt.Sprintf("%v", b)
}
}
what = strings.ReplaceAll(what, " ", ",")
pack.WriteString(fmt.Sprintf(` "%s": []byte{%v},`+"\n", "usr/icebergs/"+value["path"], what[1:len(what)-1]))
if len(what) > 0 {
what = strings.ReplaceAll(what, " ", ",")
pack.WriteString(fmt.Sprintf(` "%s": []byte{%v},`+"\n", "usr/icebergs/"+value["path"], what[1:len(what)-1]))
}
})
pack.WriteString("\n")
}
@ -163,10 +165,11 @@ func init() {
<style type="text/css">%s</style>
</head>
<body>
<script>%s</script>
<script>%s</script>
<script>%s</script>
<script>%s</script>
<script>Volcanos.meta.webpack = true</script>
<script>%s</script>
<script>%s</script>
<script>%s</script>
<script>%s</script>
</body>
`,
m.Cmdx(nfs.CAT, "usr/volcanos/cache.css"),