1
0
forked from x/icebergs
This commit is contained in:
harveyshao 2021-09-04 15:52:37 +08:00
parent 87daa0cf53
commit 37ee31219a
3 changed files with 5 additions and 5 deletions

View File

@ -69,7 +69,7 @@ const HEADER = "header"
func init() {
Index.Merge(&ice.Context{Configs: map[string]*ice.Config{
HEADER: {Name: HEADER, Help: "标题栏", Value: kit.Data(
TITLE, "shylinux.com/x/contexts", MENUS, `["header", ["setting", "black", "white", "print", "webpack", "devops"]]`,
TITLE, "shylinux.com/x/contexts", MENUS, `["header", ["setting", "black", "white", "print", "webpack", "unpack"]]`,
)},
}, Commands: map[string]*ice.Command{
"/header": {Name: "/header", Help: "标题栏", Action: map[string]*ice.Action{
@ -108,8 +108,8 @@ func init() {
code.WEBPACK: {Name: "webpack", Help: "打包页面", Hand: func(m *ice.Message, arg ...string) {
m.Cmdy(code.WEBPACK, mdb.CREATE, m.OptionSimple(kit.MDB_NAME))
}},
"devops": {Name: "devops", Help: "开发模式", Hand: func(m *ice.Message, arg ...string) {
m.Cmdy(code.WEBPACK, "devops")
"unpack": {Name: "unpack", Help: "开发模式", Hand: func(m *ice.Message, arg ...string) {
m.Cmdy(code.WEBPACK, "unpack")
}},
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Option(TRANS, kit.Format(kit.Value(c.Commands[cmd].Meta, "_trans")))

View File

@ -63,7 +63,7 @@ func init() {
RIVER: {Name: RIVER, Help: "群组", Value: kit.Data(
kit.MDB_PATH, ice.USR_LOCAL_RIVER,
MENUS, `["river",
["添加", "创建群组", "添加应用", "添加工具", "添加用户", "添加设备", "创建空间"],
["添加", "创建群组", "添加应用", "添加工具", "添加设备", "创建空间"],
["共享", "共享群组", "共享应用", "共享工具", "共享主机", "访问空间"]
]`,
)},

View File

@ -90,7 +90,7 @@ func init() {
m.Cmd(nfs.SAVE, path.Join(ice.USR_VOLCANOS, "page/cache.css"), "")
m.Cmd(nfs.SAVE, path.Join(ice.USR_VOLCANOS, "page/cache.js"), "")
}},
"devops": {Name: "devops", Help: "开发模式", Hand: func(m *ice.Message, arg ...string) {
"unpack": {Name: "unpack", Help: "开发模式", Hand: func(m *ice.Message, arg ...string) {
m.Cmd(nfs.SAVE, path.Join(ice.USR_VOLCANOS, "page/cache.js"))
m.Cmd(nfs.SAVE, path.Join(ice.USR_VOLCANOS, "page/cache.css"))
m.Cmd(nfs.COPY, _volcanos("page/cmd.css"), _volcanos("page/index.css"), _volcanos("page/cache.css"))