🎨 社区域名迁移

This commit is contained in:
Liang Ding 2021-04-11 22:42:50 +08:00
parent de0110eadf
commit 93654cfa32
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
11 changed files with 18 additions and 18 deletions

View File

@ -1,5 +1,5 @@
* [Wide 用户指南](https://hacpai.com/article/1538873544275)
* [Wide 开发指南](https://hacpai.com/article/1538876422995)
* [Wide 用户指南](https://ld246.com/article/1538873544275)
* [Wide 开发指南](https://ld246.com/article/1538876422995)
![Overview](https://cloud.githubusercontent.com/assets/873584/5450620/1d51831e-8543-11e4-930b-670871902425.png)

View File

@ -49,7 +49,7 @@ const (
import "fmt"
func main() {
fmt.Println("欢迎通过《边看边练 Go 系列》来学习 Go 语言 https://hacpai.com/article/1437497122181")
fmt.Println("欢迎通过《边看边练 Go 系列》来学习 Go 语言 https://ld246.com/article/1437497122181")
}
`
)

View File

@ -34,7 +34,7 @@ var states = map[string]string{}
// LoginRedirectHandler redirects to HacPai auth page.
func LoginRedirectHandler(w http.ResponseWriter, r *http.Request) {
loginAuthURL := "https://hacpai.com/login?goto=" + conf.Wide.Server + "/login/callback"
loginAuthURL := "https://ld246.com/login?goto=" + conf.Wide.Server + "/login/callback"
state := gulu.Rand.String(16)
states[state] = state

View File

@ -248,7 +248,7 @@ var editors = {
after: function () {
$("#startPage").load('/start?sid=' + config.wideSessionId);
$.ajax({
url: "https://hacpai.com/apis/articles?tags=wide,golang&p=1&size=20",
url: "https://ld246.com/apis/articles?tags=wide,golang&p=1&size=20",
type: "GET",
dataType: "jsonp",
jsonp: "callback",
@ -265,7 +265,7 @@ var editors = {
}
var listHTML = "<ul><li class='title'>" + config.label.community +
"<a href='https://hacpai.com/article/1437497122181' target='_blank' class='fn-right'>边看边练</li>";
"<a href='https://ld246.com/article/1437497122181' target='_blank' class='fn-right'>边看边练</li>";
for (var i = 0; i < length; i++) {
var article = articles[i];
listHTML += "<li>"

View File

@ -324,7 +324,7 @@ var playground = {
},
_initGoNews: function () {
$.ajax({
url: "https://hacpai.com/apis/articles?tags=wide,golang&p=1&size=20",
url: "https://ld246.com/apis/articles?tags=wide,golang&p=1&size=20",
type: "GET",
dataType: "jsonp",
jsonp: "callback",
@ -337,7 +337,7 @@ var playground = {
var length = articles.length;
var listHTML = "<ul><li class='title'>" + config.label.community +
"<a href='https://hacpai.com/article/1437497122181' target='_blank' class='fn-right'>边看边练</li>";
"<a href='https://ld246.com/article/1437497122181' target='_blank' class='fn-right'>边看边练</li>";
for (var i = 0; i < length; i++) {
var article = articles[i];
listHTML += "<li>"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -298,7 +298,7 @@
<span>{{.i18n.help}}</span>
<div class="frame">
<ul>
<li onclick="window.open('https://hacpai.com/article/1538873544275')">
<li onclick="window.open('https://ld246.com/article/1538873544275')">
<span class="font-ico ico-book"></span>
<span>{{.i18n.wide_doc}}</span>
</li>
@ -325,7 +325,7 @@
<span class="font-ico ico-about"></span>
<span>{{.i18n.about}}</span>
</li>
<li onclick="window.open('https://hacpai.com/sponsor')">
<li onclick="window.open('https://ld246.com/sponsor')">
<span class="space"></span>
<span>{{.i18n.sponsor}}</span>
</li>

View File

@ -23,8 +23,8 @@
<ul>
<li><a href="{{$.conf.Server}}/playground" target="_blank" style="color: #cd504a">Play</a></li>
<li><a rel="bookmark" href="https://github.com/88250/wide" target="_blank">GitHub</a></li>
<li><a rel="help" href="https://hacpai.com/article/1538873544275" target="_blank">{{.i18n.help}}</a></li>
<li><a rel="bookmark" href="https://hacpai.com" target="_blank">{{.i18n.community}}</a></li>
<li><a rel="help" href="https://ld246.com/article/1538873544275" target="_blank">{{.i18n.help}}</a></li>
<li><a rel="bookmark" href="https://ld246.com" target="_blank">{{.i18n.community}}</a></li>
</ul>
</div>
</div>
@ -46,7 +46,7 @@
<div class="start__aciton">
<a href="{{$.conf.Server}}/login/redirect" class="btn">登录链滴社区账号后即可开始使用</a>
<span>&nbsp; &nbsp;</span>
<a href="https://hacpai.com/article/1576294445994" target="_blank">
<a href="https://ld246.com/article/1576294445994" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 32 32">
<path d="M19.652 25v6c0 0.55-0.45 1-1 1h-6c-0.55 0-1-0.45-1-1v-6c0-0.55 0.45-1 1-1h6c0.55 0 1 0.45 1 1zM27.552 10c0 4.75-3.225 6.575-5.6 7.9-1.475 0.85-2.4 2.575-2.4 3.3v0c0 0.55-0.425 1.2-1 1.2h-6c-0.55 0-0.9-0.85-0.9-1.4v-1.125c0-3.025 3-5.625 5.2-6.625 1.925-0.875 2.725-1.7 2.725-3.3 0-1.4-1.825-2.65-3.85-2.65-1.125 0-2.15 0.35-2.7 0.725-0.6 0.425-1.2 1.025-2.675 2.875-0.2 0.25-0.5 0.4-0.775 0.4-0.225 0-0.425-0.075-0.625-0.2l-4.1-3.125c-0.425-0.325-0.525-0.875-0.25-1.325 2.7-4.475 6.5-6.65 11.6-6.65 5.35 0 11.35 4.275 11.35 10z"></path>
</svg>

View File

@ -50,7 +50,7 @@
<button class="btn-white btn" id="share" onclick="playground.share();">{{.i18n.share}}</button>
</li>
<li>
<button class="btn btn-blue" onclick="window.open('https://hacpai.com/sponsor')">
<button class="btn btn-blue" onclick="window.open('https://ld246.com/sponsor')">
{{.i18n.sponsor}}
</button>
</li>

View File

@ -14,8 +14,8 @@
<span>{{.workspace}}</span>
</li>
<li class="border">
<label><a href="https://hacpai.com/article/1538873544275" target="_blank">{{.i18n.user_guide}}</a></label>&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp;
<label><a href="https://hacpai.com/article/1538876422995" target="_blank">{{.i18n.dev_guide}}</a></label>
<label><a href="https://ld246.com/article/1538873544275" target="_blank">{{.i18n.user_guide}}</a></label>&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp;
<label><a href="https://ld246.com/article/1538876422995" target="_blank">{{.i18n.dev_guide}}</a></label>
</li>
<li>
<label>{{.i18n.current_ver}}{{.i18n.colon}}</label>