1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-27 01:48:27 +08:00

opt draw.js

This commit is contained in:
harveyshao 2022-07-05 23:49:52 +08:00
parent 7d388597eb
commit 6da7784838
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ func _runtime_hostinfo(m *ice.Message) {
m.Push("uptime", kit.Split(m.Cmdx(SYSTEM, "uptime"), ice.FS)[0]) m.Push("uptime", kit.Split(m.Cmdx(SYSTEM, "uptime"), ice.FS)[0])
} }
func _runtime_diskinfo(m *ice.Message) { func _runtime_diskinfo(m *ice.Message) {
m.Spawn().Split(m.Cmdx(SYSTEM, "df", "-h"), "", ice.SP, ice.NL).Table(func(index int, value map[string]string, head []string) { m.Spawn().Split(kit.Replace(m.Cmdx(SYSTEM, "df", "-h"), "Mounted on", "Mountedon"), "", ice.SP, ice.NL).Table(func(index int, value map[string]string, head []string) {
if strings.HasPrefix(value["Filesystem"], "/dev") { if strings.HasPrefix(value["Filesystem"], "/dev") {
m.Push("", value, head) m.Push("", value, head)
} }

View File

@ -32,8 +32,8 @@ func init() {
}}, }},
}, Configs: map[string]*ice.Config{ }, Configs: map[string]*ice.Config{
VIDEO: {Name: "video", Help: "视频", Value: kit.Data( VIDEO: {Name: "video", Help: "视频", Value: kit.Data(
nfs.TEMPLATE, `<video {{.OptionTemplate}} title="{{.Option "text"}}" src="{{.Option "text"}}" controls></video>`,
nfs.PATH, ice.USR_LOCAL_IMAGE, nfs.PATH, ice.USR_LOCAL_IMAGE,
nfs.TEMPLATE, `<video {{.OptionTemplate}} title="{{.Option "text"}}" src="{{.Option "text"}}" controls></video>`,
)}, )},
}}) }})
} }