mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 17:44:05 +08:00
opt draw.js
This commit is contained in:
parent
7d388597eb
commit
6da7784838
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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>`,
|
||||||
)},
|
)},
|
||||||
}})
|
}})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user