🎨 重新导入
This commit is contained in:
parent
e84f994f2b
commit
47374dd8c8
|
@ -27,8 +27,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/event"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/event"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -240,7 +240,7 @@ func FixedTimeCheckEnv() {
|
|||
checkEnv() // check immediately
|
||||
|
||||
go func() {
|
||||
for _ = range time.Tick(time.Minute*7) {
|
||||
for _ = range time.Tick(time.Minute * 7) {
|
||||
checkEnv()
|
||||
}
|
||||
}()
|
||||
|
|
|
@ -27,11 +27,11 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/file"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/b3log/wide/util"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/file"
|
||||
"github.com/88250/wide/session"
|
||||
"github.com/88250/wide/util"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
|
|
|
@ -20,9 +20,9 @@ import (
|
|||
"os"
|
||||
"os/exec"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// GoFmtHandler handles request of formatting Go source code.
|
||||
|
|
|
@ -18,7 +18,7 @@ package event
|
|||
import (
|
||||
"os"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/88250/gulu"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -20,7 +20,7 @@ import (
|
|||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/88250/gulu"
|
||||
)
|
||||
|
||||
// GetZipHandler handles request of retrieving zip file.
|
||||
|
|
|
@ -24,10 +24,10 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/event"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/event"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// Logger.
|
||||
|
|
|
@ -23,7 +23,7 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/88250/gulu"
|
||||
)
|
||||
|
||||
type element struct {
|
||||
|
|
4
go.mod
4
go.mod
|
@ -1,9 +1,9 @@
|
|||
module github.com/b3log/wide
|
||||
module github.com/88250/wide
|
||||
|
||||
go 1.12
|
||||
|
||||
require (
|
||||
github.com/b3log/gulu v0.0.0-20190806034141-2b1d1b33ff3d
|
||||
github.com/88250/gulu v0.0.0-20191129115942-f593513f6ed6
|
||||
github.com/elazarl/goproxy v0.0.0-20190711103511-473e67f1d7d2 // indirect
|
||||
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 // indirect
|
||||
github.com/fsnotify/fsnotify v1.4.7
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1,5 +1,5 @@
|
|||
github.com/b3log/gulu v0.0.0-20190806034141-2b1d1b33ff3d h1:Ns7H97LVniGzx1DW2T0+eUtmuroZDo6nzjEj486w4+0=
|
||||
github.com/b3log/gulu v0.0.0-20190806034141-2b1d1b33ff3d/go.mod h1:UmyB0pe8jv1K3dZy/4UE3uCpM8zYkB4nbiIgjemuQ7A=
|
||||
github.com/88250/gulu v0.0.0-20191129115942-f593513f6ed6 h1:RZG7yVJ1ZIJAmx+cEUXs5R+saYRfnTWrVTGjflmI1zs=
|
||||
github.com/88250/gulu v0.0.0-20191129115942-f593513f6ed6/go.mod h1:a2POIziN+QFeNT4Mj7FHH2lz1HEaFlMRF6wPE0NHM4U=
|
||||
github.com/elazarl/goproxy v0.0.0-20190711103511-473e67f1d7d2 h1:aZtFdDNWY/yH86JPR2WX/PN63635VsE/f/nXNPAbYxY=
|
||||
github.com/elazarl/goproxy v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
|
||||
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 h1:dWB6v3RcOy03t/bUadywsbyrQwCqZeNIEX6M1OtSZOM=
|
||||
|
|
|
@ -22,7 +22,7 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/88250/gulu"
|
||||
)
|
||||
|
||||
// Logger.
|
||||
|
|
20
main.go
20
main.go
|
@ -29,16 +29,16 @@ import (
|
|||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/editor"
|
||||
"github.com/b3log/wide/event"
|
||||
"github.com/b3log/wide/file"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/notification"
|
||||
"github.com/b3log/wide/output"
|
||||
"github.com/b3log/wide/playground"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/editor"
|
||||
"github.com/88250/wide/event"
|
||||
"github.com/88250/wide/file"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/notification"
|
||||
"github.com/88250/wide/output"
|
||||
"github.com/88250/wide/playground"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// Logger
|
||||
|
|
|
@ -21,12 +21,12 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/event"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/b3log/wide/util"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/event"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
"github.com/88250/wide/util"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import (
|
|||
"bufio"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/b3log/gulu"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
|
@ -28,9 +27,10 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// BuildHandler handles request of building.
|
||||
|
|
|
@ -26,10 +26,10 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// CrossCompilationHandler handles request of cross compilation.
|
||||
|
|
|
@ -26,10 +26,10 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// GoInstallHandler handles request of go install.
|
||||
|
|
|
@ -25,10 +25,10 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/b3log/wide/util"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/session"
|
||||
"github.com/88250/wide/util"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
package output
|
||||
|
||||
import (
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/wide/session"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
|
|
@ -24,10 +24,10 @@ import (
|
|||
"os/exec"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// GoTestHandler handles request of go test.
|
||||
|
|
|
@ -24,10 +24,10 @@ import (
|
|||
"os/exec"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// GoVetHandler handles request of go vet.
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"url": "git://github.com/b3log/wide.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/b3log/wide/issues"
|
||||
"url": "https://github.com/88250/wide/issues"
|
||||
},
|
||||
"license": "Apache License",
|
||||
"private": true,
|
||||
|
|
|
@ -22,8 +22,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// AutocompleteHandler handles request of code autocompletion.
|
||||
|
|
|
@ -22,9 +22,9 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// BuildHandler handles request of Playground building.
|
||||
|
|
|
@ -24,9 +24,9 @@ import (
|
|||
"os/exec"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/session"
|
||||
)
|
||||
|
||||
// SaveHandler handles request of Playground code save.
|
||||
|
|
|
@ -26,11 +26,11 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/b3log/wide/util"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/88250/wide/session"
|
||||
"github.com/88250/wide/util"
|
||||
"github.com/gorilla/websocket"
|
||||
)
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
package playground
|
||||
|
||||
import (
|
||||
"github.com/b3log/wide/session"
|
||||
"github.com/88250/wide/session"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
|
|
@ -25,9 +25,9 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
"github.com/parnurzeal/gorequest"
|
||||
)
|
||||
|
||||
|
@ -59,7 +59,7 @@ func RedirectGitHubHandler(w http.ResponseWriter, r *http.Request) {
|
|||
referer := conf.Wide.Server + "__" + state
|
||||
state = gulu.Rand.String(16) + referer
|
||||
states[state] = state
|
||||
path := loginAuthURL + "?client_id=" + clientId + "&state=" + state + "&scope=public_repo,read:user,user:follow"
|
||||
path := loginAuthURL + "?client_id=" + clientId + "&state=" + state
|
||||
http.Redirect(w, r, path, http.StatusSeeOther)
|
||||
}
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/util"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/util"
|
||||
)
|
||||
|
||||
// Type of process set.
|
||||
|
|
|
@ -35,10 +35,10 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/event"
|
||||
"github.com/b3log/wide/util"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/event"
|
||||
"github.com/88250/wide/util"
|
||||
"github.com/fsnotify/fsnotify"
|
||||
"github.com/gorilla/sessions"
|
||||
"github.com/gorilla/websocket"
|
||||
|
|
|
@ -24,9 +24,9 @@ import (
|
|||
"text/template"
|
||||
"time"
|
||||
|
||||
"github.com/b3log/gulu"
|
||||
"github.com/b3log/wide/conf"
|
||||
"github.com/b3log/wide/i18n"
|
||||
"github.com/88250/gulu"
|
||||
"github.com/88250/wide/conf"
|
||||
"github.com/88250/wide/i18n"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<div class="space"></div>
|
||||
|
||||
<div class="item">
|
||||
<label><a href="https://github.com/b3log/wide/blob/master/TERMS.md" target="_blank">{{.i18n.terms}}</a> & {{.i18n.license}}{{.i18n.colon}}</label>
|
||||
<label><a href="https://github.com/88250/wide/blob/master/TERMS.md" target="_blank">{{.i18n.terms}}</a> & {{.i18n.license}}{{.i18n.colon}}</label>
|
||||
<pre class="license">
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
|
|
|
@ -302,7 +302,7 @@
|
|||
<span class="font-ico ico-book"></span>
|
||||
<span>{{.i18n.wide_doc}}</span>
|
||||
</li>
|
||||
<li onclick="window.open('https://github.com/b3log/wide/issues/new/choose')">
|
||||
<li onclick="window.open('https://github.com/88250/wide/issues/new/choose')">
|
||||
<span class="ico-report font-ico"></span>
|
||||
{{.i18n.issues}}
|
||||
</li>
|
||||
|
|
|
@ -39,15 +39,6 @@
|
|||
<div class="login__github oauth"></div>
|
||||
<img style="display: none" src="/static/images/github.gif"/>
|
||||
<button class="btn oauth">登录 GitHub 账号后即可开始使用</button>
|
||||
<div class="desc">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked />
|
||||
是否愿意在 GitHub 上收藏该<a href="https://github.com/b3log/wide" target="_blank">项目</a>、关注<a
|
||||
href="https://github.com/88250" target="_blank">开发者</a>并加入 <a
|
||||
href="https://github.com/b3log" target="_blank">B3log
|
||||
开源组织</a>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue