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
d50111c1
Unverified
Commit
d50111c1
authored
Sep 10, 2018
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
#12500
parent
bb5d5822
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
24 additions
and
19 deletions
+24
-19
src/main/webapp/js/admin/article.js
src/main/webapp/js/admin/article.js
+2
-2
src/main/webapp/js/admin/articleList.js
src/main/webapp/js/admin/articleList.js
+1
-1
src/main/webapp/js/admin/categoryList.js
src/main/webapp/js/admin/categoryList.js
+3
-3
src/main/webapp/js/admin/draftList.js
src/main/webapp/js/admin/draftList.js
+2
-2
src/main/webapp/js/admin/linkList.js
src/main/webapp/js/admin/linkList.js
+3
-3
src/main/webapp/js/admin/pageList.js
src/main/webapp/js/admin/pageList.js
+3
-3
src/main/webapp/js/admin/userList.js
src/main/webapp/js/admin/userList.js
+3
-3
src/main/webapp/js/common.js
src/main/webapp/js/common.js
+6
-1
src/main/webapp/skins
src/main/webapp/skins
+1
-1
No files found.
src/main/webapp/js/admin/article.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.5.
0.1, Apr 5
, 2018
* @version 1.5.
1.0, Sep 10
, 2018
*/
admin
.
article
=
{
currentEditorType
:
''
,
...
...
@@ -118,7 +118,7 @@ admin.article = {
* @param {String} title 文章标题
*/
del
:
function
(
id
,
fromId
,
title
)
{
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
articleLabel
+
'
"
'
+
title
+
'
"?
'
);
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
articleLabel
+
'
"
'
+
Util
.
htmlDecode
(
title
)
+
'
"?
'
);
if
(
isDelete
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
""
);
...
...
src/main/webapp/js/admin/articleList.js
View file @
d50111c1
...
...
@@ -99,7 +99,7 @@ admin.articleList = {
var
topClass
=
articles
[
i
].
articlePutTop
?
Label
.
cancelPutTopLabel
:
Label
.
putTopLabel
;
articleData
[
i
].
expendRow
=
"
<a target='_blank' href='
"
+
latkeConfig
.
servePath
+
articles
[
i
].
articlePermalink
+
"
'>
"
+
Label
.
viewLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.article.get('
"
+
articles
[
i
].
oId
+
"
', true)
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
articles
[
i
].
oId
+
"
', 'article', '
"
+
articles
[
i
].
articleTitle
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
articles
[
i
].
oId
+
"
', 'article', '
"
+
encodeURIComponent
(
articles
[
i
].
articleTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.articleList.popTop(this, '
"
+
articles
[
i
].
oId
+
"
')
\"
>
"
+
topClass
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
articles
[
i
].
oId
+
"
', 'article')
\"
>
"
+
Label
.
commentLabel
+
"
</a>
"
;
}
...
...
src/main/webapp/js/admin/categoryList.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.
2.1, Apr 5
, 2018
* @version 1.1.
3.0, Sep 10
, 2018
* @since 2.0.0
*/
...
...
@@ -152,7 +152,7 @@ admin.categoryList = {
categoryData
[
i
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.categoryList.get('
"
+
categories
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.categoryList.del('
"
+
categories
[
i
].
oId
+
"
', '
"
+
categories
[
i
].
categoryTitle
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
;
encodeURIComponent
(
categories
[
i
].
categoryTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
;
}
that
.
tablePagination
.
updateTablePagination
(
categoryData
,
pageNum
,
result
.
pagination
);
...
...
@@ -278,7 +278,7 @@ admin.categoryList = {
* @categoryName 分类名称
*/
del
:
function
(
id
,
categoryName
)
{
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
categoryLabel
+
'
"
'
+
categoryName
+
'
"?
'
);
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
categoryLabel
+
'
"
'
+
Util
.
htmlDecode
(
categoryName
)
+
'
"?
'
);
if
(
isDelete
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
""
);
...
...
src/main/webapp/js/admin/draftList.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.
1.5, Apr 5
, 2018
* @version 1.0.
2.0, Sep 10
, 2018
*/
/* draft-list 相关操作 */
...
...
@@ -94,7 +94,7 @@ admin.draftList = {
articles
[
i
].
articlePermalink
+
"
' target='_blank'>
"
+
articles
[
i
].
articleTitle
+
"
</a><span class='table-tag'>
"
+
articles
[
i
].
articleTags
+
"
</span>
"
;
articleData
[
i
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.article.get('
"
+
articles
[
i
].
oId
+
"
', false);
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
articles
[
i
].
oId
+
"
', 'draft', '
"
+
articles
[
i
].
articleTitle
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.article.del('
"
+
articles
[
i
].
oId
+
"
', 'draft', '
"
+
encodeURIComponent
(
articles
[
i
].
articleTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
articles
[
i
].
oId
+
"
', 'draft')
\"
>
"
+
Label
.
commentLabel
+
"
</a>
"
;
}
...
...
src/main/webapp/js/admin/linkList.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.
1.5, Apr 5
, 2018
* @version 1.1.
2.0, Sep 10
, 2018
*/
/* link-list 相关操作 */
...
...
@@ -124,7 +124,7 @@ admin.linkList = {
linkData
[
i
].
linkDescription
=
links
[
i
].
linkDescription
;
linkData
[
i
].
expendRow
=
"
<span><a href='
"
+
links
[
i
].
linkAddress
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.linkList.get('
"
+
links
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.linkList.del('
"
+
links
[
i
].
oId
+
"
', '
"
+
links
[
i
].
linkTitle
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
;
<a href='javascript:void(0)' onclick=
\"
admin.linkList.del('
"
+
links
[
i
].
oId
+
"
', '
"
+
encodeURIComponent
(
links
[
i
].
linkTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a></span>
"
;
}
that
.
tablePagination
.
updateTablePagination
(
linkData
,
pageNum
,
result
.
pagination
);
...
...
@@ -254,7 +254,7 @@ admin.linkList = {
* @title 链接标题
*/
del
:
function
(
id
,
title
)
{
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
permalinkLabel
+
'
"
'
+
title
+
'
"?
'
);
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
permalinkLabel
+
'
"
'
+
Util
.
htmlDecode
(
title
)
+
'
"?
'
);
if
(
isDelete
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
""
);
...
...
src/main/webapp/js/admin/pageList.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.
3.7, Apr 5
, 2018
* @version 1.2.
4.0, Sep 10
, 2018
*/
/* page-list 相关操作 */
...
...
@@ -168,7 +168,7 @@ admin.pageList = {
pageData
[
i
].
comments
=
pages
[
i
].
pageCommentCount
;
pageData
[
i
].
expendRow
=
"
<span><a href='
"
+
pages
[
i
].
pagePermalink
+
"
' target='_blank'>
"
+
Label
.
viewLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.pageList.get('
"
+
pages
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.pageList.del('
"
+
pages
[
i
].
oId
+
"
', '
"
+
pages
[
i
].
pageTitle
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.pageList.del('
"
+
pages
[
i
].
oId
+
"
', '
"
+
encodeURIComponent
(
pages
[
i
].
pageTitle
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.comment.open('
"
+
pages
[
i
].
oId
+
"
', 'page')
\"
>
"
+
Label
.
commentLabel
+
"
</a></span>
"
;
}
...
...
@@ -229,7 +229,7 @@ admin.pageList = {
* @title 自定义页面标题
*/
del
:
function
(
id
,
title
)
{
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
navLabel
+
'
"
'
+
title
+
'
"?
'
);
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
navLabel
+
'
"
'
+
Util
.
htmlDecode
(
title
)
+
'
"?
'
);
if
(
isDelete
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
""
);
...
...
src/main/webapp/js/admin/userList.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.
1.8, Apr 5
, 2018
* @version 1.1.
2.0, Sep 10
, 2018
*/
/* user-list 相关操作 */
...
...
@@ -109,7 +109,7 @@ admin.userList = {
}
else
{
userData
[
i
].
expendRow
=
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.get('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userRole
+
"
')
\"
>
"
+
Label
.
updateLabel
+
"
</a>
\
<a href='javascript:void(0)' onclick=
\"
admin.userList.del('
"
+
users
[
i
].
oId
+
"
', '
"
+
users
[
i
].
userName
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
+
<a href='javascript:void(0)' onclick=
\"
admin.userList.del('
"
+
users
[
i
].
oId
+
"
', '
"
+
encodeURIComponent
(
users
[
i
].
userName
)
+
"
')
\"
>
"
+
Label
.
removeLabel
+
"
</a>
"
+
"
<a href='javascript:void(0)' onclick=
\"
admin.userList.changeRole('
"
+
users
[
i
].
oId
+
"
')
\"
>
"
+
Label
.
changeRoleLabel
+
"
</a>
"
;
if
(
"
defaultRole
"
===
users
[
i
].
userRole
)
{
userData
[
i
].
isAdmin
=
Label
.
commonUserLabel
;
...
...
@@ -260,7 +260,7 @@ admin.userList = {
* @userName 用户名称
*/
del
:
function
(
id
,
userName
)
{
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
userLabel
+
'
"
'
+
userName
+
'
"?
'
);
var
isDelete
=
confirm
(
Label
.
confirmRemoveLabel
+
Label
.
userLabel
+
'
"
'
+
Util
.
htmlDecode
(
userName
)
+
'
"?
'
);
if
(
isDelete
)
{
$
(
"
#loadMsg
"
).
text
(
Label
.
loadingLabel
);
$
(
"
#tipMsg
"
).
text
(
""
);
...
...
src/main/webapp/js/common.js
View file @
d50111c1
...
...
@@ -20,7 +20,7 @@
*
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.
3.2.0, Jul 8
, 2018
* @version 1.
4.0.0, Sep 10
, 2018
*/
/**
...
...
@@ -28,6 +28,11 @@
* @static
*/
var
Util
=
{
htmlDecode
:
function
(
code
)
{
var
div
=
document
.
createElement
(
'
div
'
)
div
.
innerHTML
=
decodeURIComponent
(
code
)
return
div
.
innerText
},
_isArticlePage
:
function
(
href
)
{
var
isArticle
=
true
;
if
(
href
.
indexOf
(
latkeConfig
.
servePath
+
'
/tags/
'
)
>
-
1
)
{
...
...
skins
@
02c86cec
Subproject commit
f9607e2c432ec40fb8bedce05eb232e3bdb071b0
Subproject commit
02c86cec286fbb5813365d621afce7efa33ec38a
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