Skip to content

Commit

Permalink
🔧 更新黑客派新域名 #116
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed Sep 9, 2020
1 parent 2665265 commit 71df6d1
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -17,7 +17,7 @@
<artifactId>bolo</artifactId>
<packaging>war</packaging>
<name>Bolo</name>
<version>v2.0-stable</version>
<version>v2.1-stable</version>
<description>
本地化、稳定精致的 Java 博客系统 - 菠萝博客,基于 Solo。
</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/b3log/solo/SoloServletListener.java
Expand Up @@ -74,7 +74,7 @@ public final class SoloServletListener extends AbstractServletListener {
/**
* Bolo version.
*/
public static final String BOLO_VERSION = "v2.0 稳定版";
public static final String BOLO_VERSION = "v2.1 稳定版";
/**
* Solo version.
*/
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/org/b3log/solo/bolo/Global.java
@@ -1,3 +1,20 @@
/*
* Bolo - A stable and beautiful blogging system based in Solo.
* Copyright (c) 2020, https://github.com/adlered
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.b3log.solo.bolo;

public class Global {
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/admin/admin-main.ftl
Expand Up @@ -174,7 +174,7 @@
function showTips() {
var config = {
content: "欢迎使用菠萝博客 V2.0 稳定版!<br>" +
content: "欢迎使用菠萝博客 " + boloVersion + "!<br>" +
"<a href='javascript:neverShowTips()'>不再提醒</a>",
type: "html",
alignTo: ["right","top"],
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/common-template/label.ftl
Expand Up @@ -26,6 +26,7 @@
langLabel: "${langLabel}",
version: "${version}",
showCodeBlockLn: ${showCodeBlockLn},
hacpaiDomain: "${hacpaiDomain}",
}
Util.init()
</script>
2 changes: 1 addition & 1 deletion src/main/webapp/js/admin/admin.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/webapp/js/admin/editor.js
Expand Up @@ -43,7 +43,7 @@ $.extend(SoloEditor.prototype, {

// 编辑器常用表情使用社区端的设置
$.ajax({
url: 'https://hacpai.com/apis/vcomment/users/emotions',
url: 'https://' + Label.hacpaiDomain + '/apis/vcomment/users/emotions',
type: 'GET',
cache: true,
async: false,
Expand Down Expand Up @@ -116,7 +116,7 @@ $.extend(SoloEditor.prototype, {
},
lang: Label.localeString,
hint: {
emojiTail: `<a href="https://hacpai.com/settings/function" target="_blank">设置常用表情</a>`,
emojiTail: `<a href="https://` + Label.hacpaiDomain + `/settings/function" target="_blank">设置常用表情</a>`,
emoji: Label.emoji,
},
toolbarConfig: {
Expand Down

0 comments on commit 71df6d1

Please sign in to comment.