Commit 672d8482 authored by Van's avatar Van

🐛 comment list

parent d08d21b1
...@@ -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.1.0.0, Mar 17, 2019 * @version 1.1.0.1, Jan 14, 2020
*/ */
/* comment-list 相关操作 */ /* comment-list 相关操作 */
...@@ -102,7 +102,6 @@ admin.commentList = { ...@@ -102,7 +102,6 @@ admin.commentList = {
comments[i].commentName + comments[i].commentName +
'</a>' '</a>'
} }
commentsData[i].title += '<br/>'
commentsData[i].date = $.bowknot.getDate(comments[i].commentTime) commentsData[i].date = $.bowknot.getDate(comments[i].commentTime)
} }
...@@ -148,10 +147,10 @@ admin.commentList = { ...@@ -148,10 +147,10 @@ admin.commentList = {
} }
/* /*
* 注册到 admin 进行管理 * 注册到 admin 进行管理
*/ */
admin.register['comment-list'] = { admin.register['comment-list'] = {
'obj': admin.commentList, 'obj': admin.commentList,
'init': admin.commentList.init, 'init': admin.commentList.init,
'refresh': admin.commentList.getList, 'refresh': admin.commentList.getList,
} }
\ No newline at end of file
...@@ -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.4.0.0, Mar 20, 2019 * @version 1.4.1.0, Jan 14, 2020
*/ */
/* others 相关操作 */ /* others 相关操作 */
...@@ -88,42 +88,14 @@ admin.others = { ...@@ -88,42 +88,14 @@ admin.others = {
*/ */
exportJSON: function () { exportJSON: function () {
$("#tipMsg").text(""); $("#tipMsg").text("");
window.open(Label.servePath + "/console/export/json")
$.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);
}
}
});
}, },
/* /*
* @description 导出数据为 Hexo Markdown 文件 * @description 导出数据为 Hexo Markdown 文件
*/ */
exportHexo: function () { exportHexo: function () {
$("#tipMsg").text(""); $("#tipMsg").text("");
window.open(Label.servePath + "/console/export/hexo")
$.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);
}
}
});
}, },
/* /*
* 获取未使用的标签。 * 获取未使用的标签。
...@@ -151,7 +123,7 @@ admin.others = { ...@@ -151,7 +123,7 @@ admin.others = {
}; };
/* /*
* 注册到 admin 进行管理 * 注册到 admin 进行管理
*/ */
admin.register.others = { admin.register.others = {
"obj": admin.others, "obj": admin.others,
......
...@@ -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.0.0.0, Jan 13, 2020 * @version 1.0.0.1, Jan 14, 2020
*/ */
/* staticsite 相关操作 */ /* staticsite 相关操作 */
...@@ -56,12 +56,10 @@ admin.staticsite = { ...@@ -56,12 +56,10 @@ admin.staticsite = {
} }
/* /*
* 注册到 admin 进行管理 * 注册到 admin 进行管理
*/ */
admin.register['staticsite'] = { admin.register['staticsite'] = {
'obj': admin.staticsite, 'obj': admin.staticsite,
'init': admin.staticsite.init, 'init': admin.staticsite.init,
'refresh': function () { 'refresh': admin.clearTip,
admin.clearTip()
},
} }
This diff is collapsed.
...@@ -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 3.3.0.0, Nov 12, 2019 * @version 3.3.0.1, Jan 14, 2020
*/ */
@import "reset"; @import "reset";
@import "function"; @import "function";
...@@ -613,10 +613,10 @@ button#submitArticle:hover { ...@@ -613,10 +613,10 @@ button#submitArticle:hover {
/* start common list */ /* start common list */
.small-head { .small-head {
float: left; height: 25px;
height: 35px; width: 25px;
margin: 3px 9px 0 3px; border-radius: 20px;
width: 35px; margin-right: 5px;
} }
#commentTable .table-main td { #commentTable .table-main td {
...@@ -840,6 +840,7 @@ button#submitArticle:hover { ...@@ -840,6 +840,7 @@ button#submitArticle:hover {
.table-main table { .table-main table {
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
table-layout: fixed;
} }
.table-header { .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