From 3c405bb0086e0bae57d1505734936a5a32507f55 Mon Sep 17 00:00:00 2001 From: shaoying Date: Mon, 4 May 2020 08:11:26 +0800 Subject: [PATCH] opt some --- base/web/web.go | 9 +++++++-- core/chat/chat.go | 9 ++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/base/web/web.go b/base/web/web.go index 5fb217b6..5da15243 100644 --- a/base/web/web.go +++ b/base/web/web.go @@ -449,6 +449,8 @@ var Index = &ice.Context{Name: "web", Help: "网络模块", Configs: map[string]*ice.Config{ ice.WEB_SPIDE: {Name: "spide", Help: "蜘蛛侠", Value: kit.Data(kit.MDB_SHORT, "client.name")}, ice.WEB_SERVE: {Name: "serve", Help: "服务器", Value: kit.Data( + "title", "github.com/shylinux/contexts", + "legal", `shylinuxc@gmail.com`, "page", kit.Dict( "index", "usr/volcanos/page/index.html", "share", "usr/volcanos/page/share.html", @@ -458,7 +460,7 @@ var Index = &ice.Context{Name: "web", Help: "网络模块", ), "volcanos", kit.Dict("path", "usr/volcanos", "branch", "master", "repos", "https://github.com/shylinux/volcanos", - "require", "usr/local", + "require", ".ish/pluged", "refresh", "5", ), "template", kit.Dict("path", "usr/template", "list", []interface{}{ @@ -488,7 +490,10 @@ var Index = &ice.Context{Name: "web", Help: "网络模块", "head", kit.Data(kit.MDB_SHORT, "story"), "mime", kit.Dict("md", "txt"), )}, - ice.WEB_SHARE: {Name: "share", Help: "共享链", Value: kit.Data("index", "usr/volcanos/share.html", "template", share_template)}, + ice.WEB_SHARE: {Name: "share", Help: "共享链", Value: kit.Data( + "index", "usr/volcanos/share.html", + "template", share_template, + )}, ice.WEB_ROUTE: {Name: "route", Help: "路由", Value: kit.Data(kit.MDB_SHORT, kit.MDB_NAME)}, ice.WEB_PROXY: {Name: "proxy", Help: "代理", Value: kit.Data(kit.MDB_SHORT, "proxy")}, diff --git a/core/chat/chat.go b/core/chat/chat.go index fe6fb307..04d3181e 100644 --- a/core/chat/chat.go +++ b/core/chat/chat.go @@ -308,7 +308,7 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心", }}, "/storm": {Name: "/storm", Help: "暴风雨", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { if m.Warn(m.Option(ice.MSG_RIVER) == "", "not join") { - m.Render("status", 402, "not join") + // m.Render("status", 402, "not join") return } @@ -404,18 +404,17 @@ var Index = &ice.Context{Name: "chat", Help: "聊天中心", }}, "/header": {Name: "/header", Help: "标题栏", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { - m.Echo(m.Conf(ice.WEB_SHARE, "meta.repos")) + m.Echo(m.Conf(ice.WEB_SERVE, "meta.title")) }}, "/footer": {Name: "/footer", Help: "状态栏", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { - m.Echo(m.Conf(ice.WEB_SHARE, "meta.email")) - m.Echo(m.Conf(ice.WEB_SHARE, "meta.legal")) + m.Echo(m.Conf(ice.WEB_SERVE, "meta.legal")) }}, "/target": {Name: "/target", Help: "对话框", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}}, "/source": {Name: "/source", Help: "输入框", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}}, "/action": {Name: "/action", Help: "工作台", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { if m.Warn(m.Option(ice.MSG_RIVER) == "" || m.Option(ice.MSG_STORM) == "", "not join") { - m.Render("status", 402, "not join") + // m.Render("status", 402, "not join") return }