@@ -264,7 +264,7 @@ eval("/*\n * Solo - A small and beautiful blogging system written in Java.\n * C
/*! no static exports found */
/***/(function(module,exports){
eval("/*\n * Solo - A small and beautiful blogging system written in Java.\n * Copyright (c) 2010-present, b3log.org\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\n/**\n * others for admin.\n *\n * @author <a href=\"http://vanessa.b3log.org\">Liyuan Li</a>\n * @author <a href=\"http://88250.b3log.org\">Liang Ding</a>\n * @version 1.4.1.0, Jan 14, 2020\n */\n\n/* others 相关操作 */\nadmin.others = {\n /*\n * @description 初始化\n */\n init: function init() {\n $(\"#tabOthers\").tabs();\n $('#loadMsg').text('');\n },\n\n /*\n * @description 移除未使用的存档\n */\n removeUnusedArchives: function removeUnusedArchives() {\n $(\"#tipMsg\").text(\"\");\n $.ajax({\n url: Label.servePath + \"/console/archive/unused\",\n type: \"DELETE\",\n cache: false,\n success: function success(result, textStatus) {\n $(\"#tipMsg\").text(result.msg);\n }\n });\n },\n\n /*\n * @description 移除未使用的标签\n */\n removeUnusedTags: function removeUnusedTags() {\n $(\"#tipMsg\").text(\"\");\n $.ajax({\n url: Label.servePath + \"/console/tag/unused\",\n type: \"DELETE\",\n cache: false,\n success: function success(result, textStatus) {\n $(\"#tipMsg\").text(result.msg);\n }\n });\n },\n\n /*\n * @description 导出数据为 SQL 文件\n */\n exportSQL: function exportSQL() {\n $(\"#tipMsg\").text(\"\");\n $.ajax({\n url: Label.servePath + \"/console/export/sql\",\n type: \"GET\",\n cache: false,\n success: function success(result, textStatus) {\n // AJAX 下载文件的话这里会发两次请求,用 sc 来判断是否是文件,如果没有 sc 说明文件可以下载(实际上就是 result)\n if (!result.sc) {\n // 再发一次请求进行正式下载\n window.location = Label.servePath + \"/console/export/sql\";\n } else {\n $(\"#tipMsg\").text(result.msg);\n }\n }\n });\n },\n\n /*\n * @description 导出数据为 JSON 文件\n */\n exportJSON: function exportJSON() {\n $(\"#tipMsg\").text(\"\");\n window.open(Label.servePath + \"/console/export/json\");\n },\n\n /*\n * @description 导出数据为 Hexo Markdown 文件\n */\n exportHexo: function exportHexo() {\n $(\"#tipMsg\").text(\"\");\n window.open(Label.servePath + \"/console/export/hexo\");\n },\n\n /*\n * 获取未使用的标签。\n * XXX: Not used this function yet.\n */\n getUnusedTags: function getUnusedTags() {\n $.ajax({\n url: Label.servePath + \"/console/tag/unused\",\n type: \"GET\",\n cache: false,\n success: function success(result, textStatus) {\n $(\"#tipMsg\").text(result.msg);\n\n if (!result.sc) {\n $(\"#loadMsg\").text(\"\");\n return;\n }\n\n var unusedTags = result.unusedTags;\n\n if (0 === unusedTags.length) {\n return;\n }\n }\n });\n }\n};\n/*\n * 注册到 admin 进行管理\n */\n\nadmin.register.others = {\n\"obj\": admin.others,\n\"init\": admin.others.init,\n\"refresh\": function refresh() {\n admin.clearTip();\n }\n};\n\n//# sourceURL=webpack:///./src/main/resources/js/admin/others.js?");
eval("/*\n * Solo - A small and beautiful blogging system written in Java.\n * Copyright (c) 2010-present, b3log.org\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <https://www.gnu.org/licenses/>.\n */\n\n/**\n * others for admin.\n *\n * @author <a href=\"http://vanessa.b3log.org\">Liyuan Li</a>\n * @author <a href=\"http://88250.b3log.org\">Liang Ding</a>\n * @version 1.4.1.0, Apr 2, 2020\n */\n\n/* others 相关操作 */\nadmin.others = {\n intervalId: 0,\n\n /*\n * @description 初始化\n */\n init: function init() {\n $('#tabOthers').tabs();\n $('#loadMsg').text('');\n clearInterval(admin.others.intervalId);\n admin.others.intervalId = setInterval(function () {\n admin.others.getLog();\n }, 5000);\n admin.others.getLog();\n },\n getLog: function getLog() {\n $.ajax({\n url: Label.servePath + '/console/log',\n cache: false,\n timeout: 3000,\n success: function success(result) {\n $('#tabOthersPanel_log textarea').val(result.log);\n }\n });\n },\n\n /*\n * @description 移除未使用的存档\n */\n removeUnusedArchives: function removeUnusedArchives() {\n $('#tipMsg').text('');\n $.ajax({\n url: Label.servePath + '/console/archive/unused',\n type: 'DELETE',\n cache: false,\n success: function success(result, textStatus) {\n $('#tipMsg').text(result.msg);\n }\n });\n },\n\n /*\n * @description 移除未使用的标签\n */\n removeUnusedTags: function removeUnusedTags() {\n $('#tipMsg').text('');\n $.ajax({\n url: Label.servePath + '/console/tag/unused',\n type: 'DELETE',\n cache: false,\n success: function success(result, textStatus) {\n $('#tipMsg').text(result.msg);\n }\n });\n },\n\n /*\n * @description 导出数据为 SQL 文件\n */\n exportSQL: function exportSQL() {\n $('#tipMsg').text('');\n $.ajax({\n url: Label.servePath + '/console/export/sql',\n type: 'GET',\n cache: false,\n success: function success(result, textStatus) {\n // AJAX 下载文件的话这里会发两次请求,用 sc 来判断是否是文件,如果没有 sc 说明文件可以下载(实际上就是 result)\n if (!result.sc) {\n // 再发一次请求进行正式下载\n window.location = Label.servePath + '/console/export/sql';\n } else {\n $('#tipMsg').text(result.msg);\n }\n }\n });\n },\n\n /*\n * @description 导出数据为 JSON 文件\n */\n exportJSON: function exportJSON() {\n $('#tipMsg').text('');\n window.open(Label.servePath + '/console/export/json');\n },\n\n /*\n * @description 导出数据为 Hexo Markdown 文件\n */\n exportHexo: function exportHexo() {\n $('#tipMsg').text('');\n window.open(Label.servePath + '/console/export/hexo');\n },\n\n /*\n * 获取未使用的标签。\n * XXX: Not used this function yet.\n */\n getUnusedTags: function getUnusedTags() {\n $.ajax({\n url: Label.servePath + '/console/tag/unused',\n type: 'GET',\n cache: false,\n success: function success(result, textStatus) {\n $('#tipMsg').text(result.msg);\n\n if (!result.sc) {\n $('#loadMsg').text('');\n return;\n }\n\n var unusedTags = result.unusedTags;\n\n if (0 === unusedTags.length) {\n return;\n }\n }\n });\n }\n};\n/*\n * 注册到 admin 进行管理\n */\n\nadmin.register.others = {\n 'obj': admin.others,\n 'init': admin.others.init,\n 'refresh': function refresh() {\n admin.clearTip();\n }\n};\n\n//# sourceURL=webpack:///./src/main/resources/js/admin/others.js?");