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
6f87f922
Unverified
Commit
6f87f922
authored
Feb 10, 2019
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
#12645
parent
f71b94c0
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
314 additions
and
369 deletions
+314
-369
src/main/resources/lang_en_US.properties
src/main/resources/lang_en_US.properties
+3
-11
src/main/resources/lang_zh_CN.properties
src/main/resources/lang_zh_CN.properties
+3
-11
src/main/webapp/common-template/macro-comment_script.ftl
src/main/webapp/common-template/macro-comment_script.ftl
+57
-0
src/main/webapp/js/admin/article.js
src/main/webapp/js/admin/article.js
+3
-1
src/main/webapp/js/admin/editor.js
src/main/webapp/js/admin/editor.js
+2
-2
src/main/webapp/js/page.js
src/main/webapp/js/page.js
+246
-344
No files found.
src/main/resources/lang_en_US.properties
View file @
6f87f922
...
@@ -18,12 +18,14 @@
...
@@ -18,12 +18,14 @@
#
#
# Description: Solo language configurations(en_US).
# Description: Solo language configurations(en_US).
# Version: 2.3
0
.0.0, Feb 10, 2019
# Version: 2.3
1
.0.0, Feb 10, 2019
# Author: Liang Ding
# Author: Liang Ding
# Author: Liyuan Li
# Author: Liyuan Li
# Author: Dongxu Wang
# Author: Dongxu Wang
#
#
cancelLabel
=
Cancel
langLabel
=
en_US
pushSuccLabel
=
Sync Successful
pushSuccLabel
=
Sync Successful
pushToHacpaiLabel
=
Sync to Hacpai
pushToHacpaiLabel
=
Sync to Hacpai
getUploadTokenErrLabel
=
Get community file storage service upload token failed
getUploadTokenErrLabel
=
Get community file storage service upload token failed
...
@@ -222,16 +224,6 @@ viewCount1Label=View Count:
...
@@ -222,16 +224,6 @@ viewCount1Label=View Count:
articleCount1Label
=
Article Count:
articleCount1Label
=
Article Count:
commentCountLabel
=
Comment Count
commentCountLabel
=
Comment Count
commentCount1Label
=
Comment Count:
commentCount1Label
=
Comment Count:
commentEmotions1Label
=
Emotions:
commentEmotionsLabel
=
Emotions
commentName1Label
=
Name:
commentNameLabel
=
Name
commentEmail1Label
=
Email:
commentEmailLabel
=
Email
commentURL1Label
=
URL:
commentURLLabel
=
URL
commentContent1Label
=
Content:
commentContentLabel
=
Content
getDateLabel
=
Get Date
getDateLabel
=
Get Date
getArticleLabel
=
Get Article
getArticleLabel
=
Get Article
selectDateLabel
=
Select Date
selectDateLabel
=
Select Date
...
...
src/main/resources/lang_zh_CN.properties
View file @
6f87f922
...
@@ -18,12 +18,14 @@
...
@@ -18,12 +18,14 @@
#
#
# Description: Solo default language configurations(zh_CN).
# Description: Solo default language configurations(zh_CN).
# Version: 2.3
0
.0.0, Feb 10, 2019
# Version: 2.3
1
.0.0, Feb 10, 2019
# Author: Liang Ding
# Author: Liang Ding
# Author: Liyuan Li
# Author: Liyuan Li
# Author: Dongxu Wang
# Author: Dongxu Wang
#
#
cancelLabel
=
\u
53D6
\u
6D88
langLabel
=
zh_CN
pushSuccLabel
=
\u
63A8
\u9001\u6210\u
529F
pushSuccLabel
=
\u
63A8
\u9001\u6210\u
529F
pushToHacpaiLabel
=
\u
63A8
\u9001\u5230\u
793E
\u
533A
pushToHacpaiLabel
=
\u
63A8
\u9001\u5230\u
793E
\u
533A
getUploadTokenErrLabel
=
\u
83B7
\u
53D6
\u
793E
\u
533A
\u6587\u
4EF6
\u
5B58
\u
50A8
\u
670D
\u
52A1
\u
4E0A
\u
4F20
\u
51ED
\u
8BC1
\u
5F02
\u
5E38
getUploadTokenErrLabel
=
\u
83B7
\u
53D6
\u
793E
\u
533A
\u6587\u
4EF6
\u
5B58
\u
50A8
\u
670D
\u
52A1
\u
4E0A
\u
4F20
\u
51ED
\u
8BC1
\u
5F02
\u
5E38
...
@@ -222,16 +224,6 @@ viewCount1Label=\u6D4F\u89C8\u6B21\u6570\uFF1A
...
@@ -222,16 +224,6 @@ viewCount1Label=\u6D4F\u89C8\u6B21\u6570\uFF1A
articleCount1Label
=
\u6587\u
7AE0
\u
603B
\u6570\u
FF1A
articleCount1Label
=
\u6587\u
7AE0
\u
603B
\u6570\u
FF1A
commentCountLabel
=
\u
8BC4
\u
8BBA
\u6570
commentCountLabel
=
\u
8BC4
\u
8BBA
\u6570
commentCount1Label
=
\u
8BC4
\u
8BBA
\u
603B
\u6570\u
FF1A
commentCount1Label
=
\u
8BC4
\u
8BBA
\u
603B
\u6570\u
FF1A
commentEmotions1Label
=
\u8868\u
60C5
\u
FF1A
commentEmotionsLabel
=
\u8868\u
60C5
commentName1Label
=
\u
59D3
\u
540D
\u
FF1A
commentNameLabel
=
\u
59D3
\u
540D
commentEmail1Label
=
\u
90AE
\u
7BB1
\u
FF1A
commentEmailLabel
=
\u
90AE
\u
7BB1
commentURL1Label
=
URL
\u
FF1A
commentURLLabel
=
URL
commentContent1Label
=
\u
8BC4
\u
8BBA
\u5185\u
5BB9
\u
FF1A
commentContentLabel
=
\u
8BC4
\u
8BBA
\u5185\u
5BB9
getDateLabel
=
\u
83B7
\u
53D6
\u
65E5
\u
671F
getDateLabel
=
\u
83B7
\u
53D6
\u
65E5
\u
671F
getArticleLabel
=
\u
83B7
\u
53D6
\u6587\u
7AE0
getArticleLabel
=
\u
83B7
\u
53D6
\u6587\u
7AE0
selectDateLabel
=
\u9009\u
62E9
\u
65E5
\u
671F
selectDateLabel
=
\u9009\u
62E9
\u
65E5
\u
671F
...
...
src/main/webapp/common-template/macro-comment_script.ftl
0 → 100644
View file @
6f87f922
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2019, b3log.org & hacpai.com
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/>.
-->
<#macro comment_script oId commentable>
<#if isLoggedIn && commentable>
<div style="position: fixed;bottom: -300px;width: 100%;opacity: 0;background-color: #f1f7fe;padding: 20px 0;transition: all .15s ease-in-out;z-index: 100;left: 0;"
id="soloEditor">
<div style="max-width: 768px;margin: 0 auto;padding: 0 10px;">
<div id="soloEditorComment"></div>
<div style="display: flex;margin-top: 10px;line-height: 30px">
<div style="flex: 1;" id="soloEditorReplyTarget"></div>
<div style="color: #d23f31" id="soloEditorError"></div>
<span id="soloEditorCancel" style="margin: 0 10px;padding: 0 12px;cursor: pointer">
${cancelLabel}
</span>
<button id="soloEditorAdd" style="border-radius: 4px;background-color: #60b044;border-color: #569e3d;color: #fff;padding: 0 12px">
${confirmLabel}
</button>
</div>
</div>
</div>
</#if>
<script type="text/javascript" src="${staticServePath}/js/page${miniPostfix}.js?${staticResourceVersion}"
charset="utf-8"></script>
<script type="text/javascript">
var page = new Page({
"commentContentCannotEmptyLabel": "${commentContentCannotEmptyLabel}",
"langLabel": "${langLabel}",
"oId": "${oId}",
"blogHost": "${blogHost}",
"randomArticles1Label": "${randomArticles1Label}",
"externalRelevantArticles1Label": "${externalRelevantArticles1Label}"
});
(function () {
page.load();
// emotions
page.replaceCommentsEm("#comments .content-reset");
<#nested>
})();
</script>
</#macro>
\ No newline at end of file
src/main/webapp/js/admin/article.js
View file @
6f87f922
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.0.
1
, Feb 10, 2019
* @version 1.6.0.
2
, Feb 10, 2019
*/
*/
admin
.
article
=
{
admin
.
article
=
{
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
// 当发文章,取消发布,更新文章时设置为 false。不需在离开编辑器时进行提示。
...
@@ -441,11 +441,13 @@ admin.article = {
...
@@ -441,11 +441,13 @@ admin.article = {
id
:
'
articleContent
'
,
id
:
'
articleContent
'
,
height
:
500
,
height
:
500
,
fun
:
fun
,
fun
:
fun
,
previewShow
:
true
})
})
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
admin
.
editors
.
abstractEditor
=
new
SoloEditor
({
id
:
'
abstract
'
,
id
:
'
abstract
'
,
height
:
200
,
height
:
200
,
previewShow
:
false
})
})
admin
.
article
.
clearDraftTimer
()
admin
.
article
.
clearDraftTimer
()
...
...
src/main/webapp/js/admin/editor.js
View file @
6f87f922
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* @fileoverview editor
* @fileoverview editor
*
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @version 1.2.0.
0, Feb 6
, 2019
* @version 1.2.0.
1, Feb 10
, 2019
*/
*/
admin
.
editors
=
{}
admin
.
editors
=
{}
...
@@ -45,7 +45,7 @@ $.extend(SoloEditor.prototype, {
...
@@ -45,7 +45,7 @@ $.extend(SoloEditor.prototype, {
cache
:
true
,
cache
:
true
,
preview
:
{
preview
:
{
delay
:
500
,
delay
:
500
,
show
:
false
,
show
:
this
.
conf
.
previewShow
,
url
:
latkeConfig
.
servePath
+
'
/console/markdown/2html
'
,
url
:
latkeConfig
.
servePath
+
'
/console/markdown/2html
'
,
parse
:
function
(
element
)
{
parse
:
function
(
element
)
{
if
(
element
.
style
.
display
===
'
none
'
)
{
if
(
element
.
style
.
display
===
'
none
'
)
{
...
...
src/main/webapp/js/page.js
View file @
6f87f922
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