mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
add value
This commit is contained in:
parent
c322721957
commit
35e6b6d411
@ -109,6 +109,7 @@ func _share_action_redirect(m *ice.Message, value map[string]interface{}, share
|
||||
"title", kit.Format(value["name"]),
|
||||
"river", kit.Value(value, "extra.river"),
|
||||
"storm", kit.Value(value, "extra.storm"),
|
||||
kit.UnMarshal(kit.Format(kit.Value(value, "extra.tool.0.value"))),
|
||||
)
|
||||
return true
|
||||
}
|
||||
@ -127,6 +128,7 @@ func _share_action_list(m *ice.Message, value map[string]interface{}, river, sto
|
||||
m.Push("group", value["ctx"])
|
||||
m.Push("index", value["cmd"])
|
||||
m.Push("args", value["args"])
|
||||
m.Push("value", value["value"])
|
||||
|
||||
msg := m.Cmd(m.Space(value["pod"]), ice.CTX_COMMAND, value["ctx"], value["cmd"])
|
||||
m.Push("name", value["cmd"])
|
||||
|
@ -11,6 +11,7 @@ func _action_share_create(m *ice.Message, arg ...string) {
|
||||
arg = append(arg, "tool.0.ctx", m.Option("group"))
|
||||
arg = append(arg, "tool.0.cmd", m.Option("index"))
|
||||
arg = append(arg, "tool.0.args", m.Option("args"))
|
||||
arg = append(arg, "tool.0.value", m.Option("value"))
|
||||
arg = append(arg, "tool.0.single", "yes")
|
||||
} else {
|
||||
m.Option(ice.MSG_RIVER, arg[5])
|
||||
|
@ -24,7 +24,7 @@ func _inner_list(m *ice.Message, name string) {
|
||||
return
|
||||
}
|
||||
|
||||
m.Cmdy("nfs.dir", name, "file")
|
||||
m.Cmdy("nfs.dir", name, "file size time")
|
||||
}
|
||||
func _inner_save(m *ice.Message, name, text string) {
|
||||
if m.Cmdy(kit.Keys(strings.TrimPrefix(path.Ext(name), "."), "save"), name, text); len(m.Resultv()) > 0 {
|
||||
|
@ -1,2 +0,0 @@
|
||||
package wiki
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/nareix/joy4/av"
|
||||
"github.com/nareix/joy4/av/avutil"
|
||||
"github.com/nareix/joy4/codec/h264parser"
|
||||
"github.com/nareix/joy4/format"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -28,13 +28,8 @@ func init() {
|
||||
if streams, e := file.Streams(); m.Assert(e) {
|
||||
for _, stream := range streams {
|
||||
m.Info("what %v", kit.Formats(stream))
|
||||
|
||||
if stream.Type().IsAudio() {
|
||||
} else if stream.Type().IsVideo() {
|
||||
|
||||
m.Info("what %v", kit.Formats(stream))
|
||||
h264parser.ParseSPS(stream.RecordInfo.SPS)
|
||||
|
||||
vstream := stream.(av.VideoCodecData)
|
||||
m.Push("type", vstream.Type().String())
|
||||
m.Push("width", vstream.Width())
|
||||
|
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.13
|
||||
|
||||
require (
|
||||
github.com/gorilla/websocket v1.4.1
|
||||
github.com/nareix/joy4 v0.0.0-20200507095837-05a4ffbb5369 // indirect
|
||||
github.com/nareix/joy4 v0.0.0-20200507095837-05a4ffbb5369
|
||||
github.com/shylinux/toolkits v0.1.5
|
||||
github.com/skip2/go-qrcode v0.0.0-20191027152451-9434209cb086
|
||||
github.com/tuotoo/qrcode v0.0.0-20190222102259-ac9c44189bf2
|
||||
|
Loading…
x
Reference in New Issue
Block a user