Commit 477fe69d authored by zeekling's avatar zeekling Committed by GitHub

Merge pull request #1 from 88250/dev

Dev
parents 68dd3576 eefcb86b
## v3.9.0 / 2020-02-21
### 引入特性
* [HTML 静态站点生成](https://github.com/88250/solo/issues/19)
### 改进皮肤
* [0 评论应该显示为浏览数](https://github.com/88250/solo/issues/46)
* [Pinghsu 皮肤 footer.ftl 存在错误 script 标签](https://github.com/88250/solo/issues/50)
* [next 皮肤目录样式优化](https://github.com/88250/solo/issues/55)
### 改进功能
* [支持代码块行号显示](https://github.com/88250/solo/issues/4)
### 开发重构
* [日志组件迁移到 log4j2](https://github.com/88250/solo/issues/44)
* [支持 ES6 Module](https://github.com/88250/solo/issues/47)
### 修复缺陷
* [评论插件点击之后自动关闭](https://github.com/88250/solo/issues/48)
* [解决目录插件偶尔重复加载的问题](https://github.com/88250/solo/issues/53)
## v3.8.0 / 2020-01-16 ## v3.8.0 / 2020-01-16
### 引入特性 ### 引入特性
......
This diff is collapsed.
{ {
"name": "solo", "name": "solo",
"version": "3.8.0", "version": "3.9.0",
"description": " 一款小而美的博客系统,专为程序员设计。", "description": " 一款小而美的博客系统,专为程序员设计。",
"homepage": "https://github.com/88250/solo", "homepage": "https://github.com/88250/solo",
"repository": { "repository": {
...@@ -49,6 +49,6 @@ ...@@ -49,6 +49,6 @@
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"uvstat": "^1.0.7", "uvstat": "^1.0.7",
"vcmt": "^1.1.1", "vcmt": "^1.1.1",
"vditor": "^2.2.1" "vditor": "^2.2.4"
} }
} }
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
Description: Solo POM. Description: Solo POM.
Version: 3.18.3.84, Feb 10, 2020 Version: 3.18.3.85, Feb 21, 2020
Author: <a href="http://88250.b3log.org">Liang Ding</a> Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a> Author: <a href="http://www.annpeter.cn">Ann Peter</a>
Author: <a href="http://vanessa.b3log.org">Vanessa</a> Author: <a href="http://vanessa.b3log.org">Vanessa</a>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<artifactId>solo</artifactId> <artifactId>solo</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>Solo</name> <name>Solo</name>
<version>3.8.0</version> <version>3.9.0</version>
<description> <description>
一款小而美的博客系统,专为程序员设计。 一款小而美的博客系统,专为程序员设计。
</description> </description>
......
...@@ -47,7 +47,7 @@ import org.json.JSONObject; ...@@ -47,7 +47,7 @@ import org.json.JSONObject;
* Server. * Server.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 3.0.0.0, Feb 9, 2020 * @version 3.0.0.1, Feb 21, 2020
* @since 1.2.0 * @since 1.2.0
*/ */
public final class Server extends BaseServer { public final class Server extends BaseServer {
...@@ -60,7 +60,7 @@ public final class Server extends BaseServer { ...@@ -60,7 +60,7 @@ public final class Server extends BaseServer {
/** /**
* Solo version. * Solo version.
*/ */
public static final String VERSION = "3.8.0"; public static final String VERSION = "3.9.0";
/** /**
* Main. * Main.
......
...@@ -31,7 +31,7 @@ import org.json.JSONObject; ...@@ -31,7 +31,7 @@ import org.json.JSONObject;
* Upgrade service. * Upgrade service.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.1.16, Jan 16, 2020 * @version 1.2.1.17, Feb 21, 2020
* @since 1.2.0 * @since 1.2.0
*/ */
@Service @Service
...@@ -100,6 +100,8 @@ public class UpgradeService { ...@@ -100,6 +100,8 @@ public class UpgradeService {
V368_370.perform(); V368_370.perform();
case "3.7.0": case "3.7.0":
V370_380.perform(); V370_380.perform();
case "3.8.0":
V380_390.perform();
break; break;
default: default:
......
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-present, b3log.org
*
* 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.upgrade;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.b3log.latke.ioc.BeanManager;
import org.b3log.latke.repository.Transaction;
import org.b3log.solo.model.Option;
import org.b3log.solo.repository.OptionRepository;
import org.json.JSONObject;
/**
* Upgrade script from v3.8.0 to v3.9.0.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.0, Feb 21, 2020
* @since 3.9.0
*/
public final class V380_390 {
/**
* Logger.
*/
private static final Logger LOGGER = LogManager.getLogger(V380_390.class);
/**
* Performs upgrade from v3.8.0 to v3.9.0.
*
* @throws Exception upgrade fails
*/
public static void perform() throws Exception {
final String fromVer = "3.8.0";
final String toVer = "3.9.0";
LOGGER.log(Level.INFO, "Upgrading from version [" + fromVer + "] to version [" + toVer + "]....");
final BeanManager beanManager = BeanManager.getInstance();
final OptionRepository optionRepository = beanManager.getReference(OptionRepository.class);
try {
final Transaction transaction = optionRepository.beginTransaction();
final JSONObject versionOpt = optionRepository.get(Option.ID_C_VERSION);
versionOpt.put(Option.OPTION_VALUE, toVer);
optionRepository.update(Option.ID_C_VERSION, versionOpt);
transaction.commit();
LOGGER.log(Level.INFO, "Upgraded from version [" + fromVer + "] to version [" + toVer + "] successfully");
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Upgrade failed!", e);
throw new Exception("Upgrade failed from version [" + fromVer + "] to version [" + toVer + "]");
}
}
}
## v3.9.0 / 2020-02-21
### 引入特性
* [HTML 静态站点生成](https://github.com/88250/solo/issues/19)
### 改进皮肤
* [0 评论应该显示为浏览数](https://github.com/88250/solo/issues/46)
* [Pinghsu 皮肤 footer.ftl 存在错误 script 标签](https://github.com/88250/solo/issues/50)
* [next 皮肤目录样式优化](https://github.com/88250/solo/issues/55)
### 改进功能
* [支持代码块行号显示](https://github.com/88250/solo/issues/4)
### 开发重构
* [日志组件迁移到 log4j2](https://github.com/88250/solo/issues/44)
* [支持 ES6 Module](https://github.com/88250/solo/issues/47)
### 修复缺陷
* [评论插件点击之后自动关闭](https://github.com/88250/solo/issues/48)
* [解决目录插件偶尔重复加载的问题](https://github.com/88250/solo/issues/53)
## v3.8.0 / 2020-01-16 ## v3.8.0 / 2020-01-16
### 引入特性 ### 引入特性
......
This diff is collapsed.
...@@ -307,7 +307,7 @@ window.Util = { ...@@ -307,7 +307,7 @@ window.Util = {
(() => { (() => {
$.ajax({ $.ajax({
method: 'GET', method: 'GET',
url: 'https://cdn.jsdelivr.net/npm/vditor@2.2.1/dist/index.min.js', url: 'https://cdn.jsdelivr.net/npm/vditor@2.2.4/dist/index.min.js',
dataType: 'script', dataType: 'script',
cache: true, cache: true,
success: () => { success: () => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment