mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
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))
|
||||
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))
|
||||
|
@ -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"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user