From 37ee31219a83a53250e3157028709abf4af10c31 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Sat, 4 Sep 2021 15:52:37 +0800 Subject: [PATCH] opt help --- core/chat/header.go | 6 +++--- core/chat/river.go | 2 +- core/code/webpack.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/chat/header.go b/core/chat/header.go index 64c2aa2b..21ffc256 100644 --- a/core/chat/header.go +++ b/core/chat/header.go @@ -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"))) diff --git a/core/chat/river.go b/core/chat/river.go index 07ba5f3f..8035b194 100644 --- a/core/chat/river.go +++ b/core/chat/river.go @@ -63,7 +63,7 @@ func init() { RIVER: {Name: RIVER, Help: "群组", Value: kit.Data( kit.MDB_PATH, ice.USR_LOCAL_RIVER, MENUS, `["river", - ["添加", "创建群组", "添加应用", "添加工具", "添加用户", "添加设备", "创建空间"], + ["添加", "创建群组", "添加应用", "添加工具", "添加设备", "创建空间"], ["共享", "共享群组", "共享应用", "共享工具", "共享主机", "访问空间"] ]`, )}, diff --git a/core/code/webpack.go b/core/code/webpack.go index d9e280c0..7a61aaa8 100644 --- a/core/code/webpack.go +++ b/core/code/webpack.go @@ -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"))