From 8c520527ce5bc9a69cad238f4342edd5cc2225c3 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 May 2019 11:40:12 +0800 Subject: [PATCH 1/5] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da7b0c4..3008323 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,43 @@ -# [Wide](https://github.com/b3log/wide) [![Build Status](https://img.shields.io/travis/b3log/wide.svg?style=flat)](https://travis-ci.org/b3log/wide) [![Go Report Card](https://goreportcard.com/badge/github.com/b3log/wide)](https://goreportcard.com/report/github.com/b3log/wide) [![Coverage Status](https://img.shields.io/coveralls/b3log/wide.svg?style=flat)](https://coveralls.io/r/b3log/wide) [![Apache License](https://img.shields.io/badge/license-apache2-orange.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0) [![API Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/b3log/wide) [![Download](https://img.shields.io/badge/download-~4.3K-red.svg?style=flat)](https://pan.baidu.com/s/1dD3XwOT) +

+Wide +

+一款基于 Web 的 Go 语言 IDE +

+ + + + + +
+ + + + + + +

+   +   +   + +

先试试我们搭建好的[在线服务](https://wide.b3log.org/signup),你可以在这里[下载](https://pan.baidu.com/s/1dD3XwOT)并在本地环境运行,然后邀请小伙伴们来玩吧! ## 简介 -Wide 是一个基于 **W**eb 的 Go 语言 **IDE**。 - -![](https://cloud.githubusercontent.com/assets/873584/4606377/d0ca3c2a-521b-11e4-912c-d955ab05850b.png) +Wide 是一款基于 **W**eb 的 Go 语言 **IDE**。 ## 动机 目前较为流行的 Go IDE 都有一些缺陷或遗憾: + * 文本编辑器类(vim/emacs/sublime/Atom 等):对于新手门槛太高,搭建复杂 * 插件类(goclipse、IDEA 等):需要原 IDE 支持,不够专业 * LiteIDE 界面不够 modern、goland 收费 * **缺少网络分享、嵌入网站可运行功能** -另外,Go IDE 很少,用 Go 本身开发的 IDE 更是没有,这是一个很好的尝试。关于产品定位的讨论请看[这里](https://hacpai.com/article/1438407961481)。 +另外,Go IDE 很少,用 Go 本身开发的 IDE 更是没有,这是一次很好的尝试。关于产品定位的讨论请看[这里](https://hacpai.com/article/1438407961481)。 ## 特性 From 7e62a1db3ff11127fdf2865f25bf5023c11f0877 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 May 2019 11:41:26 +0800 Subject: [PATCH 2/5] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3008323..e175fe9 100644 --- a/README.md +++ b/README.md @@ -154,4 +154,9 @@ Wide 使用 [Apache License, Version 2](https://www.apache.org/licenses/LICENSE- ---- - +## 开源项目推荐 + +* 如果你需要搭建一个个人博客系统,可以考虑使用 [Solo](https://github.com/b3log/solo) +* 如果你需要搭建一个多用户博客平台,可以考虑使用 [Pipe](https://github.com/b3log/pipe) +* 如果你需要搭建一个社区平台,可以考虑使用 [Sym](https://github.com/b3log/symphony) +* 欢迎加入我们的小众开源社区,详情请看[这里](https://hacpai.com/article/1463025124998) From 359ce01227b4d5614e8e08c893c5310f0738a159 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 May 2019 11:45:19 +0800 Subject: [PATCH 3/5] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index e46ee0e..c86fee8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ 一款基于 Web 的 Go 语言 IDE

- + @@ -22,8 +22,6 @@

-先试试我们搭建好的[在线服务](https://wide.b3log.org),你可以在这里[下载](https://pan.baidu.com/s/1dD3XwOT)并在本地环境运行,然后邀请小伙伴们来玩吧! - ## 简介 Wide 是一款基于 **W**eb 的 Go 语言 **IDE**。 From 29d4d93019ff414f6989d85095d8bd882c95e217 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 May 2019 11:57:15 +0800 Subject: [PATCH 4/5] =?UTF-8?q?:mute:=20=E5=87=8F=E5=B0=91=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session/oauthctl.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/session/oauthctl.go b/session/oauthctl.go index 47eadde..1706523 100644 --- a/session/oauthctl.go +++ b/session/oauthctl.go @@ -66,15 +66,10 @@ func RedirectGitHubHandler(w http.ResponseWriter, r *http.Request) { state := util.Rand.String(16) + referer states[state] = state path := loginAuthURL + "?client_id=" + clientId + "&state=" + state + "&scope=public_repo,read:user,user:follow" - - logger.Infof("redirect to github [" + path + "]") - http.Redirect(w, r, path, http.StatusSeeOther) } func GithubCallbackHandler(w http.ResponseWriter, r *http.Request) { - logger.Infof("Github callback [" + r.URL.String() + "]") - state := r.URL.Query().Get("state") if _, exist := states[state]; !exist { http.Error(w, "Get state param failed", http.StatusBadRequest) @@ -120,8 +115,6 @@ func GithubCallbackHandler(w http.ResponseWriter, r *http.Request) { httpSession.Values["id"] = strconv.Itoa(rand.Int()) httpSession.Options.MaxAge = conf.Wide.HTTPSessionMaxAge httpSession.Save(r, w) - - logger.Debugf("Created a HTTP session [%s] for user [%s]", httpSession.Values["id"].(string), githubId) } // GitHubUserInfo returns GitHub user info specified by the given access token. From 72e46e3e528ae1a5341486efcde81f1dfcb94332 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 17 May 2019 11:59:57 +0800 Subject: [PATCH 5/5] =?UTF-8?q?:art:=20=E7=99=BB=E5=BD=95=E9=87=8D?= =?UTF-8?q?=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session/oauthctl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/session/oauthctl.go b/session/oauthctl.go index 1706523..37997ba 100644 --- a/session/oauthctl.go +++ b/session/oauthctl.go @@ -115,6 +115,8 @@ func GithubCallbackHandler(w http.ResponseWriter, r *http.Request) { httpSession.Values["id"] = strconv.Itoa(rand.Int()) httpSession.Options.MaxAge = conf.Wide.HTTPSessionMaxAge httpSession.Save(r, w) + + http.Redirect(w, r, "/", http.StatusSeeOther) } // GitHubUserInfo returns GitHub user info specified by the given access token.