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
d7a38706
Commit
d7a38706
authored
May 25, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/2.1.0-dev'
parents
0c3f2b69
1c4e9acd
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
67 additions
and
45 deletions
+67
-45
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
src/main/webapp/skins/9IPHP/skin.properties
src/main/webapp/skins/9IPHP/skin.properties
+0
-2
src/main/webapp/skins/mobile/skin.properties
src/main/webapp/skins/mobile/skin.properties
+0
-2
src/test/java/org/b3log/solo/service/UserMgmtServiceTestCase.java
.../java/org/b3log/solo/service/UserMgmtServiceTestCase.java
+6
-6
No files found.
CHANGE_LOGS.html
View file @
d7a38706
...
@@ -5,6 +5,16 @@
...
@@ -5,6 +5,16 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
</head>
</head>
<body>
<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>
<h2>
Release 2.0.0 - Apr 14, 2017
</h2>
<ul>
<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>
<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 @
d7a38706
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
<!--
Description: Solo POM.
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://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>
...
@@ -14,9 +14,9 @@
...
@@ -14,9 +14,9 @@
<artifactId>
solo
</artifactId>
<artifactId>
solo
</artifactId>
<packaging>
war
</packaging>
<packaging>
war
</packaging>
<name>
Solo
</name>
<name>
Solo
</name>
<version>
2.
0
.0
</version>
<version>
2.
1
.0
</version>
<description>
<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>
</description>
<inceptionYear>
2010
</inceptionYear>
<inceptionYear>
2010
</inceptionYear>
...
...
src/main/java/org/b3log/solo/SoloServletListener.java
View file @
d7a38706
...
@@ -63,7 +63,7 @@ import java.util.concurrent.locks.ReentrantLock;
...
@@ -63,7 +63,7 @@ import java.util.concurrent.locks.ReentrantLock;
* Solo Servlet listener.
* Solo Servlet listener.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @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
* @since 0.3.1
*/
*/
public
final
class
SoloServletListener
extends
AbstractServletListener
{
public
final
class
SoloServletListener
extends
AbstractServletListener
{
...
@@ -71,7 +71,7 @@ public final class SoloServletListener extends AbstractServletListener {
...
@@ -71,7 +71,7 @@ public final class SoloServletListener extends AbstractServletListener {
/**
/**
* Solo version.
* Solo version.
*/
*/
public
static
final
String
VERSION
=
"2.
0
.0"
;
public
static
final
String
VERSION
=
"2.
1
.0"
;
/**
/**
* JSONO print indent factor.
* JSONO print indent factor.
...
...
src/main/java/org/b3log/solo/service/UpgradeService.java
View file @
d7a38706
...
@@ -51,7 +51,7 @@ import java.sql.Statement;
...
@@ -51,7 +51,7 @@ import java.sql.Statement;
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</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
* @since 1.2.0
*/
*/
@Service
@Service
...
@@ -75,7 +75,7 @@ public class UpgradeService {
...
@@ -75,7 +75,7 @@ public class UpgradeService {
/**
/**
* Old version.
* Old version.
*/
*/
private
static
final
String
FROM_VER
=
"
1.9
.0"
;
private
static
final
String
FROM_VER
=
"
2.0
.0"
;
/**
/**
* New version.
* New version.
...
@@ -169,39 +169,15 @@ public class UpgradeService {
...
@@ -169,39 +169,15 @@ public class UpgradeService {
Transaction
transaction
=
null
;
Transaction
transaction
=
null
;
try
{
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
();
transaction
=
optionRepository
.
beginTransaction
();
final
JSONObject
versionOpt
=
optionRepository
.
get
(
Option
.
ID_C_VERSION
);
final
JSONObject
versionOpt
=
optionRepository
.
get
(
Option
.
ID_C_VERSION
);
versionOpt
.
put
(
Option
.
OPTION_VALUE
,
TO_VER
);
versionOpt
.
put
(
Option
.
OPTION_VALUE
,
TO_VER
);
optionRepository
.
update
(
Option
.
ID_C_VERSION
,
versionOpt
);
optionRepository
.
update
(
Option
.
ID_C_VERSION
,
versionOpt
);
// https://github.com/b3log/solo/issues/12285
final
JSONObject
editorTypeOpt
=
optionRepository
.
get
(
Option
.
ID_C_EDITOR_TYPE
);
// final JSONObject editorTypeOpt = optionRepository.get(Option.ID_C_EDITOR_TYPE);
editorTypeOpt
.
put
(
Option
.
OPTION_VALUE
,
Option
.
DefaultPreference
.
DEFAULT_EDITOR_TYPE
);
// editorTypeOpt.put(Option.OPTION_VALUE, Option.DefaultPreference.DEFAULT_EDITOR_TYPE);
optionRepository
.
update
(
Option
.
ID_C_EDITOR_TYPE
,
editorTypeOpt
);
// optionRepository.update(Option.ID_C_EDITOR_TYPE, editorTypeOpt);
transaction
.
commit
();
transaction
.
commit
();
...
@@ -218,6 +194,36 @@ public class UpgradeService {
...
@@ -218,6 +194,36 @@ public class UpgradeService {
LOGGER
.
log
(
Level
.
INFO
,
"Upgraded from version [{0}] to version [{1}] successfully :-)"
,
FROM_VER
,
TO_VER
);
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.
* Upgrades users.
* <p>
* <p>
...
...
src/main/webapp/CHANGE_LOGS.html
View file @
d7a38706
...
@@ -5,6 +5,16 @@
...
@@ -5,6 +5,16 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
>
</head>
</head>
<body>
<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>
<h2>
Release 2.0.0 - Apr 14, 2017
</h2>
<ul>
<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>
<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 @
d7a38706
This diff is collapsed.
Click to expand it.
src/main/webapp/skins/9IPHP/skin.properties
View file @
d7a38706
...
@@ -21,6 +21,4 @@
...
@@ -21,6 +21,4 @@
#
#
name
=
9IPHP
name
=
9IPHP
version
=
1.0.0
forSolo
=
2.0.0
memo
=
https://github.com/9IPHP
memo
=
https://github.com/9IPHP
src/main/webapp/skins/mobile/skin.properties
View file @
d7a38706
...
@@ -21,6 +21,4 @@
...
@@ -21,6 +21,4 @@
#
#
name
=
Mobile
name
=
Mobile
version
=
0.1.5
forSolo
=
2.0.0
memo
=
\u
8bf7
\u
4e0d
\u8981\u
4ece
\u
90e8
\u
7f72
\u
76ee
\u
5f55
\u
4e2d
\u5220\u9664\u
8be5
\u
76ae
\u
80a4
\u
ff0c
\u5426\u5219\u
79fb
\u
52a8
\u
8bbe
\u5907\u
8bbf
\u
95ee
\u
65f6
\u
535a
\u
5ba2
\u
5c06
\u
4e0d
\u
53ef
\u7528\u3002
memo
=
\u
8bf7
\u
4e0d
\u8981\u
4ece
\u
90e8
\u
7f72
\u
76ee
\u
5f55
\u
4e2d
\u5220\u9664\u
8be5
\u
76ae
\u
80a4
\u
ff0c
\u5426\u5219\u
79fb
\u
52a8
\u
8bbe
\u5907\u
8bbf
\u
95ee
\u
65f6
\u
535a
\u
5ba2
\u
5c06
\u
4e0d
\u
53ef
\u7528\u3002
src/test/java/org/b3log/solo/service/UserMgmtServiceTestCase.java
View file @
d7a38706
...
@@ -28,7 +28,7 @@ import org.testng.annotations.Test;
...
@@ -28,7 +28,7 @@ import org.testng.annotations.Test;
* {@link UserMgmtService} test case.
* {@link UserMgmtService} test case.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.
2, May 16, 2013
* @version 1.0.0.
3, May 25, 2017
*/
*/
@Test
(
suiteName
=
"service"
)
@Test
(
suiteName
=
"service"
)
public
class
UserMgmtServiceTestCase
extends
AbstractTestCase
{
public
class
UserMgmtServiceTestCase
extends
AbstractTestCase
{
...
@@ -44,7 +44,7 @@ public class UserMgmtServiceTestCase extends AbstractTestCase {
...
@@ -44,7 +44,7 @@ public class UserMgmtServiceTestCase extends AbstractTestCase {
final
JSONObject
requestJSONObject
=
new
JSONObject
();
final
JSONObject
requestJSONObject
=
new
JSONObject
();
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user1
name"
);
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user1name"
);
requestJSONObject
.
put
(
User
.
USER_EMAIL
,
"test1@gmail.com"
);
requestJSONObject
.
put
(
User
.
USER_EMAIL
,
"test1@gmail.com"
);
requestJSONObject
.
put
(
User
.
USER_PASSWORD
,
"pass1"
);
requestJSONObject
.
put
(
User
.
USER_PASSWORD
,
"pass1"
);
...
@@ -63,7 +63,7 @@ public class UserMgmtServiceTestCase extends AbstractTestCase {
...
@@ -63,7 +63,7 @@ public class UserMgmtServiceTestCase extends AbstractTestCase {
JSONObject
requestJSONObject
=
new
JSONObject
();
JSONObject
requestJSONObject
=
new
JSONObject
();
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user2
name"
);
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user2name"
);
requestJSONObject
.
put
(
User
.
USER_EMAIL
,
"test2@gmail.com"
);
requestJSONObject
.
put
(
User
.
USER_EMAIL
,
"test2@gmail.com"
);
requestJSONObject
.
put
(
User
.
USER_PASSWORD
,
"pass2"
);
requestJSONObject
.
put
(
User
.
USER_PASSWORD
,
"pass2"
);
requestJSONObject
.
put
(
User
.
USER_ROLE
,
Role
.
ADMIN_ROLE
);
requestJSONObject
.
put
(
User
.
USER_ROLE
,
Role
.
ADMIN_ROLE
);
...
@@ -72,16 +72,16 @@ public class UserMgmtServiceTestCase extends AbstractTestCase {
...
@@ -72,16 +72,16 @@ public class UserMgmtServiceTestCase extends AbstractTestCase {
Assert
.
assertNotNull
(
id
);
Assert
.
assertNotNull
(
id
);
requestJSONObject
.
put
(
Keys
.
OBJECT_ID
,
id
);
requestJSONObject
.
put
(
Keys
.
OBJECT_ID
,
id
);
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user2
new
name"
);
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user2
new
name"
);
userMgmtService
.
updateUser
(
requestJSONObject
);
userMgmtService
.
updateUser
(
requestJSONObject
);
Assert
.
assertEquals
(
getUserQueryService
().
getUser
(
id
).
getJSONObject
(
Assert
.
assertEquals
(
getUserQueryService
().
getUser
(
id
).
getJSONObject
(
User
.
USER
).
getString
(
User
.
USER_NAME
),
"user2
new
name"
);
User
.
USER
).
getString
(
User
.
USER_NAME
),
"user2
new
name"
);
// Do not update password
// Do not update password
requestJSONObject
.
put
(
Keys
.
OBJECT_ID
,
id
);
requestJSONObject
.
put
(
Keys
.
OBJECT_ID
,
id
);
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user2
name"
);
requestJSONObject
.
put
(
User
.
USER_NAME
,
"user2name"
);
requestJSONObject
.
put
(
User
.
USER_EMAIL
,
"test2@gmail.com"
);
requestJSONObject
.
put
(
User
.
USER_EMAIL
,
"test2@gmail.com"
);
requestJSONObject
.
put
(
User
.
USER_PASSWORD
,
"pass2"
);
requestJSONObject
.
put
(
User
.
USER_PASSWORD
,
"pass2"
);
...
...
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