mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 10:12:02 +08:00
opt frame.js
This commit is contained in:
parent
0486c196ef
commit
8ff99ea568
@ -13,7 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func _file_name(m *ice.Message, arg ...string) string {
|
func _file_name(m *ice.Message, arg ...string) string {
|
||||||
return kit.Select(path.Join(m.Option(ice.MSG_LOCAL), "usr/export", path.Join(arg[:2]...), arg[2]), arg, 3)
|
return kit.Select(path.Join(m.Option(ice.MSG_LOCAL), "usr/local/export", path.Join(arg[:2]...), arg[2]), arg, 3)
|
||||||
}
|
}
|
||||||
func _domain_chain(m *ice.Message, chain string) string {
|
func _domain_chain(m *ice.Message, chain string) string {
|
||||||
return kit.Keys(m.Option(ice.MSG_DOMAIN), chain)
|
return kit.Keys(m.Option(ice.MSG_DOMAIN), chain)
|
||||||
|
@ -149,7 +149,7 @@ func init() {
|
|||||||
_share_proxy(m, arg...)
|
_share_proxy(m, arg...)
|
||||||
}},
|
}},
|
||||||
"/plugin/github.com/": {Name: "/space/", Help: "空间站", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
"/plugin/github.com/": {Name: "/space/", Help: "空间站", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
_share_repos(m, path.Join(strings.Split(cmd, "/")[2:5]...), arg[6:]...)
|
_share_repos(m, "github.com/"+arg[0]+"/"+arg[1], arg[2:]...)
|
||||||
}},
|
}},
|
||||||
"/publish/": {Name: "/publish/", Help: "发布", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
"/publish/": {Name: "/publish/", Help: "发布", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
if arg[0] == "order.js" && len(ice.BinPack) > 0 {
|
if arg[0] == "order.js" && len(ice.BinPack) > 0 {
|
||||||
|
@ -141,7 +141,7 @@ func init() {
|
|||||||
for _, k := range []string{"lib", "pane", "plugin"} {
|
for _, k := range []string{"lib", "pane", "plugin"} {
|
||||||
m.Cmd(nfs.DIR, k).Table(func(index int, value map[string]string, head []string) {
|
m.Cmd(nfs.DIR, k).Table(func(index int, value map[string]string, head []string) {
|
||||||
if strings.HasSuffix(value[kit.MDB_PATH], ".js") {
|
if strings.HasSuffix(value[kit.MDB_PATH], ".js") {
|
||||||
js.WriteString(`_can_name = "` + path.Join("/", value[kit.MDB_PATH]) + "\"\n")
|
js.WriteString(`_can_name = "` + path.Join("/", value[kit.MDB_PATH]) + "\";\n")
|
||||||
js.WriteString(m.Cmdx(nfs.CAT, value[kit.MDB_PATH]))
|
js.WriteString(m.Cmdx(nfs.CAT, value[kit.MDB_PATH]))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -15,7 +15,7 @@ const DATA = "data"
|
|||||||
func init() {
|
func init() {
|
||||||
Index.Merge(&ice.Context{
|
Index.Merge(&ice.Context{
|
||||||
Configs: map[string]*ice.Config{
|
Configs: map[string]*ice.Config{
|
||||||
DATA: {Name: DATA, Help: "数据表格", Value: kit.Data(kit.MDB_PATH, "usr/export", "regs", ".*\\.csv")},
|
DATA: {Name: DATA, Help: "数据表格", Value: kit.Data(kit.MDB_PATH, "usr/local/export", "regs", ".*\\.csv")},
|
||||||
},
|
},
|
||||||
Commands: map[string]*ice.Command{
|
Commands: map[string]*ice.Command{
|
||||||
DATA: {Name: "data path auto", Help: "数据表格", Meta: kit.Dict(
|
DATA: {Name: "data path auto", Help: "数据表格", Meta: kit.Dict(
|
||||||
|
@ -456,7 +456,7 @@ func init() {
|
|||||||
_other_show(m, arg[0], kit.Select(arg[0], arg[1]), arg[2:]...)
|
_other_show(m, arg[0], kit.Select(arg[0], arg[1]), arg[2:]...)
|
||||||
}},
|
}},
|
||||||
|
|
||||||
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",
|
"display", "/plugin/local/wiki/word.js",
|
||||||
), 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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user