mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt some
This commit is contained in:
parent
f9cd249a7e
commit
d57610e4cd
@ -65,17 +65,12 @@ func Render(msg *ice.Message, cmd string, args ...interface{}) {
|
||||
// no output
|
||||
|
||||
default:
|
||||
msg.Set("_option")
|
||||
msg.Set("_handle")
|
||||
msg.Set("_output")
|
||||
|
||||
msg.Set("")
|
||||
msg.Set("sessid")
|
||||
msg.Set("domain")
|
||||
msg.Set("river")
|
||||
msg.Set("storm")
|
||||
msg.Set("cmds")
|
||||
msg.Set("fields")
|
||||
for _, k := range []string{
|
||||
"_option", "_handle", "_output", "",
|
||||
"sessid", "domain", "river", "storm", "cmds", "fields",
|
||||
} {
|
||||
msg.Set(k)
|
||||
}
|
||||
|
||||
if cmd != "" { // [str [arg...]]
|
||||
msg.Echo(kit.Format(cmd, args...))
|
||||
|
@ -56,14 +56,16 @@ func _pack_volcanos(m *ice.Message, pack *os.File, dir string) {
|
||||
m.Option(nfs.DIR_DEEP, "true")
|
||||
m.Option(nfs.DIR_TYPE, nfs.CAT)
|
||||
|
||||
for _, k := range []string{"favicon.ico", "proto.js", "frame.js", "index.html"} {
|
||||
for _, k := range []string{"favicon.ico", "proto.js", "frame.js"} {
|
||||
pack.WriteString(fmt.Sprintf(" \"/%s\": %s,\n",
|
||||
kit.Select("", k, k != "index.html"), _pack_file(m, path.Join(dir, k))))
|
||||
kit.Select("", k, k != "index.html"),
|
||||
_pack_file(m, path.Join(dir, k))))
|
||||
}
|
||||
for _, k := range []string{"lib", "page", "pane", "plugin"} {
|
||||
for _, k := range []string{"lib", "page", "panel", "plugin"} {
|
||||
m.Cmd(nfs.DIR, k).Table(func(index int, value map[string]string, head []string) {
|
||||
pack.WriteString(fmt.Sprintf(" \"/%s\": %s,\n",
|
||||
value[kit.MDB_PATH], _pack_file(m, path.Join(dir, value[kit.MDB_PATH]))))
|
||||
kit.Select("", value[kit.MDB_PATH], value[kit.MDB_PATH] != "page/index.html"),
|
||||
_pack_file(m, path.Join(dir, value[kit.MDB_PATH]))))
|
||||
})
|
||||
}
|
||||
pack.WriteString("\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user