Commit 672d8482 authored by Van's avatar Van

🐛 comment list

parent d08d21b1
......@@ -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
}
......@@ -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,
......
......@@ -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,
}
This diff is collapsed.
......@@ -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: 35px;
margin: 3px 9px 0 3px;
width: 35px;
height: 25px;
width: 25px;
border-radius: 20px;
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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment