Skip to content

Commit

Permalink
🎨 社区端域名变更 Fix #44
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 9, 2020
1 parent d7d35e7 commit 04bd3c4
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 29 deletions.
2 changes: 1 addition & 1 deletion console/mock/basic.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"basicMetaKeywords": "metaKeywords",
"basicMetaDescription": "metaDescription",
"basicNoticeBoard": "noticeBoard",
"basicFaviconURL": "https://static.hacpai.com/images/favicon.png",
"basicFaviconURL": "https://static.ld246.com/images/favicon.png",
"basicLogoURL": "https://b3logfile.com/solo-mid.png",
"basicCommentable": false
}
Expand Down
2 changes: 1 addition & 1 deletion console/mock/blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"blogURL": "http://localhost:5897/blogs/pipe",
"blogMembers": "blogMembers",
"blogAdmin": "blogAdmin",
"faviconURL": "https://static.hacpai.com/images/favicon.png",
"faviconURL": "https://static.ld246.com/images/favicon.png",
"commentable": false
}
}
2 changes: 1 addition & 1 deletion console/mock/latestVersion.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"msg": "",
"data": {
"version": "1.1.0",
"download": "http://hacpai.com"
"download": "http://ld246.com"
}
}
2 changes: 1 addition & 1 deletion console/mock/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"data": {
"title": "世界,你好!",
"url": "https://ld246.com/member/Vanessa",
"iconURL": "https://static.hacpai.com/images/tags/b3log.png",
"iconURL": "https://static.ld246.com/images/tags/b3log.png",
"openMethod": "_blank",
"number": 1
}
Expand Down
4 changes: 2 additions & 2 deletions console/mock/navigationList.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"id": 3,
"title": "世界,你好!",
"url": "https://ld246.com/member/Vanessa",
"iconURL": "https://static.hacpai.com/images/tags/b3log.png",
"iconURL": "https://static.ld246.com/images/tags/b3log.png",
"openMethod": "_blank",
"number": 1
},
{
"id": 3,
"title": "世界,你好!",
"url": "https://ld246.com/member/Vanessa",
"iconURL": "https://static.hacpai.com/images/tags/b3log.png",
"iconURL": "https://static.ld246.com/images/tags/b3log.png",
"openMethod": "_self",
"number": 1
}
Expand Down
2 changes: 1 addition & 1 deletion console/mock/user.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"nickname": "Vanessa",
"email": "v@b3log.org",
"role": 1,
"avatarURL": "https://static.hacpai.com/images/tags/b3log.png"
"avatarURL": "https://static.ld246.com/images/tags/b3log.png"
}
}
4 changes: 2 additions & 2 deletions console/mock/userList.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"nickname": "Vanessa11",
"role": 1,
"url": "https://ld246.com/member/Vanessa",
"avatarURL": "https://static.hacpai.com/images/tags/b3log.png",
"avatarURL": "https://static.ld246.com/images/tags/b3log.png",
"articleCount": 20
},
{
Expand All @@ -18,7 +18,7 @@
"nickname": "Vanessa",
"role": 4,
"url": "https://ld246.com/member/Vanessa",
"avatarURL": "https://static.hacpai.com/images/tags/b3log.png",
"avatarURL": "https://static.ld246.com/images/tags/b3log.png",
"articleCount": 20
}
],
Expand Down
2 changes: 1 addition & 1 deletion controller/console/articlectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func MarkdownAction(c *gin.Context) {
}

var uploadTokenCheckTime, uploadTokenTime int64
var uploadToken, uploadURL = "", "https://hacpai.com/upload/client"
var uploadToken, uploadURL = "", "https://ld246.com/upload/client"

// UploadTokenAction gets a upload token.
func UploadTokenAction(c *gin.Context) {
Expand Down
2 changes: 1 addition & 1 deletion controller/oauthctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func redirectLoginAction(c *gin.Context) {
} else {
referer = u.Scheme + "://" + u.Host
}
loginAuthURL := "https://hacpai.com/login?goto=" + referer + "/api/login/callback"
loginAuthURL := "https://ld246.com/login?goto=" + referer + "/api/login/callback"
state := gulu.Rand.String(16)
states[state] = referer
path := loginAuthURL + "&state=" + state + "&v=" + model.Version
Expand Down
2 changes: 1 addition & 1 deletion cron/blacklistcron.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func refreshBlacklistIPs() {

result := map[string]interface{}{}
request := gorequest.New().TLSClientConfig(&tls.Config{InsecureSkipVerify: true})
_, _, errs := request.Get("https://hacpai.com/apis/blacklist/ip").
_, _, errs := request.Get("https://ld246.com/apis/blacklist/ip").
Set("User-Agent", model.UserAgent).Timeout(3 * time.Second).EndStruct(&result)
if nil != errs {
logger.Errorf("refresh blacklist IPs failed: %s", errs)
Expand Down
2 changes: 1 addition & 1 deletion pipe.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Server": "http://localhost:5897",
"StaticServer": "",
"StaticResourceVersion": "1599102222488",
"StaticResourceVersion": "1599628974959",
"RuntimeMode": "dev",
"LogLevel": "debug",
"ShowSQL": false,
Expand Down
2 changes: 1 addition & 1 deletion theme/js/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const InitVcomment = () => {
const vcomment = new Vcomment({
id: 'vcomment',
postId: $vcomment.data('postid'),
url: 'https://hacpai.com',
url: 'https://ld246.com',
userName: $vcomment.data('name'),
currentPage: 1,
vditor: {
Expand Down
6 changes: 0 additions & 6 deletions theme/scss/_editor.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/*
* Symphony - A modern community (forum/SNS/blog) platform written in Java.
* Copyright (C) 2012-2017, b3log.org & hacpai.com
*
* 本文件属于 Sym 商业版的一部分,请仔细阅读项目根文件夹的 LICENSE 并严格遵守相关约定
*/
/**
* editor
*
Expand Down
2 changes: 1 addition & 1 deletion theme/x/9IPHP/js/common.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/x/Fara/js/common.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/x/Gina/js/common.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/x/Koma/js/common.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/x/Littlewin/js/common.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/x/Medium/js/common.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion theme/x/Next/js/common.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions util/liandis.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import (
var logger = gulu.Log.NewLogger(os.Stdout)

// CommunityURL is the URL of LianDi community.
const CommunityURL = "https://hacpai.com"
const CommunityURL = "https://ld246.com"

// CommunityAPI is a reverse proxy for https://ld246.com.
func CommunityAPI() gin.HandlerFunc {
return func(c *gin.Context) {
proxy := httputil.NewSingleHostReverseProxy(&url.URL{
Scheme: "https",
Host: "hacpai.com",
Host: "ld246.com",
})

proxy.Transport = &http.Transport{DialTLS: dialTLS}
Expand Down

0 comments on commit 04bd3c4

Please sign in to comment.