mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt some
This commit is contained in:
parent
83df21cb4c
commit
92154621ce
@ -90,6 +90,21 @@ func init() {
|
|||||||
SPIDE: {Name: SPIDE, Help: "蜘蛛侠", Value: kit.Data(kit.MDB_SHORT, "client.name")},
|
SPIDE: {Name: SPIDE, Help: "蜘蛛侠", Value: kit.Data(kit.MDB_SHORT, "client.name")},
|
||||||
},
|
},
|
||||||
Commands: map[string]*ice.Command{
|
Commands: map[string]*ice.Command{
|
||||||
|
SPIDE_GET: {Name: "GET url key value 执行:button", Help: "蜘蛛侠", Action: map[string]*ice.Action{
|
||||||
|
mdb.REMOVE: {Name: "remove", Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
m.Cmdy(mdb.DELETE, SPIDE, "", mdb.HASH, "client.name", m.Option("client.name"))
|
||||||
|
}},
|
||||||
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
|
m.Echo(kit.Formats(kit.UnMarshal(m.Cmdx(SPIDE, SPIDE_DEV, SPIDE_RAW, SPIDE_GET, arg[0], arg[1:]))))
|
||||||
|
}},
|
||||||
|
SPIDE_POST: {Name: "POST url key value 执行:button", Help: "蜘蛛侠", Action: map[string]*ice.Action{
|
||||||
|
mdb.REMOVE: {Name: "remove", Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
m.Cmdy(mdb.DELETE, SPIDE, "", mdb.HASH, "client.name", m.Option("client.name"))
|
||||||
|
}},
|
||||||
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
|
m.Echo(kit.Formats(kit.UnMarshal(m.Cmdx(SPIDE, SPIDE_DEV, SPIDE_RAW, SPIDE_POST, arg[0], SPIDE_JSON, arg[1:]))))
|
||||||
|
}},
|
||||||
|
|
||||||
SPIDE: {Name: "spide client.name action=raw,msg,save,cache method=GET,PUT,POST,DELETE url format=form,part,json,data,file arg 执行:button create", Help: "蜘蛛侠", Action: map[string]*ice.Action{
|
SPIDE: {Name: "spide client.name action=raw,msg,save,cache method=GET,PUT,POST,DELETE url format=form,part,json,data,file arg 执行:button create", Help: "蜘蛛侠", Action: map[string]*ice.Action{
|
||||||
mdb.CREATE: {Name: "create name address", Help: "添加", Hand: func(m *ice.Message, arg ...string) {
|
mdb.CREATE: {Name: "create name address", Help: "添加", Hand: func(m *ice.Message, arg ...string) {
|
||||||
if arg[0] != "name" {
|
if arg[0] != "name" {
|
||||||
|
@ -12,12 +12,12 @@ func init() {
|
|||||||
Index.Merge(&ice.Context{
|
Index.Merge(&ice.Context{
|
||||||
Configs: map[string]*ice.Config{
|
Configs: map[string]*ice.Config{
|
||||||
FEEL: {Name: FEEL, Help: "影音媒体", Value: kit.Data(
|
FEEL: {Name: FEEL, Help: "影音媒体", Value: kit.Data(
|
||||||
kit.MDB_PATH, "usr/image", "regs", ".*.(png|PNG|jpg|JPG|jpeg|mp4|m4v|MOV)",
|
kit.MDB_PATH, "usr/local/image", "regs", ".*.(png|PNG|jpg|JPG|jpeg|mp4|m4v|MOV)",
|
||||||
)},
|
)},
|
||||||
},
|
},
|
||||||
Commands: map[string]*ice.Command{
|
Commands: map[string]*ice.Command{
|
||||||
FEEL: {Name: "feel path auto upload 上一页 下一页 参数", Help: "影音媒体", Meta: kit.Dict(
|
FEEL: {Name: "feel path auto upload 上一页 下一页 参数", Help: "影音媒体", Meta: kit.Dict(
|
||||||
"display", "/plugin/local/wiki/feel.js",
|
kit.MDB_DISPLAY, "/plugin/local/wiki/feel.js",
|
||||||
), Action: map[string]*ice.Action{
|
), Action: map[string]*ice.Action{
|
||||||
web.UPLOAD: {Name: "upload", Help: "上传", Hand: func(m *ice.Message, arg ...string) {
|
web.UPLOAD: {Name: "upload", Help: "上传", Hand: func(m *ice.Message, arg ...string) {
|
||||||
_wiki_upload(m, FEEL, m.Option(kit.MDB_PATH))
|
_wiki_upload(m, FEEL, m.Option(kit.MDB_PATH))
|
||||||
|
@ -163,6 +163,9 @@ func _image_show(m *ice.Message, name, text string, arg ...string) {
|
|||||||
m.EchoQRCode(text)
|
m.EchoQRCode(text)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if !strings.HasPrefix(text, "http") && !strings.HasPrefix(text, "/") {
|
||||||
|
text = "/share/local/usr/local/image/" + text
|
||||||
|
}
|
||||||
|
|
||||||
_option(m, IMAGE, name, text, arg...)
|
_option(m, IMAGE, name, text, arg...)
|
||||||
m.Render(ice.RENDER_TEMPLATE, m.Conf(IMAGE, "meta.template"))
|
m.Render(ice.RENDER_TEMPLATE, m.Conf(IMAGE, "meta.template"))
|
||||||
@ -463,7 +466,7 @@ func init() {
|
|||||||
}},
|
}},
|
||||||
|
|
||||||
WORD: {Name: "word path=src/main.shy auto 演示", Help: "语言文字", Meta: kit.Dict(
|
WORD: {Name: "word path=src/main.shy auto 演示", Help: "语言文字", Meta: kit.Dict(
|
||||||
"display", "/plugin/local/wiki/word.js", "style", "word",
|
kit.MDB_DISPLAY, "/plugin/local/wiki/word.js", kit.MDB_STYLE, WORD,
|
||||||
), Action: map[string]*ice.Action{
|
), Action: map[string]*ice.Action{
|
||||||
web.STORY: {Name: "story", Help: "运行", Hand: func(m *ice.Message, arg ...string) {
|
web.STORY: {Name: "story", Help: "运行", Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(arg[0], kit.MDB_ACTION, "run", arg[1:])
|
m.Cmdy(arg[0], kit.MDB_ACTION, "run", arg[1:])
|
||||||
|
@ -63,7 +63,7 @@ var Index = &ice.Context{Name: ALPHA, Help: "英汉词典",
|
|||||||
Configs: map[string]*ice.Config{
|
Configs: map[string]*ice.Config{
|
||||||
ALPHA: {Name: ALPHA, Help: "英汉词典", Value: kit.Data(
|
ALPHA: {Name: ALPHA, Help: "英汉词典", Value: kit.Data(
|
||||||
kit.MDB_LIMIT, "50000", kit.MDB_LEAST, "1000",
|
kit.MDB_LIMIT, "50000", kit.MDB_LEAST, "1000",
|
||||||
kit.MDB_STORE, "usr/export/alpha", kit.MDB_FSIZE, "2000000",
|
kit.MDB_STORE, "usr/local/export/alpha", kit.MDB_FSIZE, "2000000",
|
||||||
kit.SSH_REPOS, "word-dict", kit.MDB_FIELD, []interface{}{"audio", "bnc", "collins", "definition", "detail", "exchange", "frq", "id", "oxford", "phonetic", "pos", "tag", "time", "translation", "word"},
|
kit.SSH_REPOS, "word-dict", kit.MDB_FIELD, []interface{}{"audio", "bnc", "collins", "definition", "detail", "exchange", "frq", "id", "oxford", "phonetic", "pos", "tag", "time", "translation", "word"},
|
||||||
)},
|
)},
|
||||||
},
|
},
|
||||||
|
@ -157,7 +157,7 @@ const INPUT = "input"
|
|||||||
var Index = &ice.Context{Name: INPUT, Help: "输入法",
|
var Index = &ice.Context{Name: INPUT, Help: "输入法",
|
||||||
Configs: map[string]*ice.Config{
|
Configs: map[string]*ice.Config{
|
||||||
INPUT: {Name: INPUT, Help: "输入法", Value: kit.Data(
|
INPUT: {Name: INPUT, Help: "输入法", Value: kit.Data(
|
||||||
kit.MDB_STORE, "usr/export/input", kit.MDB_FSIZE, "200000",
|
kit.MDB_STORE, "usr/local/export/input", kit.MDB_FSIZE, "200000",
|
||||||
kit.MDB_LIMIT, "5000", kit.MDB_LEAST, "1000",
|
kit.MDB_LIMIT, "5000", kit.MDB_LEAST, "1000",
|
||||||
kit.MDB_SHORT, "zone", "repos", "wubi-dict",
|
kit.MDB_SHORT, "zone", "repos", "wubi-dict",
|
||||||
)},
|
)},
|
||||||
|
@ -5,7 +5,7 @@ refer "" `
|
|||||||
文档 https://developers.weixin.qq.com/miniprogram/dev/api/
|
文档 https://developers.weixin.qq.com/miniprogram/dev/api/
|
||||||
源码 https://github.com/shylinux/icebergs/blob/master/misc/mp/mp.go
|
源码 https://github.com/shylinux/icebergs/blob/master/misc/mp/mp.go
|
||||||
`
|
`
|
||||||
image `/share/local/usr/image/gh_61ea404535e4_258.jpg`
|
image `gh_61ea404535e4_258.jpg`
|
||||||
|
|
||||||
chapter "应用"
|
chapter "应用"
|
||||||
field scan web.chat.scan
|
field scan web.chat.scan
|
||||||
|
@ -262,7 +262,7 @@ func FavorShow(m *ice.Message, kind string, name, text interface{}, arg ...strin
|
|||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
_EXPORT = "usr/export/web.favor/favor.csv"
|
_EXPORT = "usr/local/export/web.favor/favor.csv"
|
||||||
)
|
)
|
||||||
|
|
||||||
const FAVOR = "favor"
|
const FAVOR = "favor"
|
||||||
|
@ -5,7 +5,7 @@ refer `
|
|||||||
文档 https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html
|
文档 https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html
|
||||||
源码 https://github.com/shylinux/icebergs/blob/master/misc/wx/wx.go
|
源码 https://github.com/shylinux/icebergs/blob/master/misc/wx/wx.go
|
||||||
`
|
`
|
||||||
image `/share/local/usr/image/qrcode_for_gh_1c21ed4eb46b_258.jpg`
|
image `qrcode_for_gh_1c21ed4eb46b_258.jpg`
|
||||||
|
|
||||||
chapter "应用"
|
chapter "应用"
|
||||||
field scan web.chat.scan
|
field scan web.chat.scan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user