Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
a5aedfa9
Commit
a5aedfa9
authored
May 25, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔖
Release 2.1.0
parent
6e224d7c
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
35 deletions
+61
-35
CHANGE_LOGS.html
CHANGE_LOGS.html
+10
-0
pom.xml
pom.xml
+3
-3
src/main/java/org/b3log/solo/SoloServletListener.java
src/main/java/org/b3log/solo/SoloServletListener.java
+2
-2
src/main/java/org/b3log/solo/service/UpgradeService.java
src/main/java/org/b3log/solo/service/UpgradeService.java
+35
-29
src/main/webapp/CHANGE_LOGS.html
src/main/webapp/CHANGE_LOGS.html
+10
-0
src/main/webapp/skins/9IPHP/css/base.min.css
src/main/webapp/skins/9IPHP/css/base.min.css
+1
-1
No files found.
CHANGE_LOGS.html
View file @
a5aedfa9
...
...
@@ -5,6 +5,16 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
</head>
<body>
<h2>
Release 2.1.0 - May 25, 2017
</h2>
<ul>
<li><a
href=
"https://github.com/b3log/solo/issues/12284"
>
12284 H2 SQL 文件导出
</a>
<span
style=
'background: #02e10c !important;color:#FFFFFF !important;padding: 1px 4px;'
>
feature
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12280"
>
12280 社区同步过来的评论加入头像
</a>
<span
style=
'background: #84b6eb !important;color:#FFFFFF !important;padding: 1px 4px;'
>
enhancement
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12285"
>
12285 移除 HTML 编辑器
</a>
<span
style=
'background: #84b6eb !important;color:#FFFFFF !important;padding: 1px 4px;'
>
enhancement
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12273"
>
12273 重新整理文档
</a>
<span
style=
'background: #006b75 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
doc
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12278"
>
12278 新的 Logo
</a>
<span
style=
'background: #006b75 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
doc
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12274"
>
12274 更新分类标签计数错误
</a>
<span
style=
'background: #fc2929 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
bug
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12295"
>
12295 并发请求报错
</a>
<span
style=
'background: #fc2929 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
bug
</span></li>
</ul>
<h2>
Release 2.0.0 - Apr 14, 2017
</h2>
<ul>
<li><a
href=
"https://github.com/b3log/solo/issues/12256"
>
12256 支持文章分类
</a>
<span
style=
'background: #02e10c !important;color:#FFFFFF !important;padding: 1px 4px;'
>
feature
</span></li>
...
...
pom.xml
View file @
a5aedfa9
<?xml version="1.0" encoding="UTF-8"?>
<!--
Description: Solo POM.
Version: 3.16.1.3
7, May 13
, 2017
Version: 3.16.1.3
8, May 25
, 2017
Author: <a href="http://88250.b3log.org">Liang Ding</a>
Author: <a href="http://www.annpeter.cn">Ann Peter</a>
Author: <a href="http://vanessa.b3log.org">Vanessa</a>
...
...
@@ -14,9 +14,9 @@
<artifactId>
solo
</artifactId>
<packaging>
war
</packaging>
<name>
Solo
</name>
<version>
2.
0
.0
</version>
<version>
2.
1
.0
</version>
<description>
A blogging system written in Java, feel free to create your or your team own blog. 一个用 Java 实现的博客系统,为你或你的团队创建个博客吧
。
A blogging system written in Java, feel free to create your or your team own blog. 一个用 Java 实现的博客系统,为你或你的团队创建个博客吧
!
</description>
<inceptionYear>
2010
</inceptionYear>
...
...
src/main/java/org/b3log/solo/SoloServletListener.java
View file @
a5aedfa9
...
...
@@ -63,7 +63,7 @@ import java.util.concurrent.locks.ReentrantLock;
* Solo Servlet listener.
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.9.3.2
0, May 20
, 2017
* @version 1.9.3.2
1, May 25
, 2017
* @since 0.3.1
*/
public
final
class
SoloServletListener
extends
AbstractServletListener
{
...
...
@@ -71,7 +71,7 @@ public final class SoloServletListener extends AbstractServletListener {
/**
* Solo version.
*/
public
static
final
String
VERSION
=
"2.
0
.0"
;
public
static
final
String
VERSION
=
"2.
1
.0"
;
/**
* JSONO print indent factor.
...
...
src/main/java/org/b3log/solo/service/UpgradeService.java
View file @
a5aedfa9
...
...
@@ -51,7 +51,7 @@ import java.sql.Statement;
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @version 1.2.0.1
2, May 2
, 2017
* @version 1.2.0.1
3, May 25
, 2017
* @since 1.2.0
*/
@Service
...
...
@@ -75,7 +75,7 @@ public class UpgradeService {
/**
* Old version.
*/
private
static
final
String
FROM_VER
=
"
1.9
.0"
;
private
static
final
String
FROM_VER
=
"
2.0
.0"
;
/**
* New version.
...
...
@@ -169,39 +169,15 @@ public class UpgradeService {
Transaction
transaction
=
null
;
try
{
final
Connection
connection
=
Connections
.
getConnection
();
final
Statement
statement
=
connection
.
createStatement
();
final
String
tablePrefix
=
Latkes
.
getLocalProperty
(
"jdbc.tablePrefix"
)
+
"_"
;
statement
.
execute
(
"CREATE TABLE `"
+
tablePrefix
+
"category` (\n"
+
" `oId` varchar(19) NOT NULL,\n"
+
" `categoryTitle` varchar(64) NOT NULL,\n"
+
" `categoryURI` varchar(32) NOT NULL,\n"
+
" `categoryDescription` text NOT NULL,\n"
+
" `categoryOrder` int(11) NOT NULL,\n"
+
" `categoryTagCnt` int(11) NOT NULL,\n"
+
" PRIMARY KEY (`oId`)\n"
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8;"
);
statement
.
execute
(
"CREATE TABLE `"
+
tablePrefix
+
"category_tag` (\n"
+
" `oId` varchar(19) NOT NULL,\n"
+
" `category_oId` varchar(19) NOT NULL,\n"
+
" `tag_oId` varchar(19) NOT NULL,\n"
+
" PRIMARY KEY (`oId`)\n"
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8;"
);
statement
.
close
();
connection
.
commit
();
connection
.
close
();
transaction
=
optionRepository
.
beginTransaction
();
final
JSONObject
versionOpt
=
optionRepository
.
get
(
Option
.
ID_C_VERSION
);
versionOpt
.
put
(
Option
.
OPTION_VALUE
,
TO_VER
);
optionRepository
.
update
(
Option
.
ID_C_VERSION
,
versionOpt
);
// https://github.com/b3log/solo/issues/12285
// final JSONObject editorTypeOpt = optionRepository.get(Option.ID_C_EDITOR_TYPE);
// editorTypeOpt.put(Option.OPTION_VALUE, Option.DefaultPreference.DEFAULT_EDITOR_TYPE);
// optionRepository.update(Option.ID_C_EDITOR_TYPE, editorTypeOpt);
final
JSONObject
editorTypeOpt
=
optionRepository
.
get
(
Option
.
ID_C_EDITOR_TYPE
);
editorTypeOpt
.
put
(
Option
.
OPTION_VALUE
,
Option
.
DefaultPreference
.
DEFAULT_EDITOR_TYPE
);
optionRepository
.
update
(
Option
.
ID_C_EDITOR_TYPE
,
editorTypeOpt
);
transaction
.
commit
();
...
...
@@ -218,6 +194,36 @@ public class UpgradeService {
LOGGER
.
log
(
Level
.
INFO
,
"Upgraded from version [{0}] to version [{1}] successfully :-)"
,
FROM_VER
,
TO_VER
);
}
/**
* Upgrade database tables.
*
* @throws Exception exception
*/
private
void
upgradeTables
()
throws
Exception
{
final
Connection
connection
=
Connections
.
getConnection
();
final
Statement
statement
=
connection
.
createStatement
();
final
String
tablePrefix
=
Latkes
.
getLocalProperty
(
"jdbc.tablePrefix"
)
+
"_"
;
statement
.
execute
(
"CREATE TABLE `"
+
tablePrefix
+
"category` (\n"
+
" `oId` varchar(19) NOT NULL,\n"
+
" `categoryTitle` varchar(64) NOT NULL,\n"
+
" `categoryURI` varchar(32) NOT NULL,\n"
+
" `categoryDescription` text NOT NULL,\n"
+
" `categoryOrder` int(11) NOT NULL,\n"
+
" `categoryTagCnt` int(11) NOT NULL,\n"
+
" PRIMARY KEY (`oId`)\n"
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8;"
);
statement
.
execute
(
"CREATE TABLE `"
+
tablePrefix
+
"category_tag` (\n"
+
" `oId` varchar(19) NOT NULL,\n"
+
" `category_oId` varchar(19) NOT NULL,\n"
+
" `tag_oId` varchar(19) NOT NULL,\n"
+
" PRIMARY KEY (`oId`)\n"
+
") ENGINE=InnoDB DEFAULT CHARSET=utf8;"
);
statement
.
close
();
connection
.
commit
();
connection
.
close
();
}
/**
* Upgrades users.
* <p>
...
...
src/main/webapp/CHANGE_LOGS.html
View file @
a5aedfa9
...
...
@@ -5,6 +5,16 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
</head>
<body>
<h2>
Release 2.1.0 - May 25, 2017
</h2>
<ul>
<li><a
href=
"https://github.com/b3log/solo/issues/12284"
>
12284 H2 SQL 文件导出
</a>
<span
style=
'background: #02e10c !important;color:#FFFFFF !important;padding: 1px 4px;'
>
feature
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12280"
>
12280 社区同步过来的评论加入头像
</a>
<span
style=
'background: #84b6eb !important;color:#FFFFFF !important;padding: 1px 4px;'
>
enhancement
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12285"
>
12285 移除 HTML 编辑器
</a>
<span
style=
'background: #84b6eb !important;color:#FFFFFF !important;padding: 1px 4px;'
>
enhancement
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12273"
>
12273 重新整理文档
</a>
<span
style=
'background: #006b75 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
doc
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12278"
>
12278 新的 Logo
</a>
<span
style=
'background: #006b75 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
doc
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12274"
>
12274 更新分类标签计数错误
</a>
<span
style=
'background: #fc2929 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
bug
</span></li>
<li><a
href=
"https://github.com/b3log/solo/issues/12295"
>
12295 并发请求报错
</a>
<span
style=
'background: #fc2929 !important;color:#FFFFFF !important;padding: 1px 4px;'
>
bug
</span></li>
</ul>
<h2>
Release 2.0.0 - Apr 14, 2017
</h2>
<ul>
<li><a
href=
"https://github.com/b3log/solo/issues/12256"
>
12256 支持文章分类
</a>
<span
style=
'background: #02e10c !important;color:#FFFFFF !important;padding: 1px 4px;'
>
feature
</span></li>
...
...
src/main/webapp/skins/9IPHP/css/base.min.css
View file @
a5aedfa9
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment