🎨 重新导入

This commit is contained in:
Liang Ding 2019-12-01 20:21:00 +08:00
parent e84f994f2b
commit 47374dd8c8
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
32 changed files with 95 additions and 104 deletions

View File

@ -27,8 +27,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/event" "github.com/88250/wide/event"
) )
const ( const (
@ -240,7 +240,7 @@ func FixedTimeCheckEnv() {
checkEnv() // check immediately checkEnv() // check immediately
go func() { go func() {
for _ = range time.Tick(time.Minute*7) { for _ = range time.Tick(time.Minute * 7) {
checkEnv() checkEnv()
} }
}() }()

View File

@ -27,11 +27,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/file" "github.com/88250/wide/file"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
"github.com/b3log/wide/util" "github.com/88250/wide/util"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
) )

View File

@ -20,9 +20,9 @@ import (
"os" "os"
"os/exec" "os/exec"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// GoFmtHandler handles request of formatting Go source code. // GoFmtHandler handles request of formatting Go source code.

View File

@ -18,7 +18,7 @@ package event
import ( import (
"os" "os"
"github.com/b3log/gulu" "github.com/88250/gulu"
) )
const ( const (

View File

@ -20,7 +20,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"github.com/b3log/gulu" "github.com/88250/gulu"
) )
// GetZipHandler handles request of retrieving zip file. // GetZipHandler handles request of retrieving zip file.

View File

@ -24,10 +24,10 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/event" "github.com/88250/wide/event"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// Logger. // Logger.

View File

@ -23,7 +23,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
) )
type element struct { type element struct {

4
go.mod
View File

@ -1,9 +1,9 @@
module github.com/b3log/wide module github.com/88250/wide
go 1.12 go 1.12
require ( 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 v0.0.0-20190711103511-473e67f1d7d2 // indirect
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 // indirect github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 // indirect
github.com/fsnotify/fsnotify v1.4.7 github.com/fsnotify/fsnotify v1.4.7

4
go.sum
View File

@ -1,5 +1,5 @@
github.com/b3log/gulu v0.0.0-20190806034141-2b1d1b33ff3d h1:Ns7H97LVniGzx1DW2T0+eUtmuroZDo6nzjEj486w4+0= github.com/88250/gulu v0.0.0-20191129115942-f593513f6ed6 h1:RZG7yVJ1ZIJAmx+cEUXs5R+saYRfnTWrVTGjflmI1zs=
github.com/b3log/gulu v0.0.0-20190806034141-2b1d1b33ff3d/go.mod h1:UmyB0pe8jv1K3dZy/4UE3uCpM8zYkB4nbiIgjemuQ7A= 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 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 v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 h1:dWB6v3RcOy03t/bUadywsbyrQwCqZeNIEX6M1OtSZOM= github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 h1:dWB6v3RcOy03t/bUadywsbyrQwCqZeNIEX6M1OtSZOM=

View File

@ -22,7 +22,7 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
) )
// Logger. // Logger.

20
main.go
View File

@ -29,16 +29,16 @@ import (
"syscall" "syscall"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/editor" "github.com/88250/wide/editor"
"github.com/b3log/wide/event" "github.com/88250/wide/event"
"github.com/b3log/wide/file" "github.com/88250/wide/file"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/notification" "github.com/88250/wide/notification"
"github.com/b3log/wide/output" "github.com/88250/wide/output"
"github.com/b3log/wide/playground" "github.com/88250/wide/playground"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// Logger // Logger

View File

@ -21,12 +21,12 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/event" "github.com/88250/wide/event"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
"github.com/b3log/wide/util" "github.com/88250/wide/util"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
) )

View File

@ -18,7 +18,6 @@ import (
"bufio" "bufio"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/b3log/gulu"
"io" "io"
"net/http" "net/http"
"os" "os"
@ -28,9 +27,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/b3log/wide/conf" "github.com/88250/gulu"
"github.com/b3log/wide/i18n" "github.com/88250/wide/conf"
"github.com/b3log/wide/session" "github.com/88250/wide/i18n"
"github.com/88250/wide/session"
) )
// BuildHandler handles request of building. // BuildHandler handles request of building.

View File

