From c2c554b223fed83621e267c3594ceb4f1f211d74 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 12 Oct 2014 22:58:08 +0800 Subject: [PATCH] . --- conf/wide.json | 10 +++------- editor/editors.go | 3 ++- i18n/zh_CN.json | 2 +- main.go | 2 +- static/css/base.css | 2 +- 5 files changed, 8 insertions(+), 11 deletions(-) diff --git a/conf/wide.json b/conf/wide.json index 8dcc030..8b40b9f 100644 --- a/conf/wide.json +++ b/conf/wide.json @@ -15,15 +15,11 @@ "Password": "admin", "Workspace": "{pwd}/data/user_workspaces/admin", "LatestSessionContent": { - "FileTree": [ - "D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest", - "D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time", - "D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\pkg" + "FileTree": [ ], - "Files": [ - "D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go" + "Files": [ ], - "CurrentFile": "D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go" + "CurrentFile": "" } } ] diff --git a/editor/editors.go b/editor/editors.go index 0b46130..a6fe6b8 100644 --- a/editor/editors.go +++ b/editor/editors.go @@ -201,7 +201,8 @@ func GetExprInfoHandler(w http.ResponseWriter, r *http.Request) { ch := int(args["cursorCh"].(float64)) offset := getCursorOffset(code, line, ch) - glog.Infof("offset [%d]", offset) + + // glog.Infof("offset [%d]", offset) // TODO: 目前是调用 liteide_stub 工具来查找声明,后续需要重新实现 ide_stub := conf.Wide.GetIDEStub() diff --git a/i18n/zh_CN.json b/i18n/zh_CN.json index 2a15381..befd78b 100644 --- a/i18n/zh_CN.json +++ b/i18n/zh_CN.json @@ -47,4 +47,4 @@ "usages": "查找使用", "search_text": "查找文本", "restore_bottom": "底部窗口还原" -} \ No newline at end of file +} diff --git a/main.go b/main.go index 62cd886..caf0bd3 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ func init() { func loginHandler(w http.ResponseWriter, r *http.Request) { i18n.Load() - if r.Method == "GET" { + if "GET" == r.Method { // 展示登录页面 model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(r), "locale": i18n.GetLocale(r), "ver": Ver} diff --git a/static/css/base.css b/static/css/base.css index a54ccec..a21a698 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -44,4 +44,4 @@ button { .fn-none { display: none; } -/* end reset & function */ \ No newline at end of file +/* end reset & function */