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
672d8482
Unverified
Commit
672d8482
authored
Jan 14, 2020
by
Van
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
comment list
parent
d08d21b1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
47 deletions
+17
-47
src/main/resources/js/admin/commentList.js
src/main/resources/js/admin/commentList.js
+3
-4
src/main/resources/js/admin/others.js
src/main/resources/js/admin/others.js
+4
-32
src/main/resources/js/admin/staticsite.js
src/main/resources/js/admin/staticsite.js
+3
-5
src/main/resources/scss/admin.css
src/main/resources/scss/admin.css
+1
-1
src/main/resources/scss/admin.scss
src/main/resources/scss/admin.scss
+6
-5
No files found.
src/main/resources/js/admin/commentList.js
View file @
672d8482
...
...
@@ -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.0.
0, Mar 17, 2019
* @version 1.1.0.
1, Jan 14, 2020
*/
/* comment-list 相关操作 */
...
...
@@ -102,7 +102,6 @@ admin.commentList = {
comments
[
i
].
commentName
+
'
</a>
'
}
commentsData
[
i
].
title
+=
'
<br/>
'
commentsData
[
i
].
date
=
$
.
bowknot
.
getDate
(
comments
[
i
].
commentTime
)
}
...
...
@@ -148,10 +147,10 @@ admin.commentList = {
}
/*
* 注册到 admin 进行管理
* 注册到 admin 进行管理
*/
admin
.
register
[
'
comment-list
'
]
=
{
'
obj
'
:
admin
.
commentList
,
'
init
'
:
admin
.
commentList
.
init
,
'
refresh
'
:
admin
.
commentList
.
getList
,
}
\ No newline at end of file
}
src/main/resources/js/admin/others.js
View file @
672d8482
...
...
@@ -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.4.
0.0, Mar 20, 2019
* @version 1.4.
1.0, Jan 14, 2020
*/
/* others 相关操作 */
...
...
@@ -88,42 +88,14 @@ admin.others = {
*/
exportJSON
:
function
()
{
$
(
"
#tipMsg
"
).
text
(
""
);
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/export/json
"
,
type
:
"
GET
"
,
cache
:
false
,
success
:
function
(
result
,
textStatus
)
{
// AJAX 下载文件的话这里会发两次请求,用 sc 来判断是否是文件,如果没有 sc 说明文件可以下载(实际上就是 result)
if
(
!
result
.
sc
)
{
// 再发一次请求进行正式下载
window
.
location
=
Label
.
servePath
+
"
/console/export/json
"
;
}
else
{
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
}
}
});
window
.
open
(
Label
.
servePath
+
"
/console/export/json
"
)
},
/*
* @description 导出数据为 Hexo Markdown 文件
*/
exportHexo
:
function
()
{
$
(
"
#tipMsg
"
).
text
(
""
);
$
.
ajax
({
url
:
Label
.
servePath
+
"
/console/export/hexo
"
,
type
:
"
GET
"
,
cache
:
false
,
success
:
function
(
result
,
textStatus
)
{
// AJAX 下载文件的话这里会发两次请求,用 sc 来判断是否是文件,如果没有 sc 说明文件可以下载(实际上就是 result)
if
(
!
result
.
sc
)
{
// 再发一次请求进行正式下载
window
.
location
=
Label
.
servePath
+
"
/console/export/hexo
"
;
}
else
{
$
(
"
#tipMsg
"
).
text
(
result
.
msg
);
}
}
});
window
.
open
(
Label
.
servePath
+
"
/console/export/hexo
"
)
},
/*
* 获取未使用的标签。
...
...
@@ -151,7 +123,7 @@ admin.others = {
};
/*
* 注册到 admin 进行管理
* 注册到 admin 进行管理
*/
admin
.
register
.
others
=
{
"
obj
"
:
admin
.
others
,
...
...
src/main/resources/js/admin/staticsite.js
View file @
672d8482
...
...
@@ -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.0.
0, Jan 13
, 2020
* @version 1.0.0.
1, Jan 14
, 2020
*/
/* staticsite 相关操作 */
...
...
@@ -56,12 +56,10 @@ admin.staticsite = {
}
/*
* 注册到 admin 进行管理
* 注册到 admin 进行管理
*/
admin
.
register
[
'
staticsite
'
]
=
{
'
obj
'
:
admin
.
staticsite
,
'
init
'
:
admin
.
staticsite
.
init
,
'
refresh
'
:
function
()
{
admin
.
clearTip
()
},
'
refresh
'
:
admin
.
clearTip
,
}
src/main/resources/scss/admin.css
View file @
672d8482
This diff is collapsed.
Click to expand it.
src/main/resources/scss/admin.scss
View file @
672d8482
...
...
@@ -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 3.3.0.
0, Nov 12, 2019
* @version 3.3.0.
1, Jan 14, 2020
*/
@import
"reset"
;
@import
"function"
;
...
...
@@ -613,10 +613,10 @@ button#submitArticle:hover {
/* start common list */
.small-head
{
float
:
left
;
height
:
3
5px
;
margin
:
3px
9px
0
3
px
;
width
:
3
5px
;
height
:
25px
;
width
:
2
5px
;
border-radius
:
20
px
;
margin-right
:
5px
;
}
#commentTable
.table-main
td
{
...
...
@@ -840,6 +840,7 @@ button#submitArticle:hover {
.table-main
table
{
word-break
:
break-all
;
word-wrap
:
break-word
;
table-layout
:
fixed
;
}
.table-header
{
...
...
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