From 8ff99ea568627f9e60ca41e0abe3bc97afbfa617 Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 18 Dec 2020 20:13:41 +0800 Subject: [PATCH] opt frame.js --- base/mdb/mdb.go | 2 +- base/web/share.go | 2 +- core/code/pack.go | 2 +- core/wiki/data.go | 2 +- core/wiki/word.go | 2 +- type.go | 3 --- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/base/mdb/mdb.go b/base/mdb/mdb.go index b9fd0480..01bc86a4 100644 --- a/base/mdb/mdb.go +++ b/base/mdb/mdb.go @@ -13,7 +13,7 @@ import ( ) 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 { return kit.Keys(m.Option(ice.MSG_DOMAIN), chain) diff --git a/base/web/share.go b/base/web/share.go index 28c5e0c5..054563cc 100644 --- a/base/web/share.go +++ b/base/web/share.go @@ -149,7 +149,7 @@ func init() { _share_proxy(m, arg...) }}, "/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) { if arg[0] == "order.js" && len(ice.BinPack) > 0 { diff --git a/core/code/pack.go b/core/code/pack.go index 3cb82ee9..aa6ea45a 100644 --- a/core/code/pack.go +++ b/core/code/pack.go @@ -141,7 +141,7 @@ func init() { for _, k := range []string{"lib", "pane", "plugin"} { m.Cmd(nfs.DIR, k).Table(func(index int, value map[string]string, head []string) { 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])) } }) diff --git a/core/wiki/data.go b/core/wiki/data.go index 53b91d2c..ba425484 100644 --- a/core/wiki/data.go +++ b/core/wiki/data.go @@ -15,7 +15,7 @@ const DATA = "data" func init() { Index.Merge(&ice.Context{ 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{ DATA: {Name: "data path auto", Help: "数据表格", Meta: kit.Dict( diff --git a/core/wiki/word.go b/core/wiki/word.go index 0a40d581..a2afc41f 100644 --- a/core/wiki/word.go +++ b/core/wiki/word.go @@ -456,7 +456,7 @@ func init() { _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", ), Action: map[string]*ice.Action{ web.STORY: {Name: "story", Help: "运行", Hand: func(m *ice.Message, arg ...string) { diff --git a/type.go b/type.go index acebfd2e..4e5d2718 100644 --- a/type.go +++ b/type.go @@ -1,6 +1,3 @@ -// icebergs: 后端 冰山架 挨撕不可 -// CMS: a cluster manager system - package ice import (