This commit is contained in:
parent
effcade295
commit
c2c554b223
|
@ -15,15 +15,11 @@
|
||||||
"Password": "admin",
|
"Password": "admin",
|
||||||
"Workspace": "{pwd}/data/user_workspaces/admin",
|
"Workspace": "{pwd}/data/user_workspaces/admin",
|
||||||
"LatestSessionContent": {
|
"LatestSessionContent": {
|
||||||
"FileTree": [
|
"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"
|
|
||||||
],
|
],
|
||||||
"Files": [
|
"Files": [
|
||||||
"D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go"
|
|
||||||
],
|
],
|
||||||
"CurrentFile": "D:\\GoGoGo\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go"
|
"CurrentFile": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -201,7 +201,8 @@ func GetExprInfoHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
ch := int(args["cursorCh"].(float64))
|
ch := int(args["cursorCh"].(float64))
|
||||||
|
|
||||||
offset := getCursorOffset(code, line, ch)
|
offset := getCursorOffset(code, line, ch)
|
||||||
glog.Infof("offset [%d]", offset)
|
|
||||||
|
// glog.Infof("offset [%d]", offset)
|
||||||
|
|
||||||
// TODO: 目前是调用 liteide_stub 工具来查找声明,后续需要重新实现
|
// TODO: 目前是调用 liteide_stub 工具来查找声明,后续需要重新实现
|
||||||
ide_stub := conf.Wide.GetIDEStub()
|
ide_stub := conf.Wide.GetIDEStub()
|
||||||
|
|
|
@ -47,4 +47,4 @@
|
||||||
"usages": "查找使用",
|
"usages": "查找使用",
|
||||||
"search_text": "查找文本",
|
"search_text": "查找文本",
|
||||||
"restore_bottom": "底部窗口还原"
|
"restore_bottom": "底部窗口还原"
|
||||||
}
|
}
|
||||||
|
|
2
main.go
2
main.go
|
@ -53,7 +53,7 @@ func init() {
|
||||||
func loginHandler(w http.ResponseWriter, r *http.Request) {
|
func loginHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
i18n.Load()
|
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}
|
model := map[string]interface{}{"conf": conf.Wide, "i18n": i18n.GetAll(r), "locale": i18n.GetLocale(r), "ver": Ver}
|
||||||
|
|
|
@ -44,4 +44,4 @@ button {
|
||||||
.fn-none {
|
.fn-none {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
/* end reset & function */
|
/* end reset & function */
|
||||||
|
|
Loading…
Reference in New Issue