@ -26,10 +26,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// CrossCompilationHandler handles request of cross compilation. // CrossCompilationHandler handles request of cross compilation.

View File

@ -26,10 +26,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// GoInstallHandler handles request of go install. // GoInstallHandler handles request of go install.

View File

@ -25,10 +25,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
"github.com/b3log/wide/util" "github.com/88250/wide/util"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
) )

View File

@ -15,7 +15,7 @@
package output package output
import ( import (
"github.com/b3log/wide/session" "github.com/88250/wide/session"
"net/http" "net/http"
) )

View File

@ -24,10 +24,10 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// GoTestHandler handles request of go test. // GoTestHandler handles request of go test.

View File

@ -24,10 +24,10 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// GoVetHandler handles request of go vet. // GoVetHandler handles request of go vet.

View File

@ -8,7 +8,7 @@
"url": "git://github.com/b3log/wide.git" "url": "git://github.com/b3log/wide.git"
}, },
"bugs": { "bugs": {
"url": "https://github.com/b3log/wide/issues" "url": "https://github.com/88250/wide/issues"
}, },
"license": "Apache License", "license": "Apache License",
"private": true, "private": true,

View File

@ -22,8 +22,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// AutocompleteHandler handles request of code autocompletion. // AutocompleteHandler handles request of code autocompletion.

View File

@ -22,9 +22,9 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// BuildHandler handles request of Playground building. // BuildHandler handles request of Playground building.

View File

@ -24,9 +24,9 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
) )
// SaveHandler handles request of Playground code save. // SaveHandler handles request of Playground code save.

View File

@ -26,11 +26,11 @@ import (
"strings" "strings"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/b3log/wide/session" "github.com/88250/wide/session"
"github.com/b3log/wide/util" "github.com/88250/wide/util"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
) )

View File

@ -15,7 +15,7 @@
package playground package playground
import ( import (
"github.com/b3log/wide/session" "github.com/88250/wide/session"
"net/http" "net/http"
) )

View File

@ -25,9 +25,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
"github.com/parnurzeal/gorequest" "github.com/parnurzeal/gorequest"
) )
@ -59,7 +59,7 @@ func RedirectGitHubHandler(w http.ResponseWriter, r *http.Request) {
referer := conf.Wide.Server + "__" + state referer := conf.Wide.Server + "__" + state
state = gulu.Rand.String(16) + referer state = gulu.Rand.String(16) + referer
states[state] = state 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) http.Redirect(w, r, path, http.StatusSeeOther)
} }

View File

@ -27,9 +27,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/util" "github.com/88250/wide/util"
) )
// Type of process set. // Type of process set.

View File

@ -35,10 +35,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/event" "github.com/88250/wide/event"
"github.com/b3log/wide/util" "github.com/88250/wide/util"
"github.com/fsnotify/fsnotify" "github.com/fsnotify/fsnotify"
"github.com/gorilla/sessions" "github.com/gorilla/sessions"
"github.com/gorilla/websocket" "github.com/gorilla/websocket"

View File

@ -24,9 +24,9 @@ import (
"text/template" "text/template"
"time" "time"
"github.com/b3log/gulu" "github.com/88250/gulu"
"github.com/b3log/wide/conf" "github.com/88250/wide/conf"
"github.com/b3log/wide/i18n" "github.com/88250/wide/i18n"
) )
const ( const (

View File

@ -45,7 +45,7 @@
<div class="space"></div> <div class="space"></div>
<div class="item"> <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"> <pre class="license">
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004

View File

@ -302,7 +302,7 @@
<span class="font-ico ico-book"></span> <span class="font-ico ico-book"></span>
<span>{{.i18n.wide_doc}}</span> <span>{{.i18n.wide_doc}}</span>
</li> </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> <span class="ico-report font-ico"></span>
{{.i18n.issues}} {{.i18n.issues}}
</li> </li>

View File

@ -39,15 +39,6 @@
<div class="login__github oauth"></div> <div class="login__github oauth"></div>
<img style="display: none" src="/static/images/github.gif"/> <img style="display: none" src="/static/images/github.gif"/>
<button class="btn oauth">登录 GitHub 账号后即可开始使用</button> <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> </div>
</div> </div>