diff --git a/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/aspect/AuthAspect.java b/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/aspect/AuthAspect.java index 92c9b348..9b2cb426 100644 --- a/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/aspect/AuthAspect.java +++ b/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/aspect/AuthAspect.java @@ -22,6 +22,7 @@ import org.springframework.web.servlet.ModelAndView; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import java.lang.reflect.Method; +import java.net.URLEncoder; import java.util.Map; @Aspect @@ -47,7 +48,8 @@ public class AuthAspect { } else if (returnType.isAssignableFrom(ModelAndView.class)) { HttpServletRequest request = ThreadLocalUtil.getHttpServletRequest(); StringBuffer requestURL = request.getRequestURL(); - return new ModelAndView("redirect:/static/manage/login.html?returnUrl=" + requestURL); + String requestURLStr = URLEncoder.encode(requestURL.toString(), "utf-8"); + return new ModelAndView("redirect:/static/manage/login.html?redirect=" + requestURLStr); } else if (returnType.isAssignableFrom(Map.class)) { return Maps.newHashMap(); } diff --git a/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/entity/WikiPageFile.java b/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/entity/WikiPageFile.java index c3a47b62..2275962f 100644 --- a/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/entity/WikiPageFile.java +++ b/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/entity/WikiPageFile.java @@ -79,6 +79,11 @@ public class WikiPageFile implements Serializable { */ private Integer delFlag; + /** + * 下载次数 + */ + private Integer downloadNum; + public Long getId() { return id; } @@ -181,4 +186,12 @@ public class WikiPageFile implements Serializable { ", delFlag=" + delFlag + "}"; } + + public Integer getDownloadNum() { + return downloadNum; + } + + public void setDownloadNum(Integer downloadNum) { + this.downloadNum = downloadNum; + } } diff --git a/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/mapper/WikiPageFileMapper.java b/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/mapper/WikiPageFileMapper.java index 986cbdf4..67288337 100644 --- a/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/mapper/WikiPageFileMapper.java +++ b/zyplayer-doc-data/src/main/java/com/zyplayer/doc/data/repository/manage/mapper/WikiPageFileMapper.java @@ -2,15 +2,19 @@ package com.zyplayer.doc.data.repository.manage.mapper; import com.zyplayer.doc.data.repository.manage.entity.WikiPageFile; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Update; /** *

- * Mapper 接口 + * Mapper 接口 *

* * @author 暮光:城中城 * @since 2019-03-06 */ public interface WikiPageFileMapper extends BaseMapper { - + + @Update("update wiki_page_file set download_num=download_num+1 where id=#{id}") + void addDownloadNum(@Param("id") Long id); } diff --git a/zyplayer-doc-db/src/main/resources/export/js/common.js b/zyplayer-doc-db/src/main/resources/export/js/common.js index 56bf0cf3..6336d2e7 100644 --- a/zyplayer-doc-db/src/main/resources/export/js/common.js +++ b/zyplayer-doc-db/src/main/resources/export/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -151,8 +151,8 @@ function getObjectFirstAttributeIfOnly(data) { function postService(url, param, success=function(){}, complete=function(){}){ ajaxTemp(url, "POST", "JSON", param, function(result){ if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else if (result.errCode != "200") { Toast.warn(result.errMsg); } else { @@ -185,8 +185,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-db/src/main/resources/webjars/doc-db/js/common.js b/zyplayer-doc-db/src/main/resources/webjars/doc-db/js/common.js index 05bcc167..aeaca38b 100644 --- a/zyplayer-doc-db/src/main/resources/webjars/doc-db/js/common.js +++ b/zyplayer-doc-db/src/main/resources/webjars/doc-db/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -151,8 +151,8 @@ function getObjectFirstAttributeIfOnly(data) { function postService(url, param, success=function(){}, complete=function(){}){ ajaxTemp(url, "POST", "JSON", param, function(result){ if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else if (result.errCode != "200") { Toast.warn(result.errMsg); } else { @@ -185,8 +185,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-dubbo/src/main/resources/webjars/doc-dubbo/js/common.js b/zyplayer-doc-dubbo/src/main/resources/webjars/doc-dubbo/js/common.js index 2a699c46..6db0ee72 100644 --- a/zyplayer-doc-dubbo/src/main/resources/webjars/doc-dubbo/js/common.js +++ b/zyplayer-doc-dubbo/src/main/resources/webjars/doc-dubbo/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -197,8 +197,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-grpc/src/main/resources/webjars/doc-grpc/js/common.js b/zyplayer-doc-grpc/src/main/resources/webjars/doc-grpc/js/common.js index 2a699c46..6db0ee72 100644 --- a/zyplayer-doc-grpc/src/main/resources/webjars/doc-grpc/js/common.js +++ b/zyplayer-doc-grpc/src/main/resources/webjars/doc-grpc/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -197,8 +197,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/LoginController.java b/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/LoginController.java index 41ed7067..1e67e7f5 100644 --- a/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/LoginController.java +++ b/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/LoginController.java @@ -13,10 +13,8 @@ import com.zyplayer.doc.data.service.manage.UserAuthService; import com.zyplayer.doc.data.service.manage.UserInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.DigestUtils; -import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RestController; -import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletResponse; @@ -33,15 +31,11 @@ public class LoginController { @Autowired private AuthInfoService authInfoService; - @GetMapping(value = "/login") - public ModelAndView loginPage() { - return new ModelAndView("/statics/manage/login.html"); - } - @PostMapping(value = "/login") public DocResponseJson login(String username, String password, HttpServletResponse response) { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("user_no", username); + queryWrapper.eq("del_flag", 0); UserInfo userInfo = userInfoService.getOne(queryWrapper); if (userInfo == null) { return DocResponseJson.warn("用户名'" + username + "'没有找到!"); @@ -60,7 +54,7 @@ public class LoginController { Map authNameMap = authInfoList.stream().collect(Collectors.toMap(AuthInfo::getId, AuthInfo::getAuthName)); userAuthSet = userAuthList.stream().map(val -> { String authName = Optional.ofNullable(authNameMap.get(val.getAuthId())).orElse(""); - return authName + val.getAuthCustomSuffix(); + return authName + Optional.ofNullable(val.getAuthCustomSuffix()).orElse(""); }).collect(Collectors.toSet()); } String accessToken = RandomUtil.simpleUUID(); diff --git a/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/UserInfoController.java b/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/UserInfoController.java index 569c07d7..b9912eff 100644 --- a/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/UserInfoController.java +++ b/zyplayer-doc-manage/src/main/java/com/zyplayer/doc/manage/web/manage/UserInfoController.java @@ -70,7 +70,8 @@ public class UserInfoController { }); return DocResponseJson.ok(authInfoVoList); } - + + @AuthMan("AUTH_ASSIGN") @PostMapping("/auth/update") public ResponseJson updateAuth(String userIds, String authIds) { List userIdsList = Arrays.stream(userIds.split(",")).map(Long::valueOf).collect(Collectors.toList()); diff --git a/zyplayer-doc-manage/src/main/resources/sql/zyplayer_doc_manage.1.0.2.sql b/zyplayer-doc-manage/src/main/resources/sql/zyplayer_doc_manage.1.0.2.sql index bea8eff4..a6409c42 100644 --- a/zyplayer-doc-manage/src/main/resources/sql/zyplayer_doc_manage.1.0.2.sql +++ b/zyplayer-doc-manage/src/main/resources/sql/zyplayer_doc_manage.1.0.2.sql @@ -19,6 +19,297 @@ ALTER TABLE `wiki_page` ADD COLUMN `seq_no` int NOT NULL DEFAULT 0 COMMENT '顺 UPDATE wiki_page SET seq_no=id WHERE del_flag=0; ALTER TABLE `wiki_page_content` ADD COLUMN `preview` varchar(1024) NULL COMMENT '预览内容'; +ALTER TABLE `wiki_page_file` ADD COLUMN `download_num` int NOT NULL DEFAULT 0 COMMENT '下载次数'; --- 全新的库: + + + + + +-- ------------------------全新的库:------------------------ + +/* + Navicat Premium Data Transfer + + Source Server : 127.0.0.1 + Source Server Type : MySQL + Source Server Version : 50724 + Source Host : 127.0.0.1:3306 + Source Schema : zyplayer_doc_manage + + Target Server Type : MySQL + Target Server Version : 50724 + File Encoding : 65001 + + Date: 18/06/2019 20:29:06 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for auth_info +-- ---------------------------- +DROP TABLE IF EXISTS `auth_info`; +CREATE TABLE `auth_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `auth_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '权限名', + `auth_desc` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '权限说明', + `can_edit` tinyint(4) NULL DEFAULT 1 COMMENT '是否可编辑 0=否 1=是', + `create_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建人用户ID', + `creation_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '权限信息表' ROW_FORMAT = Compact; + +-- ---------------------------- +-- Records of auth_info +-- ---------------------------- +INSERT INTO `auth_info` VALUES (1, 'DOC_ALL', '文档查看权', 0, 1, '2018-12-01 11:40:42'); +INSERT INTO `auth_info` VALUES (2, 'AUTH_MANAGE', '权限管理权', 0, 1, '2018-12-01 11:40:42'); +INSERT INTO `auth_info` VALUES (3, 'AUTH_ASSIGN', '权限分配权', 0, 1, '2018-12-01 11:40:42'); +INSERT INTO `auth_info` VALUES (4, 'USER_MANAGE', '用户管理权', 0, 1, '2018-12-01 11:40:42'); +INSERT INTO `auth_info` VALUES (5, 'WIKI_EDIT_PAGE_', '编辑wiki文档', 0, 1, '2019-06-04 13:01:20'); +INSERT INTO `auth_info` VALUES (6, 'WIKI_VIEW_PAGE_', '查看wiki文档', 0, 1, '2019-06-04 13:01:20'); +INSERT INTO `auth_info` VALUES (7, 'WIKI_COMMENT_PAGE_', '评论wiki文档', 0, 1, '2019-06-04 13:01:20'); +INSERT INTO `auth_info` VALUES (8, 'WIKI_DELETE_PAGE_', '删除wiki文档', 0, 1, '2019-06-04 13:01:20'); +INSERT INTO `auth_info` VALUES (9, 'WIKI_PAGE_FILE_UPLOAD_', '上传wiki文档附件', 0, 1, '2019-06-04 13:01:20'); +INSERT INTO `auth_info` VALUES (10, 'WIKI_PAGE_FILE_DELETE_', '删除wiki文档附件', 0, 1, '2019-06-04 13:01:20'); +INSERT INTO `auth_info` VALUES (11, 'WIKI_PAGE_AUTH_MANAGE_', 'wiki权限管理', 0, 1, '2019-06-04 13:01:20'); + +-- ---------------------------- +-- Table structure for user_auth +-- ---------------------------- +DROP TABLE IF EXISTS `user_auth`; +CREATE TABLE `user_auth` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `user_id` bigint(20) NULL DEFAULT NULL COMMENT '用户ID', + `auth_id` bigint(20) NULL DEFAULT NULL COMMENT '权限ID', + `create_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建用户ID', + `update_uid` bigint(20) NULL DEFAULT NULL COMMENT '更新用户ID', + `del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '是否删除 0=未删除 1=已删除', + `creation_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + `auth_custom_suffix` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '自定义权限结尾', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户权限表' ROW_FORMAT = Compact; + +-- ---------------------------- +-- Records of user_auth +-- ---------------------------- +INSERT INTO `user_auth` VALUES (9, 2, 1, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (10, 2, 2, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (11, 2, 3, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (12, 2, 4, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (13, 3, 1, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (14, 3, 2, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (15, 3, 3, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (16, 3, 4, 1, NULL, 0, '2018-12-15 22:19:59', NULL, NULL); +INSERT INTO `user_auth` VALUES (24, 1, 1, 1, NULL, 0, '2018-12-16 21:41:01', NULL, NULL); +INSERT INTO `user_auth` VALUES (25, 1, 2, 1, NULL, 0, '2018-12-16 21:41:01', NULL, NULL); +INSERT INTO `user_auth` VALUES (26, 1, 3, 1, NULL, 0, '2018-12-16 21:41:01', NULL, NULL); +INSERT INTO `user_auth` VALUES (27, 1, 4, 1, NULL, 0, '2018-12-16 21:41:01', NULL, NULL); +INSERT INTO `user_auth` VALUES (28, 1, 5, 1, NULL, 0, '2019-06-12 12:19:47', NULL, '7'); +INSERT INTO `user_auth` VALUES (29, 1, 7, 1, NULL, 0, '2019-06-12 12:19:47', NULL, '7'); +INSERT INTO `user_auth` VALUES (30, 1, 9, 1, NULL, 0, '2019-06-12 12:19:47', NULL, '7'); + +-- ---------------------------- +-- Table structure for user_info +-- ---------------------------- +DROP TABLE IF EXISTS `user_info`; +CREATE TABLE `user_info` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `user_no` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户编号,用于登录等', + `password` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '密码', + `user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户名', + `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱', + `avatar` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '头像', + `del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '是否删除 0=未删除 1=已删除', + `creation_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `create_uid` bigint(20) NULL DEFAULT NULL COMMENT '创建人用户ID', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `idx_userNo`(`user_no`) USING BTREE COMMENT '登录用户名' +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = Compact; + +-- ---------------------------- +-- Records of user_info +-- ---------------------------- +INSERT INTO `user_info` VALUES (1, 'zyplayer', 'e10adc3949ba59abbe56e057f20f883e', '暮光:城中城', '806783409@qq.com', NULL, 0, '2018-12-01 11:37:39', NULL, '2018-12-15 20:32:08'); +INSERT INTO `user_info` VALUES (2, '1', 'e10adc3949ba59abbe56e057f20f883e', '1111', NULL, NULL, 0, '2018-12-15 20:16:10', 1, '2018-12-15 20:19:50'); + +-- ---------------------------- +-- Table structure for wiki_page +-- ---------------------------- +DROP TABLE IF EXISTS `wiki_page`; +CREATE TABLE `wiki_page` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `space_id` bigint(20) NULL DEFAULT NULL COMMENT '空间ID', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名字', + `parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '父ID', + `node_type` tinyint(4) NULL DEFAULT 0 COMMENT '节点类型 0=有子节点 1=终节点', + `zan_num` int(11) NOT NULL DEFAULT 0 COMMENT '赞的数量', + `edit_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '编辑类型 0=可编辑 1=不允许编辑', + `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建人ID', + `create_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名字', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_user_id` bigint(20) NULL DEFAULT NULL COMMENT '修改人ID', + `update_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人名字', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + `del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=有效 1=删除', + `view_num` int(11) NOT NULL DEFAULT 0 COMMENT '阅读数', + `seq_no` int(11) NOT NULL DEFAULT 0 COMMENT '顺序', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of wiki_page +-- ---------------------------- +INSERT INTO `wiki_page` VALUES (1, 1, '关于zyplayer-doc工具', 0, 0, 0, 0, 1, '暮光:城中城', '2019-03-09 14:01:41', 1, '暮光:城中城', '2019-06-14 16:51:44', 0, 25, 1); +INSERT INTO `wiki_page` VALUES (2, 1, '开发规划', 0, 0, 0, 0, 1, '暮光:城中城', '2019-03-09 14:14:02', 1, '暮光:城中城', '2019-06-14 13:30:22', 0, 30, 4); +INSERT INTO `wiki_page` VALUES (3, 1, '升级日志', 0, 0, 0, 0, 1, '暮光:城中城', '2019-03-09 14:16:20', 1, '暮光:城中城', '2019-06-14 16:49:30', 0, 21, 5); +INSERT INTO `wiki_page` VALUES (4, 1, '贡献人员列表', 0, 0, 0, 0, 1, '暮光:城中城', '2019-03-09 15:16:15', 1, '暮光:城中城', '2019-06-14 13:20:43', 0, 13, 7); +INSERT INTO `wiki_page` VALUES (5, 1, 'zyplayer-doc-swagger', 0, 0, 1, 0, 1, '暮光:城中城', '2019-03-09 15:33:14', NULL, NULL, NULL, 0, 20, 9); +INSERT INTO `wiki_page` VALUES (6, 1, '如何使用', 5, 0, 0, 0, 1, '暮光:城中城', '2019-03-09 15:33:33', 1, '暮光:城中城', '2019-03-09 15:33:46', 0, 3, 14); +INSERT INTO `wiki_page` VALUES (7, 2, '所有格式测试', 0, 0, 0, 0, 1, '暮光:城中城', '2019-03-12 12:21:26', NULL, NULL, NULL, 0, 13, 13); + +-- ---------------------------- +-- Table structure for wiki_page_comment +-- ---------------------------- +DROP TABLE IF EXISTS `wiki_page_comment`; +CREATE TABLE `wiki_page_comment` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `page_id` bigint(20) NULL DEFAULT NULL COMMENT '页面ID', + `parent_id` bigint(20) NULL DEFAULT NULL COMMENT '父评论ID', + `content` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '评论内容', + `zan_num` int(11) NOT NULL DEFAULT 0 COMMENT '赞的数量', + `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建人ID', + `create_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名字', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '0=有效 1=删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of wiki_page_comment +-- ---------------------------- + +-- ---------------------------- +-- Table structure for wiki_page_content +-- ---------------------------- +DROP TABLE IF EXISTS `wiki_page_content`; +CREATE TABLE `wiki_page_content` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `page_id` bigint(20) NULL DEFAULT NULL COMMENT '页面ID', + `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '内容', + `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建人ID', + `create_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名字', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_user_id` bigint(20) NULL DEFAULT NULL COMMENT '修改人ID', + `update_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人名字', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + `preview` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '预览内容', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `uk_page_id`(`page_id`) USING BTREE COMMENT '页面ID' +) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of wiki_page_content +-- ---------------------------- +INSERT INTO `wiki_page_content` VALUES (1, 1, '

一入开源深似海


源码地址:https://gitee.com/zyplayer/zyplayer-doc

体验地址:http://doc.zyplayer.com/zyplayer-doc-manage/static/manage/home.html 账号:zyplayer 密码:123456


更多实用功能请提交评论或加群交流!谢谢!

QQ群:466363173

tips:想要编辑本文请修改表:wiki_page的edit_type字段值为0才行哦~


有什么问题可以来评论本文章哦!当然,如果你是部署在你们自己本地的我肯定看不到此文章的评论

可以到本工具官网下评论此文章,我会随时去查看的!

唯一官网地址:http://doc.zyplayer.com


欢迎提交各种变态无理的要求~

', 1, '暮光:城中城', '2019-03-09 14:01:41', 1, '暮光:城中城', '2019-06-14 16:51:44', '一入开源深似海源码地址:https://gitee.com/zyplayer/zyplayer-doc体验地址:http://doc.zyplayer.com/zyplayer-doc-manage/static/manage/home.html 账号:zyplayer 密码:123456更多实用功能请提交评论或加群交流!谢谢!QQ群:466363173tips:想要编辑本文请修改表:w...'); +INSERT INTO `wiki_page_content` VALUES (2, 2, '

zyplayer-doc-manage:

1、首页做大的调整优化,希望使用element重构一下

2、人员导入方案,权限优化,人员管理细化

 

zyplayer-doc-wiki:

1、支持页面权限控制,包括查看、编辑、删除、评论的权限

2支持把一个空间里的文档一键同步到git的wiki上,统一管理文档

3、支持微信文章拉取保存

4、支持历史记录查看

5、支持提供多种编辑器选择,更大的选择空间

6、支持全局搜索、文章内搜索等,当前只支持标题搜索,尴尬

7、支持开放一个空间里的文档无需登录即可访问

8、url动态变动,这样就可以复制指定文章的地址了

9、参考https://www.kancloud.cn,取其精华


欢迎加入开发!

如果您觉得哪里不好用也可以拉取源码下来改了后提交PR

源码地址:https://gitee.com/zyplayer/zyplayer-doc


更多实用功能请提交评论或加群交流!谢谢!

QQ群:466363173

', 1, '暮光:城中城', '2019-03-09 14:14:02', 1, '暮光:城中城', '2019-06-14 13:30:22', 'zyplayer-doc-manage:1、首页做大的调整优化,希望使用element重构一下2、人员导入方案,权限优化,人员管理细化 zyplayer-doc-wiki:1、支持页面权限控制,包括查看、编辑、删除、评论的权限2、支持把一个空间里的文档一键同步到git的wiki上,统一管理文档3、支持微信文章拉取保存4、支持历史记录查看5、支持提供多种编辑器选择,更大的选择空间6、支持全...'); +INSERT INTO `wiki_page_content` VALUES (3, 3, '

V1.0.1 2019-03-09

1、增加zyplayer-doc-wiki模块

  • 支持空间隔离
  • 支持附件上传
  • 拖动可以改变wiki顺序
  • 基本的文档创建、编辑、评论、删除、搜索等功能

2、dubbo文档支持使用元数据生成参数和返回值,dubbo2.7.0新特性

3、框架进行了大的拆分,表修改较多

4、增加升级通知

5、细节优化


V1.0.0 2019-02-15

第一个版本发布

1、zyplayer-doc-swagger,swagger接口文档展示方案,在之前的项目中有许多改进,坚持文档生成和展示分离,有较多需要服务端支持的功能,不对各项目做过多的入侵即可使用,可动态对文档进行开放访问
2、zyplayer-doc-dubbo,支持对dubbo服务的自动扫描,直观展示所有的服务,文档的展示、文档编辑和在线接口调试,不需要对已有的服务做任何改动,支持zookeeper、nacos注册中心的服务扫描
3、zyplayer-doc-db,数据库文档工具,具有数据库表、字段文档的查看/修改,文档导出等功能,支持mysql和sqlserver数据库
4、zyplayer-doc-manage,管理以上几个服务,spring boot项目,spring security做权限管理,可直接运行

', 1, '暮光:城中城', '2019-03-09 14:16:20', 1, '暮光:城中城', '2019-06-14 16:49:30', 'V1.0.1 2019-03-091、增加zyplayer-doc-wiki模块支持空间隔离支持附件上传拖动可以改变wiki顺序基本的文档创建、编辑、评论、删除、搜索等功能2、dubbo文档支持使用元数据生成参数和返回值,dubbo2.7.0新特性3、框架进行了大的拆分,表修改较多4、增加升级通知5、细节优化V1.0.0 2019-02-15第一个版本发布1、zyplayer-doc-swagge...'); +INSERT INTO `wiki_page_content` VALUES (4, 4, '

开发人员列表:

暮光:城中城

', 1, '暮光:城中城', '2019-03-09 15:16:15', 1, '暮光:城中城', '2019-06-14 13:20:43', '开发人员列表:暮光:城中城'); +INSERT INTO `wiki_page_content` VALUES (5, 5, '

zyplayer-doc-swagger 使用文档目录

', 1, '暮光:城中城', '2019-03-09 15:33:14', NULL, NULL, NULL, NULL); +INSERT INTO `wiki_page_content` VALUES (6, 6, '

最不喜欢写文档了。。。

', 1, '暮光:城中城', '2019-03-09 15:33:33', 1, '暮光:城中城', '2019-03-09 15:33:46', NULL); +INSERT INTO `wiki_page_content` VALUES (7, 7, '

H2

加粗

字体大小

宋体宋体宋体宋体宋体 

斜体斜体斜体

下划线下划线下划线

删除线删除线删除线

字体颜色

背景颜色

链接:百度一下

  1. 有序列表
  2. xxx
  3. xxx
  • 无序列表
  • xxx
  • xxx

文字居中

文字靠右

xxxxx

表情:\"[坏笑]\"

表格:

 ID 名字 邮箱 说明 时间
 xx xx xx xx xx
     

代码:

public static void main(String[] args) {
System.out.println(\"hello world\");
}


', 1, '暮光:城中城', '2019-03-12 12:21:26', NULL, NULL, NULL, NULL); + +-- ---------------------------- +-- Table structure for wiki_page_file +-- ---------------------------- +DROP TABLE IF EXISTS `wiki_page_file`; +CREATE TABLE `wiki_page_file` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `page_id` bigint(20) NULL DEFAULT NULL COMMENT '页面ID', + `file_name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件名', + `file_url` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文件URL', + `uuid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文件UUID', + `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建人ID', + `create_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名字', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_user_id` bigint(20) NULL DEFAULT NULL COMMENT '修改人ID', + `update_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '修改人名字', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + `del_flag` tinyint(4) NULL DEFAULT 0 COMMENT '0=有效 1=删除', + `download_num` int(11) NOT NULL DEFAULT 0 COMMENT '下载次数', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `uk_uuid`(`uuid`) USING BTREE COMMENT '文件ID' +) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of wiki_page_file +-- ---------------------------- + +-- ---------------------------- +-- Table structure for wiki_page_zan +-- ---------------------------- +DROP TABLE IF EXISTS `wiki_page_zan`; +CREATE TABLE `wiki_page_zan` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `page_id` bigint(20) NULL DEFAULT NULL COMMENT '页面ID', + `comment_id` bigint(20) NULL DEFAULT NULL COMMENT '评论ID', + `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建人ID', + `create_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名字', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `yn` tinyint(4) NULL DEFAULT NULL COMMENT '是否有效 0=无效 1=有效', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of wiki_page_zan +-- ---------------------------- + +-- ---------------------------- +-- Table structure for wiki_space +-- ---------------------------- +DROP TABLE IF EXISTS `wiki_space`; +CREATE TABLE `wiki_space` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '空间名', + `type` tinyint(4) NULL DEFAULT 1 COMMENT '空间类型 1=公司 2=个人 3=私人', + `space_explain` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '描述', + `edit_type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '编辑类型 0=可编辑 1=不允许编辑', + `tree_lazy_load` tinyint(4) NOT NULL DEFAULT 0 COMMENT '目录延迟加载 0=否 1=是', + `open_doc` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否是开放文档 0=否 1=是', + `uuid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '唯一UUID', + `create_user_id` bigint(20) NULL DEFAULT NULL COMMENT '创建人ID', + `create_user_name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人名字', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `del_flag` tinyint(4) NOT NULL DEFAULT 0 COMMENT '删除标记 0=正常 1=已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of wiki_space +-- ---------------------------- +INSERT INTO `wiki_space` VALUES (1, 'zyplayer-doc交流专用', 1, '', 0, 0, 1, '23f3f59a60824d21af9f7c3bbc9bc3cb', 1, '暮光:城中城', '2019-03-09 13:59:14', 0); +INSERT INTO `wiki_space` VALUES (2, '体验专用空间', 2, '', 0, 0, 0, '91995a9a67bf45db9b5e58266517393e', 1, '暮光:城中城', '2019-03-09 14:24:30', 0); + +-- ---------------------------- +-- Table structure for zyplayer_storage +-- ---------------------------- +DROP TABLE IF EXISTS `zyplayer_storage`; +CREATE TABLE `zyplayer_storage` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键自增ID', + `doc_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '参数名字', + `doc_value` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '参数值', + `creation_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `key`(`doc_key`) USING BTREE COMMENT 'key唯一索引' +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '存储网页上相关的数据' ROW_FORMAT = Compact; + +-- ---------------------------- +-- Records of zyplayer_storage +-- ---------------------------- +SET FOREIGN_KEY_CHECKS = 1; diff --git a/zyplayer-doc-manage/src/main/webapp/static/lib/mg/js/common.js b/zyplayer-doc-manage/src/main/webapp/static/lib/mg/js/common.js index 1b6baa05..af17aa32 100644 --- a/zyplayer-doc-manage/src/main/webapp/static/lib/mg/js/common.js +++ b/zyplayer-doc-manage/src/main/webapp/static/lib/mg/js/common.js @@ -38,8 +38,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = ctx + "static/manage/login.html?redirect=" + href; } else { alert(result.errMsg); } @@ -226,8 +226,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = ctx + "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); @@ -346,7 +346,7 @@ var common = { }, getParam: function(name){ var url = location.search;// 获取url中"?"符后的字串 - url = decodeURIComponent(url); + // url = decodeURIComponent(url); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); diff --git a/zyplayer-doc-manage/src/main/webapp/static/manage/login.html b/zyplayer-doc-manage/src/main/webapp/static/manage/login.html index c9f58ac3..a05afe5e 100644 --- a/zyplayer-doc-manage/src/main/webapp/static/manage/login.html +++ b/zyplayer-doc-manage/src/main/webapp/static/manage/login.html @@ -74,16 +74,20 @@ app.passwordError = "密码不能为空"; return; } - var returnUrl = common.getParam("returnUrl"); - if (!!returnUrl) { - returnUrl = decodeURI(returnUrl); + // 获取url中"?"符后的字串 + var href = location.href; + var url = href.substring(href.indexOf("?"), href.length); + var redirect = ""; + if (url.indexOf("redirect=") > 0) { + redirect = url.substring(url.indexOf("redirect=") + 9, url.length); + redirect = decodeURIComponent(redirect); } else { - returnUrl = ctx + "static/manage/home.html"; + redirect = ctx + "static/manage/home.html"; } post(ctx + "login", param, function (result) { console.log(result); if (result.errCode == 200) { - location.href = returnUrl; + location.href = redirect; } else { app.passwordError = "登录失败," + result.errMsg; } diff --git a/zyplayer-doc-swagger/src/main/resources/export/js/common.js b/zyplayer-doc-swagger/src/main/resources/export/js/common.js index 4804caa4..1778343a 100644 --- a/zyplayer-doc-swagger/src/main/resources/export/js/common.js +++ b/zyplayer-doc-swagger/src/main/resources/export/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -196,8 +196,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-swagger/src/main/resources/webjars/mg-ui/js/common.js b/zyplayer-doc-swagger/src/main/resources/webjars/mg-ui/js/common.js index d39b9f46..ae0cf8b2 100644 --- a/zyplayer-doc-swagger/src/main/resources/webjars/mg-ui/js/common.js +++ b/zyplayer-doc-swagger/src/main/resources/webjars/mg-ui/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -196,8 +196,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-swagger/src/main/resources/webjars/open-doc/js/common.js b/zyplayer-doc-swagger/src/main/resources/webjars/open-doc/js/common.js index cf995f27..487cbdf1 100644 --- a/zyplayer-doc-swagger/src/main/resources/webjars/open-doc/js/common.js +++ b/zyplayer-doc-swagger/src/main/resources/webjars/open-doc/js/common.js @@ -30,8 +30,8 @@ function validateResult(result) { if (result.errCode == 200) { return true; } else if (result.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { Toast.error(result.errMsg); } @@ -196,8 +196,8 @@ function ajaxTemp(url, dataSentType, dataReceiveType, paramsStr, successFunction contentType : "application/x-www-form-urlencoded; charset=UTF-8", success : function(msg) { if (msg.errCode == 400) { - var href = encodeURI(window.location.href); - window.location = "static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = "static/manage/login.html?redirect=" + href; } else { if (typeof successFunction == "function") { successFunction(msg, id); diff --git a/zyplayer-doc-ui/wiki-ui/src/App.vue b/zyplayer-doc-ui/wiki-ui/src/App.vue index b3acc97e..150b9b9e 100644 --- a/zyplayer-doc-ui/wiki-ui/src/App.vue +++ b/zyplayer-doc-ui/wiki-ui/src/App.vue @@ -418,6 +418,15 @@ init() { }, + switchSpacePage(spaceId) { + spaceId = parseInt(spaceId); + if (app.choiceSpace == spaceId) { + return; + } + app.choiceSpace = spaceId; + app.nowClickPath.spaceId = spaceId; + this.doGetPageList(null); + }, } } diff --git a/zyplayer-doc-ui/wiki-ui/src/common/config/apimix.js b/zyplayer-doc-ui/wiki-ui/src/common/config/apimix.js index 3ec4706c..d8b4ce2d 100644 --- a/zyplayer-doc-ui/wiki-ui/src/common/config/apimix.js +++ b/zyplayer-doc-ui/wiki-ui/src/common/config/apimix.js @@ -4,9 +4,12 @@ var href = window.location.href; var _fn = { href: href, - // 这里设置接口域名 - HOST: 'http://local.zyplayer.com:8083/zyplayer-doc-manage', - HOST1: 'http://local.zyplayer.com:8083/zyplayer-doc-manage', + // 本地启动时使用本地接口调试 + // HOST: 'http://local.zyplayer.com:8083/zyplayer-doc-manage', + // HOST1: 'http://local.zyplayer.com:8083/zyplayer-doc-manage', + // 也可以直接使用线上的服务调试 + HOST: 'http://doc.zyplayer.com/zyplayer-doc-manage', + HOST1: 'http://doc.zyplayer.com/zyplayer-doc-manage', // 打包时使用下面这两行,文件就放在根目录下,所以当前路劲就好 // HOST: './', // HOST1: './', diff --git a/zyplayer-doc-ui/wiki-ui/src/common/lib/common/common.js b/zyplayer-doc-ui/wiki-ui/src/common/lib/common/common.js index 6eeeeb7a..bb8428b0 100644 --- a/zyplayer-doc-ui/wiki-ui/src/common/lib/common/common.js +++ b/zyplayer-doc-ui/wiki-ui/src/common/lib/common/common.js @@ -23,8 +23,8 @@ export default { global.vue.$message('请求错误:' + res.message); } else if (res.data.errCode == 400) { global.vue.$message('请先登录'); - var href = encodeURI(window.location.href); - window.location = apimix.apilist1.HOST + "/static/manage/login.html?returnUrl=" + href; + var href = encodeURIComponent(window.location.href); + window.location = apimix.apilist1.HOST + "/static/manage/login.html?redirect=" + href; } else if (res.data.errCode == 402) { global.vue.$router.push("/common/noAuth"); } else if (res.data.errCode !== 200) { diff --git a/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue b/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue index 920ff604..8a161ff1 100644 --- a/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue +++ b/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue @@ -30,8 +30,9 @@ - - + + + @@ -172,6 +173,10 @@ if (!!this.parentPath.pageId) { // 延迟设置展开的目录,edit比app先初始化 setTimeout(function () { + if (!!app.parentPath.spaceId) { + // 调用父方法切换选择的空间 + global.vue.$app.switchSpacePage(app.parentPath.spaceId); + } global.vue.$app.changeWikiPageExpandedKeys(app.parentPath.pageId); }, 500); } @@ -267,6 +272,7 @@ app.pageContent = json.data.pageContent || {}; app.pageFileList = json.data.fileList || []; app.uploadFormData = {pageId: app.wikiPage.id}; + app.parentPath.spaceId = wikiPage.spaceId; // 修改最后点击的项,保证刷新后点击编辑能展示编辑的项 // if (!app.lastClickNode.id) { // app.lastClickNode = {id: wikiPage.id, nodePath: wikiPage.name}; diff --git a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java index 2ecc1fe8..4f718a0a 100644 --- a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java +++ b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiCommonController.java @@ -13,6 +13,7 @@ import com.zyplayer.doc.data.repository.manage.entity.UserInfo; import com.zyplayer.doc.data.repository.manage.entity.WikiPage; import com.zyplayer.doc.data.repository.manage.entity.WikiPageFile; import com.zyplayer.doc.data.repository.manage.entity.WikiSpace; +import com.zyplayer.doc.data.repository.manage.mapper.WikiPageFileMapper; import com.zyplayer.doc.data.service.manage.UserInfoService; import com.zyplayer.doc.data.service.manage.WikiPageFileService; import com.zyplayer.doc.data.service.manage.WikiPageService; @@ -59,6 +60,8 @@ public class WikiCommonController { WikiSpaceService wikiSpaceService; @Resource UserInfoService userInfoService; + @Resource + WikiPageFileMapper wikiPageFileMapper; @PostMapping("/user/base") public ResponseJson userBaseInfo(String search) { @@ -153,6 +156,8 @@ public class WikiCommonController { return DocResponseJson.warn("登陆后才可访问此文件"); } } + // 增加下载次数 + wikiPageFileMapper.addDownloadNum(pageFile.getId()); try { String fileName = Optional.ofNullable(pageFile.getFileName()).orElse(""); File file = new File(pageFile.getFileUrl()); diff --git a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiOpenApiController.java b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiOpenApiController.java index 4c1bcc46..284adb24 100644 --- a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiOpenApiController.java +++ b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiOpenApiController.java @@ -79,8 +79,10 @@ public class WikiOpenApiController { } Map> listMap = wikiPageList.stream().map(val -> mapper.map(val, WikiPageVo.class)).collect(Collectors.groupingBy(WikiPageVo::getParentId)); List nodePageList = listMap.get(0L); - nodePageList = nodePageList.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); - this.setChildren(listMap, nodePageList); + if (CollectionUtils.isNotEmpty(nodePageList)) { + nodePageList = nodePageList.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); + this.setChildren(listMap, nodePageList); + } return DocResponseJson.ok(nodePageList); } @@ -129,7 +131,7 @@ public class WikiOpenApiController { } for (WikiPageVo page : nodePageList) { List wikiPageVos = listMap.get(page.getId()); - if (wikiPageVos != null && wikiPageVos.size() > 0) { + if (CollectionUtils.isNotEmpty(wikiPageVos)) { wikiPageVos = wikiPageVos.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); page.setChildren(wikiPageVos); this.setChildren(listMap, wikiPageVos); diff --git a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiPageController.java b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiPageController.java index b29d36a7..6a83047e 100644 --- a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiPageController.java +++ b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/controller/WikiPageController.java @@ -18,6 +18,7 @@ import com.zyplayer.doc.wiki.controller.vo.WikiPageContentVo; import com.zyplayer.doc.wiki.controller.vo.WikiPageVo; import com.zyplayer.doc.wiki.framework.consts.SpaceType; import com.zyplayer.doc.wiki.framework.consts.WikiAuthType; +import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.dozer.Mapper; import org.slf4j.Logger; @@ -74,11 +75,15 @@ public class WikiPageController { List nodePageList; if (wikiPage.getParentId() == null) { nodePageList = listMap.get(0L); - nodePageList = nodePageList.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); - this.setChildren(listMap, nodePageList, ""); + if (CollectionUtils.isNotEmpty(nodePageList)) { + nodePageList = nodePageList.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); + this.setChildren(listMap, nodePageList, ""); + } } else { nodePageList = listMap.get(wikiPage.getParentId()); - nodePageList = nodePageList.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); + if (CollectionUtils.isNotEmpty(nodePageList)) { + nodePageList = nodePageList.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); + } } return DocResponseJson.ok(nodePageList); } @@ -234,6 +239,7 @@ public class WikiPageController { lastSeq = Optional.ofNullable(lastSeq).orElse(0); wikiPage.setSeqNo(lastSeq + 1); wikiPage.setCreateTime(new Date()); + wikiPage.setUpdateTime(new Date()); wikiPage.setCreateUserId(currentUser.getUserId()); wikiPage.setCreateUserName(currentUser.getUsername()); wikiPageService.save(wikiPage); @@ -305,7 +311,7 @@ public class WikiPageController { String nowPath = path + "/" + page.getName(); page.setPath(nowPath); List wikiPageVos = listMap.get(page.getId()); - if (wikiPageVos != null && wikiPageVos.size() > 0) { + if (CollectionUtils.isNotEmpty(wikiPageVos)) { wikiPageVos = wikiPageVos.stream().sorted(Comparator.comparingInt(WikiPage::getSeqNo)).collect(Collectors.toList()); page.setChildren(wikiPageVos); this.setChildren(listMap, wikiPageVos, nowPath); diff --git a/zyplayer-doc-wiki/src/main/resources/doc-wiki-v2.html b/zyplayer-doc-wiki/src/main/resources/doc-wiki-v2.html index 82584925..4d981ac9 100644 --- a/zyplayer-doc-wiki/src/main/resources/doc-wiki-v2.html +++ b/zyplayer-doc-wiki/src/main/resources/doc-wiki-v2.html @@ -8,7 +8,7 @@
- + diff --git a/zyplayer-doc-wiki/src/main/resources/index.js b/zyplayer-doc-wiki/src/main/resources/index.js index 73f5c4e7..cfea34f2 100644 --- a/zyplayer-doc-wiki/src/main/resources/index.js +++ b/zyplayer-doc-wiki/src/main/resources/index.js @@ -1,4 +1,4 @@ -webpackJsonp([1],[,,,function(e,t,o){"use strict";function i(e){return"[object Array]"===k.call(e)}function r(e){return"[object ArrayBuffer]"===k.call(e)}function n(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function c(e){return void 0===e}function p(e){return null!==e&&"object"==typeof e}function d(e){return"[object Date]"===k.call(e)}function u(e){return"[object File]"===k.call(e)}function f(e){return"[object Blob]"===k.call(e)}function h(e){return"[object Function]"===k.call(e)}function b(e){return p(e)&&h(e.pipe)}function g(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function m(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),i(e))for(var o=0,r=e.length;oo.parts.length&&(i.parts.length=o.parts.length)}else{for(var l=[],r=0;r=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){a.headers[e]={}}),r.forEach(["post","put","patch"],function(e){a.headers[e]=r.merge(l)}),e.exports=a}).call(t,o(91))},,,function(e,t,o){var i=o(27),r=o(176),n=o(175),l=o(17),a=o(47),s=o(187),c={},p={},t=e.exports=function(e,t,o,d,u){var f,h,b,g,m=u?function(){return e}:s(e),x=i(o,d,t?2:1),_=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(n(m)){for(f=a(e.length);f>_;_++)if((g=t?x(l(h=e[_])[0],h[1]):x(e[_]))===c||g===p)return g}else for(b=m.call(e);!(h=b.next()).done;)if((g=r(b,x,h.value,t))===c||g===p)return g};t.BREAK=c,t.RETURN=p},,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEX///9wcHBwcHBwcHBwcHB8fHxwcHB6enpwcHCDg4NwcHB8fHx6enqSkpJ8fHxycnJwcHDp6el2dnZwcHD////39/f19fXz8/Pw8PDr6+vn5+fj4+PZ2dnX19fHx8fExMS9vb20tLSrq6uhoaGenp6MjIyKioqDg4N8fHx6enp4eHh0dHRycnKZmZmOjo6KioqDg4OAgIB/f396enp4eHh2dnZycnJwcHDyRjyJAAAALXRSTlMAETNEVWZmd3eIiJmqu7u7u93d3e7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u6OCyV0AAAAi0lEQVQYGXXBRwKCMBAF0B9Q7Io6RJGo2LAEu8zc/2YuyCILfQ/4R8k5gK+zy0v4TilZeAZb2rTCSMHp3bV+jeJpDEDFIvagSRtNJAro2vHjSo4owOYzNlTTAoDnGZNjLABOFkzOagigWiecUW3fBNB/L5+33GgiSksFQE1YPkUlciwuETxhox3ghy8Wng9K1E9YIwAAAABJRU5ErkJggg=="},,function(e,t,o){"use strict";var i=o(23),r=o.n(i),n=o(148),l=window.location.href,a={href:l,HOST:"./",HOST1:"./",mixUrl:function(e,t){var o;if(e&&t&&!a.isEmptyObject(t)){t.HOST=e;for(o in t)-1==t[o].indexOf("http")&&(t[o]=e+t[o]);return t}},isEmptyObject:function(e){if("object"===(void 0===e?"undefined":r()(e))&&!(e instanceof Array)){var t=!1;for(var o in e){t=!0;break}return!t}}},s=a.mixUrl(a.HOST,n.a.URL),c=a.mixUrl(a.HOST1,n.a.URL1);t.a={apilist1:s,apilist2:c}},,function(e,t,o){"use strict";var i=o(3),r=o(130),n=o(133),l=o(139),a=o(137),s=o(67),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||o(132);e.exports=function(e){return new Promise(function(t,p){var d=e.data,u=e.headers;i.isFormData(d)&&delete u["Content-Type"];var f=new XMLHttpRequest,h="onreadystatechange",b=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||a(e.url)||(f=new window.XDomainRequest,h="onload",b=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var g=e.auth.username||"",m=e.auth.password||"";u.Authorization="Basic "+c(g+":"+m)}if(f.open(e.method.toUpperCase(),n(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[h]=function(){if(f&&(4===f.readyState||b)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var o="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?f.response:f.responseText,n={data:i,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:o,config:e,request:f};r(t,p,n),f=null}},f.onerror=function(){p(s("Network Error",e,null,f)),f=null},f.ontimeout=function(){p(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var x=o(135),_=(e.withCredentials||a(e.url))&&e.xsrfCookieName?x.read(e.xsrfCookieName):void 0;_&&(u[e.xsrfHeaderName]=_)}if("setRequestHeader"in f&&i.forEach(u,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete u[t]:f.setRequestHeader(t,e)}),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),p(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},function(e,t,o){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},function(e,t,o){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,o){"use strict";var i=o(129);e.exports=function(e,t,o,r,n){var l=new Error(e);return i(l,t,o,r,n)}},function(e,t,o){"use strict";e.exports=function(e,t){return function(){for(var o=new Array(arguments.length),i=0;i=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?o+=t.charAt(i):n<128?o+=r[n]:n<2048?o+=r[192|n>>6]+r[128|63&n]:n<55296||n>=57344?o+=r[224|n>>12]+r[128|n>>6&63]+r[128|63&n]:(i+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),o+=r[240|n>>18]+r[128|n>>12&63]+r[128|n>>6&63]+r[128|63&n])}return o},t.compact=function(e,o){if("object"!=typeof e||null===e)return e;var i=o||[],r=i.indexOf(e);if(-1!==r)return i[r];if(i.push(e),Array.isArray(e)){for(var n=[],l=0;l-1}function n(e,t){for(var o in t)e[o]=t[o];return e}function l(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}function a(e,t,o){void 0===t&&(t={});var i,r=o||s;try{i=r(e||"")}catch(e){i={}}for(var n in t)i[n]=t[n];return i}function s(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var o=e.replace(/\+/g," ").split("="),i=Ne(o.shift()),r=o.length>0?Ne(o.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t}function c(e){var t=e?Object.keys(e).map(function(t){var o=e[t];if(void 0===o)return"";if(null===o)return Le(t);if(Array.isArray(o)){var i=[];return o.forEach(function(e){void 0!==e&&(null===e?i.push(Le(t)):i.push(Le(t)+"="+Le(e)))}),i.join("&")}return Le(t)+"="+Le(o)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}function p(e,t,o,i){var r=i&&i.options.stringifyQuery,n=t.query||{};try{n=d(n)}catch(e){}var l={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:n,params:t.params||{},fullPath:f(t,r),matched:e?u(e):[]};return o&&(l.redirectedFrom=f(o,r)),Object.freeze(l)}function d(e){if(Array.isArray(e))return e.map(d);if(e&&"object"==typeof e){var t={};for(var o in e)t[o]=d(e[o]);return t}return e}function u(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function f(e,t){var o=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var n=t||c;return(o||"/")+n(i)+r}function h(e,t){return t===Me?e===t:!!t&&(e.path&&t.path?e.path.replace(Fe,"")===t.path.replace(Fe,"")&&e.hash===t.hash&&b(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var o=Object.keys(e),i=Object.keys(t);return o.length===i.length&&o.every(function(o){var i=e[o],r=t[o];return"object"==typeof i&&"object"==typeof r?b(i,r):String(i)===String(r)})}function g(e,t){return 0===e.path.replace(Fe,"/").indexOf(t.path.replace(Fe,"/"))&&(!t.hash||e.hash===t.hash)&&m(e.query,t.query)}function m(e,t){for(var o in t)if(!(o in e))return!1;return!0}function x(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){if(/\b_blank\b/i.test(e.currentTarget.getAttribute("target")))return}return e.preventDefault&&e.preventDefault(),!0}}function _(e){if(e)for(var t,o=0;o=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(o=e.slice(r+1),e=e.slice(0,r)),{path:e,query:o,hash:t}}function y(e){return e.replace(/\/\//g,"/")}function k(e,t){for(var o,i=[],r=0,n=0,l="",a=t&&t.delimiter||"/";null!=(o=Ke.exec(e));){var s=o[0],c=o[1],p=o.index;if(l+=e.slice(n,p),n=p+s.length,c)l+=c[1];else{var d=e[n],u=o[2],f=o[3],h=o[4],b=o[5],g=o[6],m=o[7];l&&(i.push(l),l="");var x=null!=u&&null!=d&&d!==u,_="+"===g||"*"===g,w="?"===g||"*"===g,v=o[2]||a,A=h||b;i.push({name:f||r++,prefix:u||"",delimiter:v,optional:w,repeat:_,partial:x,asterisk:!!m,pattern:A?I(A):m?".*":"[^"+S(v)+"]+?"})}}return n-1&&(r.params[u]=o.params[u]);if(a)return r.path=F(a.path,r.params,'named route "'+n+'"'),l(a,r,i)}else if(r.path){r.params={};for(var f=0;f=e.length?o():e[r]?t(e[r],function(){i(r+1)}):i(r+1)};i(0)}function ce(e){return function(t,o,i){var n=!1,l=0,a=null;pe(e,function(e,t,o,s){if("function"==typeof e&&void 0===e.cid){n=!0,l++;var c,p=fe(function(t){ue(t)&&(t=t.default),e.resolved="function"==typeof t?t:Te.extend(t),o.components[s]=t,--l<=0&&i()}),d=fe(function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=r(e)?e:new Error(t),i(a))});try{c=e(p,d)}catch(e){d(e)}if(c)if("function"==typeof c.then)c.then(p,d);else{var u=c.component;u&&"function"==typeof u.then&&u.then(p,d)}}}),n||i()}}function pe(e,t){return de(e.map(function(e){return Object.keys(e.components).map(function(o){return t(e.components[o],e.instances[o],e,o)})}))}function de(e){return Array.prototype.concat.apply([],e)}function ue(e){return e.__esModule||ot&&"Module"===e[Symbol.toStringTag]}function fe(e){var t=!1;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];if(!t)return t=!0,e.apply(this,o)}}function he(e){if(!e)if(Oe){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function be(e,t){var o,i=Math.max(e.length,t.length);for(o=0;o-1?decodeURI(e.slice(0,i))+e.slice(i):decodeURI(e)}else o>-1&&(e=decodeURI(e.slice(0,o))+e.slice(o));return e}function Be(e){var t=window.location.href,o=t.indexOf("#");return(o>=0?t.slice(0,o):t)+"#"+e}function Se(e){$e?le(Be(e)):window.location.hash=e}function Ie(e){$e?ae(Be(e)):window.location.replace(Be(e))}function Pe(e,t){return e.push(t),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function Re(e,t,o){var i="hash"===o?"#"+t:t;return e?y(e+"/"+i):i}var Te,Ue={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var o=t.props,i=t.children,r=t.parent,a=t.data;a.routerView=!0;for(var s=r.$createElement,c=o.name,p=r.$route,d=r._routerViewCache||(r._routerViewCache={}),u=0,f=!1;r&&r._routerRoot!==r;){var h=r.$vnode&&r.$vnode.data;h&&(h.routerView&&u++,h.keepAlive&&r._inactive&&(f=!0)),r=r.$parent}if(a.routerViewDepth=u,f)return s(d[c],a,i);var b=p.matched[u];if(!b)return d[c]=null,s();var g=d[c]=b.components[c];a.registerRouteInstance=function(e,t){var o=b.instances[c];(t&&o!==e||!t&&o===e)&&(b.instances[c]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){b.instances[c]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==b.instances[c]&&(b.instances[c]=e.componentInstance)};var m=a.props=l(p,b.props&&b.props[c]);if(m){m=a.props=n({},m);var x=a.attrs=a.attrs||{};for(var _ in m)g.props&&_ in g.props||(x[_]=m[_],delete m[_])}return s(g,a,i)}},De=function(e){return"%"+e.charCodeAt(0).toString(16)},Le=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,De).replace(/%2C/g,",")},Ne=decodeURIComponent,Fe=/\/?$/,Me=p(null,{path:"/"}),Qe=[String,Object],Ye=[String,Array],je={name:"RouterLink",props:{to:{type:Qe,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Ye,default:"click"}},render:function(e){var t=this,o=this.$router,i=this.$route,r=o.resolve(this.to,i,this.append),l=r.location,a=r.route,s=r.href,c={},d=o.options.linkActiveClass,u=o.options.linkExactActiveClass,f=null==d?"router-link-active":d,b=null==u?"router-link-exact-active":u,m=null==this.activeClass?f:this.activeClass,w=null==this.exactActiveClass?b:this.exactActiveClass,v=l.path?p(null,l,null,o):a;c[w]=h(i,v),c[m]=this.exact?c[w]:g(i,v);var A=function(e){x(e)&&(t.replace?o.replace(l):o.push(l))},y={click:x};Array.isArray(this.event)?this.event.forEach(function(e){y[e]=A}):y[this.event]=A;var k={class:c};if("a"===this.tag)k.on=y,k.attrs={href:s};else{var E=_(this.$slots.default);if(E){E.isStatic=!1;(E.data=n({},E.data)).on=y;(E.data.attrs=n({},E.data.attrs)).href=s}else k.on=y}return e(this.tag,k,this.$slots.default)}},Oe="undefined"!=typeof window,He=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},Ge=N,qe=k,Je=E,Ve=B,Xe=L,Ke=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Ge.parse=qe,Ge.compile=Je,Ge.tokensToFunction=Ve,Ge.tokensToRegExp=Xe;var Ze=Object.create(null),We=Object.create(null),$e=Oe&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),et=Oe&&window.performance&&window.performance.now?window.performance:Date,tt=ie(),ot="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,it=function(e,t){this.router=e,this.base=he(t),this.current=Me,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};it.prototype.listen=function(e){this.cb=e},it.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},it.prototype.onError=function(e){this.errorCbs.push(e)},it.prototype.transitionTo=function(e,t,o){var i=this,r=this.router.match(e,this.current);this.confirmTransition(r,function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(e){e(r)}))},function(e){o&&o(e),e&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(t){t(e)}))})},it.prototype.confirmTransition=function(e,t,o){var n=this,l=this.current,a=function(e){r(e)&&(n.errorCbs.length?n.errorCbs.forEach(function(t){t(e)}):(i(!1,"uncaught error during route navigation:"),console.error(e))),o&&o(e)};if(h(e,l)&&e.matched.length===l.matched.length)return this.ensureURL(),a();var s=be(this.current.matched,e.matched),c=s.updated,p=s.deactivated,d=s.activated,u=[].concat(xe(p),this.router.beforeHooks,_e(c),d.map(function(e){return e.beforeEnter}),ce(d));this.pending=e;var f=function(t,o){if(n.pending!==e)return a();try{t(e,l,function(e){!1===e||r(e)?(n.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(),"object"==typeof e&&e.replace?n.replace(e):n.push(e)):o(e)})}catch(e){a(e)}};se(u,f,function(){var o=[];se(ve(d,o,function(){return n.current===e}).concat(n.router.resolveHooks),f,function(){if(n.pending!==e)return a();n.pending=null,t(e),n.router.app&&n.router.app.$nextTick(function(){o.forEach(function(e){e()})})})})},it.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(o){o&&o(e,t)})};var rt=function(e){function t(t,o){var i=this;e.call(this,t,o);var r=t.options.scrollBehavior,n=$e&&r;n&&J();var l=ke(this.base);window.addEventListener("popstate",function(e){var o=i.current,r=ke(i.base);i.current===Me&&r===l||i.transitionTo(r,function(e){n&&V(t,e,o,!0)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){le(y(i.base+e.fullPath)),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.replace=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){ae(y(i.base+e.fullPath)),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.ensureURL=function(e){if(ke(this.base)!==this.current.fullPath){var t=y(this.base+this.current.fullPath);e?le(t):ae(t)}},t.prototype.getCurrentLocation=function(){return ke(this.base)},t}(it),nt=function(e){function t(t,o,i){e.call(this,t,o),i&&Ee(this.base)||ze()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,o=t.options.scrollBehavior,i=$e&&o;i&&J(),window.addEventListener($e?"popstate":"hashchange",function(){var t=e.current;ze()&&e.transitionTo(Ce(),function(o){i&&V(e.router,o,t,!0),$e||Ie(o.fullPath)})})},t.prototype.push=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){Se(e.fullPath),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.replace=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){Ie(e.fullPath),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Ce()!==t&&(e?Se(t):Ie(t))},t.prototype.getCurrentLocation=function(){return Ce()},t}(it),lt=function(e){function t(t,o){e.call(this,t,o),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,o){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)},o)},t.prototype.replace=function(e,t,o){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)},o)},t.prototype.go=function(e){var t=this,o=this.index+e;if(!(o<0||o>=this.stack.length)){var i=this.stack[o];this.confirmTransition(i,function(){t.index=o,t.updateRoute(i)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(it),at=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=H(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!$e&&!1!==e.fallback,this.fallback&&(t="hash"),Oe||(t="abstract"),this.mode=t,t){case"history":this.history=new rt(this,e.base);break;case"hash":this.history=new nt(this,e.base,this.fallback);break;case"abstract":this.history=new lt(this,e.base)}},st={currentRoute:{configurable:!0}};at.prototype.match=function(e,t,o){return this.matcher.match(e,t,o)},st.currentRoute.get=function(){return this.history&&this.history.current},at.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var o=t.apps.indexOf(e);o>-1&&t.apps.splice(o,1),t.app===e&&(t.app=t.apps[0]||null)}),!this.app){this.app=e;var o=this.history;if(o instanceof rt)o.transitionTo(o.getCurrentLocation());else if(o instanceof nt){var i=function(){o.setupListeners()};o.transitionTo(o.getCurrentLocation(),i,i)}o.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},at.prototype.beforeEach=function(e){return Pe(this.beforeHooks,e)},at.prototype.beforeResolve=function(e){return Pe(this.resolveHooks,e)},at.prototype.afterEach=function(e){return Pe(this.afterHooks,e)},at.prototype.onReady=function(e,t){this.history.onReady(e,t)},at.prototype.onError=function(e){this.history.onError(e)},at.prototype.push=function(e,t,o){this.history.push(e,t,o)},at.prototype.replace=function(e,t,o){this.history.replace(e,t,o)},at.prototype.go=function(e){this.history.go(e)},at.prototype.back=function(){this.go(-1)},at.prototype.forward=function(){this.go(1)},at.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},at.prototype.resolve=function(e,t,o){t=t||this.history.current;var i=O(e,t,o,this),r=this.match(i,t),n=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:Re(this.history.base,n,this.mode),normalizedTo:i,resolved:r}},at.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Me&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(at.prototype,st),at.install=w,at.version="3.0.6",Oe&&window.Vue&&window.Vue.use(at),t.a=at},,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";function i(e){var t=new l(e),o=n(l.prototype.request,t);return r.extend(o,l.prototype,t),r.extend(o,t),o}var r=o(3),n=o(68),l=o(126),a=o(34),s=i(a);s.Axios=l,s.create=function(e){return i(r.merge(a,e))},s.Cancel=o(65),s.CancelToken=o(125),s.isCancel=o(66),s.all=function(e){return Promise.all(e)},s.spread=o(140),e.exports=s,e.exports.default=s},function(e,t,o){"use strict";function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var o=this;e(function(e){o.reason||(o.reason=new r(e),t(o.reason))})}var r=o(65);i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,o){"use strict";function i(e){this.defaults=e,this.interceptors={request:new l,response:new l}}var r=o(34),n=o(3),l=o(127),a=o(128);i.prototype.request=function(e){"string"==typeof e&&(e=n.merge({url:arguments[0]},arguments[1])),e=n.merge(r,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[a,void 0],o=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)o=o.then(t.shift(),t.shift());return o},n.forEach(["delete","get","head","options"],function(e){i.prototype[e]=function(t,o){return this.request(n.merge(o||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){i.prototype[e]=function(t,o,i){return this.request(n.merge(i||{},{method:e,url:t,data:o}))}}),e.exports=i},function(e,t,o){"use strict";function i(){this.handlers=[]}var r=o(3);i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,o){"use strict";function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var r=o(3),n=o(131),l=o(66),a=o(34),s=o(136),c=o(134);e.exports=function(e){return i(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=n(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return i(e),t.data=n(t.data,t.headers,e.transformResponse),t},function(t){return l(t)||(i(e),t&&t.response&&(t.response.data=n(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,o){"use strict";e.exports=function(e,t,o,i,r){return e.config=t,o&&(e.code=o),e.request=i,e.response=r,e}},function(e,t,o){"use strict";var i=o(67);e.exports=function(e,t,o){var r=o.config.validateStatus;o.status&&r&&!r(o.status)?t(i("Request failed with status code "+o.status,o.config,null,o.request,o)):e(o)}},function(e,t,o){"use strict";var i=o(3);e.exports=function(e,t,o){return i.forEach(o,function(o){e=o(e,t)}),e}},function(e,t,o){"use strict";function i(){this.message="String contains an invalid character"}function r(e){for(var t,o,r=String(e),l="",a=0,s=n;r.charAt(0|a)||(s="=",a%1);l+=s.charAt(63&t>>8-a%1*8)){if((o=r.charCodeAt(a+=.75))>255)throw new i;t=t<<8|o}return l}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,o){"use strict";function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=o(3);e.exports=function(e,t,o){if(!t)return e;var n;if(o)n=o(t);else if(r.isURLSearchParams(t))n=t.toString();else{var l=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),l.push(i(t)+"="+i(e))}))}),n=l.join("&")}return n&&(e+=(-1===e.indexOf("?")?"?":"&")+n),e}},function(e,t,o){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,o){"use strict";var i=o(3);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,o,r,n,l){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(n)&&a.push("domain="+n),!0===l&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,o){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,o){"use strict";var i=o(3);e.exports=i.isStandardBrowserEnv()?function(){function e(e){var t=e;return o&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var t,o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return t=e(window.location.href),function(o){var r=i.isString(o)?e(o):o;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},function(e,t,o){"use strict";var i=o(3);e.exports=function(e,t){i.forEach(e,function(o,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=o,delete e[i])})}},function(e,t,o){"use strict";var i=o(3),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,o,n,l={};return e?(i.forEach(e.split("\n"),function(e){if(n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),o=i.trim(e.substr(n+1)),t){if(l[t]&&r.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([o]):l[t]?l[t]+", "+o:o}}),l):l}},function(e,t,o){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},,function(e,t,o){"use strict";var i,r=o(152),n=o.n(r),l=o(12),a=o(22);t.a={data:function(){return{leftCollapse:!0,aboutDialogVisible:!1,rightContentLoading:!1,pathIndex:[],defaultProps:{children:"children",label:"name"},spaceOptions:[],spaceList:[],choiceSpace:"",nowSpaceShow:{},newSpaceDialogVisible:!1,manageSpaceDialogVisible:!1,newSpaceForm:{id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},newSpaceFormRules:{name:[{required:!0,message:"请输入空间名",trigger:"blur"},{min:2,max:25,message:"长度在 2 到 25 个字符",trigger:"blur"}]},nowClickPath:{id:"",path:""},treePathDataMap:new n.a,searchKeywords:"",wikiPageList:[],wikiPage:{},wikiPageExpandedKeys:[],upgradeInfo:{}}},mounted:function(){i=this,l.a.vue.$app=this,this.loadSpaceList(),this.checkSystemUpgrade()},methods:{createWiki:function(){if(this.nowClickPath.spaceId>0){var e={spaceId:this.nowClickPath.spaceId,parentId:this.nowClickPath.parentId,path:this.nowClickPath.path};this.$router.push({path:"/page/edit",query:e})}else a.a.warn("请先选择或创建空间")},changeWikiPageExpandedKeys:function(e){this.wikiPageExpandedKeys=[e]},searchByKeywords:function(){this.$refs.wikiPageTree.filter(i.searchKeywords)},handleNodeClick:function(e){console.log("点击节点:",e),this.nowClickPath={spaceId:this.nowClickPath.spaceId,pageId:e.id,parentId:e.id,path:e.path},this.$router.push({path:"/page/show",query:this.nowClickPath})},handleNodeExpand:function(e){e.children.length>0&&e.children[0].needLoad&&(console.log("加载节点:",e),i.doGetPageList(e.id,e))},handlePageDrop:function(e,t,o,r){console.log("tree drop: ",e.data,t.data,o);var n={id:e.data.id,parentId:t.data.parentId};"inner"==o?n.parentId=t.data.id:"before"==o?n.beforeSeq=t.data.seqNo:"after"==o&&(n.afterSeq=t.data.seqNo),this.common.post(this.apilist1.pageChangeParent,n,function(e){i.doGetPageList(null)})},filterPageNode:function(e,t){return!e||-1!==t.name.indexOf(e)},editSpaceInfo:function(e){i.newSpaceForm={id:e.id,name:e.name,spaceExplain:e.spaceExplain,treeLazyLoad:e.treeLazyLoad,openDoc:e.openDoc,type:e.type},i.newSpaceDialogVisible=!0},deleteSpaceInfo:function(e){var t=this;this.$confirm("确定要删除此空间及下面的所有文档吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={id:e.id,delFlag:1};t.common.post(t.apilist1.updateSpace,o,function(e){i.loadSpaceList()})})},spaceChangeEvents:function(e){if(0==e)i.newSpaceForm={id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},i.choiceSpace=i.nowClickPath.spaceId,i.newSpaceDialogVisible=!0;else if(-1==e)i.choiceSpace=i.nowClickPath.spaceId,i.manageSpaceDialogVisible=!0;else{i.nowClickPath={spaceId:e};for(var t=0;t0){var r=i.spaceList[0].id;i.nowSpaceShow=i.spaceList[0],i.nowClickPath={spaceId:r},i.choiceSpace=r,i.doGetPageList(null);try{"/home"==i.$router.app._route.path&&i.$router.push({path:"/home",query:{spaceId:r}})}catch(e){console.log(e)}}})},doGetPageList:function(e,t){var o="";t?(o=t.nodePath||"/",o.endsWith("/")||(o+="/")):o="/";var r={spaceId:i.nowClickPath.spaceId,parentId:e||0};0==i.nowSpaceShow.treeLazyLoad&&(r.parentId=null),this.common.post(this.apilist1.pageList,r,function(r){var n=r.data||[],l=[];if(0==i.nowSpaceShow.treeLazyLoad)l=n;else for(var a=0;a0?t.children=l:i.wikiPageList=l})},createNodePath:function(e,t){t.endsWith("/")||(t+="/");for(var o=0;o0&&this.createNodePath(i.children,i.nodePath)}},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?i.aboutDialogVisible=!0:a.a.notOpen()},userSignOut:function(){this.common.post(this.apilist1.userLogout,{},function(e){location.reload()})},onNewSpaceSubmit:function(e){var t=this;this.$refs[e].validate(function(e){if(e){var o={id:i.newSpaceForm.id,name:i.newSpaceForm.name,type:i.newSpaceForm.type,openDoc:i.newSpaceForm.openDoc,spaceExplain:i.newSpaceForm.spaceExplain,treeLazyLoad:i.newSpaceForm.treeLazyLoad};t.common.post(t.apilist1.updateSpace,o,function(e){o.id>0?i.loadSpaceList():(i.spaceList.push(e.data),i.spaceOptions.push({label:e.data.name,value:e.data.id}),i.nowSpaceShow=e.data,i.nowClickPath={spaceId:e.data.id},i.choiceSpace=e.data.id,i.doGetPageList(null)),i.newSpaceForm={id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},i.newSpaceDialogVisible=!1})}})},onNewSpaceCancel:function(){this.newSpaceDialogVisible=!1},checkSystemUpgrade:function(){this.common.post(this.apilist1.systemUpgradeInfo,{},function(e){e.data&&(i.upgradeInfo=e.data,console.log("zyplayer-doc发现新版本:\n升级地址:"+e.data.upgradeUrl+"\n当前版本:"+e.data.nowVersion+"\n最新版本:"+e.data.lastVersion+"\n升级内容:"+e.data.upgradeContent))})},init:function(){}}}},function(e,t,o){"use strict";t.a={data:function(){return{}},mounted:function(){},methods:{}}},function(e,t,o){"use strict";var i;o(22),o(12);t.a={data:function(){return{totalCount:0,searchParam:{spaceId:"",newsType:1,pageNum:1,pageSize:20},spacePageNews:[],newsTypes:["最近更新","最新创建","查看最多","点赞最多","查看+点赞最多"]}},beforeRouteUpdate:function(e,t,o){this.initQueryParam(e),o()},mounted:function(){this.initQueryParam(this.$route),i=this},methods:{getSpacePageNews:function(){this.common.post(this.apilist1.pageNews,this.searchParam,function(e){i.spacePageNews=e.data||[],i.totalCount=e.total})},handleSizeChange:function(e){this.searchParam.pageSize=e,this.getSpacePageNews()},showPageDetail:function(e){this.nowClickPath={spaceId:e.spaceId,pageId:e.pageId},this.$router.push({path:"/page/show",query:this.nowClickPath})},handleCurrentChange:function(e){this.searchParam.pageNum=e,this.getSpacePageNews()},initQueryParam:function(e){this.searchParam={spaceId:e.query.spaceId,newsType:1,pageNum:1,pageSize:20},this.searchParam.spaceId&&this.getSpacePageNews()}}}},function(e,t,o){"use strict";var i,r=o(22),n=o(12),l=o(260),a=o.n(l);t.a={data:function(){return{editor:{},newPageTitle:"",parentPath:{},wikiPage:{}}},beforeRouteUpdate:function(e,t,o){this.initQueryParam(e),o()},mounted:function(){i=this,this.initEditor(),this.initQueryParam(this.$route)},methods:{changeToRootPath:function(){i.parentPath={spaceId:this.parentPath.spaceId}},createWikiCancel:function(){this.$confirm("确定要取消编辑吗?您编辑的内容将不会被保存哦~","提示",{confirmButtonText:"确定",cancelButtonText:"继续编辑",type:"warning"}).then(function(){i.$router.back()})},createWikiSave:function(){var e=this.wikiPage.id>0?"":i.parentPath.parentId;if(this.common.isEmpty(i.newPageTitle))return void r.a.warn("标题不能为空");var t=this.editor.txt.text();t.length>200&&(t=t.substring(0,200)+"...");var o={spaceId:i.parentPath.spaceId,parentId:e,id:i.wikiPage.id,name:i.newPageTitle,content:this.editor.txt.html(),preview:t};this.common.post(this.apilist1.updatePage,o,function(e){r.a.success("保存成功!"),n.a.vue.$app.doGetPageList(null),i.parentPath.pageId=e.data.id,i.$router.push({path:"/page/show",query:i.parentPath})})},loadPageDetail:function(e){i.rightContentType=1;var t={id:e};this.common.post(this.apilist1.pageDetail,t,function(e){i.wikiPage=e.data.wikiPage||{},i.pageContent=e.data.pageContent||{},i.pageFileList=e.data.fileList||[],i.newPageTitle=i.wikiPage.name,i.editor.txt.html(i.pageContent.content||"")})},cleanPage:function(){i.wikiPage={},i.pageContent={},i.pageFileList=[],i.newPageTitle="",i.editor.txt&&i.editor.txt.html("")},initQueryParam:function(e){this.parentPath={spaceId:e.query.spaceId,pageId:e.query.pageId,parentId:e.query.parentId,path:e.query.path},this.parentPath.pageId?this.loadPageDetail(this.parentPath.pageId):this.cleanPage()},initEditor:function(){this.editor=new a.a("#newPageContentDiv"),this.editor.customConfig.uploadImgServer=this.apilist1.HOST+"/zyplayer-doc-wiki/common/wangEditor/upload",this.editor.customConfig.zIndex=100,this.editor.customConfig.uploadFileName="files",this.editor.customConfig.uploadImgMaxLength=1,this.editor.customConfig.pasteFilterStyle=!1,this.editor.customConfig.withCredentials=!0,this.editor.create()}}}},function(e,t,o){"use strict";var i,r=o(151),n=o.n(r),l=o(22),a=o(12),s={colorArr:["#67C23A","#409EFF","#E6A23C","#F56C6C","#909399","#303133"],userHeadColor:{}};t.a={data:function(){return{wikiPage:{},pageContent:{},pageFileList:[],uploadFileList:[],uploadFormData:{pageId:0},zanUserDialogVisible:!1,zanUserList:[],parentPath:{},commentTextInput:"",commentList:[],recommentInfo:{},pageAuthDialogVisible:!1,pageAuthUserList:[],searchUserList:[],pageAuthNewUser:"",pageAuthUserLoading:!1}},beforeRouteUpdate:function(e,t,o){this.initQueryParam(e),o()},mounted:function(){i=this,this.initQueryParam(this.$route),this.parentPath.pageId&&setTimeout(function(){a.a.vue.$app.changeWikiPageExpandedKeys(i.parentPath.pageId)},500)},methods:{editWiki:function(){this.$router.push({path:"/page/edit",query:this.parentPath})},getSearchUserList:function(e){if(""!=e){this.pageAuthUserLoading=!0;var t={search:e};this.common.post(this.apilist1.getUserBaseInfo,t,function(e){i.searchUserList=e.data||[],i.pageAuthUserLoading=!1})}},addPageAuthUser:function(){if(this.pageAuthNewUser.length<=0)return void l.a.warn("请先选择用户");for(var e="",t=0;t0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-i(e)}function n(e){var t,o,r,n,l,a,s=e.length;l=i(e),a=new d(3*s/4-l),r=l>0?s-4:s;var c=0;for(t=0,o=0;t>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===l?(n=p[e.charCodeAt(t)]<<2|p[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===l&&(n=p[e.charCodeAt(t)]<<10|p[e.charCodeAt(t+1)]<<4|p[e.charCodeAt(t+2)]>>2,a[c++]=n>>8&255,a[c++]=255&n),a}function l(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function a(e,t,o){for(var i,r=[],n=t;ns?s:l+16383));return 1===i?(t=e[o-1],r+=c[t>>2],r+=c[t<<4&63],r+="=="):2===i&&(t=(e[o-2]<<8)+e[o-1],r+=c[t>>10],r+=c[t>>4&63],r+=c[t<<2&63],r+="="),n.push(r),n.join("")}t.byteLength=r,t.toByteArray=n,t.fromByteArray=s;for(var c=[],p=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=u.length;f=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),n.alloc(+e)}function g(e,t){if(n.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var o=e.length;if(0===o)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return J(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,o){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if(o>>>=0,t>>>=0,o<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,o);case"utf8":case"utf-8":return B(this,t,o);case"ascii":return I(this,t,o);case"latin1":case"binary":return P(this,t,o);case"base64":return C(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,o);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function x(e,t,o){var i=e[t];e[t]=e[o],e[o]=i}function _(e,t,o,i,r){if(0===e.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=r?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(r)return-1;o=e.length-1}else if(o<0){if(!r)return-1;o=0}if("string"==typeof t&&(t=n.from(t,i)),n.isBuffer(t))return 0===t.length?-1:w(e,t,o,i,r);if("number"==typeof t)return t&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):w(e,[t],o,i,r);throw new TypeError("val must be string, number or Buffer")}function w(e,t,o,i,r){function n(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}var l=1,a=e.length,s=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;l=2,a/=2,s/=2,o/=2}var c;if(r){var p=-1;for(c=o;ca&&(o=a-s),c=o;c>=0;c--){for(var d=!0,u=0;ur&&(i=r):i=r;var n=t.length;if(n%2!=0)throw new TypeError("Invalid hex string");i>n/2&&(i=n/2);for(var l=0;l239?4:n>223?3:n>191?2:1;if(r+a<=o){var s,c,p,d;switch(a){case 1:n<128&&(l=n);break;case 2:s=e[r+1],128==(192&s)&&(d=(31&n)<<6|63&s)>127&&(l=d);break;case 3:s=e[r+1],c=e[r+2],128==(192&s)&&128==(192&c)&&(d=(15&n)<<12|(63&s)<<6|63&c)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:s=e[r+1],c=e[r+2],p=e[r+3],128==(192&s)&&128==(192&c)&&128==(192&p)&&(d=(15&n)<<18|(63&s)<<12|(63&c)<<6|63&p)>65535&&d<1114112&&(l=d)}}null===l?(l=65533,a=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=a}return S(i)}function S(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var o="",i=0;ii)&&(o=i);for(var r="",n=t;no)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,o,i,r,l){if(!n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function L(e,t,o,i){t<0&&(t=65535+t+1);for(var r=0,n=Math.min(e.length-o,2);r>>8*(i?r:1-r)}function N(e,t,o,i){t<0&&(t=4294967295+t+1);for(var r=0,n=Math.min(e.length-o,4);r>>8*(i?r:3-r)&255}function F(e,t,o,i,r,n){if(o+i>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function M(e,t,o,i,r){return r||F(e,t,o,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,o,i,23,4),o+4}function Q(e,t,o,i,r){return r||F(e,t,o,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,o,i,52,8),o+8}function Y(e){if(e=j(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function O(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var o,i=e.length,r=null,n=[],l=0;l55295&&o<57344){if(!r){if(o>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(l+1===i){(t-=3)>-1&&n.push(239,191,189);continue}r=o;continue}if(o<56320){(t-=3)>-1&&n.push(239,191,189),r=o;continue}o=65536+(r-55296<<10|o-56320)}else r&&(t-=3)>-1&&n.push(239,191,189);if(r=null,o<128){if((t-=1)<0)break;n.push(o)}else if(o<2048){if((t-=2)<0)break;n.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;n.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return n}function G(e){for(var t=[],o=0;o>8,r=o%256,n.push(r),n.push(i);return n}function J(e){return K.toByteArray(Y(e))}function V(e,t,o,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+o]=e[r];return r}function X(e){return e!==e}/*! +webpackJsonp([1],[,,,function(e,t,o){"use strict";function i(e){return"[object Array]"===k.call(e)}function r(e){return"[object ArrayBuffer]"===k.call(e)}function n(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function a(e){return"string"==typeof e}function s(e){return"number"==typeof e}function c(e){return void 0===e}function p(e){return null!==e&&"object"==typeof e}function d(e){return"[object Date]"===k.call(e)}function u(e){return"[object File]"===k.call(e)}function f(e){return"[object Blob]"===k.call(e)}function h(e){return"[object Function]"===k.call(e)}function b(e){return p(e)&&h(e.pipe)}function g(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function m(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function _(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),i(e))for(var o=0,r=e.length;oo.parts.length&&(i.parts.length=o.parts.length)}else{for(var l=[],r=0;r=200&&e<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){a.headers[e]={}}),r.forEach(["post","put","patch"],function(e){a.headers[e]=r.merge(l)}),e.exports=a}).call(t,o(91))},,,function(e,t,o){var i=o(27),r=o(176),n=o(175),l=o(17),a=o(47),s=o(187),c={},p={},t=e.exports=function(e,t,o,d,u){var f,h,b,g,m=u?function(){return e}:s(e),x=i(o,d,t?2:1),_=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(n(m)){for(f=a(e.length);f>_;_++)if((g=t?x(l(h=e[_])[0],h[1]):x(e[_]))===c||g===p)return g}else for(b=m.call(e);!(h=b.next()).done;)if((g=r(b,x,h.value,t))===c||g===p)return g};t.BREAK=c,t.RETURN=p},,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEX///9wcHBwcHBwcHBwcHB8fHxwcHB6enpwcHCDg4NwcHB8fHx6enqSkpJ8fHxycnJwcHDp6el2dnZwcHD////39/f19fXz8/Pw8PDr6+vn5+fj4+PZ2dnX19fHx8fExMS9vb20tLSrq6uhoaGenp6MjIyKioqDg4N8fHx6enp4eHh0dHRycnKZmZmOjo6KioqDg4OAgIB/f396enp4eHh2dnZycnJwcHDyRjyJAAAALXRSTlMAETNEVWZmd3eIiJmqu7u7u93d3e7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u6OCyV0AAAAi0lEQVQYGXXBRwKCMBAF0B9Q7Io6RJGo2LAEu8zc/2YuyCILfQ/4R8k5gK+zy0v4TilZeAZb2rTCSMHp3bV+jeJpDEDFIvagSRtNJAro2vHjSo4owOYzNlTTAoDnGZNjLABOFkzOagigWiecUW3fBNB/L5+33GgiSksFQE1YPkUlciwuETxhox3ghy8Wng9K1E9YIwAAAABJRU5ErkJggg=="},,function(e,t,o){"use strict";var i=o(23),r=o.n(i),n=o(148),l=window.location.href,a={href:l,HOST:"./",HOST1:"./",mixUrl:function(e,t){var o;if(e&&t&&!a.isEmptyObject(t)){t.HOST=e;for(o in t)-1==t[o].indexOf("http")&&(t[o]=e+t[o]);return t}},isEmptyObject:function(e){if("object"===(void 0===e?"undefined":r()(e))&&!(e instanceof Array)){var t=!1;for(var o in e){t=!0;break}return!t}}},s=a.mixUrl(a.HOST,n.a.URL),c=a.mixUrl(a.HOST1,n.a.URL1);t.a={apilist1:s,apilist2:c}},,function(e,t,o){"use strict";var i=o(3),r=o(130),n=o(133),l=o(139),a=o(137),s=o(67),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||o(132);e.exports=function(e){return new Promise(function(t,p){var d=e.data,u=e.headers;i.isFormData(d)&&delete u["Content-Type"];var f=new XMLHttpRequest,h="onreadystatechange",b=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||a(e.url)||(f=new window.XDomainRequest,h="onload",b=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var g=e.auth.username||"",m=e.auth.password||"";u.Authorization="Basic "+c(g+":"+m)}if(f.open(e.method.toUpperCase(),n(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[h]=function(){if(f&&(4===f.readyState||b)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var o="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?f.response:f.responseText,n={data:i,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:o,config:e,request:f};r(t,p,n),f=null}},f.onerror=function(){p(s("Network Error",e,null,f)),f=null},f.ontimeout=function(){p(s("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var x=o(135),_=(e.withCredentials||a(e.url))&&e.xsrfCookieName?x.read(e.xsrfCookieName):void 0;_&&(u[e.xsrfHeaderName]=_)}if("setRequestHeader"in f&&i.forEach(u,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete u[t]:f.setRequestHeader(t,e)}),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){f&&(f.abort(),p(e),f=null)}),void 0===d&&(d=null),f.send(d)})}},function(e,t,o){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},function(e,t,o){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,o){"use strict";var i=o(129);e.exports=function(e,t,o,r,n){var l=new Error(e);return i(l,t,o,r,n)}},function(e,t,o){"use strict";e.exports=function(e,t){return function(){for(var o=new Array(arguments.length),i=0;i=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?o+=t.charAt(i):n<128?o+=r[n]:n<2048?o+=r[192|n>>6]+r[128|63&n]:n<55296||n>=57344?o+=r[224|n>>12]+r[128|n>>6&63]+r[128|63&n]:(i+=1,n=65536+((1023&n)<<10|1023&t.charCodeAt(i)),o+=r[240|n>>18]+r[128|n>>12&63]+r[128|n>>6&63]+r[128|63&n])}return o},t.compact=function(e,o){if("object"!=typeof e||null===e)return e;var i=o||[],r=i.indexOf(e);if(-1!==r)return i[r];if(i.push(e),Array.isArray(e)){for(var n=[],l=0;l-1}function n(e,t){for(var o in t)e[o]=t[o];return e}function l(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}function a(e,t,o){void 0===t&&(t={});var i,r=o||s;try{i=r(e||"")}catch(e){i={}}for(var n in t)i[n]=t[n];return i}function s(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var o=e.replace(/\+/g," ").split("="),i=Ne(o.shift()),r=o.length>0?Ne(o.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]}),t):t}function c(e){var t=e?Object.keys(e).map(function(t){var o=e[t];if(void 0===o)return"";if(null===o)return Le(t);if(Array.isArray(o)){var i=[];return o.forEach(function(e){void 0!==e&&(null===e?i.push(Le(t)):i.push(Le(t)+"="+Le(e)))}),i.join("&")}return Le(t)+"="+Le(o)}).filter(function(e){return e.length>0}).join("&"):null;return t?"?"+t:""}function p(e,t,o,i){var r=i&&i.options.stringifyQuery,n=t.query||{};try{n=d(n)}catch(e){}var l={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:n,params:t.params||{},fullPath:f(t,r),matched:e?u(e):[]};return o&&(l.redirectedFrom=f(o,r)),Object.freeze(l)}function d(e){if(Array.isArray(e))return e.map(d);if(e&&"object"==typeof e){var t={};for(var o in e)t[o]=d(e[o]);return t}return e}function u(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function f(e,t){var o=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var n=t||c;return(o||"/")+n(i)+r}function h(e,t){return t===Me?e===t:!!t&&(e.path&&t.path?e.path.replace(Fe,"")===t.path.replace(Fe,"")&&e.hash===t.hash&&b(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var o=Object.keys(e),i=Object.keys(t);return o.length===i.length&&o.every(function(o){var i=e[o],r=t[o];return"object"==typeof i&&"object"==typeof r?b(i,r):String(i)===String(r)})}function g(e,t){return 0===e.path.replace(Fe,"/").indexOf(t.path.replace(Fe,"/"))&&(!t.hash||e.hash===t.hash)&&m(e.query,t.query)}function m(e,t){for(var o in t)if(!(o in e))return!1;return!0}function x(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){if(/\b_blank\b/i.test(e.currentTarget.getAttribute("target")))return}return e.preventDefault&&e.preventDefault(),!0}}function _(e){if(e)for(var t,o=0;o=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(o=e.slice(r+1),e=e.slice(0,r)),{path:e,query:o,hash:t}}function y(e){return e.replace(/\/\//g,"/")}function k(e,t){for(var o,i=[],r=0,n=0,l="",a=t&&t.delimiter||"/";null!=(o=Ke.exec(e));){var s=o[0],c=o[1],p=o.index;if(l+=e.slice(n,p),n=p+s.length,c)l+=c[1];else{var d=e[n],u=o[2],f=o[3],h=o[4],b=o[5],g=o[6],m=o[7];l&&(i.push(l),l="");var x=null!=u&&null!=d&&d!==u,_="+"===g||"*"===g,w="?"===g||"*"===g,v=o[2]||a,A=h||b;i.push({name:f||r++,prefix:u||"",delimiter:v,optional:w,repeat:_,partial:x,asterisk:!!m,pattern:A?I(A):m?".*":"[^"+S(v)+"]+?"})}}return n-1&&(r.params[u]=o.params[u]);if(a)return r.path=F(a.path,r.params,'named route "'+n+'"'),l(a,r,i)}else if(r.path){r.params={};for(var f=0;f=e.length?o():e[r]?t(e[r],function(){i(r+1)}):i(r+1)};i(0)}function ce(e){return function(t,o,i){var n=!1,l=0,a=null;pe(e,function(e,t,o,s){if("function"==typeof e&&void 0===e.cid){n=!0,l++;var c,p=fe(function(t){ue(t)&&(t=t.default),e.resolved="function"==typeof t?t:Te.extend(t),o.components[s]=t,--l<=0&&i()}),d=fe(function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=r(e)?e:new Error(t),i(a))});try{c=e(p,d)}catch(e){d(e)}if(c)if("function"==typeof c.then)c.then(p,d);else{var u=c.component;u&&"function"==typeof u.then&&u.then(p,d)}}}),n||i()}}function pe(e,t){return de(e.map(function(e){return Object.keys(e.components).map(function(o){return t(e.components[o],e.instances[o],e,o)})}))}function de(e){return Array.prototype.concat.apply([],e)}function ue(e){return e.__esModule||ot&&"Module"===e[Symbol.toStringTag]}function fe(e){var t=!1;return function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];if(!t)return t=!0,e.apply(this,o)}}function he(e){if(!e)if(Oe){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function be(e,t){var o,i=Math.max(e.length,t.length);for(o=0;o-1?decodeURI(e.slice(0,i))+e.slice(i):decodeURI(e)}else o>-1&&(e=decodeURI(e.slice(0,o))+e.slice(o));return e}function Be(e){var t=window.location.href,o=t.indexOf("#");return(o>=0?t.slice(0,o):t)+"#"+e}function Se(e){$e?le(Be(e)):window.location.hash=e}function Ie(e){$e?ae(Be(e)):window.location.replace(Be(e))}function Pe(e,t){return e.push(t),function(){var o=e.indexOf(t);o>-1&&e.splice(o,1)}}function Re(e,t,o){var i="hash"===o?"#"+t:t;return e?y(e+"/"+i):i}var Te,Ue={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var o=t.props,i=t.children,r=t.parent,a=t.data;a.routerView=!0;for(var s=r.$createElement,c=o.name,p=r.$route,d=r._routerViewCache||(r._routerViewCache={}),u=0,f=!1;r&&r._routerRoot!==r;){var h=r.$vnode&&r.$vnode.data;h&&(h.routerView&&u++,h.keepAlive&&r._inactive&&(f=!0)),r=r.$parent}if(a.routerViewDepth=u,f)return s(d[c],a,i);var b=p.matched[u];if(!b)return d[c]=null,s();var g=d[c]=b.components[c];a.registerRouteInstance=function(e,t){var o=b.instances[c];(t&&o!==e||!t&&o===e)&&(b.instances[c]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){b.instances[c]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==b.instances[c]&&(b.instances[c]=e.componentInstance)};var m=a.props=l(p,b.props&&b.props[c]);if(m){m=a.props=n({},m);var x=a.attrs=a.attrs||{};for(var _ in m)g.props&&_ in g.props||(x[_]=m[_],delete m[_])}return s(g,a,i)}},De=function(e){return"%"+e.charCodeAt(0).toString(16)},Le=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,De).replace(/%2C/g,",")},Ne=decodeURIComponent,Fe=/\/?$/,Me=p(null,{path:"/"}),Qe=[String,Object],Ye=[String,Array],je={name:"RouterLink",props:{to:{type:Qe,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Ye,default:"click"}},render:function(e){var t=this,o=this.$router,i=this.$route,r=o.resolve(this.to,i,this.append),l=r.location,a=r.route,s=r.href,c={},d=o.options.linkActiveClass,u=o.options.linkExactActiveClass,f=null==d?"router-link-active":d,b=null==u?"router-link-exact-active":u,m=null==this.activeClass?f:this.activeClass,w=null==this.exactActiveClass?b:this.exactActiveClass,v=l.path?p(null,l,null,o):a;c[w]=h(i,v),c[m]=this.exact?c[w]:g(i,v);var A=function(e){x(e)&&(t.replace?o.replace(l):o.push(l))},y={click:x};Array.isArray(this.event)?this.event.forEach(function(e){y[e]=A}):y[this.event]=A;var k={class:c};if("a"===this.tag)k.on=y,k.attrs={href:s};else{var E=_(this.$slots.default);if(E){E.isStatic=!1;(E.data=n({},E.data)).on=y;(E.data.attrs=n({},E.data.attrs)).href=s}else k.on=y}return e(this.tag,k,this.$slots.default)}},Oe="undefined"!=typeof window,He=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},Ge=N,qe=k,Je=E,Ve=B,Xe=L,Ke=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Ge.parse=qe,Ge.compile=Je,Ge.tokensToFunction=Ve,Ge.tokensToRegExp=Xe;var Ze=Object.create(null),We=Object.create(null),$e=Oe&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),et=Oe&&window.performance&&window.performance.now?window.performance:Date,tt=ie(),ot="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,it=function(e,t){this.router=e,this.base=he(t),this.current=Me,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};it.prototype.listen=function(e){this.cb=e},it.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},it.prototype.onError=function(e){this.errorCbs.push(e)},it.prototype.transitionTo=function(e,t,o){var i=this,r=this.router.match(e,this.current);this.confirmTransition(r,function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(e){e(r)}))},function(e){o&&o(e),e&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach(function(t){t(e)}))})},it.prototype.confirmTransition=function(e,t,o){var n=this,l=this.current,a=function(e){r(e)&&(n.errorCbs.length?n.errorCbs.forEach(function(t){t(e)}):(i(!1,"uncaught error during route navigation:"),console.error(e))),o&&o(e)};if(h(e,l)&&e.matched.length===l.matched.length)return this.ensureURL(),a();var s=be(this.current.matched,e.matched),c=s.updated,p=s.deactivated,d=s.activated,u=[].concat(xe(p),this.router.beforeHooks,_e(c),d.map(function(e){return e.beforeEnter}),ce(d));this.pending=e;var f=function(t,o){if(n.pending!==e)return a();try{t(e,l,function(e){!1===e||r(e)?(n.ensureURL(!0),a(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(a(),"object"==typeof e&&e.replace?n.replace(e):n.push(e)):o(e)})}catch(e){a(e)}};se(u,f,function(){var o=[];se(ve(d,o,function(){return n.current===e}).concat(n.router.resolveHooks),f,function(){if(n.pending!==e)return a();n.pending=null,t(e),n.router.app&&n.router.app.$nextTick(function(){o.forEach(function(e){e()})})})})},it.prototype.updateRoute=function(e){var t=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(o){o&&o(e,t)})};var rt=function(e){function t(t,o){var i=this;e.call(this,t,o);var r=t.options.scrollBehavior,n=$e&&r;n&&J();var l=ke(this.base);window.addEventListener("popstate",function(e){var o=i.current,r=ke(i.base);i.current===Me&&r===l||i.transitionTo(r,function(e){n&&V(t,e,o,!0)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){le(y(i.base+e.fullPath)),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.replace=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){ae(y(i.base+e.fullPath)),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.ensureURL=function(e){if(ke(this.base)!==this.current.fullPath){var t=y(this.base+this.current.fullPath);e?le(t):ae(t)}},t.prototype.getCurrentLocation=function(){return ke(this.base)},t}(it),nt=function(e){function t(t,o,i){e.call(this,t,o),i&&Ee(this.base)||ze()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this,t=this.router,o=t.options.scrollBehavior,i=$e&&o;i&&J(),window.addEventListener($e?"popstate":"hashchange",function(){var t=e.current;ze()&&e.transitionTo(Ce(),function(o){i&&V(e.router,o,t,!0),$e||Ie(o.fullPath)})})},t.prototype.push=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){Se(e.fullPath),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.replace=function(e,t,o){var i=this,r=this,n=r.current;this.transitionTo(e,function(e){Ie(e.fullPath),V(i.router,e,n,!1),t&&t(e)},o)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;Ce()!==t&&(e?Se(t):Ie(t))},t.prototype.getCurrentLocation=function(){return Ce()},t}(it),lt=function(e){function t(t,o){e.call(this,t,o),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,o){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)},o)},t.prototype.replace=function(e,t,o){var i=this;this.transitionTo(e,function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)},o)},t.prototype.go=function(e){var t=this,o=this.index+e;if(!(o<0||o>=this.stack.length)){var i=this.stack[o];this.confirmTransition(i,function(){t.index=o,t.updateRoute(i)})}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(it),at=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=H(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!$e&&!1!==e.fallback,this.fallback&&(t="hash"),Oe||(t="abstract"),this.mode=t,t){case"history":this.history=new rt(this,e.base);break;case"hash":this.history=new nt(this,e.base,this.fallback);break;case"abstract":this.history=new lt(this,e.base)}},st={currentRoute:{configurable:!0}};at.prototype.match=function(e,t,o){return this.matcher.match(e,t,o)},st.currentRoute.get=function(){return this.history&&this.history.current},at.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var o=t.apps.indexOf(e);o>-1&&t.apps.splice(o,1),t.app===e&&(t.app=t.apps[0]||null)}),!this.app){this.app=e;var o=this.history;if(o instanceof rt)o.transitionTo(o.getCurrentLocation());else if(o instanceof nt){var i=function(){o.setupListeners()};o.transitionTo(o.getCurrentLocation(),i,i)}o.listen(function(e){t.apps.forEach(function(t){t._route=e})})}},at.prototype.beforeEach=function(e){return Pe(this.beforeHooks,e)},at.prototype.beforeResolve=function(e){return Pe(this.resolveHooks,e)},at.prototype.afterEach=function(e){return Pe(this.afterHooks,e)},at.prototype.onReady=function(e,t){this.history.onReady(e,t)},at.prototype.onError=function(e){this.history.onError(e)},at.prototype.push=function(e,t,o){this.history.push(e,t,o)},at.prototype.replace=function(e,t,o){this.history.replace(e,t,o)},at.prototype.go=function(e){this.history.go(e)},at.prototype.back=function(){this.go(-1)},at.prototype.forward=function(){this.go(1)},at.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},at.prototype.resolve=function(e,t,o){t=t||this.history.current;var i=O(e,t,o,this),r=this.match(i,t),n=r.redirectedFrom||r.fullPath;return{location:i,route:r,href:Re(this.history.base,n,this.mode),normalizedTo:i,resolved:r}},at.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Me&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(at.prototype,st),at.install=w,at.version="3.0.6",Oe&&window.Vue&&window.Vue.use(at),t.a=at},,,,,,,,,,,,,,,,,,,,,,,function(e,t,o){"use strict";function i(e){var t=new l(e),o=n(l.prototype.request,t);return r.extend(o,l.prototype,t),r.extend(o,t),o}var r=o(3),n=o(68),l=o(126),a=o(34),s=i(a);s.Axios=l,s.create=function(e){return i(r.merge(a,e))},s.Cancel=o(65),s.CancelToken=o(125),s.isCancel=o(66),s.all=function(e){return Promise.all(e)},s.spread=o(140),e.exports=s,e.exports.default=s},function(e,t,o){"use strict";function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var o=this;e(function(e){o.reason||(o.reason=new r(e),t(o.reason))})}var r=o(65);i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,o){"use strict";function i(e){this.defaults=e,this.interceptors={request:new l,response:new l}}var r=o(34),n=o(3),l=o(127),a=o(128);i.prototype.request=function(e){"string"==typeof e&&(e=n.merge({url:arguments[0]},arguments[1])),e=n.merge(r,{method:"get"},this.defaults,e),e.method=e.method.toLowerCase();var t=[a,void 0],o=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)o=o.then(t.shift(),t.shift());return o},n.forEach(["delete","get","head","options"],function(e){i.prototype[e]=function(t,o){return this.request(n.merge(o||{},{method:e,url:t}))}}),n.forEach(["post","put","patch"],function(e){i.prototype[e]=function(t,o,i){return this.request(n.merge(i||{},{method:e,url:t,data:o}))}}),e.exports=i},function(e,t,o){"use strict";function i(){this.handlers=[]}var r=o(3);i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,o){"use strict";function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var r=o(3),n=o(131),l=o(66),a=o(34),s=o(136),c=o(134);e.exports=function(e){return i(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=n(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return i(e),t.data=n(t.data,t.headers,e.transformResponse),t},function(t){return l(t)||(i(e),t&&t.response&&(t.response.data=n(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,o){"use strict";e.exports=function(e,t,o,i,r){return e.config=t,o&&(e.code=o),e.request=i,e.response=r,e}},function(e,t,o){"use strict";var i=o(67);e.exports=function(e,t,o){var r=o.config.validateStatus;o.status&&r&&!r(o.status)?t(i("Request failed with status code "+o.status,o.config,null,o.request,o)):e(o)}},function(e,t,o){"use strict";var i=o(3);e.exports=function(e,t,o){return i.forEach(o,function(o){e=o(e,t)}),e}},function(e,t,o){"use strict";function i(){this.message="String contains an invalid character"}function r(e){for(var t,o,r=String(e),l="",a=0,s=n;r.charAt(0|a)||(s="=",a%1);l+=s.charAt(63&t>>8-a%1*8)){if((o=r.charCodeAt(a+=.75))>255)throw new i;t=t<<8|o}return l}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",e.exports=r},function(e,t,o){"use strict";function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=o(3);e.exports=function(e,t,o){if(!t)return e;var n;if(o)n=o(t);else if(r.isURLSearchParams(t))n=t.toString();else{var l=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),l.push(i(t)+"="+i(e))}))}),n=l.join("&")}return n&&(e+=(-1===e.indexOf("?")?"?":"&")+n),e}},function(e,t,o){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,o){"use strict";var i=o(3);e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,o,r,n,l){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(n)&&a.push("domain="+n),!0===l&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,o){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,o){"use strict";var i=o(3);e.exports=i.isStandardBrowserEnv()?function(){function e(e){var t=e;return o&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var t,o=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return t=e(window.location.href),function(o){var r=i.isString(o)?e(o):o;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},function(e,t,o){"use strict";var i=o(3);e.exports=function(e,t){i.forEach(e,function(o,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=o,delete e[i])})}},function(e,t,o){"use strict";var i=o(3),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,o,n,l={};return e?(i.forEach(e.split("\n"),function(e){if(n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),o=i.trim(e.substr(n+1)),t){if(l[t]&&r.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([o]):l[t]?l[t]+", "+o:o}}),l):l}},function(e,t,o){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},,function(e,t,o){"use strict";var i,r=o(152),n=o.n(r),l=o(12),a=o(22);t.a={data:function(){return{leftCollapse:!0,aboutDialogVisible:!1,rightContentLoading:!1,pathIndex:[],defaultProps:{children:"children",label:"name"},spaceOptions:[],spaceList:[],choiceSpace:"",nowSpaceShow:{},newSpaceDialogVisible:!1,manageSpaceDialogVisible:!1,newSpaceForm:{id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},newSpaceFormRules:{name:[{required:!0,message:"请输入空间名",trigger:"blur"},{min:2,max:25,message:"长度在 2 到 25 个字符",trigger:"blur"}]},nowClickPath:{id:"",path:""},treePathDataMap:new n.a,searchKeywords:"",wikiPageList:[],wikiPage:{},wikiPageExpandedKeys:[],upgradeInfo:{}}},mounted:function(){i=this,l.a.vue.$app=this,this.loadSpaceList(),this.checkSystemUpgrade()},methods:{createWiki:function(){if(this.nowClickPath.spaceId>0){var e={spaceId:this.nowClickPath.spaceId,parentId:this.nowClickPath.parentId,path:this.nowClickPath.path};this.$router.push({path:"/page/edit",query:e})}else a.a.warn("请先选择或创建空间")},changeWikiPageExpandedKeys:function(e){this.wikiPageExpandedKeys=[e]},searchByKeywords:function(){this.$refs.wikiPageTree.filter(i.searchKeywords)},handleNodeClick:function(e){console.log("点击节点:",e),this.nowClickPath={spaceId:this.nowClickPath.spaceId,pageId:e.id,parentId:e.id,path:e.path},this.$router.push({path:"/page/show",query:this.nowClickPath})},handleNodeExpand:function(e){e.children.length>0&&e.children[0].needLoad&&(console.log("加载节点:",e),i.doGetPageList(e.id,e))},handlePageDrop:function(e,t,o,r){console.log("tree drop: ",e.data,t.data,o);var n={id:e.data.id,parentId:t.data.parentId};"inner"==o?n.parentId=t.data.id:"before"==o?n.beforeSeq=t.data.seqNo:"after"==o&&(n.afterSeq=t.data.seqNo),this.common.post(this.apilist1.pageChangeParent,n,function(e){i.doGetPageList(null)})},filterPageNode:function(e,t){return!e||-1!==t.name.indexOf(e)},editSpaceInfo:function(e){i.newSpaceForm={id:e.id,name:e.name,spaceExplain:e.spaceExplain,treeLazyLoad:e.treeLazyLoad,openDoc:e.openDoc,type:e.type},i.newSpaceDialogVisible=!0},deleteSpaceInfo:function(e){var t=this;this.$confirm("确定要删除此空间及下面的所有文档吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={id:e.id,delFlag:1};t.common.post(t.apilist1.updateSpace,o,function(e){i.loadSpaceList()})})},spaceChangeEvents:function(e){if(0==e)i.newSpaceForm={id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},i.choiceSpace=i.nowClickPath.spaceId,i.newSpaceDialogVisible=!0;else if(-1==e)i.choiceSpace=i.nowClickPath.spaceId,i.manageSpaceDialogVisible=!0;else{i.nowClickPath={spaceId:e};for(var t=0;t0){var r=i.spaceList[0].id;i.nowSpaceShow=i.spaceList[0],i.nowClickPath={spaceId:r},i.choiceSpace=r,i.doGetPageList(null);try{"/home"==i.$router.app._route.path&&i.$router.push({path:"/home",query:{spaceId:r}})}catch(e){console.log(e)}}})},doGetPageList:function(e,t){var o="";t?(o=t.nodePath||"/",o.endsWith("/")||(o+="/")):o="/";var r={spaceId:i.nowClickPath.spaceId,parentId:e||0};0==i.nowSpaceShow.treeLazyLoad&&(r.parentId=null),this.common.post(this.apilist1.pageList,r,function(r){var n=r.data||[],l=[];if(0==i.nowSpaceShow.treeLazyLoad)l=n;else for(var a=0;a0?t.children=l:i.wikiPageList=l})},createNodePath:function(e,t){t.endsWith("/")||(t+="/");for(var o=0;o0&&this.createNodePath(i.children,i.nodePath)}},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?i.aboutDialogVisible=!0:a.a.notOpen()},userSignOut:function(){this.common.post(this.apilist1.userLogout,{},function(e){location.reload()})},onNewSpaceSubmit:function(e){var t=this;this.$refs[e].validate(function(e){if(e){var o={id:i.newSpaceForm.id,name:i.newSpaceForm.name,type:i.newSpaceForm.type,openDoc:i.newSpaceForm.openDoc,spaceExplain:i.newSpaceForm.spaceExplain,treeLazyLoad:i.newSpaceForm.treeLazyLoad};t.common.post(t.apilist1.updateSpace,o,function(e){o.id>0?i.loadSpaceList():(i.spaceList.push(e.data),i.spaceOptions.push({label:e.data.name,value:e.data.id}),i.nowSpaceShow=e.data,i.nowClickPath={spaceId:e.data.id},i.choiceSpace=e.data.id,i.doGetPageList(null)),i.newSpaceForm={id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},i.newSpaceDialogVisible=!1})}})},onNewSpaceCancel:function(){this.newSpaceDialogVisible=!1},checkSystemUpgrade:function(){this.common.post(this.apilist1.systemUpgradeInfo,{},function(e){e.data&&(i.upgradeInfo=e.data,console.log("zyplayer-doc发现新版本:\n升级地址:"+e.data.upgradeUrl+"\n当前版本:"+e.data.nowVersion+"\n最新版本:"+e.data.lastVersion+"\n升级内容:"+e.data.upgradeContent))})},init:function(){},switchSpacePage:function(e){e=parseInt(e),i.choiceSpace!=e&&(i.choiceSpace=e,i.nowClickPath.spaceId=e,this.doGetPageList(null))}}}},function(e,t,o){"use strict";t.a={data:function(){return{}},mounted:function(){},methods:{}}},function(e,t,o){"use strict";var i;o(22),o(12);t.a={data:function(){return{totalCount:0,searchParam:{spaceId:"",newsType:1,pageNum:1,pageSize:20},spacePageNews:[],newsTypes:["最近更新","最新创建","查看最多","点赞最多","查看+点赞最多"]}},beforeRouteUpdate:function(e,t,o){this.initQueryParam(e),o()},mounted:function(){this.initQueryParam(this.$route),i=this},methods:{getSpacePageNews:function(){this.common.post(this.apilist1.pageNews,this.searchParam,function(e){i.spacePageNews=e.data||[],i.totalCount=e.total})},handleSizeChange:function(e){this.searchParam.pageSize=e,this.getSpacePageNews()},showPageDetail:function(e){this.nowClickPath={spaceId:e.spaceId,pageId:e.pageId},this.$router.push({path:"/page/show",query:this.nowClickPath})},handleCurrentChange:function(e){this.searchParam.pageNum=e,this.getSpacePageNews()},initQueryParam:function(e){this.searchParam={spaceId:e.query.spaceId,newsType:1,pageNum:1,pageSize:20},this.searchParam.spaceId&&this.getSpacePageNews()}}}},function(e,t,o){"use strict";var i,r=o(22),n=o(12),l=o(260),a=o.n(l);t.a={data:function(){return{editor:{},newPageTitle:"",parentPath:{},wikiPage:{}}},beforeRouteUpdate:function(e,t,o){this.initQueryParam(e),o()},mounted:function(){i=this,this.initEditor(),this.initQueryParam(this.$route)},methods:{changeToRootPath:function(){i.parentPath={spaceId:this.parentPath.spaceId}},createWikiCancel:function(){this.$confirm("确定要取消编辑吗?您编辑的内容将不会被保存哦~","提示",{confirmButtonText:"确定",cancelButtonText:"继续编辑",type:"warning"}).then(function(){i.$router.back()})},createWikiSave:function(){var e=this.wikiPage.id>0?"":i.parentPath.parentId;if(this.common.isEmpty(i.newPageTitle))return void r.a.warn("标题不能为空");var t=this.editor.txt.text();t.length>200&&(t=t.substring(0,200)+"...");var o={spaceId:i.parentPath.spaceId,parentId:e,id:i.wikiPage.id,name:i.newPageTitle,content:this.editor.txt.html(),preview:t};this.common.post(this.apilist1.updatePage,o,function(e){r.a.success("保存成功!"),n.a.vue.$app.doGetPageList(null),i.parentPath.pageId=e.data.id,i.$router.push({path:"/page/show",query:i.parentPath})})},loadPageDetail:function(e){i.rightContentType=1;var t={id:e};this.common.post(this.apilist1.pageDetail,t,function(e){i.wikiPage=e.data.wikiPage||{},i.pageContent=e.data.pageContent||{},i.pageFileList=e.data.fileList||[],i.newPageTitle=i.wikiPage.name,i.editor.txt.html(i.pageContent.content||"")})},cleanPage:function(){i.wikiPage={},i.pageContent={},i.pageFileList=[],i.newPageTitle="",i.editor.txt&&i.editor.txt.html("")},initQueryParam:function(e){this.parentPath={spaceId:e.query.spaceId,pageId:e.query.pageId,parentId:e.query.parentId,path:e.query.path},this.parentPath.pageId?this.loadPageDetail(this.parentPath.pageId):this.cleanPage()},initEditor:function(){this.editor=new a.a("#newPageContentDiv"),this.editor.customConfig.uploadImgServer=this.apilist1.HOST+"/zyplayer-doc-wiki/common/wangEditor/upload",this.editor.customConfig.zIndex=100,this.editor.customConfig.uploadFileName="files",this.editor.customConfig.uploadImgMaxLength=1,this.editor.customConfig.pasteFilterStyle=!1,this.editor.customConfig.withCredentials=!0,this.editor.create()}}}},function(e,t,o){"use strict";var i,r=o(151),n=o.n(r),l=o(22),a=o(12),s={colorArr:["#67C23A","#409EFF","#E6A23C","#F56C6C","#909399","#303133"],userHeadColor:{}};t.a={data:function(){return{wikiPage:{},pageContent:{},pageFileList:[],uploadFileList:[],uploadFormData:{pageId:0},zanUserDialogVisible:!1,zanUserList:[],parentPath:{},commentTextInput:"",commentList:[],recommentInfo:{},pageAuthDialogVisible:!1,pageAuthUserList:[],searchUserList:[],pageAuthNewUser:"",pageAuthUserLoading:!1}},beforeRouteUpdate:function(e,t,o){this.initQueryParam(e),o()},mounted:function(){i=this,this.initQueryParam(this.$route),this.parentPath.pageId&&setTimeout(function(){a.a.vue.$app.changeWikiPageExpandedKeys(i.parentPath.pageId)},500)},methods:{editWiki:function(){this.$router.push({path:"/page/edit",query:this.parentPath})},getSearchUserList:function(e){if(""!=e){this.pageAuthUserLoading=!0;var t={search:e};this.common.post(this.apilist1.getUserBaseInfo,t,function(e){i.searchUserList=e.data||[],i.pageAuthUserLoading=!1})}},addPageAuthUser:function(){if(this.pageAuthNewUser.length<=0)return void l.a.warn("请先选择用户");for(var e="",t=0;t0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function r(e){return 3*e.length/4-i(e)}function n(e){var t,o,r,n,l,a,s=e.length;l=i(e),a=new d(3*s/4-l),r=l>0?s-4:s;var c=0;for(t=0,o=0;t>16&255,a[c++]=n>>8&255,a[c++]=255&n;return 2===l?(n=p[e.charCodeAt(t)]<<2|p[e.charCodeAt(t+1)]>>4,a[c++]=255&n):1===l&&(n=p[e.charCodeAt(t)]<<10|p[e.charCodeAt(t+1)]<<4|p[e.charCodeAt(t+2)]>>2,a[c++]=n>>8&255,a[c++]=255&n),a}function l(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function a(e,t,o){for(var i,r=[],n=t;ns?s:l+16383));return 1===i?(t=e[o-1],r+=c[t>>2],r+=c[t<<4&63],r+="=="):2===i&&(t=(e[o-2]<<8)+e[o-1],r+=c[t>>10],r+=c[t>>4&63],r+=c[t<<2&63],r+="="),n.push(r),n.join("")}t.byteLength=r,t.toByteArray=n,t.fromByteArray=s;for(var c=[],p=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,h=u.length;f=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),n.alloc(+e)}function g(e,t){if(n.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var o=e.length;if(0===o)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return o;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*o;case"hex":return o>>>1;case"base64":return J(e).length;default:if(i)return H(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,o){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===o||o>this.length)&&(o=this.length),o<=0)return"";if(o>>>=0,t>>>=0,o<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,o);case"utf8":case"utf-8":return B(this,t,o);case"ascii":return I(this,t,o);case"latin1":case"binary":return P(this,t,o);case"base64":return C(this,t,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,o);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function x(e,t,o){var i=e[t];e[t]=e[o],e[o]=i}function _(e,t,o,i,r){if(0===e.length)return-1;if("string"==typeof o?(i=o,o=0):o>2147483647?o=2147483647:o<-2147483648&&(o=-2147483648),o=+o,isNaN(o)&&(o=r?0:e.length-1),o<0&&(o=e.length+o),o>=e.length){if(r)return-1;o=e.length-1}else if(o<0){if(!r)return-1;o=0}if("string"==typeof t&&(t=n.from(t,i)),n.isBuffer(t))return 0===t.length?-1:w(e,t,o,i,r);if("number"==typeof t)return t&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,o):Uint8Array.prototype.lastIndexOf.call(e,t,o):w(e,[t],o,i,r);throw new TypeError("val must be string, number or Buffer")}function w(e,t,o,i,r){function n(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}var l=1,a=e.length,s=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;l=2,a/=2,s/=2,o/=2}var c;if(r){var p=-1;for(c=o;ca&&(o=a-s),c=o;c>=0;c--){for(var d=!0,u=0;ur&&(i=r):i=r;var n=t.length;if(n%2!=0)throw new TypeError("Invalid hex string");i>n/2&&(i=n/2);for(var l=0;l239?4:n>223?3:n>191?2:1;if(r+a<=o){var s,c,p,d;switch(a){case 1:n<128&&(l=n);break;case 2:s=e[r+1],128==(192&s)&&(d=(31&n)<<6|63&s)>127&&(l=d);break;case 3:s=e[r+1],c=e[r+2],128==(192&s)&&128==(192&c)&&(d=(15&n)<<12|(63&s)<<6|63&c)>2047&&(d<55296||d>57343)&&(l=d);break;case 4:s=e[r+1],c=e[r+2],p=e[r+3],128==(192&s)&&128==(192&c)&&128==(192&p)&&(d=(15&n)<<18|(63&s)<<12|(63&c)<<6|63&p)>65535&&d<1114112&&(l=d)}}null===l?(l=65533,a=1):l>65535&&(l-=65536,i.push(l>>>10&1023|55296),l=56320|1023&l),i.push(l),r+=a}return S(i)}function S(e){var t=e.length;if(t<=$)return String.fromCharCode.apply(String,e);for(var o="",i=0;ii)&&(o=i);for(var r="",n=t;no)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,o,i,r,l){if(!n.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||te.length)throw new RangeError("Index out of range")}function L(e,t,o,i){t<0&&(t=65535+t+1);for(var r=0,n=Math.min(e.length-o,2);r>>8*(i?r:1-r)}function N(e,t,o,i){t<0&&(t=4294967295+t+1);for(var r=0,n=Math.min(e.length-o,4);r>>8*(i?r:3-r)&255}function F(e,t,o,i,r,n){if(o+i>e.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("Index out of range")}function M(e,t,o,i,r){return r||F(e,t,o,4,3.4028234663852886e38,-3.4028234663852886e38),Z.write(e,t,o,i,23,4),o+4}function Q(e,t,o,i,r){return r||F(e,t,o,8,1.7976931348623157e308,-1.7976931348623157e308),Z.write(e,t,o,i,52,8),o+8}function Y(e){if(e=j(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function j(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function O(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var o,i=e.length,r=null,n=[],l=0;l55295&&o<57344){if(!r){if(o>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(l+1===i){(t-=3)>-1&&n.push(239,191,189);continue}r=o;continue}if(o<56320){(t-=3)>-1&&n.push(239,191,189),r=o;continue}o=65536+(r-55296<<10|o-56320)}else r&&(t-=3)>-1&&n.push(239,191,189);if(r=null,o<128){if((t-=1)<0)break;n.push(o)}else if(o<2048){if((t-=2)<0)break;n.push(o>>6|192,63&o|128)}else if(o<65536){if((t-=3)<0)break;n.push(o>>12|224,o>>6&63|128,63&o|128)}else{if(!(o<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}}return n}function G(e){for(var t=[],o=0;o>8,r=o%256,n.push(r),n.push(i);return n}function J(e){return K.toByteArray(Y(e))}function V(e,t,o,i){for(var r=0;r=t.length||r>=e.length);++r)t[r+o]=e[r];return r}function X(e){return e!==e}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh @@ -10,5 +10,5 @@ var K=o(156),Z=o(222),W=o(224);t.Buffer=n,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50, * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&(o(e)||i(e)||!!e._isBuffer)}},function(e,t){var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},,,,,,function(e,t,o){"use strict";var i=o(232),r=o(231),n=o(92);e.exports={formats:n,parse:r,stringify:i}},function(e,t,o){"use strict";var i=o(93),r=Object.prototype.hasOwnProperty,n={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:i.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var o={},i=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),n=0;n=0&&o.parseArrays&&l<=o.arrayLimit?(i=[],i[l]=a(e,t,o)):i[n]=a(e,t,o)}return i},s=function(e,t,o){if(e){var i=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=n.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!o.plainObjects&&r.call(Object.prototype,c)&&!o.allowPrototypes)return;p.push(c)}for(var d=0;null!==(s=l.exec(i))&&d=0&&x.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function s(e,t){var o,i,r;if(t.singleton){var s=m++;o=g||(g=l(t)),i=c.bind(null,o,s,!1),r=c.bind(null,o,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=a(t),i=d.bind(null,o),r=function(){n(o),o.href&&URL.revokeObjectURL(o.href)}):(o=l(t),i=p.bind(null,o),r=function(){n(o)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function c(e,t,o,i){var r=o?"":i.css;if(e.styleSheet)e.styleSheet.cssText=_(t,r);else{var n=document.createTextNode(r),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(n,l[t]):e.appendChild(n)}}function p(e,t){var o=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}function d(e,t){var o=t.css,i=t.sourceMap;i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([o],{type:"text/css"}),n=e.href;e.href=URL.createObjectURL(r),n&&URL.revokeObjectURL(n)}var u={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=f(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),b=f(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,m=0,x=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var r=i(e);return o(r,t),function(e){for(var n=[],l=0;l0,expression:"pageFileList.length > 0"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.pageFileList,border:""}},[i("el-table-column",{attrs:{label:"文件名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("a",{attrs:{target:"_blank",href:t.row.fileUrl}},[e._v(e._s(t.row.fileName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),e._v(" "),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small"},on:{click:function(o){e.deletePageFile(t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"wiki-content w-e-text"},[i("div",{domProps:{innerHTML:e._s(e.pageContent.content)}})]),e._v(" "),i("div",{staticStyle:{"margin-top":"40px","font-size":"14px"}},[i("span",{staticClass:"is-link",staticStyle:{"vertical-align":"top"}},[i("span",{directives:[{name:"show",rawName:"v-show",value:0==e.wikiPage.selfZan,expression:"wikiPage.selfZan == 0"}],on:{click:function(t){e.zanPage(1)}}},[i("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:o(60)}}),e._v(" 赞")]),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.wikiPage.selfZan,expression:"wikiPage.selfZan == 1"}],on:{click:function(t){e.zanPage(0)}}},[i("img",{staticStyle:{"vertical-align":"middle",transform:"rotateX(180deg)"},attrs:{src:o(60)}}),e._v(" 踩")])]),e._v(" "),i("span",{staticStyle:{"margin-left":"10px","vertical-align":"top"}},[0==e.wikiPage.selfZan&&e.wikiPage.zanNum<=0?i("span",[e._v("成为第一个赞同者")]):0==e.wikiPage.selfZan&&e.wikiPage.zanNum>0?i("span",[i("span",{staticClass:"is-link",on:{click:e.showZanPageUser}},[e._v(e._s(e.wikiPage.zanNum)+"人")]),e._v("赞了它")]):1==e.wikiPage.selfZan&&e.wikiPage.zanNum<=1?i("span",[e._v("我赞了它")]):1==e.wikiPage.selfZan&&e.wikiPage.zanNum>1?i("span",[i("span",{staticClass:"is-link",on:{click:e.showZanPageUser}},[e._v("我和"+e._s(e.wikiPage.zanNum-1)+"个其他人")]),e._v("赞了它")]):e._e()]),e._v(" "),i("span",{staticStyle:{"margin-left":"10px"}},[i("i",{staticClass:"el-icon-view",staticStyle:{"font-size":"16px",color:"#666"}}),e._v(" "+e._s(e.wikiPage.viewNum)+"次阅读\n\t\t\t\t")])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.commentList.length>0,expression:"commentList.length > 0"}],staticClass:"comment-box",staticStyle:{"margin-top":"20px"}},[i("div",{staticStyle:{"border-bottom":"1px solid #67C23A","padding-bottom":"10px"}},[e._v("评论列表:")]),e._v(" "),e._l(e.commentList,function(t,o){return i("div",{key:t.id,staticStyle:{"border-bottom":"1px solid #eee",padding:"10px"},attrs:{"data-id":t.id,"data-index":o}},[i("div",[i("div",{staticClass:"head",style:"background-color: "+t.color},[e._v(e._s(t.createUserName.substr(0,1)))])]),e._v(" "),i("div",{staticStyle:{"padding-left":"55px"}},[e._v("\n\t\t\t\t\t\t"+e._s(t.createUserName)+"\n\t\t\t\t\t\t"),i("span",{staticStyle:{color:"#888","font-size":"13px","padding-left":"10px"}},[e._v(e._s(t.createTime))]),e._v(" "),i("span",{staticStyle:{color:"#888","font-size":"13px","margin-left":"10px",cursor:"pointer"},on:{click:function(i){e.recommentUser(t.id,o)}}},[e._v("回复")])]),e._v(" "),i("pre",{staticStyle:{padding:"10px 0 0 55px"}},[e._v(e._s(t.content))]),e._v(" "),e._l(t.commentList,function(t,o){return i("div",{key:t.id,staticStyle:{"border-bottom":"1px solid #eee",padding:"10px","margin-left":"40px"},attrs:{"data-id":t.id,"data-index":o}},[i("div",[i("div",{staticClass:"head",style:"background-color: "+t.color},[e._v(e._s(t.createUserName.substr(0,1)))])]),e._v(" "),i("div",{staticStyle:{"padding-left":"55px"}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.createUserName)+"\n\t\t\t\t\t\t\t"),i("span",{staticStyle:{color:"#888","font-size":"13px","padding-left":"10px"}},[e._v(e._s(t.createTime))])]),e._v(" "),i("pre",{staticStyle:{padding:"10px 0 0 55px"}},[e._v(e._s(t.content))])])})],2)})],2),e._v(" "),i("div",{staticStyle:{margin:"20px 0 50px 0"}},[i("el-input",{attrs:{type:"textarea",rows:5,placeholder:e.recommentInfo.placeholder||"请输入评论内容"},model:{value:e.commentTextInput,callback:function(t){e.commentTextInput=t},expression:"commentTextInput"}}),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"},attrs:{align:"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitPageComment}},[e._v("提交评论")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.recommentInfo.id>0,expression:"recommentInfo.id > 0"}],on:{click:e.cancelCommentUser}},[e._v("取消回复")])],1)],1)]),e._v(" "),i("el-dialog",{attrs:{title:"赞了它的人",visible:e.zanUserDialogVisible,width:"600px"},on:{"update:visible":function(t){e.zanUserDialogVisible=t}}},[i("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.zanUserList,border:"","show-header":!1}},[i("el-table-column",{attrs:{prop:"createUserName",label:"用户"}}),e._v(" "),i("el-table-column",{attrs:{prop:"createTime",label:"时间"}})],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"页面权限",visible:e.pageAuthDialogVisible,width:"900px"},on:{"update:visible":function(t){e.pageAuthDialogVisible=t}}},[i("el-row",[i("el-select",{staticStyle:{width:"750px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入名字、邮箱、账号搜索用户","remote-method":e.getSearchUserList,loading:e.pageAuthUserLoading},model:{value:e.pageAuthNewUser,callback:function(t){e.pageAuthNewUser=t},expression:"pageAuthNewUser"}},e._l(e.searchUserList,function(e){return i("el-option",{key:e.id,attrs:{label:e.userName,value:e.id}})})),e._v(" "),i("el-button",{on:{click:e.addPageAuthUser}},[e._v("添加")])],1),e._v(" "),i("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.pageAuthUserList,border:""}},[i("el-table-column",{attrs:{prop:"userName",label:"用户",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"权限"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.editPage,callback:function(o){e.$set(t.row,"editPage",o)},expression:"scope.row.editPage"}},[e._v("查看")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.commentPage,callback:function(o){e.$set(t.row,"commentPage",o)},expression:"scope.row.commentPage"}},[e._v("评论")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.deletePage,callback:function(o){e.$set(t.row,"deletePage",o)},expression:"scope.row.deletePage"}},[e._v("删除")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileUpload,callback:function(o){e.$set(t.row,"pageFileUpload",o)},expression:"scope.row.pageFileUpload"}},[e._v("文件上传")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileDelete,callback:function(o){e.$set(t.row,"pageFileDelete",o)},expression:"scope.row.pageFileDelete"}},[e._v("文件删除")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageAuthManage,callback:function(o){e.$set(t.row,"pageAuthManage",o)},expression:"scope.row.pageAuthManage"}},[e._v("权限管理")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"danger",plain:""},on:{click:function(o){e.deleteUserPageAuth(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary"},on:{click:e.saveUserPageAuth}},[e._v("保存配置")])],1)],1)],1)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("router-view")},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app"}},[e.global.fullscreen?[o("router-view")]:o("el-container",[o("el-aside",{directives:[{name:"show",rawName:"v-show",value:e.leftCollapse,expression:"leftCollapse"}]},[o("div",{staticStyle:{padding:"10px",height:"100%","box-sizing":"border-box",background:"#fafafa"}},[o("div",{staticStyle:{"margin-bottom":"10px"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"选择空间"},on:{change:e.spaceChangeEvents},model:{value:e.choiceSpace,callback:function(t){e.choiceSpace=t},expression:"choiceSpace"}},[o("el-option-group",{attrs:{label:""}},[o("el-option",{key:"0",attrs:{label:"创建空间",value:"0"}}),e._v(" "),o("el-option",{key:"-1",attrs:{label:"空间管理",value:"-1"}})],1),e._v(" "),o("el-option-group",{attrs:{label:""}},e._l(e.spaceOptions,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1)],1),e._v(" "),o("div",{attrs:{align:"center"}},[o("el-button",{staticStyle:{width:"100%"},attrs:{icon:"el-icon-plus"},on:{click:e.createWiki}},[e._v("创建文档")])],1),e._v(" "),o("el-input",{staticStyle:{margin:"10px 0"},attrs:{placeholder:"搜索文档"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchByKeywords(t):null}},model:{value:e.searchKeywords,callback:function(t){e.searchKeywords=t},expression:"searchKeywords"}},[o("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchByKeywords},slot:"append"})],1),e._v(" "),o("el-tree",{ref:"wikiPageTree",staticStyle:{"background-color":"#fafafa"},attrs:{props:e.defaultProps,data:e.wikiPageList,draggable:"","filter-node-method":e.filterPageNode,"highlight-current":"","expand-on-click-node":!1,"default-expanded-keys":e.wikiPageExpandedKeys,"node-key":"id"},on:{"node-click":e.handleNodeClick,"node-expand":e.handleNodeExpand,"node-drop":e.handlePageDrop}})],1)]),e._v(" "),o("el-container",[o("el-header",[o("i",{staticClass:"el-icon-menu icon-collapse",on:{click:function(t){e.leftCollapse=!e.leftCollapse}}}),e._v(" "),o("el-dropdown",{attrs:{trigger:"click"},on:{command:e.userSettingDropdown}},[o("i",{staticClass:"el-icon-setting",staticStyle:{"margin-right":"15px","font-size":"16px",cursor:"pointer",color:"#fff"}}),e._v(" "),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{attrs:{command:"aboutDoc"}},[e._v("关于")]),e._v(" "),o("el-dropdown-item",{attrs:{command:"",divided:""}},[e._v("我的资料")]),e._v(" "),o("el-dropdown-item",{attrs:{command:"userSignOut"}},[e._v("退出登录")])],1)],1)],1),e._v(" "),o("el-main",{staticStyle:{padding:"0"}},[o("router-view")],1)],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"创建空间",visible:e.newSpaceDialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.newSpaceDialogVisible=t}}},[o("el-form",{ref:"newSpaceForm",attrs:{"label-width":"100px",model:e.newSpaceForm,rules:e.newSpaceFormRules}},[o("el-form-item",{attrs:{label:"空间名:",prop:"name"}},[o("el-input",{model:{value:e.newSpaceForm.name,callback:function(t){e.$set(e.newSpaceForm,"name",t)},expression:"newSpaceForm.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"空间描述:",prop:"spaceExplain"}},[o("el-input",{model:{value:e.newSpaceForm.spaceExplain,callback:function(t){e.$set(e.newSpaceForm,"spaceExplain",t)},expression:"newSpaceForm.spaceExplain"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"空间开放:"}},[o("el-switch",{attrs:{"inactive-text":"需要登录","inactive-value":0,"active-text":"开放访问","active-value":1},model:{value:e.newSpaceForm.openDoc,callback:function(t){e.$set(e.newSpaceForm,"openDoc",t)},expression:"newSpaceForm.openDoc"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"目录加载:"}},[o("el-switch",{attrs:{"inactive-text":"预先加载","inactive-value":0,"active-text":"延迟加载","active-value":1},model:{value:e.newSpaceForm.treeLazyLoad,callback:function(t){e.$set(e.newSpaceForm,"treeLazyLoad",t)},expression:"newSpaceForm.treeLazyLoad"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"空间类型:"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"选择类型"},model:{value:e.newSpaceForm.type,callback:function(t){e.$set(e.newSpaceForm,"type",t)},expression:"newSpaceForm.type"}},[o("el-option",{key:1,attrs:{label:"公共空间",value:1}},[o("span",{staticStyle:{float:"left"}},[e._v("公共空间")]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于公共,登录用户可访问、编辑")])]),e._v(" "),o("el-option",{key:2,attrs:{label:"个人空间",value:2}},[o("span",{staticStyle:{float:"left"}},[e._v("个人空间")]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,所有登录用户可访问")])]),e._v(" "),o("el-option",{key:3,attrs:{label:"隐私空间",value:3}},[o("span",{staticStyle:{float:"left"}},[e._v("隐私空间")]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,仅创建者可访问")])])],1)],1),e._v(" "),o("el-form-item",[e.newSpaceForm.id>0?o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("保存修改")]):o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("立即创建")]),e._v(" "),o("el-button",{on:{click:e.onNewSpaceCancel}},[e._v("取消")])],1)],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"管理空间",visible:e.manageSpaceDialogVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.manageSpaceDialogVisible=t}}},[o("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.spaceList,border:"","max-height":"500"}},[o("el-table-column",{attrs:{prop:"id",label:"ID",width:"60"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名字"}}),e._v(" "),o("el-table-column",{attrs:{prop:"spaceExplain",label:"说明"}}),e._v(" "),o("el-table-column",{attrs:{label:"开放地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.openDoc?o("a",{attrs:{target:"_blank",href:"open-wiki.html?space="+t.row.uuid}},[e._v(e._s(t.row.name))]):o("span",[e._v("暂未开放")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),e._v(" "),o("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),e._v(" "),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){e.editSpaceInfo(t.row)}}},[e._v("编辑")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(o){e.deleteSpaceInfo(t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"关于zyplayer-doc-wiki",visible:e.aboutDialogVisible,width:"600px"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[o("el-form",[o("el-form-item",{attrs:{label:"项目地址:"}},[o("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("zyplayer-doc")])]),e._v(" "),o("el-form-item",{attrs:{label:"开发人员:"}},[o("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])]),e._v(" "),e.upgradeInfo.lastVersion?[o("el-form-item",{attrs:{label:"当前版本:"}},[e._v(e._s(e.upgradeInfo.nowVersion))]),e._v(" "),o("el-form-item",{attrs:{label:"最新版本:"}},[e._v(e._s(e.upgradeInfo.lastVersion))]),e._v(" "),o("el-form-item",{attrs:{label:"升级地址:"}},[o("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v(e._s(e.upgradeInfo.upgradeUrl))])]),e._v(" "),o("el-form-item",{attrs:{label:"升级内容:"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])]:e._e(),e._v(" "),o("el-form-item",{attrs:{label:""}},[e._v("\n 欢迎加群讨论,QQ群号:466363173,欢迎提交需求,欢迎使用和加入开发!\n ")])],2)],1)],2)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("router-view")},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._v("没有权限访问该模块")])},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{ref:"loginParam",staticClass:"demo-ruleForm login-container",attrs:{model:e.loginParam,rules:e.loginRules,"label-position":"left","label-width":"0px"}},[o("h3",{staticClass:"title"},[e._v("系统登录")]),e._v(" "),o("el-form-item",{attrs:{prop:"userNo"}},[o("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},model:{value:e.loginParam.userNo,callback:function(t){e.$set(e.loginParam,"userNo",t)},expression:"loginParam.userNo"}})],1),e._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},model:{value:e.loginParam.password,callback:function(t){e.$set(e.loginParam,"password",t)},expression:"loginParam.password"}})],1),e._v(" "),o("el-form-item",{staticStyle:{width:"100%"}},[o("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:e.logining},nativeOn:{click:function(t){return t.preventDefault(),e.loginSubmit(t)}}},[e._v("登录\n ")])],1)],1)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{padding:"10px"}},[o("el-row",{attrs:{type:"border-card"}},[e.wikiPage.id>0?o("div",{staticStyle:{"margin-bottom":"10px",padding:"10px"}},[e._v("\n\t\t\t编辑:"+e._s(e.parentPath.path)+"\n\t\t")]):o("div",{staticStyle:{"margin-bottom":"10px",padding:"10px"}},[e._v("\n\t\t\t父级:"+e._s(e.parentPath.path||"/")+" \n\t\t\t"),o("el-tooltip",{staticClass:"item",attrs:{content:"在根目录创建文档"}},[o("el-button",{staticStyle:{padding:"0 10px"},attrs:{type:"text"},on:{click:e.changeToRootPath}},[e._v("根目录")])],1)],1),e._v(" "),o("el-input",{attrs:{placeholder:"请输入标题"},model:{value:e.newPageTitle,callback:function(t){e.newPageTitle=t},expression:"newPageTitle"}}),e._v(" "),o("div",{staticStyle:{margin:"10px 0"},attrs:{id:"newPageContentDiv"}}),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.createWikiSave}},[e._v("保存")]),e._v(" "),o("el-button",{on:{click:e.createWikiCancel}},[e._v("取消")])],1)],1)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{padding:"10px"}},[i("div",{staticStyle:{"max-width":"800px",margin:"0 auto"}},[i("el-select",{staticStyle:{float:"right","z-index":"1"},attrs:{placeholder:"请选择查看方式"},on:{change:e.getSpacePageNews},model:{value:e.searchParam.newsType,callback:function(t){e.$set(e.searchParam,"newsType",t)},expression:"searchParam.newsType"}},e._l(e.newsTypes,function(e,t){return i("el-option",{attrs:{label:e,value:t+1}})})),e._v(" "),i("el-tabs",{attrs:{value:"first"}},[i("el-tab-pane",{attrs:{label:e.newsTypes[e.searchParam.newsType-1],name:"first"}},[e.spacePageNews.length<=0?i("div",{staticClass:"empty-news"},[e._v("暂无数据")]):e._l(e.spacePageNews,function(t){return i("div",{staticClass:"line-box"},[i("div",{staticClass:"line-title"},[i("span",{staticClass:"text-link"},[e._v(e._s(t.createUserName))]),e._v(" 发布于 "),i("span",{staticClass:"text-link"},[e._v(e._s(t.spaceName))])]),e._v(" "),i("div",{staticClass:"page-preview-box",on:{click:function(o){e.showPageDetail(t)}}},[i("div",{staticClass:"page-preview-title"},[e._v(e._s(t.pageTitle))]),e._v(" "),i("div",{staticClass:"page-preview-content"},[e._v(e._s(t.previewContent))]),e._v(" "),i("div",[i("span",[i("img",{staticClass:"zan-img",attrs:{src:o(60)}}),e._v(" "+e._s(t.zanNum)+" ")]),e._v(" "),i("span",[i("i",{staticClass:"el-icon-view view-img"}),e._v(" "+e._s(t.viewNum)+" ")]),e._v(" "),i("span",[e._v(e._s(t.updateTime||t.createTime))])])])])})],2)],1),e._v(" "),i("div",{staticClass:"page-info-box"},[i("el-pagination",{attrs:{"page-sizes":[20,50,100],"page-size":20,"current-page":e.searchParam.pageNum,layout:"prev, pager, next, jumper, sizes, total",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){var i=o(196);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("0bb3d27c",i,!0)},function(e,t,o){var i=o(197);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("39709f82",i,!0)},function(e,t,o){var i=o(198);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("78cb66d5",i,!0)},function(e,t,o){var i=o(199);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("01686f77",i,!0)},function(e,t,o){var i=o(200);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("f4277476",i,!0)},function(e,t,o){var i=o(201);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("0eb4bfb2",i,!0)},function(e,t){e.exports=function(e,t){for(var o=[],i={},r=0;r/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}function c(e){return"function"==typeof e}function p(e){this.editor=e,this.$elem=r('
\n \n
'),this.type="click",this._active=!1}function d(e,t){var o=this,i=e.editor;this.menu=e,this.opt=t;var n=r('
'),l=t.$title,a=void 0;l&&(a=l.html(),a=q(i,a),l.html(a),l.addClass("w-e-dp-title"),n.append(l));var s=t.list||[],c=t.type||"list",p=t.onClick||J,d=r('
    ');n.append(d),s.forEach(function(e){var t=e.$elem,n=t.html();n=q(i,n),t.html(n);var l=e.value,a=r('
  • ');t&&(a.append(t),d.append(a),a.on("click",function(e){p(l),o.hideTimeoutId=setTimeout(function(){o.hide()},0)}))}),n.on("mouseleave",function(e){o.hideTimeoutId=setTimeout(function(){o.hide()},0)}),this.$container=n,this._rendered=!1,this._show=!1}function u(e){var t=this;this.editor=e,this.$elem=r('
    '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:100,$title:r("

    设置标题

    "),type:"list",list:[{$elem:r("

    H1

    "),value:"

    "},{$elem:r("

    H2

    "),value:"

    "},{$elem:r("

    H3

    "),value:"

    "},{$elem:r("

    H4

    "),value:"

    "},{$elem:r("

    H5
    "),value:"
    "},{$elem:r("

    正文

    "),value:"

    "}],onClick:function(e){t._command(e)}})}function f(e){var t=this;this.editor=e,this.$elem=r('

    '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:160,$title:r("

    字号

    "),type:"list",list:[{$elem:r('x-small'),value:"1"},{$elem:r('small'),value:"2"},{$elem:r("normal"),value:"3"},{$elem:r('large'),value:"4"},{$elem:r('x-large'),value:"5"},{$elem:r('xx-large'),value:"6"}],onClick:function(e){t._command(e)}})}function h(e){var t=this;this.editor=e,this.$elem=r('
    '),this.type="droplist",this._active=!1;var o=e.config,i=o.fontNames||[];this.droplist=new d(this,{width:100,$title:r("

    字体

    "),type:"list",list:i.map(function(e){return{$elem:r(''+e+""),value:e}}),onClick:function(e){t._command(e)}})}function b(e,t){this.menu=e,this.opt=t}function g(e){this.editor=e,this.$elem=r('
    '),this.type="panel",this._active=!1}function m(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="click",this._active=!1}function x(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="click",this._active=!1}function _(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="click",this._active=!1}function w(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="click",this._active=!1}function v(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="click",this._active=!1}function A(e){var t=this;this.editor=e,this.$elem=r('
    '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:120,$title:r("

    设置列表

    "),type:"list",list:[{$elem:r(' 有序列表'),value:"insertOrderedList"},{$elem:r(' 无序列表'),value:"insertUnorderedList"}],onClick:function(e){t._command(e)}})}function y(e){var t=this;this.editor=e,this.$elem=r('
    '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:100,$title:r("

    对齐方式

    "),type:"list",list:[{$elem:r(' 靠左'),value:"justifyLeft"},{$elem:r(' 居中'),value:"justifyCenter"},{$elem:r(' 靠右'),value:"justifyRight"}],onClick:function(e){t._command(e)}})}function k(e){var t=this;this.editor=e,this.$elem=r('
    '),this.type="droplist";var o=e.config,i=o.colors||[];this._active=!1,this.droplist=new d(this,{width:120,$title:r("

    文字颜色

    "),type:"inline-block",list:i.map(function(e){return{$elem:r(''),value:e}}),onClick:function(e){t._command(e)}})}function E(e){var t=this;this.editor=e,this.$elem=r('
    '),this.type="droplist";var o=e.config,i=o.colors||[];this._active=!1,this.droplist=new d(this,{width:120,$title:r("

    背景色

    "),type:"inline-block",list:i.map(function(e){return{$elem:r(''),value:e}}),onClick:function(e){t._command(e)}})}function z(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="click",this._active=!1}function C(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="panel",this._active=!1}function B(e){this.editor=e,this.$elem=r('
    \n \n
    '),this.type="panel",this._active=!1}function S(e){this.editor=e,this.$elem=r('
    '),this.type="panel",this._active=!1}function I(e){this.editor=e,this.$elem=r('
    '),this.type="panel",this._active=!1}function P(e){this.editor=e;var t=a("w-e-img");this.$elem=r('
    '),e.imgMenuId=t,this.type="panel",this._active=!1}function R(e){this.editor=e,this.menus={}}function T(e){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,o=void 0;return o=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),s(o)}function U(e,t,o){var i=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,r=void 0,n=void 0;if(null==i?r=window.clipboardData&&window.clipboardData.getData("text"):(r=i.getData("text/plain"),n=i.getData("text/html")),!n&&r&&(n="

    "+s(r)+"

    "),n){var l=n.split("");return 2===l.length&&(n=l[0]),n=n.replace(/<(meta|script|link).+?>/gim,""),n=n.replace(//gm,""),n=n.replace(/\s?data-.+?=('|").+?('|")/gim,""),o&&(n=n.replace(//gim,"")),n=t?n.replace(/\s?(class|style)=('|").*?('|")/gim,""):n.replace(/\s?class=('|").*?('|")/gim,"")}}function D(e){var t=[];if(T(e))return t;var o=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData||{},i=o.items;return i?(n(i,function(e,o){/image/i.test(o.type)&&t.push(o.getAsFile())}),t):t}function L(e){var t=[];return(e.childNodes()||[]).forEach(function(e){var o=void 0,i=e.nodeType;if(3===i&&(o=e.textContent,o=s(o)),1===i){o={},o.tag=e.nodeName.toLowerCase();for(var n=[],l=e.attributes||{},a=l.length||0,c=0;c')}function Y(e){this.editor=e}function j(e,t){if(null==e)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");this.id="wangEditor-"+W++,this.toolbarSelector=e,this.textSelector=t,this.customConfig={}}var O=[];i.prototype={constructor:i,forEach:function(e){var t=void 0;for(t=0;t=t&&(e%=t),r(this[e])},first:function(){return this.get(0)},last:function(){var e=this.length;return this.get(e-1)},on:function(e,t,o){o||(o=t,t=null);var i=[];return i=e.split(/\s+/),this.forEach(function(e){i.forEach(function(i){if(i){if(O.push({elem:e,type:i,fn:o}),!t)return void e.addEventListener(i,o);e.addEventListener(i,function(e){var i=e.target;i.matches(t)&&o.call(i,e)})}})})},off:function(e,t){return this.forEach(function(o){o.removeEventListener(e,t)})},attr:function(e,t){return null==t?this[0].getAttribute(e):this.forEach(function(o){o.setAttribute(e,t)})},addClass:function(e){return e?this.forEach(function(t){var o=void 0;t.className?(o=t.className.split(/\s/),o=o.filter(function(e){return!!e.trim()}),o.indexOf(e)<0&&o.push(e),t.className=o.join(" ")):t.className=e}):this},removeClass:function(e){return e?this.forEach(function(t){var o=void 0;t.className&&(o=t.className.split(/\s/),o=o.filter(function(t){return!(!(t=t.trim())||t===e)}),t.className=o.join(" "))}):this},css:function(e,t){var o=e+":"+t+";";return this.forEach(function(t){var i=(t.getAttribute("style")||"").trim(),r=void 0,n=[];i?(r=i.split(";"),r.forEach(function(e){var t=e.split(":").map(function(e){return e.trim()});2===t.length&&n.push(t[0]+":"+t[1])}),n=n.map(function(t){return 0===t.indexOf(e)?o:t}),n.indexOf(o)<0&&n.push(o),t.setAttribute("style",n.join("; "))):t.setAttribute("style",o)})},show:function(){return this.css("display","block")},hide:function(){return this.css("display","none")},children:function(){var e=this[0];return e?r(e.children):null},childNodes:function(){var e=this[0];return e?r(e.childNodes):null},append:function(e){return this.forEach(function(t){e.forEach(function(e){t.appendChild(e)})})},remove:function(){return this.forEach(function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}})},isContain:function(e){var t=this[0],o=e[0];return t.contains(o)},getSizeData:function(){return this[0].getBoundingClientRect()},getNodeName:function(){return this[0].nodeName},find:function(e){return r(this[0].querySelectorAll(e))},text:function(e){return e?this.forEach(function(t){t.innerHTML=e}):this[0].innerHTML.replace(/<.*?>/g,function(){return""})},html:function(e){var t=this[0];return null==e?t.innerHTML:(t.innerHTML=e,this)},val:function(){return this[0].value.trim()},focus:function(){return this.forEach(function(e){e.focus()})},parent:function(){return r(this[0].parentElement)},parentUntil:function(e,t){var o=document.querySelectorAll(e),i=o.length;if(!i)return null;var n=t||this[0];if("BODY"===n.nodeName)return null;var l=n.parentElement,a=void 0;for(a=0;a=0)){var o=t.editor,i=r("body"),n=o.$textContainerElem,l=this.opt,a=r('
    '),s=l.width||300;a.css("width",s+"px").css("margin-left",(0-s)/2+"px");var c=r('');a.append(c),c.on("click",function(){e.hide()});var p=r('
      '),d=r('
      ');a.append(p).append(d);var u=l.height;u&&d.css("height",u+"px").css("overflow-y","auto");var f=l.tabs||[],h=[],b=[];f.forEach(function(e,t){if(e){var i=e.title||"",n=e.tpl||"";i=q(o,i),n=q(o,n);var l=r('
    • '+i+"
    • ");p.append(l);var a=r(n);d.append(a),l._index=t,h.push(l),b.push(a),0===t?(l._active=!0,l.addClass("w-e-active")):a.hide(),l.on("click",function(e){l._active||(h.forEach(function(e){e._active=!1,e.removeClass("w-e-active")}),b.forEach(function(e){e.hide()}),l._active=!0,l.addClass("w-e-active"),a.show())})}}),a.on("click",function(e){e.stopPropagation()}),i.on("click",function(t){e.hide()}),n.append(a),f.forEach(function(t,o){if(t){(t.events||[]).forEach(function(t){var i=t.selector,r=t.type,n=t.fn||V;b[o].find(i).on(r,function(t){t.stopPropagation(),n(t)&&e.hide()})})}});var g=a.find("input[type=text],textarea");g.length&&g.get(0).focus(),this.$container=a,this._hideOtherPanels(),X.push(t)}},hide:function(){var e=this.menu,t=this.$container;t&&t.remove(),X=X.filter(function(t){return t!==e})},_hideOtherPanels:function(){X.length&&X.forEach(function(e){var t=e.panel||{};t.hide&&t.hide()})}},g.prototype={constructor:g,onClick:function(e){var t=this.editor,o=void 0;if(this._active){if(!(o=t.selection.getSelectionContainerElem()))return;t.selection.createRangeByElem(o),t.selection.restoreSelection(),this._createPanel(o.text(),o.attr("href"))}else t.selection.isSelectionEmpty()?this._createPanel("",""):this._createPanel(t.selection.getSelectionText(),"")},_createPanel:function(e,t){var o=this,i=a("input-link"),n=a("input-text"),l=a("btn-ok"),s=a("btn-del"),c=this._active?"inline-block":"none",p=new b(this,{width:300,tabs:[{title:"链接",tpl:'
      \n \n \n
      \n \n \n
      \n
      ',events:[{selector:"#"+l,type:"click",fn:function(){var e=r("#"+i),t=r("#"+n),l=e.val(),a=t.val();return o._insertLink(a,l),!0}},{selector:"#"+s,type:"click",fn:function(){return o._delLink(),!0}}]}]});p.show(),this.panel=p},_delLink:function(){if(this._active){var e=this.editor;if(e.selection.getSelectionContainerElem()){var t=e.selection.getSelectionText();e.cmd.do("insertHTML",""+t+"")}}},_insertLink:function(e,t){var o=this.editor,i=o.config,r=i.linkCheck,n=!0;r&&"function"==typeof r&&(n=r(e,t)),!0===n?o.cmd.do("insertHTML",''+e+""):alert(n)},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=t.selection.getSelectionContainerElem();i&&("A"===i.getNodeName()?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active")))}},m.prototype={constructor:m,onClick:function(e){var t=this.editor,o=t.selection.isSelectionEmpty();o&&t.selection.createEmptyRange(),t.cmd.do("italic"),o&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("italic")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},x.prototype={constructor:x,onClick:function(e){this.editor.cmd.do("redo")}},_.prototype={constructor:_,onClick:function(e){var t=this.editor,o=t.selection.isSelectionEmpty();o&&t.selection.createEmptyRange(),t.cmd.do("strikeThrough"),o&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("strikeThrough")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},w.prototype={constructor:w,onClick:function(e){var t=this.editor,o=t.selection.isSelectionEmpty();o&&t.selection.createEmptyRange(),t.cmd.do("underline"),o&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("underline")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},v.prototype={constructor:v,onClick:function(e){this.editor.cmd.do("undo")}},A.prototype={constructor:A,_command:function(e){var t=this.editor,o=t.$textElem;if(t.selection.restoreSelection(),!t.cmd.queryCommandState(e)){t.cmd.do(e);var i=t.selection.getSelectionContainerElem();if("LI"===i.getNodeName()&&(i=i.parent()),!1!==/^ol|ul$/i.test(i.getNodeName())&&!i.equal(o)){var r=i.parent();r.equal(o)||(i.insertAfter(r),r.remove())}}},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("insertUnOrderedList")||t.cmd.queryCommandState("insertOrderedList")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},y.prototype={constructor:y,_command:function(e){this.editor.cmd.do(e)}},k.prototype={constructor:k,_command:function(e){this.editor.cmd.do("foreColor",e)}},E.prototype={constructor:E,_command:function(e){this.editor.cmd.do("backColor",e)}},z.prototype={constructor:z,onClick:function(e){var t=this.editor,o=t.selection.getSelectionContainerElem(),i=o.getNodeName();if(!G.isIE())return void("BLOCKQUOTE"===i?t.cmd.do("formatBlock","

      "):t.cmd.do("formatBlock","

      "));var n=void 0,l=void 0;if("P"===i)return n=o.text(),l=r("
      "+n+"
      "),l.insertAfter(o),void o.remove();"BLOCKQUOTE"===i&&(n=o.text(),l=r("

      "+n+"

      "),l.insertAfter(o),o.remove())},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=/^BLOCKQUOTE$/i,r=t.cmd.queryCommandValue("formatBlock");i.test(r)?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},C.prototype={constructor:C,onClick:function(e){var t=this.editor,o=t.selection.getSelectionStartElem(),i=t.selection.getSelectionEndElem(),n=t.selection.isSelectionEmpty(),l=t.selection.getSelectionText(),a=void 0;return o.equal(i)?n?void(this._active?this._createPanel(o.html()):this._createPanel()):(a=r(""+l+""),t.cmd.do("insertElem",a),t.selection.createRangeByElem(a,!1),void t.selection.restoreSelection()):void t.selection.restoreSelection()},_createPanel:function(e){var t=this;e=e||"";var o=e?"edit":"new",i=a("texxt"),n=a("btn"),l=new b(this,{width:500,tabs:[{title:"插入代码",tpl:'
      \n \n
      \n \n
      \n
      ',events:[{selector:"#"+n,type:"click",fn:function(){var e=r("#"+i),n=e.val()||e.html();return n=s(n),"new"===o?t._insertCode(n):t._updateCode(n),!0}}]}]});l.show(),this.panel=l},_insertCode:function(e){this.editor.cmd.do("insertHTML","
      "+e+"


      ")},_updateCode:function(e){var t=this.editor,o=t.selection.getSelectionContainerElem();o&&(o.html(e),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var r=i.parent();"CODE"===i.getNodeName()&&"PRE"===r.getNodeName()?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}}},B.prototype={constructor:B,onClick:function(){this._createPanel()},_createPanel:function(){var e=this,t=this.editor,o=t.config,i=o.emotions||[],n=[];i.forEach(function(t){var o=t.type,i=t.content||[],l="";"emoji"===o&&i.forEach(function(e){e&&(l+=''+e+"")}),"image"===o&&i.forEach(function(e){var t=e.src,o=e.alt;t&&(l+=''+o+'')}),n.push({title:t.title,tpl:'
      '+l+"
      ",events:[{selector:"span.w-e-item",type:"click",fn:function(t){var o=t.target,i=r(o),n=i.getNodeName(),l=void 0;return l="IMG"===n?i.parent().html():""+i.html()+"",e._insert(l),!0}}]})});var l=new b(this,{width:300,height:200,tabs:n});l.show(),this.panel=l},_insert:function(e){this.editor.cmd.do("insertHTML",e)}},S.prototype={constructor:S,onClick:function(){this._active?this._createEditPanel():this._createInsertPanel()},_createInsertPanel:function(){var e=this,t=a("btn"),o=a("row"),i=a("col"),n=new b(this,{width:250,tabs:[{title:"插入表格",tpl:'
      \n

      \n 创建\n \n 行\n \n 列的表格\n

      \n
      \n \n
      \n
      ',events:[{selector:"#"+t,type:"click",fn:function(){var t=parseInt(r("#"+o).val()),n=parseInt(r("#"+i).val());return t&&n&&t>0&&n>0&&e._insert(t,n),!0}}]}]});n.show(),this.panel=n},_insert:function(e,t){var o=void 0,i=void 0,r='';for(o=0;o",0===o)for(i=0;i ";else for(i=0;i ";r+=""}r+="


      ";var n=this.editor;n.cmd.do("insertHTML",r),n.cmd.do("enableObjectResizing",!1),n.cmd.do("enableInlineTableEditing",!1)},_createEditPanel:function(){var e=this,t=a("add-row"),o=a("add-col"),i=a("del-row"),r=a("del-col"),n=a("del-table");new b(this,{width:320,tabs:[{title:"编辑表格",tpl:'
      \n
      \n \n \n \n \n
      \n
      \n \n \n
      ',events:[{selector:"#"+t,type:"click",fn:function(){return e._addRow(),!0}},{selector:"#"+o,type:"click",fn:function(){return e._addCol(),!0}},{selector:"#"+i,type:"click",fn:function(){return e._delRow(),!0}},{selector:"#"+r,type:"click",fn:function(){return e._delCol(),!0}},{selector:"#"+n,type:"click",fn:function(){return e._delTable(),!0}}]}]}).show()},_getLocationData:function(){var e={},t=this.editor,o=t.selection.getSelectionContainerElem();if(o){var i=o.getNodeName();if("TD"===i||"TH"===i){var r=o.parent(),n=r.children(),l=n.length;n.forEach(function(t,i){if(t===o[0])return e.td={index:i,elem:t,length:l},!1});var a=r.parent(),s=a.children(),c=s.length;return s.forEach(function(t,o){if(t===r[0])return e.tr={index:o,elem:t,length:c},!1}),e}}},_addRow:function(){var e=this._getLocationData();if(e){var t=e.tr,o=r(t.elem),i=e.td,n=i.length,l=document.createElement("tr"),a="",s=void 0;for(s=0;s ";l.innerHTML=a,r(l).insertAfter(o)}},_addCol:function(){var e=this._getLocationData();if(e){var t=e.tr,o=e.td,i=o.index;r(t.elem).parent().children().forEach(function(e){var t=r(e),o=t.children(),n=o.get(i),l=n.getNodeName().toLowerCase();r(document.createElement(l)).insertAfter(n)})}},_delRow:function(){var e=this._getLocationData();if(e){r(e.tr.elem).remove()}},_delCol:function(){var e=this._getLocationData();if(e){var t=e.tr,o=e.td,i=o.index;r(t.elem).parent().children().forEach(function(e){r(e).children().get(i).remove()})}},_delTable:function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(t){var o=t.parentUntil("table");o&&o.remove()}},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var r=i.getNodeName();"TD"===r||"TH"===r?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}}},I.prototype={constructor:I,onClick:function(){this._createPanel()},_createPanel:function(){var e=this,t=a("text-val"),o=a("btn"),i=new b(this,{width:350,tabs:[{title:"插入视频",tpl:'
      \n \n
      \n \n
      \n
      ',events:[{selector:"#"+o,type:"click",fn:function(){var o=r("#"+t),i=o.val().trim();return i&&e._insert(i),!0}}]}]});i.show(),this.panel=i},_insert:function(e){this.editor.cmd.do("insertHTML",e+"


      ")}},P.prototype={constructor:P,onClick:function(){this.editor.config.qiniu||(this._active?this._createEditPanel():this._createInsertPanel())},_createEditPanel:function(){var e=this.editor,t=a("width-30"),o=a("width-50"),i=a("width-100"),r=a("del-btn"),n=[{title:"编辑图片",tpl:'
      \n
      \n 最大宽度:\n \n \n \n
      \n
      \n \n \n
      ',events:[{selector:"#"+t,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","30%"),!0}},{selector:"#"+o,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","50%"),!0}},{selector:"#"+i,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","100%"),!0}},{selector:"#"+r,type:"click",fn:function(){var t=e._selectedImg;return t&&t.remove(),!0}}]}],l=new b(this,{width:300,tabs:n});l.show(),this.panel=l},_createInsertPanel:function(){var e=this.editor,t=e.uploadImg,o=e.config,i=a("up-trigger"),n=a("up-file"),l=a("link-url"),s=a("link-btn"),c=[{title:"上传图片",tpl:'
      \n
      \n \n
      \n
      \n \n
      \n
      ',events:[{selector:"#"+i,type:"click",fn:function(){var e=r("#"+n),t=e[0];if(!t)return!0;t.click()}},{selector:"#"+n,type:"change",fn:function(){var e=r("#"+n),o=e[0];if(!o)return!0;var i=o.files;return i.length&&t.uploadImg(i),!0}}]},{title:"网络图片",tpl:'
      \n \n
      \n \n
      \n
      ',events:[{selector:"#"+s,type:"click",fn:function(){var e=r("#"+l),o=e.val().trim();return o&&t.insertLinkImg(o),!0}}]}],p=[];(o.uploadImgShowBase64||o.uploadImgServer||o.customUploadImg)&&window.FileReader&&p.push(c[0]),o.showLinkImg&&p.push(c[1]);var d=new b(this,{width:300,tabs:p});d.show(),this.panel=d},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t._selectedImg?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}};var K={};K.bold=p,K.head=u,K.fontSize=f,K.fontName=h,K.link=g,K.italic=m,K.redo=x,K.strikeThrough=_,K.underline=w,K.undo=v,K.list=A,K.justify=y,K.foreColor=k,K.backColor=E,K.quote=z,K.code=C,K.emoticon=B,K.table=S,K.video=I,K.image=P,R.prototype={constructor:R,init:function(){var e=this,t=this.editor;((t.config||{}).menus||[]).forEach(function(o){var i=K[o];i&&"function"==typeof i&&(e.menus[o]=new i(t))}),this._addToToolbar(),this._bindEvent()},_addToToolbar:function(){var e=this.editor,t=e.$toolbarElem,o=this.menus,i=e.config,r=i.zIndex+1;n(o,function(e,o){var i=o.$elem;i&&(i.css("z-index",r),t.append(i))})},_bindEvent:function(){var e=this.menus,t=this.editor;n(e,function(e,o){var i=o.type;if(i){var r=o.$elem,n=o.droplist;o.panel;"click"===i&&o.onClick&&r.on("click",function(e){null!=t.selection.getRange()&&o.onClick(e)}),"droplist"===i&&n&&r.on("mouseenter",function(e){null!=t.selection.getRange()&&(n.showTimeoutId=setTimeout(function(){n.show()},200))}).on("mouseleave",function(e){n.hideTimeoutId=setTimeout(function(){n.hide()},0)}),"panel"===i&&o.onClick&&r.on("click",function(e){e.stopPropagation(),null!=t.selection.getRange()&&o.onClick(e)})}})},changeActive:function(){n(this.menus,function(e,t){t.tryChangeActive&&setTimeout(function(){t.tryChangeActive()},100)})}},N.prototype={constructor:N,init:function(){this._bindEvent()},clear:function(){this.html("


      ")},html:function(e){var t=this.editor,o=t.$textElem,i=void 0;if(null==e)return i=o.html(),i=i.replace(/\u200b/gm,""),i;o.html(e),t.initSelection()},getJSON:function(){return L(this.editor.$textElem)},text:function(e){var t=this.editor,o=t.$textElem,i=void 0;if(null==e)return i=o.text(),i=i.replace(/\u200b/gm,""),i;o.text("

      "+e+"

      "),t.initSelection()},append:function(e){var t=this.editor;t.$textElem.append(r(e)),t.initSelection()},_bindEvent:function(){this._saveRangeRealTime(),this._enterKeyHandle(),this._clearHandle(),this._pasteHandle(),this._tabHandle(),this._imgHandle(),this._dragHandle()},_saveRangeRealTime:function(){function e(e){t.selection.saveRange(),t.menus.changeActive()}var t=this.editor,o=t.$textElem;o.on("keyup",e),o.on("mousedown",function(t){o.on("mouseleave",e)}),o.on("mouseup",function(t){e(),o.off("mouseleave",e)})},_enterKeyHandle:function(){function e(e){var t=r("


      ");t.insertBefore(e),i.selection.createRangeByElem(t,!0),i.selection.restoreSelection(),e.remove()}function t(t){var o=i.selection.getSelectionContainerElem(),r=o.parent();if("
      "===r.html())return void e(o);if(r.equal(n)){"P"!==o.getNodeName()&&(o.text()||e(o))}}function o(e){var t=i.selection.getSelectionContainerElem();if(t){var o=t.parent(),n=t.getNodeName(),l=o.getNodeName();if("CODE"===n&&"PRE"===l&&i.cmd.queryCommandSupported("insertHTML")){if(!0===i._willBreakCode){var a=r("


      ");return a.insertAfter(o),i.selection.createRangeByElem(a,!0),i.selection.restoreSelection(),i._willBreakCode=!1,void e.preventDefault()}var s=i.selection.getRange().startOffset;i.cmd.do("insertHTML","\n"),i.selection.saveRange(),i.selection.getRange().startOffset===s&&i.cmd.do("insertHTML","\n");var c=t.html().length;i.selection.getRange().startOffset+1===c&&(i._willBreakCode=!0),e.preventDefault()}}}var i=this.editor,n=i.$textElem;n.on("keyup",function(e){13===e.keyCode&&t(e)}),n.on("keydown",function(e){if(13!==e.keyCode)return void(i._willBreakCode=!1);o(e)})},_clearHandle:function(){var e=this.editor,t=e.$textElem;t.on("keydown",function(e){if(8===e.keyCode){return"


      "===t.html().toLowerCase().trim()?void e.preventDefault():void 0}}),t.on("keyup",function(o){if(8===o.keyCode){var i=void 0,n=t.html().toLowerCase().trim();n&&"
      "!==n||(i=r("


      "),t.html(""),t.append(i),e.selection.createRangeByElem(i,!1,!0),e.selection.restoreSelection())}})},_pasteHandle:function(){function e(){var e=Date.now(),t=!1;return e-s>=100&&(t=!0),s=e,t}function t(){s=0}var o=this.editor,i=o.config,r=i.pasteFilterStyle,n=i.pasteTextHandle,l=i.pasteIgnoreImg,a=o.$textElem,s=0;a.on("paste",function(i){if(!G.isIE()&&(i.preventDefault(),e())){var a=U(i,r,l),s=T(i);s=s.replace(/\n/gm,"
      ");var p=o.selection.getSelectionContainerElem();if(p){var d=p.getNodeName();if("CODE"===d||"PRE"===d)return n&&c(n)&&(s=""+(n(s)||"")),void o.cmd.do("insertHTML","

      "+s+"

      ");if(!a)return void t();try{n&&c(n)&&(a=""+(n(a)||"")),o.cmd.do("insertHTML",a)}catch(e){n&&c(n)&&(s=""+(n(s)||"")),o.cmd.do("insertHTML","

      "+s+"

      ")}}}}),a.on("paste",function(t){if(!G.isIE()&&(t.preventDefault(),e())){var i=D(t);if(i&&i.length){var r=o.selection.getSelectionContainerElem();if(r){var n=r.getNodeName();if("CODE"!==n&&"PRE"!==n){o.uploadImg.uploadImg(i)}}}}})},_tabHandle:function(){var e=this.editor;e.$textElem.on("keydown",function(t){if(9===t.keyCode&&e.cmd.queryCommandSupported("insertHTML")){var o=e.selection.getSelectionContainerElem();if(o){var i=o.parent(),r=o.getNodeName(),n=i.getNodeName();"CODE"===r&&"PRE"===n?e.cmd.do("insertHTML"," "):e.cmd.do("insertHTML","    "),t.preventDefault()}}})},_imgHandle:function(){var e=this.editor,t=e.$textElem;t.on("click","img",function(t){var o=this,i=r(o);"1"!==i.attr("data-w-e")&&(e._selectedImg=i,e.selection.createRangeByElem(i),e.selection.restoreSelection())}),t.on("click keyup",function(t){t.target.matches("img")||(e._selectedImg=null)})},_dragHandle:function(){var e=this.editor;r(document).on("dragleave drop dragenter dragover",function(e){e.preventDefault()}),e.$textElem.on("drop",function(t){t.preventDefault();var o=t.dataTransfer&&t.dataTransfer.files;o&&o.length&&e.uploadImg.uploadImg(o)})}},F.prototype={constructor:F,do:function(e,t){var o=this.editor;if(o._useStyleWithCSS||(document.execCommand("styleWithCSS",null,!0),o._useStyleWithCSS=!0),o.selection.getRange()){o.selection.restoreSelection();var i="_"+e;this[i]?this[i](t):this._execCommand(e,t),o.menus.changeActive(),o.selection.saveRange(),o.selection.restoreSelection(),o.change&&o.change()}},_insertHTML:function(e){var t=this.editor,o=t.selection.getRange();this.queryCommandSupported("insertHTML")?this._execCommand("insertHTML",e):o.insertNode?(o.deleteContents(),o.insertNode(r(e)[0])):o.pasteHTML&&o.pasteHTML(e)},_insertElem:function(e){var t=this.editor,o=t.selection.getRange();o.insertNode&&(o.deleteContents(),o.insertNode(e[0]))},_execCommand:function(e,t){document.execCommand(e,!1,t)},queryCommandValue:function(e){return document.queryCommandValue(e)},queryCommandState:function(e){return document.queryCommandState(e)},queryCommandSupported:function(e){return document.queryCommandSupported(e)}},M.prototype={constructor:M,getRange:function(){return this._currentRange},saveRange:function(e){if(e)return void(this._currentRange=e);var t=window.getSelection();if(0!==t.rangeCount){var o=t.getRangeAt(0),i=this.getSelectionContainerElem(o);if(i&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){this.editor.$textElem.isContain(i)&&(this._currentRange=o)}}},collapseRange:function(e){null==e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},getSelectionText:function(){return this._currentRange?this._currentRange.toString():""},getSelectionContainerElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.commonAncestorContainer,r(1===t.nodeType?t:t.parentNode)},getSelectionStartElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.startContainer,r(1===t.nodeType?t:t.parentNode)},getSelectionEndElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.endContainer,r(1===t.nodeType?t:t.parentNode)},isSelectionEmpty:function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},restoreSelection:function(){var e=window.getSelection();e.removeAllRanges(),e.addRange(this._currentRange)},createEmptyRange:function(){var e=this.editor,t=this.getRange(),o=void 0;if(t&&this.isSelectionEmpty())try{G.isWebkit()?(e.cmd.do("insertHTML","​"),t.setEnd(t.endContainer,t.endOffset+1),this.saveRange(t)):(o=r(""),e.cmd.do("insertElem",o),this.createRangeByElem(o,!0))}catch(e){}},createRangeByElem:function(e,t,o){if(e.length){var i=e[0],r=document.createRange();o?r.selectNodeContents(i):r.selectNode(i),"boolean"==typeof t&&r.collapse(t),this.saveRange(r)}}},Q.prototype={constructor:Q,show:function(e){var t=this;if(!this._isShow){this._isShow=!0;var o=this.$bar;if(this._isRender)this._isRender=!0;else{this.$textContainer.append(o)}Date.now()-this._time>100&&e<=1&&(o.css("width",100*e+"%"),this._time=Date.now());var i=this._timeoutId;i&&clearTimeout(i),i=setTimeout(function(){t._hide()},500)}},_hide:function(){this.$bar.remove(),this._time=0,this._isShow=!1,this._isRender=!1}};var Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Y.prototype={constructor:Y,_alert:function(e,t){var o=this.editor,i=o.config.debug,r=o.config.customAlert;if(i)throw new Error("wangEditor: "+(t||e));r&&"function"==typeof r?r(e):alert(e)},insertLinkImg:function(e){var t=this;if(e){var o=this.editor,i=o.config,r=i.linkImgCheck,n=void 0;if(r&&"function"==typeof r&&"string"==typeof(n=r(e)))return void alert(n);o.cmd.do("insertHTML",'');var l=document.createElement("img");l.onload=function(){var t=i.linkImgCallback;t&&"function"==typeof t&&t(e),l=null},l.onerror=function(){l=null,t._alert("插入图片错误",'wangEditor: 插入图片出错,图片链接是 "'+e+'",下载该链接失败')},l.onabort=function(){l=null},l.src=e}},uploadImg:function(e){var t=this;if(e&&e.length){var o=this.editor,i=o.config,r=i.uploadImgServer,a=i.uploadImgShowBase64,s=i.uploadImgMaxSize,c=s/1024/1024,p=i.uploadImgMaxLength||1e4,d=i.uploadFileName||"",u=i.uploadImgParams||{},f=i.uploadImgParamsWithUrl,h=i.uploadImgHeaders||{},b=i.uploadImgHooks||{},g=i.uploadImgTimeout||3e3,m=i.withCredentials;null==m&&(m=!1);var x=i.customUploadImg;if(x||r||a){var _=[],w=[];if(l(e,function(e){var t=e.name,o=e.size;if(t&&o)return!1===/\.(jpg|jpeg|png|bmp|gif|webp)$/i.test(t)?void w.push("【"+t+"】不是图片"):sp)return void this._alert("一次最多上传"+p+"张图片");if(x&&"function"==typeof x)return void x(_,this.insertLinkImg.bind(this));var v=new FormData;if(l(_,function(e){var t=d||e.name;v.append(t,e)}),r&&"string"==typeof r){var A=r.split("#");r=A[0];var y=A[1]||"";n(u,function(e,t){f&&(r.indexOf("?")>0?r+="&":r+="?",r=r+e+"="+t),v.append(e,t)}),y&&(r+="#"+y);var k=new XMLHttpRequest;if(k.open("POST",r),k.timeout=g,k.ontimeout=function(){b.timeout&&"function"==typeof b.timeout&&b.timeout(k,o),t._alert("上传图片超时")},k.upload&&(k.upload.onprogress=function(e){var t=void 0,i=new Q(o);e.lengthComputable&&(t=e.loaded/e.total,i.show(t))}),k.onreadystatechange=function(){var e=void 0;if(4===k.readyState){if(k.status<200||k.status>=300)return b.error&&"function"==typeof b.error&&b.error(k,o),void t._alert("上传图片发生错误","上传图片发生错误,服务器返回状态是 "+k.status);if(e=k.responseText,"object"!==(void 0===e?"undefined":Z(e)))try{e=JSON.parse(e)}catch(i){return b.fail&&"function"==typeof b.fail&&b.fail(k,o,e),void t._alert("上传图片失败","上传图片返回结果错误,返回结果是: "+e)}if(b.customInsert||"0"==e.errno){if(b.customInsert&&"function"==typeof b.customInsert)b.customInsert(t.insertLinkImg.bind(t),e,o);else{(e.data||[]).forEach(function(e){t.insertLinkImg(e)})}b.success&&"function"==typeof b.success&&b.success(k,o,e)}else b.fail&&"function"==typeof b.fail&&b.fail(k,o,e),t._alert("上传图片失败","上传图片返回结果错误,返回结果 errno="+e.errno)}},b.before&&"function"==typeof b.before){var E=b.before(k,o,_);if(E&&"object"===(void 0===E?"undefined":Z(E))&&E.prevent)return void this._alert(E.msg)}return n(h,function(e,t){k.setRequestHeader(e,t)}),k.withCredentials=m,void k.send(v)}a&&l(e,function(e){var o=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){o.insertLinkImg(this.result)}})}}}};var W=1;j.prototype={constructor:j,_initConfig:function(){var e={};this.config=Object.assign(e,H,this.customConfig);var t=this.config.lang||{},o=[];n(t,function(e,t){o.push({reg:new RegExp(e,"img"),val:t})}),this.config.langArgs=o},_initDom:function(){var e=this,t=this.toolbarSelector,o=r(t),i=this.textSelector,n=this.config,l=n.zIndex,s=void 0,c=void 0,p=void 0,d=void 0;null==i?(s=r("
      "),c=r("
      "),d=o.children(),o.append(s).append(c),s.css("background-color","#f1f1f1").css("border","1px solid #ccc"),c.css("border","1px solid #ccc").css("border-top","none").css("height","300px")):(s=o,c=r(i),d=c.children()),p=r("
      "),p.attr("contenteditable","true").css("width","100%").css("height","100%"),d&&d.length?p.append(d):p.append(r("


      ")),c.append(p),s.addClass("w-e-toolbar"),c.addClass("w-e-text-container"),c.css("z-index",l),p.addClass("w-e-text");var u=a("toolbar-elem");s.attr("id",u);var f=a("text-elem");p.attr("id",f),this.$toolbarElem=s,this.$textContainerElem=c,this.$textElem=p,this.toolbarElemId=u,this.textElemId=f;var h=!0;c.on("compositionstart",function(){h=!1}),c.on("compositionend",function(){h=!0}),c.on("click keyup",function(){h&&e.change&&e.change()}),s.on("click",function(){this.change&&this.change()}),(n.onfocus||n.onblur)&&(this.isFocus=!1,r(document).on("click",function(t){var o=p.isContain(r(t.target)),i=s.isContain(r(t.target)),n=s[0]==t.target;if(o)e.isFocus||e.onfocus&&e.onfocus(),e.isFocus=!0;else{if(i&&!n)return;e.isFocus&&e.onblur&&e.onblur(),e.isFocus=!1}}))},_initCommand:function(){this.cmd=new F(this)},_initSelectionAPI:function(){this.selection=new M(this)},_initUploadImg:function(){this.uploadImg=new Y(this)},_initMenus:function(){this.menus=new R(this),this.menus.init()},_initText:function(){this.txt=new N(this),this.txt.init()},initSelection:function(e){var t=this.$textElem,o=t.children();if(!o.length)return t.append(r("


      ")),void this.initSelection();var i=o.last();if(e){var n=i.html().toLowerCase(),l=i.getNodeName();if("
      "!==n&&"
      "!==n||"P"!==l)return t.append(r("


      ")),void this.initSelection()}this.selection.createRangeByElem(i,!1,!0),this.selection.restoreSelection()},_bindEvent:function(){var e=0,t=this.txt.html(),o=this.config,i=o.onchangeTimeout;(!(i=parseInt(i,10))||i<=0)&&(i=200);var r=o.onchange;r&&"function"==typeof r&&(this.change=function(){var o=this.txt.html();o.length===t.length&&o===t||(e&&clearTimeout(e),e=setTimeout(function(){r(o),t=o},i))});var n=o.onblur;n&&"function"==typeof n&&(this.onblur=function(){var e=this.txt.html();n(e)});var l=o.onfocus;l&&"function"==typeof l&&(this.onfocus=function(){l()})},create:function(){this._initConfig(),this._initDom(),this._initCommand(),this._initSelectionAPI(),this._initText(),this._initMenus(),this._initUploadImg(),this.initSelection(!0),this._bindEvent()},_offAllEvent:function(){r.offAll()}};try{document}catch(e){throw new Error("请在浏览器环境下运行")}!function(){"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),i=1;i=0&&t.item(o)!==this;);return o>-1})}();var $=document.createElement("style");return $.type="text/css",$.innerHTML='.w-e-toolbar,.w-e-text-container,.w-e-menu-panel { padding: 0; margin: 0; box-sizing: border-box;}.w-e-toolbar *,.w-e-text-container *,.w-e-menu-panel * { padding: 0; margin: 0; box-sizing: border-box;}.w-e-clear-fix:after { content: ""; display: table; clear: both;}.w-e-toolbar .w-e-droplist { position: absolute; left: 0; top: 0; background-color: #fff; border: 1px solid #f1f1f1; border-right-color: #ccc; border-bottom-color: #ccc;}.w-e-toolbar .w-e-droplist .w-e-dp-title { text-align: center; color: #999; line-height: 2; border-bottom: 1px solid #f1f1f1; font-size: 13px;}.w-e-toolbar .w-e-droplist ul.w-e-list { list-style: none; line-height: 1;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { color: #333; padding: 5px 0;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { background-color: #f1f1f1;}.w-e-toolbar .w-e-droplist ul.w-e-block { list-style: none; text-align: left; padding: 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { display: inline-block; *display: inline; *zoom: 1; padding: 3px 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { background-color: #f1f1f1;}@font-face { font-family: \'w-e-icon\'; src: url(data:application/x-font-woff;charset=utf-8;base64,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) format(\'truetype\'); font-weight: normal; font-style: normal;}[class^="w-e-icon-"],[class*=" w-e-icon-"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: \'w-e-icon\' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.w-e-icon-close:before { content: "\\f00d";}.w-e-icon-upload2:before { content: "\\e9c6";}.w-e-icon-trash-o:before { content: "\\f014";}.w-e-icon-header:before { content: "\\f1dc";}.w-e-icon-pencil2:before { content: "\\e906";}.w-e-icon-paint-brush:before { content: "\\f1fc";}.w-e-icon-image:before { content: "\\e90d";}.w-e-icon-play:before { content: "\\e912";}.w-e-icon-location:before { content: "\\e947";}.w-e-icon-undo:before { content: "\\e965";}.w-e-icon-redo:before { content: "\\e966";}.w-e-icon-quotes-left:before { content: "\\e977";}.w-e-icon-list-numbered:before { content: "\\e9b9";}.w-e-icon-list2:before { content: "\\e9bb";}.w-e-icon-link:before { content: "\\e9cb";}.w-e-icon-happy:before { content: "\\e9df";}.w-e-icon-bold:before { content: "\\ea62";}.w-e-icon-underline:before { content: "\\ea63";}.w-e-icon-italic:before { content: "\\ea64";}.w-e-icon-strikethrough:before { content: "\\ea65";}.w-e-icon-table2:before { content: "\\ea71";}.w-e-icon-paragraph-left:before { content: "\\ea77";}.w-e-icon-paragraph-center:before { content: "\\ea78";}.w-e-icon-paragraph-right:before { content: "\\ea79";}.w-e-icon-terminal:before { content: "\\f120";}.w-e-icon-page-break:before { content: "\\ea68";}.w-e-icon-cancel-circle:before { content: "\\ea0d";}.w-e-icon-font:before { content: "\\ea5c";}.w-e-icon-text-heigh:before { content: "\\ea5f";}.w-e-toolbar { display: -webkit-box; display: -ms-flexbox; display: flex; padding: 0 5px; /* flex-wrap: wrap; */ /* 单个菜单 */}.w-e-toolbar .w-e-menu { position: relative; text-align: center; padding: 5px 10px; cursor: pointer;}.w-e-toolbar .w-e-menu i { color: #999;}.w-e-toolbar .w-e-menu:hover i { color: #333;}.w-e-toolbar .w-e-active i { color: #1e88e5;}.w-e-toolbar .w-e-active:hover i { color: #1e88e5;}.w-e-text-container .w-e-panel-container { position: absolute; top: 0; left: 50%; border: 1px solid #ccc; border-top: 0; box-shadow: 1px 1px 2px #ccc; color: #333; background-color: #fff; /* 为 emotion panel 定制的样式 */ /* 上传图片的 panel 定制样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-close { position: absolute; right: 0; top: 0; padding: 5px; margin: 2px 5px 0 0; cursor: pointer; color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-close:hover { color: #333;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title { list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; margin: 2px 10px 0 10px; border-bottom: 1px solid #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item { padding: 3px 5px; color: #999; cursor: pointer; margin: 0 3px; position: relative; top: 1px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active { color: #333; border-bottom: 1px solid #333; cursor: default; font-weight: 700;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content { padding: 10px 15px 10px 15px; font-size: 16px; /* 输入框的样式 */ /* 按钮的样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus { outline: none;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea { width: 100%; border: 1px solid #ccc; padding: 5px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus { border-color: #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] { border: none; border-bottom: 1px solid #ccc; font-size: 14px; height: 20px; color: #333; text-align: left;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small { width: 30px; text-align: center;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block { display: block; width: 100%; margin: 10px 0;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { border-bottom: 2px solid #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { font-size: 14px; color: #1e88e5; border: none; padding: 5px 10px; background-color: #fff; cursor: pointer; border-radius: 3px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { float: left; margin-right: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { float: right; margin-left: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { color: #c24f4a;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { background-color: #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { content: ""; display: table; clear: both;}.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item { cursor: pointer; font-size: 18px; padding: 0 3px; display: inline-block; *display: inline; *zoom: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container { text-align: center;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn { display: inline-block; *display: inline; *zoom: 1; color: #999; cursor: pointer; font-size: 60px; line-height: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover { color: #333;}.w-e-text-container { position: relative;}.w-e-text-container .w-e-progress { position: absolute; background-color: #1e88e5; bottom: 0; left: 0; height: 1px;}.w-e-text { padding: 0 10px; overflow-y: scroll;}.w-e-text p,.w-e-text h1,.w-e-text h2,.w-e-text h3,.w-e-text h4,.w-e-text h5,.w-e-text table,.w-e-text pre { margin: 10px 0; line-height: 1.5;}.w-e-text ul,.w-e-text ol { margin: 10px 0 10px 20px;}.w-e-text blockquote { display: block; border-left: 8px solid #d0e5f2; padding: 5px 10px; margin: 10px 0; line-height: 1.4; font-size: 100%; background-color: #f1f1f1;}.w-e-text code { display: inline-block; *display: inline; *zoom: 1; background-color: #f1f1f1; border-radius: 3px; padding: 3px 5px; margin: 0 3px;}.w-e-text pre code { display: block;}.w-e-text table { border-top: 1px solid #ccc; border-left: 1px solid #ccc;}.w-e-text table td,.w-e-text table th { border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; padding: 3px 5px;}.w-e-text table th { border-bottom: 2px solid #ccc; text-align: center;}.w-e-text:focus { outline: none;}.w-e-text img { cursor: pointer;}.w-e-text img:hover { box-shadow: 0 0 5px #333;}',document.getElementsByTagName("HEAD").item(0).appendChild($),window.wangEditor||j})}],[149]); -//# sourceMappingURL=index.js.map?d63c91c5b1bf6dec2ea0 \ No newline at end of file +e.exports=function(e){return null!=e&&(o(e)||i(e)||!!e._isBuffer)}},function(e,t){var o={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==o.call(e)}},,,,,,function(e,t,o){"use strict";var i=o(232),r=o(231),n=o(92);e.exports={formats:n,parse:r,stringify:i}},function(e,t,o){"use strict";var i=o(93),r=Object.prototype.hasOwnProperty,n={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:i.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},l=function(e,t){for(var o={},i=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),n=0;n=0&&o.parseArrays&&l<=o.arrayLimit?(i=[],i[l]=a(e,t,o)):i[n]=a(e,t,o)}return i},s=function(e,t,o){if(e){var i=o.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,n=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,s=n.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!o.plainObjects&&r.call(Object.prototype,c)&&!o.allowPrototypes)return;p.push(c)}for(var d=0;null!==(s=l.exec(i))&&d=0&&x.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function a(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function s(e,t){var o,i,r;if(t.singleton){var s=m++;o=g||(g=l(t)),i=c.bind(null,o,s,!1),r=c.bind(null,o,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=a(t),i=d.bind(null,o),r=function(){n(o),o.href&&URL.revokeObjectURL(o.href)}):(o=l(t),i=p.bind(null,o),r=function(){n(o)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}function c(e,t,o,i){var r=o?"":i.css;if(e.styleSheet)e.styleSheet.cssText=_(t,r);else{var n=document.createTextNode(r),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(n,l[t]):e.appendChild(n)}}function p(e,t){var o=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}function d(e,t){var o=t.css,i=t.sourceMap;i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([o],{type:"text/css"}),n=e.href;e.href=URL.createObjectURL(r),n&&URL.revokeObjectURL(n)}var u={},f=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},h=f(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),b=f(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,m=0,x=[];e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},void 0===t.singleton&&(t.singleton=h()),void 0===t.insertAt&&(t.insertAt="bottom");var r=i(e);return o(r,t),function(e){for(var n=[],l=0;l0,expression:"pageFileList.length > 0"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.pageFileList,border:""}},[i("el-table-column",{attrs:{label:"文件名"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("a",{attrs:{target:"_blank",href:t.row.fileUrl}},[e._v(e._s(t.row.fileName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),e._v(" "),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"100px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small"},on:{click:function(o){e.deletePageFile(t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"wiki-content w-e-text"},[i("div",{domProps:{innerHTML:e._s(e.pageContent.content)}})]),e._v(" "),i("div",{staticStyle:{"margin-top":"40px","font-size":"14px"}},[i("span",{staticClass:"is-link",staticStyle:{"vertical-align":"top"}},[i("span",{directives:[{name:"show",rawName:"v-show",value:0==e.wikiPage.selfZan,expression:"wikiPage.selfZan == 0"}],on:{click:function(t){e.zanPage(1)}}},[i("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:o(60)}}),e._v(" 赞")]),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.wikiPage.selfZan,expression:"wikiPage.selfZan == 1"}],on:{click:function(t){e.zanPage(0)}}},[i("img",{staticStyle:{"vertical-align":"middle",transform:"rotateX(180deg)"},attrs:{src:o(60)}}),e._v(" 踩")])]),e._v(" "),i("span",{staticStyle:{"margin-left":"10px","vertical-align":"top"}},[0==e.wikiPage.selfZan&&e.wikiPage.zanNum<=0?i("span",[e._v("成为第一个赞同者")]):0==e.wikiPage.selfZan&&e.wikiPage.zanNum>0?i("span",[i("span",{staticClass:"is-link",on:{click:e.showZanPageUser}},[e._v(e._s(e.wikiPage.zanNum)+"人")]),e._v("赞了它")]):1==e.wikiPage.selfZan&&e.wikiPage.zanNum<=1?i("span",[e._v("我赞了它")]):1==e.wikiPage.selfZan&&e.wikiPage.zanNum>1?i("span",[i("span",{staticClass:"is-link",on:{click:e.showZanPageUser}},[e._v("我和"+e._s(e.wikiPage.zanNum-1)+"个其他人")]),e._v("赞了它")]):e._e()]),e._v(" "),i("span",{staticStyle:{"margin-left":"10px"}},[i("i",{staticClass:"el-icon-view",staticStyle:{"font-size":"16px",color:"#666"}}),e._v(" "+e._s(e.wikiPage.viewNum)+"次阅读\n\t\t\t\t")])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.commentList.length>0,expression:"commentList.length > 0"}],staticClass:"comment-box",staticStyle:{"margin-top":"20px"}},[i("div",{staticStyle:{"border-bottom":"1px solid #67C23A","padding-bottom":"10px"}},[e._v("评论列表:")]),e._v(" "),e._l(e.commentList,function(t,o){return i("div",{key:t.id,staticStyle:{"border-bottom":"1px solid #eee",padding:"10px"},attrs:{"data-id":t.id,"data-index":o}},[i("div",[i("div",{staticClass:"head",style:"background-color: "+t.color},[e._v(e._s(t.createUserName.substr(0,1)))])]),e._v(" "),i("div",{staticStyle:{"padding-left":"55px"}},[e._v("\n\t\t\t\t\t\t"+e._s(t.createUserName)+"\n\t\t\t\t\t\t"),i("span",{staticStyle:{color:"#888","font-size":"13px","padding-left":"10px"}},[e._v(e._s(t.createTime))]),e._v(" "),i("span",{staticStyle:{color:"#888","font-size":"13px","margin-left":"10px",cursor:"pointer"},on:{click:function(i){e.recommentUser(t.id,o)}}},[e._v("回复")])]),e._v(" "),i("pre",{staticStyle:{padding:"10px 0 0 55px"}},[e._v(e._s(t.content))]),e._v(" "),e._l(t.commentList,function(t,o){return i("div",{key:t.id,staticStyle:{"border-bottom":"1px solid #eee",padding:"10px","margin-left":"40px"},attrs:{"data-id":t.id,"data-index":o}},[i("div",[i("div",{staticClass:"head",style:"background-color: "+t.color},[e._v(e._s(t.createUserName.substr(0,1)))])]),e._v(" "),i("div",{staticStyle:{"padding-left":"55px"}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.createUserName)+"\n\t\t\t\t\t\t\t"),i("span",{staticStyle:{color:"#888","font-size":"13px","padding-left":"10px"}},[e._v(e._s(t.createTime))])]),e._v(" "),i("pre",{staticStyle:{padding:"10px 0 0 55px"}},[e._v(e._s(t.content))])])})],2)})],2),e._v(" "),i("div",{staticStyle:{margin:"20px 0 50px 0"}},[i("el-input",{attrs:{type:"textarea",rows:5,placeholder:e.recommentInfo.placeholder||"请输入评论内容"},model:{value:e.commentTextInput,callback:function(t){e.commentTextInput=t},expression:"commentTextInput"}}),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"},attrs:{align:"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitPageComment}},[e._v("提交评论")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:e.recommentInfo.id>0,expression:"recommentInfo.id > 0"}],on:{click:e.cancelCommentUser}},[e._v("取消回复")])],1)],1)]),e._v(" "),i("el-dialog",{attrs:{title:"赞了它的人",visible:e.zanUserDialogVisible,width:"600px"},on:{"update:visible":function(t){e.zanUserDialogVisible=t}}},[i("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.zanUserList,border:"","show-header":!1}},[i("el-table-column",{attrs:{prop:"createUserName",label:"用户"}}),e._v(" "),i("el-table-column",{attrs:{prop:"createTime",label:"时间"}})],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"页面权限",visible:e.pageAuthDialogVisible,width:"900px"},on:{"update:visible":function(t){e.pageAuthDialogVisible=t}}},[i("el-row",[i("el-select",{staticStyle:{width:"750px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"请输入名字、邮箱、账号搜索用户","remote-method":e.getSearchUserList,loading:e.pageAuthUserLoading},model:{value:e.pageAuthNewUser,callback:function(t){e.pageAuthNewUser=t},expression:"pageAuthNewUser"}},e._l(e.searchUserList,function(e){return i("el-option",{key:e.id,attrs:{label:e.userName,value:e.id}})})),e._v(" "),i("el-button",{on:{click:e.addPageAuthUser}},[e._v("添加")])],1),e._v(" "),i("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.pageAuthUserList,border:""}},[i("el-table-column",{attrs:{prop:"userName",label:"用户",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"权限"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.editPage,callback:function(o){e.$set(t.row,"editPage",o)},expression:"scope.row.editPage"}},[e._v("查看")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.commentPage,callback:function(o){e.$set(t.row,"commentPage",o)},expression:"scope.row.commentPage"}},[e._v("评论")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.deletePage,callback:function(o){e.$set(t.row,"deletePage",o)},expression:"scope.row.deletePage"}},[e._v("删除")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileUpload,callback:function(o){e.$set(t.row,"pageFileUpload",o)},expression:"scope.row.pageFileUpload"}},[e._v("文件上传")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileDelete,callback:function(o){e.$set(t.row,"pageFileDelete",o)},expression:"scope.row.pageFileDelete"}},[e._v("文件删除")]),e._v(" "),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageAuthManage,callback:function(o){e.$set(t.row,"pageAuthManage",o)},expression:"scope.row.pageAuthManage"}},[e._v("权限管理")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"danger",plain:""},on:{click:function(o){e.deleteUserPageAuth(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary"},on:{click:e.saveUserPageAuth}},[e._v("保存配置")])],1)],1)],1)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("router-view")},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{attrs:{id:"app"}},[e.global.fullscreen?[o("router-view")]:o("el-container",[o("el-aside",{directives:[{name:"show",rawName:"v-show",value:e.leftCollapse,expression:"leftCollapse"}]},[o("div",{staticStyle:{padding:"10px",height:"100%","box-sizing":"border-box",background:"#fafafa"}},[o("div",{staticStyle:{"margin-bottom":"10px"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"选择空间"},on:{change:e.spaceChangeEvents},model:{value:e.choiceSpace,callback:function(t){e.choiceSpace=t},expression:"choiceSpace"}},[o("el-option-group",{attrs:{label:""}},[o("el-option",{key:"0",attrs:{label:"创建空间",value:"0"}}),e._v(" "),o("el-option",{key:"-1",attrs:{label:"空间管理",value:"-1"}})],1),e._v(" "),o("el-option-group",{attrs:{label:""}},e._l(e.spaceOptions,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1)],1),e._v(" "),o("div",{attrs:{align:"center"}},[o("el-button",{staticStyle:{width:"100%"},attrs:{icon:"el-icon-plus"},on:{click:e.createWiki}},[e._v("创建文档")])],1),e._v(" "),o("el-input",{staticStyle:{margin:"10px 0"},attrs:{placeholder:"搜索文档"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchByKeywords(t):null}},model:{value:e.searchKeywords,callback:function(t){e.searchKeywords=t},expression:"searchKeywords"}},[o("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.searchByKeywords},slot:"append"})],1),e._v(" "),o("el-tree",{ref:"wikiPageTree",staticStyle:{"background-color":"#fafafa"},attrs:{props:e.defaultProps,data:e.wikiPageList,draggable:"","filter-node-method":e.filterPageNode,"highlight-current":"","expand-on-click-node":!1,"default-expanded-keys":e.wikiPageExpandedKeys,"node-key":"id"},on:{"node-click":e.handleNodeClick,"node-expand":e.handleNodeExpand,"node-drop":e.handlePageDrop}})],1)]),e._v(" "),o("el-container",[o("el-header",[o("i",{staticClass:"el-icon-menu icon-collapse",on:{click:function(t){e.leftCollapse=!e.leftCollapse}}}),e._v(" "),o("el-dropdown",{attrs:{trigger:"click"},on:{command:e.userSettingDropdown}},[o("i",{staticClass:"el-icon-setting",staticStyle:{"margin-right":"15px","font-size":"16px",cursor:"pointer",color:"#fff"}}),e._v(" "),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{attrs:{command:"aboutDoc"}},[e._v("关于")]),e._v(" "),o("el-dropdown-item",{attrs:{command:"",divided:""}},[e._v("我的资料")]),e._v(" "),o("el-dropdown-item",{attrs:{command:"userSignOut"}},[e._v("退出登录")])],1)],1)],1),e._v(" "),o("el-main",{staticStyle:{padding:"0"}},[o("router-view")],1)],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"创建空间",visible:e.newSpaceDialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.newSpaceDialogVisible=t}}},[o("el-form",{ref:"newSpaceForm",attrs:{"label-width":"100px",model:e.newSpaceForm,rules:e.newSpaceFormRules}},[o("el-form-item",{attrs:{label:"空间名:",prop:"name"}},[o("el-input",{model:{value:e.newSpaceForm.name,callback:function(t){e.$set(e.newSpaceForm,"name",t)},expression:"newSpaceForm.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"空间描述:",prop:"spaceExplain"}},[o("el-input",{model:{value:e.newSpaceForm.spaceExplain,callback:function(t){e.$set(e.newSpaceForm,"spaceExplain",t)},expression:"newSpaceForm.spaceExplain"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"空间开放:"}},[o("el-switch",{attrs:{"inactive-text":"需要登录","inactive-value":0,"active-text":"开放访问","active-value":1},model:{value:e.newSpaceForm.openDoc,callback:function(t){e.$set(e.newSpaceForm,"openDoc",t)},expression:"newSpaceForm.openDoc"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"目录加载:"}},[o("el-switch",{attrs:{"inactive-text":"预先加载","inactive-value":0,"active-text":"延迟加载","active-value":1},model:{value:e.newSpaceForm.treeLazyLoad,callback:function(t){e.$set(e.newSpaceForm,"treeLazyLoad",t)},expression:"newSpaceForm.treeLazyLoad"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"空间类型:"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:"选择类型"},model:{value:e.newSpaceForm.type,callback:function(t){e.$set(e.newSpaceForm,"type",t)},expression:"newSpaceForm.type"}},[o("el-option",{key:1,attrs:{label:"公共空间",value:1}},[o("span",{staticStyle:{float:"left"}},[e._v("公共空间")]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于公共,登录用户可访问、编辑")])]),e._v(" "),o("el-option",{key:2,attrs:{label:"个人空间",value:2}},[o("span",{staticStyle:{float:"left"}},[e._v("个人空间")]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,所有登录用户可访问")])]),e._v(" "),o("el-option",{key:3,attrs:{label:"隐私空间",value:3}},[o("span",{staticStyle:{float:"left"}},[e._v("隐私空间")]),e._v(" "),o("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,仅创建者可访问")])])],1)],1),e._v(" "),o("el-form-item",[e.newSpaceForm.id>0?o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("保存修改")]):o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("立即创建")]),e._v(" "),o("el-button",{on:{click:e.onNewSpaceCancel}},[e._v("取消")])],1)],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"管理空间",visible:e.manageSpaceDialogVisible,"close-on-click-modal":!1,width:"80%"},on:{"update:visible":function(t){e.manageSpaceDialogVisible=t}}},[o("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.spaceList,border:"","max-height":"500"}},[o("el-table-column",{attrs:{prop:"id",label:"ID",width:"60"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名字"}}),e._v(" "),o("el-table-column",{attrs:{prop:"spaceExplain",label:"说明"}}),e._v(" "),o("el-table-column",{attrs:{label:"开放地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.openDoc?o("a",{attrs:{target:"_blank",href:"open-wiki.html?space="+t.row.uuid}},[e._v(e._s(t.row.name))]):o("span",[e._v("暂未开放")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),e._v(" "),o("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),e._v(" "),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(o){e.editSpaceInfo(t.row)}}},[e._v("编辑")]),e._v(" "),o("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(o){e.deleteSpaceInfo(t.row)}}},[e._v("删除")])]}}])})],1)],1),e._v(" "),o("el-dialog",{attrs:{title:"关于zyplayer-doc-wiki",visible:e.aboutDialogVisible,width:"600px"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[o("el-form",[o("el-form-item",{attrs:{label:"项目地址:"}},[o("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("zyplayer-doc")])]),e._v(" "),o("el-form-item",{attrs:{label:"开发人员:"}},[o("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])]),e._v(" "),e.upgradeInfo.lastVersion?[o("el-form-item",{attrs:{label:"当前版本:"}},[e._v(e._s(e.upgradeInfo.nowVersion))]),e._v(" "),o("el-form-item",{attrs:{label:"最新版本:"}},[e._v(e._s(e.upgradeInfo.lastVersion))]),e._v(" "),o("el-form-item",{attrs:{label:"升级地址:"}},[o("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v(e._s(e.upgradeInfo.upgradeUrl))])]),e._v(" "),o("el-form-item",{attrs:{label:"升级内容:"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])]:e._e(),e._v(" "),o("el-form-item",{attrs:{label:""}},[e._v("\n 欢迎加群讨论,QQ群号:466363173,欢迎提交需求,欢迎使用和加入开发!\n ")])],2)],1)],2)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("router-view")},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._v("没有权限访问该模块")])},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-form",{ref:"loginParam",staticClass:"demo-ruleForm login-container",attrs:{model:e.loginParam,rules:e.loginRules,"label-position":"left","label-width":"0px"}},[o("h3",{staticClass:"title"},[e._v("系统登录")]),e._v(" "),o("el-form-item",{attrs:{prop:"userNo"}},[o("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"账号"},model:{value:e.loginParam.userNo,callback:function(t){e.$set(e.loginParam,"userNo",t)},expression:"loginParam.userNo"}})],1),e._v(" "),o("el-form-item",{attrs:{prop:"password"}},[o("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},model:{value:e.loginParam.password,callback:function(t){e.$set(e.loginParam,"password",t)},expression:"loginParam.password"}})],1),e._v(" "),o("el-form-item",{staticStyle:{width:"100%"}},[o("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary",loading:e.logining},nativeOn:{click:function(t){return t.preventDefault(),e.loginSubmit(t)}}},[e._v("登录\n ")])],1)],1)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{padding:"10px"}},[o("el-row",{attrs:{type:"border-card"}},[e.wikiPage.id>0?o("div",{staticStyle:{"margin-bottom":"10px",padding:"10px"}},[e._v("\n\t\t\t编辑:"+e._s(e.parentPath.path)+"\n\t\t")]):o("div",{staticStyle:{"margin-bottom":"10px",padding:"10px"}},[e._v("\n\t\t\t父级:"+e._s(e.parentPath.path||"/")+" \n\t\t\t"),o("el-tooltip",{staticClass:"item",attrs:{content:"在根目录创建文档"}},[o("el-button",{staticStyle:{padding:"0 10px"},attrs:{type:"text"},on:{click:e.changeToRootPath}},[e._v("根目录")])],1)],1),e._v(" "),o("el-input",{attrs:{placeholder:"请输入标题"},model:{value:e.newPageTitle,callback:function(t){e.newPageTitle=t},expression:"newPageTitle"}}),e._v(" "),o("div",{staticStyle:{margin:"10px 0"},attrs:{id:"newPageContentDiv"}}),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.createWikiSave}},[e._v("保存")]),e._v(" "),o("el-button",{on:{click:e.createWikiCancel}},[e._v("取消")])],1)],1)},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){"use strict";var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{padding:"10px"}},[i("div",{staticStyle:{"max-width":"800px",margin:"0 auto"}},[i("el-select",{staticStyle:{float:"right","z-index":"1"},attrs:{placeholder:"请选择查看方式"},on:{change:e.getSpacePageNews},model:{value:e.searchParam.newsType,callback:function(t){e.$set(e.searchParam,"newsType",t)},expression:"searchParam.newsType"}},e._l(e.newsTypes,function(e,t){return i("el-option",{attrs:{label:e,value:t+1}})})),e._v(" "),i("el-tabs",{attrs:{value:"first"}},[i("el-tab-pane",{attrs:{label:e.newsTypes[e.searchParam.newsType-1],name:"first"}},[e.spacePageNews.length<=0?i("div",{staticClass:"empty-news"},[e._v("暂无数据")]):e._l(e.spacePageNews,function(t){return i("div",{staticClass:"line-box"},[i("div",{staticClass:"line-title"},[i("span",{staticClass:"text-link"},[e._v(e._s(t.createUserName))]),e._v(" 发布于 "),i("span",{staticClass:"text-link"},[e._v(e._s(t.spaceName))])]),e._v(" "),i("div",{staticClass:"page-preview-box",on:{click:function(o){e.showPageDetail(t)}}},[i("div",{staticClass:"page-preview-title"},[e._v(e._s(t.pageTitle))]),e._v(" "),i("div",{staticClass:"page-preview-content"},[e._v(e._s(t.previewContent))]),e._v(" "),i("div",[i("span",[i("img",{staticClass:"zan-img",attrs:{src:o(60)}}),e._v(" "+e._s(t.zanNum)+" ")]),e._v(" "),i("span",[i("i",{staticClass:"el-icon-view view-img"}),e._v(" "+e._s(t.viewNum)+" ")]),e._v(" "),i("span",[e._v(e._s(t.updateTime||t.createTime))])])])])})],2)],1),e._v(" "),i("div",{staticClass:"page-info-box"},[i("el-pagination",{attrs:{"page-sizes":[20,50,100],"page-size":20,"current-page":e.searchParam.pageNum,layout:"prev, pager, next, jumper, sizes, total",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)])},r=[],n={render:i,staticRenderFns:r};t.a=n},function(e,t,o){var i=o(196);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("0bb3d27c",i,!0)},function(e,t,o){var i=o(197);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("39709f82",i,!0)},function(e,t,o){var i=o(198);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("78cb66d5",i,!0)},function(e,t,o){var i=o(199);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("01686f77",i,!0)},function(e,t,o){var i=o(200);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("f4277476",i,!0)},function(e,t,o){var i=o(201);"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);o(21)("0eb4bfb2",i,!0)},function(e,t){e.exports=function(e,t){for(var o=[],i={},r=0;r/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
      ")}function c(e){return"function"==typeof e}function p(e){this.editor=e,this.$elem=r('
      \n \n
      '),this.type="click",this._active=!1}function d(e,t){var o=this,i=e.editor;this.menu=e,this.opt=t;var n=r('
      '),l=t.$title,a=void 0;l&&(a=l.html(),a=q(i,a),l.html(a),l.addClass("w-e-dp-title"),n.append(l));var s=t.list||[],c=t.type||"list",p=t.onClick||J,d=r('
        ');n.append(d),s.forEach(function(e){var t=e.$elem,n=t.html();n=q(i,n),t.html(n);var l=e.value,a=r('
      • ');t&&(a.append(t),d.append(a),a.on("click",function(e){p(l),o.hideTimeoutId=setTimeout(function(){o.hide()},0)}))}),n.on("mouseleave",function(e){o.hideTimeoutId=setTimeout(function(){o.hide()},0)}),this.$container=n,this._rendered=!1,this._show=!1}function u(e){var t=this;this.editor=e,this.$elem=r('
        '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:100,$title:r("

        设置标题

        "),type:"list",list:[{$elem:r("

        H1

        "),value:"

        "},{$elem:r("

        H2

        "),value:"

        "},{$elem:r("

        H3

        "),value:"

        "},{$elem:r("

        H4

        "),value:"

        "},{$elem:r("

        H5
        "),value:"
        "},{$elem:r("

        正文

        "),value:"

        "}],onClick:function(e){t._command(e)}})}function f(e){var t=this;this.editor=e,this.$elem=r('

        '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:160,$title:r("

        字号

        "),type:"list",list:[{$elem:r('x-small'),value:"1"},{$elem:r('small'),value:"2"},{$elem:r("normal"),value:"3"},{$elem:r('large'),value:"4"},{$elem:r('x-large'),value:"5"},{$elem:r('xx-large'),value:"6"}],onClick:function(e){t._command(e)}})}function h(e){var t=this;this.editor=e,this.$elem=r('
        '),this.type="droplist",this._active=!1;var o=e.config,i=o.fontNames||[];this.droplist=new d(this,{width:100,$title:r("

        字体

        "),type:"list",list:i.map(function(e){return{$elem:r(''+e+""),value:e}}),onClick:function(e){t._command(e)}})}function b(e,t){this.menu=e,this.opt=t}function g(e){this.editor=e,this.$elem=r('
        '),this.type="panel",this._active=!1}function m(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="click",this._active=!1}function x(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="click",this._active=!1}function _(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="click",this._active=!1}function w(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="click",this._active=!1}function v(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="click",this._active=!1}function A(e){var t=this;this.editor=e,this.$elem=r('
        '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:120,$title:r("

        设置列表

        "),type:"list",list:[{$elem:r(' 有序列表'),value:"insertOrderedList"},{$elem:r(' 无序列表'),value:"insertUnorderedList"}],onClick:function(e){t._command(e)}})}function y(e){var t=this;this.editor=e,this.$elem=r('
        '),this.type="droplist",this._active=!1,this.droplist=new d(this,{width:100,$title:r("

        对齐方式

        "),type:"list",list:[{$elem:r(' 靠左'),value:"justifyLeft"},{$elem:r(' 居中'),value:"justifyCenter"},{$elem:r(' 靠右'),value:"justifyRight"}],onClick:function(e){t._command(e)}})}function k(e){var t=this;this.editor=e,this.$elem=r('
        '),this.type="droplist";var o=e.config,i=o.colors||[];this._active=!1,this.droplist=new d(this,{width:120,$title:r("

        文字颜色

        "),type:"inline-block",list:i.map(function(e){return{$elem:r(''),value:e}}),onClick:function(e){t._command(e)}})}function E(e){var t=this;this.editor=e,this.$elem=r('
        '),this.type="droplist";var o=e.config,i=o.colors||[];this._active=!1,this.droplist=new d(this,{width:120,$title:r("

        背景色

        "),type:"inline-block",list:i.map(function(e){return{$elem:r(''),value:e}}),onClick:function(e){t._command(e)}})}function z(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="click",this._active=!1}function C(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="panel",this._active=!1}function B(e){this.editor=e,this.$elem=r('
        \n \n
        '),this.type="panel",this._active=!1}function S(e){this.editor=e,this.$elem=r('
        '),this.type="panel",this._active=!1}function I(e){this.editor=e,this.$elem=r('
        '),this.type="panel",this._active=!1}function P(e){this.editor=e;var t=a("w-e-img");this.$elem=r('
        '),e.imgMenuId=t,this.type="panel",this._active=!1}function R(e){this.editor=e,this.menus={}}function T(e){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,o=void 0;return o=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),s(o)}function U(e,t,o){var i=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData,r=void 0,n=void 0;if(null==i?r=window.clipboardData&&window.clipboardData.getData("text"):(r=i.getData("text/plain"),n=i.getData("text/html")),!n&&r&&(n="

        "+s(r)+"

        "),n){var l=n.split("");return 2===l.length&&(n=l[0]),n=n.replace(/<(meta|script|link).+?>/gim,""),n=n.replace(//gm,""),n=n.replace(/\s?data-.+?=('|").+?('|")/gim,""),o&&(n=n.replace(//gim,"")),n=t?n.replace(/\s?(class|style)=('|").*?('|")/gim,""):n.replace(/\s?class=('|").*?('|")/gim,"")}}function D(e){var t=[];if(T(e))return t;var o=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData||{},i=o.items;return i?(n(i,function(e,o){/image/i.test(o.type)&&t.push(o.getAsFile())}),t):t}function L(e){var t=[];return(e.childNodes()||[]).forEach(function(e){var o=void 0,i=e.nodeType;if(3===i&&(o=e.textContent,o=s(o)),1===i){o={},o.tag=e.nodeName.toLowerCase();for(var n=[],l=e.attributes||{},a=l.length||0,c=0;c
        ')}function Y(e){this.editor=e}function j(e,t){if(null==e)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");this.id="wangEditor-"+W++,this.toolbarSelector=e,this.textSelector=t,this.customConfig={}}var O=[];i.prototype={constructor:i,forEach:function(e){var t=void 0;for(t=0;t=t&&(e%=t),r(this[e])},first:function(){return this.get(0)},last:function(){var e=this.length;return this.get(e-1)},on:function(e,t,o){o||(o=t,t=null);var i=[];return i=e.split(/\s+/),this.forEach(function(e){i.forEach(function(i){if(i){if(O.push({elem:e,type:i,fn:o}),!t)return void e.addEventListener(i,o);e.addEventListener(i,function(e){var i=e.target;i.matches(t)&&o.call(i,e)})}})})},off:function(e,t){return this.forEach(function(o){o.removeEventListener(e,t)})},attr:function(e,t){return null==t?this[0].getAttribute(e):this.forEach(function(o){o.setAttribute(e,t)})},addClass:function(e){return e?this.forEach(function(t){var o=void 0;t.className?(o=t.className.split(/\s/),o=o.filter(function(e){return!!e.trim()}),o.indexOf(e)<0&&o.push(e),t.className=o.join(" ")):t.className=e}):this},removeClass:function(e){return e?this.forEach(function(t){var o=void 0;t.className&&(o=t.className.split(/\s/),o=o.filter(function(t){return!(!(t=t.trim())||t===e)}),t.className=o.join(" "))}):this},css:function(e,t){var o=e+":"+t+";";return this.forEach(function(t){var i=(t.getAttribute("style")||"").trim(),r=void 0,n=[];i?(r=i.split(";"),r.forEach(function(e){var t=e.split(":").map(function(e){return e.trim()});2===t.length&&n.push(t[0]+":"+t[1])}),n=n.map(function(t){return 0===t.indexOf(e)?o:t}),n.indexOf(o)<0&&n.push(o),t.setAttribute("style",n.join("; "))):t.setAttribute("style",o)})},show:function(){return this.css("display","block")},hide:function(){return this.css("display","none")},children:function(){var e=this[0];return e?r(e.children):null},childNodes:function(){var e=this[0];return e?r(e.childNodes):null},append:function(e){return this.forEach(function(t){e.forEach(function(e){t.appendChild(e)})})},remove:function(){return this.forEach(function(e){if(e.remove)e.remove();else{var t=e.parentElement;t&&t.removeChild(e)}})},isContain:function(e){var t=this[0],o=e[0];return t.contains(o)},getSizeData:function(){return this[0].getBoundingClientRect()},getNodeName:function(){return this[0].nodeName},find:function(e){return r(this[0].querySelectorAll(e))},text:function(e){return e?this.forEach(function(t){t.innerHTML=e}):this[0].innerHTML.replace(/<.*?>/g,function(){return""})},html:function(e){var t=this[0];return null==e?t.innerHTML:(t.innerHTML=e,this)},val:function(){return this[0].value.trim()},focus:function(){return this.forEach(function(e){e.focus()})},parent:function(){return r(this[0].parentElement)},parentUntil:function(e,t){var o=document.querySelectorAll(e),i=o.length;if(!i)return null;var n=t||this[0];if("BODY"===n.nodeName)return null;var l=n.parentElement,a=void 0;for(a=0;a=0)){var o=t.editor,i=r("body"),n=o.$textContainerElem,l=this.opt,a=r('
        '),s=l.width||300;a.css("width",s+"px").css("margin-left",(0-s)/2+"px");var c=r('');a.append(c),c.on("click",function(){e.hide()});var p=r('
          '),d=r('
          ');a.append(p).append(d);var u=l.height;u&&d.css("height",u+"px").css("overflow-y","auto");var f=l.tabs||[],h=[],b=[];f.forEach(function(e,t){if(e){var i=e.title||"",n=e.tpl||"";i=q(o,i),n=q(o,n);var l=r('
        • '+i+"
        • ");p.append(l);var a=r(n);d.append(a),l._index=t,h.push(l),b.push(a),0===t?(l._active=!0,l.addClass("w-e-active")):a.hide(),l.on("click",function(e){l._active||(h.forEach(function(e){e._active=!1,e.removeClass("w-e-active")}),b.forEach(function(e){e.hide()}),l._active=!0,l.addClass("w-e-active"),a.show())})}}),a.on("click",function(e){e.stopPropagation()}),i.on("click",function(t){e.hide()}),n.append(a),f.forEach(function(t,o){if(t){(t.events||[]).forEach(function(t){var i=t.selector,r=t.type,n=t.fn||V;b[o].find(i).on(r,function(t){t.stopPropagation(),n(t)&&e.hide()})})}});var g=a.find("input[type=text],textarea");g.length&&g.get(0).focus(),this.$container=a,this._hideOtherPanels(),X.push(t)}},hide:function(){var e=this.menu,t=this.$container;t&&t.remove(),X=X.filter(function(t){return t!==e})},_hideOtherPanels:function(){X.length&&X.forEach(function(e){var t=e.panel||{};t.hide&&t.hide()})}},g.prototype={constructor:g,onClick:function(e){var t=this.editor,o=void 0;if(this._active){if(!(o=t.selection.getSelectionContainerElem()))return;t.selection.createRangeByElem(o),t.selection.restoreSelection(),this._createPanel(o.text(),o.attr("href"))}else t.selection.isSelectionEmpty()?this._createPanel("",""):this._createPanel(t.selection.getSelectionText(),"")},_createPanel:function(e,t){var o=this,i=a("input-link"),n=a("input-text"),l=a("btn-ok"),s=a("btn-del"),c=this._active?"inline-block":"none",p=new b(this,{width:300,tabs:[{title:"链接",tpl:'
          \n \n \n
          \n \n \n
          \n
          ',events:[{selector:"#"+l,type:"click",fn:function(){var e=r("#"+i),t=r("#"+n),l=e.val(),a=t.val();return o._insertLink(a,l),!0}},{selector:"#"+s,type:"click",fn:function(){return o._delLink(),!0}}]}]});p.show(),this.panel=p},_delLink:function(){if(this._active){var e=this.editor;if(e.selection.getSelectionContainerElem()){var t=e.selection.getSelectionText();e.cmd.do("insertHTML",""+t+"")}}},_insertLink:function(e,t){var o=this.editor,i=o.config,r=i.linkCheck,n=!0;r&&"function"==typeof r&&(n=r(e,t)),!0===n?o.cmd.do("insertHTML",''+e+""):alert(n)},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=t.selection.getSelectionContainerElem();i&&("A"===i.getNodeName()?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active")))}},m.prototype={constructor:m,onClick:function(e){var t=this.editor,o=t.selection.isSelectionEmpty();o&&t.selection.createEmptyRange(),t.cmd.do("italic"),o&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("italic")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},x.prototype={constructor:x,onClick:function(e){this.editor.cmd.do("redo")}},_.prototype={constructor:_,onClick:function(e){var t=this.editor,o=t.selection.isSelectionEmpty();o&&t.selection.createEmptyRange(),t.cmd.do("strikeThrough"),o&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("strikeThrough")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},w.prototype={constructor:w,onClick:function(e){var t=this.editor,o=t.selection.isSelectionEmpty();o&&t.selection.createEmptyRange(),t.cmd.do("underline"),o&&(t.selection.collapseRange(),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("underline")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},v.prototype={constructor:v,onClick:function(e){this.editor.cmd.do("undo")}},A.prototype={constructor:A,_command:function(e){var t=this.editor,o=t.$textElem;if(t.selection.restoreSelection(),!t.cmd.queryCommandState(e)){t.cmd.do(e);var i=t.selection.getSelectionContainerElem();if("LI"===i.getNodeName()&&(i=i.parent()),!1!==/^ol|ul$/i.test(i.getNodeName())&&!i.equal(o)){var r=i.parent();r.equal(o)||(i.insertAfter(r),r.remove())}}},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t.cmd.queryCommandState("insertUnOrderedList")||t.cmd.queryCommandState("insertOrderedList")?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},y.prototype={constructor:y,_command:function(e){this.editor.cmd.do(e)}},k.prototype={constructor:k,_command:function(e){this.editor.cmd.do("foreColor",e)}},E.prototype={constructor:E,_command:function(e){this.editor.cmd.do("backColor",e)}},z.prototype={constructor:z,onClick:function(e){var t=this.editor,o=t.selection.getSelectionContainerElem(),i=o.getNodeName();if(!G.isIE())return void("BLOCKQUOTE"===i?t.cmd.do("formatBlock","

          "):t.cmd.do("formatBlock","

          "));var n=void 0,l=void 0;if("P"===i)return n=o.text(),l=r("
          "+n+"
          "),l.insertAfter(o),void o.remove();"BLOCKQUOTE"===i&&(n=o.text(),l=r("

          "+n+"

          "),l.insertAfter(o),o.remove())},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=/^BLOCKQUOTE$/i,r=t.cmd.queryCommandValue("formatBlock");i.test(r)?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}},C.prototype={constructor:C,onClick:function(e){var t=this.editor,o=t.selection.getSelectionStartElem(),i=t.selection.getSelectionEndElem(),n=t.selection.isSelectionEmpty(),l=t.selection.getSelectionText(),a=void 0;return o.equal(i)?n?void(this._active?this._createPanel(o.html()):this._createPanel()):(a=r(""+l+""),t.cmd.do("insertElem",a),t.selection.createRangeByElem(a,!1),void t.selection.restoreSelection()):void t.selection.restoreSelection()},_createPanel:function(e){var t=this;e=e||"";var o=e?"edit":"new",i=a("texxt"),n=a("btn"),l=new b(this,{width:500,tabs:[{title:"插入代码",tpl:'
          \n \n
          \n \n
          \n
          ',events:[{selector:"#"+n,type:"click",fn:function(){var e=r("#"+i),n=e.val()||e.html();return n=s(n),"new"===o?t._insertCode(n):t._updateCode(n),!0}}]}]});l.show(),this.panel=l},_insertCode:function(e){this.editor.cmd.do("insertHTML","
          "+e+"


          ")},_updateCode:function(e){var t=this.editor,o=t.selection.getSelectionContainerElem();o&&(o.html(e),t.selection.restoreSelection())},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var r=i.parent();"CODE"===i.getNodeName()&&"PRE"===r.getNodeName()?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}}},B.prototype={constructor:B,onClick:function(){this._createPanel()},_createPanel:function(){var e=this,t=this.editor,o=t.config,i=o.emotions||[],n=[];i.forEach(function(t){var o=t.type,i=t.content||[],l="";"emoji"===o&&i.forEach(function(e){e&&(l+=''+e+"")}),"image"===o&&i.forEach(function(e){var t=e.src,o=e.alt;t&&(l+=''+o+'')}),n.push({title:t.title,tpl:'
          '+l+"
          ",events:[{selector:"span.w-e-item",type:"click",fn:function(t){var o=t.target,i=r(o),n=i.getNodeName(),l=void 0;return l="IMG"===n?i.parent().html():""+i.html()+"",e._insert(l),!0}}]})});var l=new b(this,{width:300,height:200,tabs:n});l.show(),this.panel=l},_insert:function(e){this.editor.cmd.do("insertHTML",e)}},S.prototype={constructor:S,onClick:function(){this._active?this._createEditPanel():this._createInsertPanel()},_createInsertPanel:function(){var e=this,t=a("btn"),o=a("row"),i=a("col"),n=new b(this,{width:250,tabs:[{title:"插入表格",tpl:'
          \n

          \n 创建\n \n 行\n \n 列的表格\n

          \n
          \n \n
          \n
          ',events:[{selector:"#"+t,type:"click",fn:function(){var t=parseInt(r("#"+o).val()),n=parseInt(r("#"+i).val());return t&&n&&t>0&&n>0&&e._insert(t,n),!0}}]}]});n.show(),this.panel=n},_insert:function(e,t){var o=void 0,i=void 0,r='';for(o=0;o",0===o)for(i=0;i ";else for(i=0;i ";r+=""}r+="


          ";var n=this.editor;n.cmd.do("insertHTML",r),n.cmd.do("enableObjectResizing",!1),n.cmd.do("enableInlineTableEditing",!1)},_createEditPanel:function(){var e=this,t=a("add-row"),o=a("add-col"),i=a("del-row"),r=a("del-col"),n=a("del-table");new b(this,{width:320,tabs:[{title:"编辑表格",tpl:'
          \n
          \n \n \n \n \n
          \n
          \n \n \n
          ',events:[{selector:"#"+t,type:"click",fn:function(){return e._addRow(),!0}},{selector:"#"+o,type:"click",fn:function(){return e._addCol(),!0}},{selector:"#"+i,type:"click",fn:function(){return e._delRow(),!0}},{selector:"#"+r,type:"click",fn:function(){return e._delCol(),!0}},{selector:"#"+n,type:"click",fn:function(){return e._delTable(),!0}}]}]}).show()},_getLocationData:function(){var e={},t=this.editor,o=t.selection.getSelectionContainerElem();if(o){var i=o.getNodeName();if("TD"===i||"TH"===i){var r=o.parent(),n=r.children(),l=n.length;n.forEach(function(t,i){if(t===o[0])return e.td={index:i,elem:t,length:l},!1});var a=r.parent(),s=a.children(),c=s.length;return s.forEach(function(t,o){if(t===r[0])return e.tr={index:o,elem:t,length:c},!1}),e}}},_addRow:function(){var e=this._getLocationData();if(e){var t=e.tr,o=r(t.elem),i=e.td,n=i.length,l=document.createElement("tr"),a="",s=void 0;for(s=0;s ";l.innerHTML=a,r(l).insertAfter(o)}},_addCol:function(){var e=this._getLocationData();if(e){var t=e.tr,o=e.td,i=o.index;r(t.elem).parent().children().forEach(function(e){var t=r(e),o=t.children(),n=o.get(i),l=n.getNodeName().toLowerCase();r(document.createElement(l)).insertAfter(n)})}},_delRow:function(){var e=this._getLocationData();if(e){r(e.tr.elem).remove()}},_delCol:function(){var e=this._getLocationData();if(e){var t=e.tr,o=e.td,i=o.index;r(t.elem).parent().children().forEach(function(e){r(e).children().get(i).remove()})}},_delTable:function(){var e=this.editor,t=e.selection.getSelectionContainerElem();if(t){var o=t.parentUntil("table");o&&o.remove()}},tryChangeActive:function(e){var t=this.editor,o=this.$elem,i=t.selection.getSelectionContainerElem();if(i){var r=i.getNodeName();"TD"===r||"TH"===r?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}}},I.prototype={constructor:I,onClick:function(){this._createPanel()},_createPanel:function(){var e=this,t=a("text-val"),o=a("btn"),i=new b(this,{width:350,tabs:[{title:"插入视频",tpl:'
          \n \n
          \n \n
          \n
          ',events:[{selector:"#"+o,type:"click",fn:function(){var o=r("#"+t),i=o.val().trim();return i&&e._insert(i),!0}}]}]});i.show(),this.panel=i},_insert:function(e){this.editor.cmd.do("insertHTML",e+"


          ")}},P.prototype={constructor:P,onClick:function(){this.editor.config.qiniu||(this._active?this._createEditPanel():this._createInsertPanel())},_createEditPanel:function(){var e=this.editor,t=a("width-30"),o=a("width-50"),i=a("width-100"),r=a("del-btn"),n=[{title:"编辑图片",tpl:'
          \n
          \n 最大宽度:\n \n \n \n
          \n
          \n \n \n
          ',events:[{selector:"#"+t,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","30%"),!0}},{selector:"#"+o,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","50%"),!0}},{selector:"#"+i,type:"click",fn:function(){var t=e._selectedImg;return t&&t.css("max-width","100%"),!0}},{selector:"#"+r,type:"click",fn:function(){var t=e._selectedImg;return t&&t.remove(),!0}}]}],l=new b(this,{width:300,tabs:n});l.show(),this.panel=l},_createInsertPanel:function(){var e=this.editor,t=e.uploadImg,o=e.config,i=a("up-trigger"),n=a("up-file"),l=a("link-url"),s=a("link-btn"),c=[{title:"上传图片",tpl:'
          \n
          \n \n
          \n
          \n \n
          \n
          ',events:[{selector:"#"+i,type:"click",fn:function(){var e=r("#"+n),t=e[0];if(!t)return!0;t.click()}},{selector:"#"+n,type:"change",fn:function(){var e=r("#"+n),o=e[0];if(!o)return!0;var i=o.files;return i.length&&t.uploadImg(i),!0}}]},{title:"网络图片",tpl:'
          \n \n
          \n \n
          \n
          ',events:[{selector:"#"+s,type:"click",fn:function(){var e=r("#"+l),o=e.val().trim();return o&&t.insertLinkImg(o),!0}}]}],p=[];(o.uploadImgShowBase64||o.uploadImgServer||o.customUploadImg)&&window.FileReader&&p.push(c[0]),o.showLinkImg&&p.push(c[1]);var d=new b(this,{width:300,tabs:p});d.show(),this.panel=d},tryChangeActive:function(e){var t=this.editor,o=this.$elem;t._selectedImg?(this._active=!0,o.addClass("w-e-active")):(this._active=!1,o.removeClass("w-e-active"))}};var K={};K.bold=p,K.head=u,K.fontSize=f,K.fontName=h,K.link=g,K.italic=m,K.redo=x,K.strikeThrough=_,K.underline=w,K.undo=v,K.list=A,K.justify=y,K.foreColor=k,K.backColor=E,K.quote=z,K.code=C,K.emoticon=B,K.table=S,K.video=I,K.image=P,R.prototype={constructor:R,init:function(){var e=this,t=this.editor;((t.config||{}).menus||[]).forEach(function(o){var i=K[o];i&&"function"==typeof i&&(e.menus[o]=new i(t))}),this._addToToolbar(),this._bindEvent()},_addToToolbar:function(){var e=this.editor,t=e.$toolbarElem,o=this.menus,i=e.config,r=i.zIndex+1;n(o,function(e,o){var i=o.$elem;i&&(i.css("z-index",r),t.append(i))})},_bindEvent:function(){var e=this.menus,t=this.editor;n(e,function(e,o){var i=o.type;if(i){var r=o.$elem,n=o.droplist;o.panel;"click"===i&&o.onClick&&r.on("click",function(e){null!=t.selection.getRange()&&o.onClick(e)}),"droplist"===i&&n&&r.on("mouseenter",function(e){null!=t.selection.getRange()&&(n.showTimeoutId=setTimeout(function(){n.show()},200))}).on("mouseleave",function(e){n.hideTimeoutId=setTimeout(function(){n.hide()},0)}),"panel"===i&&o.onClick&&r.on("click",function(e){e.stopPropagation(),null!=t.selection.getRange()&&o.onClick(e)})}})},changeActive:function(){n(this.menus,function(e,t){t.tryChangeActive&&setTimeout(function(){t.tryChangeActive()},100)})}},N.prototype={constructor:N,init:function(){this._bindEvent()},clear:function(){this.html("


          ")},html:function(e){var t=this.editor,o=t.$textElem,i=void 0;if(null==e)return i=o.html(),i=i.replace(/\u200b/gm,""),i;o.html(e),t.initSelection()},getJSON:function(){return L(this.editor.$textElem)},text:function(e){var t=this.editor,o=t.$textElem,i=void 0;if(null==e)return i=o.text(),i=i.replace(/\u200b/gm,""),i;o.text("

          "+e+"

          "),t.initSelection()},append:function(e){var t=this.editor;t.$textElem.append(r(e)),t.initSelection()},_bindEvent:function(){this._saveRangeRealTime(),this._enterKeyHandle(),this._clearHandle(),this._pasteHandle(),this._tabHandle(),this._imgHandle(),this._dragHandle()},_saveRangeRealTime:function(){function e(e){t.selection.saveRange(),t.menus.changeActive()}var t=this.editor,o=t.$textElem;o.on("keyup",e),o.on("mousedown",function(t){o.on("mouseleave",e)}),o.on("mouseup",function(t){e(),o.off("mouseleave",e)})},_enterKeyHandle:function(){function e(e){var t=r("


          ");t.insertBefore(e),i.selection.createRangeByElem(t,!0),i.selection.restoreSelection(),e.remove()}function t(t){var o=i.selection.getSelectionContainerElem(),r=o.parent();if("
          "===r.html())return void e(o);if(r.equal(n)){"P"!==o.getNodeName()&&(o.text()||e(o))}}function o(e){var t=i.selection.getSelectionContainerElem();if(t){var o=t.parent(),n=t.getNodeName(),l=o.getNodeName();if("CODE"===n&&"PRE"===l&&i.cmd.queryCommandSupported("insertHTML")){if(!0===i._willBreakCode){var a=r("


          ");return a.insertAfter(o),i.selection.createRangeByElem(a,!0),i.selection.restoreSelection(),i._willBreakCode=!1,void e.preventDefault()}var s=i.selection.getRange().startOffset;i.cmd.do("insertHTML","\n"),i.selection.saveRange(),i.selection.getRange().startOffset===s&&i.cmd.do("insertHTML","\n");var c=t.html().length;i.selection.getRange().startOffset+1===c&&(i._willBreakCode=!0),e.preventDefault()}}}var i=this.editor,n=i.$textElem;n.on("keyup",function(e){13===e.keyCode&&t(e)}),n.on("keydown",function(e){if(13!==e.keyCode)return void(i._willBreakCode=!1);o(e)})},_clearHandle:function(){var e=this.editor,t=e.$textElem;t.on("keydown",function(e){if(8===e.keyCode){return"


          "===t.html().toLowerCase().trim()?void e.preventDefault():void 0}}),t.on("keyup",function(o){if(8===o.keyCode){var i=void 0,n=t.html().toLowerCase().trim();n&&"
          "!==n||(i=r("


          "),t.html(""),t.append(i),e.selection.createRangeByElem(i,!1,!0),e.selection.restoreSelection())}})},_pasteHandle:function(){function e(){var e=Date.now(),t=!1;return e-s>=100&&(t=!0),s=e,t}function t(){s=0}var o=this.editor,i=o.config,r=i.pasteFilterStyle,n=i.pasteTextHandle,l=i.pasteIgnoreImg,a=o.$textElem,s=0;a.on("paste",function(i){if(!G.isIE()&&(i.preventDefault(),e())){var a=U(i,r,l),s=T(i);s=s.replace(/\n/gm,"
          ");var p=o.selection.getSelectionContainerElem();if(p){var d=p.getNodeName();if("CODE"===d||"PRE"===d)return n&&c(n)&&(s=""+(n(s)||"")),void o.cmd.do("insertHTML","

          "+s+"

          ");if(!a)return void t();try{n&&c(n)&&(a=""+(n(a)||"")),o.cmd.do("insertHTML",a)}catch(e){n&&c(n)&&(s=""+(n(s)||"")),o.cmd.do("insertHTML","

          "+s+"

          ")}}}}),a.on("paste",function(t){if(!G.isIE()&&(t.preventDefault(),e())){var i=D(t);if(i&&i.length){var r=o.selection.getSelectionContainerElem();if(r){var n=r.getNodeName();if("CODE"!==n&&"PRE"!==n){o.uploadImg.uploadImg(i)}}}}})},_tabHandle:function(){var e=this.editor;e.$textElem.on("keydown",function(t){if(9===t.keyCode&&e.cmd.queryCommandSupported("insertHTML")){var o=e.selection.getSelectionContainerElem();if(o){var i=o.parent(),r=o.getNodeName(),n=i.getNodeName();"CODE"===r&&"PRE"===n?e.cmd.do("insertHTML"," "):e.cmd.do("insertHTML","    "),t.preventDefault()}}})},_imgHandle:function(){var e=this.editor,t=e.$textElem;t.on("click","img",function(t){var o=this,i=r(o);"1"!==i.attr("data-w-e")&&(e._selectedImg=i,e.selection.createRangeByElem(i),e.selection.restoreSelection())}),t.on("click keyup",function(t){t.target.matches("img")||(e._selectedImg=null)})},_dragHandle:function(){var e=this.editor;r(document).on("dragleave drop dragenter dragover",function(e){e.preventDefault()}),e.$textElem.on("drop",function(t){t.preventDefault();var o=t.dataTransfer&&t.dataTransfer.files;o&&o.length&&e.uploadImg.uploadImg(o)})}},F.prototype={constructor:F,do:function(e,t){var o=this.editor;if(o._useStyleWithCSS||(document.execCommand("styleWithCSS",null,!0),o._useStyleWithCSS=!0),o.selection.getRange()){o.selection.restoreSelection();var i="_"+e;this[i]?this[i](t):this._execCommand(e,t),o.menus.changeActive(),o.selection.saveRange(),o.selection.restoreSelection(),o.change&&o.change()}},_insertHTML:function(e){var t=this.editor,o=t.selection.getRange();this.queryCommandSupported("insertHTML")?this._execCommand("insertHTML",e):o.insertNode?(o.deleteContents(),o.insertNode(r(e)[0])):o.pasteHTML&&o.pasteHTML(e)},_insertElem:function(e){var t=this.editor,o=t.selection.getRange();o.insertNode&&(o.deleteContents(),o.insertNode(e[0]))},_execCommand:function(e,t){document.execCommand(e,!1,t)},queryCommandValue:function(e){return document.queryCommandValue(e)},queryCommandState:function(e){return document.queryCommandState(e)},queryCommandSupported:function(e){return document.queryCommandSupported(e)}},M.prototype={constructor:M,getRange:function(){return this._currentRange},saveRange:function(e){if(e)return void(this._currentRange=e);var t=window.getSelection();if(0!==t.rangeCount){var o=t.getRangeAt(0),i=this.getSelectionContainerElem(o);if(i&&"false"!==i.attr("contenteditable")&&!i.parentUntil("[contenteditable=false]")){this.editor.$textElem.isContain(i)&&(this._currentRange=o)}}},collapseRange:function(e){null==e&&(e=!1);var t=this._currentRange;t&&t.collapse(e)},getSelectionText:function(){return this._currentRange?this._currentRange.toString():""},getSelectionContainerElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.commonAncestorContainer,r(1===t.nodeType?t:t.parentNode)},getSelectionStartElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.startContainer,r(1===t.nodeType?t:t.parentNode)},getSelectionEndElem:function(e){e=e||this._currentRange;var t=void 0;if(e)return t=e.endContainer,r(1===t.nodeType?t:t.parentNode)},isSelectionEmpty:function(){var e=this._currentRange;return!(!e||!e.startContainer||e.startContainer!==e.endContainer||e.startOffset!==e.endOffset)},restoreSelection:function(){var e=window.getSelection();e.removeAllRanges(),e.addRange(this._currentRange)},createEmptyRange:function(){var e=this.editor,t=this.getRange(),o=void 0;if(t&&this.isSelectionEmpty())try{G.isWebkit()?(e.cmd.do("insertHTML","​"),t.setEnd(t.endContainer,t.endOffset+1),this.saveRange(t)):(o=r(""),e.cmd.do("insertElem",o),this.createRangeByElem(o,!0))}catch(e){}},createRangeByElem:function(e,t,o){if(e.length){var i=e[0],r=document.createRange();o?r.selectNodeContents(i):r.selectNode(i),"boolean"==typeof t&&r.collapse(t),this.saveRange(r)}}},Q.prototype={constructor:Q,show:function(e){var t=this;if(!this._isShow){this._isShow=!0;var o=this.$bar;if(this._isRender)this._isRender=!0;else{this.$textContainer.append(o)}Date.now()-this._time>100&&e<=1&&(o.css("width",100*e+"%"),this._time=Date.now());var i=this._timeoutId;i&&clearTimeout(i),i=setTimeout(function(){t._hide()},500)}},_hide:function(){this.$bar.remove(),this._time=0,this._isShow=!1,this._isRender=!1}};var Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Y.prototype={constructor:Y,_alert:function(e,t){var o=this.editor,i=o.config.debug,r=o.config.customAlert;if(i)throw new Error("wangEditor: "+(t||e));r&&"function"==typeof r?r(e):alert(e)},insertLinkImg:function(e){var t=this;if(e){var o=this.editor,i=o.config,r=i.linkImgCheck,n=void 0;if(r&&"function"==typeof r&&"string"==typeof(n=r(e)))return void alert(n);o.cmd.do("insertHTML",'');var l=document.createElement("img");l.onload=function(){var t=i.linkImgCallback;t&&"function"==typeof t&&t(e),l=null},l.onerror=function(){l=null,t._alert("插入图片错误",'wangEditor: 插入图片出错,图片链接是 "'+e+'",下载该链接失败')},l.onabort=function(){l=null},l.src=e}},uploadImg:function(e){var t=this;if(e&&e.length){var o=this.editor,i=o.config,r=i.uploadImgServer,a=i.uploadImgShowBase64,s=i.uploadImgMaxSize,c=s/1024/1024,p=i.uploadImgMaxLength||1e4,d=i.uploadFileName||"",u=i.uploadImgParams||{},f=i.uploadImgParamsWithUrl,h=i.uploadImgHeaders||{},b=i.uploadImgHooks||{},g=i.uploadImgTimeout||3e3,m=i.withCredentials;null==m&&(m=!1);var x=i.customUploadImg;if(x||r||a){var _=[],w=[];if(l(e,function(e){var t=e.name,o=e.size;if(t&&o)return!1===/\.(jpg|jpeg|png|bmp|gif|webp)$/i.test(t)?void w.push("【"+t+"】不是图片"):sp)return void this._alert("一次最多上传"+p+"张图片");if(x&&"function"==typeof x)return void x(_,this.insertLinkImg.bind(this));var v=new FormData;if(l(_,function(e){var t=d||e.name;v.append(t,e)}),r&&"string"==typeof r){var A=r.split("#");r=A[0];var y=A[1]||"";n(u,function(e,t){f&&(r.indexOf("?")>0?r+="&":r+="?",r=r+e+"="+t),v.append(e,t)}),y&&(r+="#"+y);var k=new XMLHttpRequest;if(k.open("POST",r),k.timeout=g,k.ontimeout=function(){b.timeout&&"function"==typeof b.timeout&&b.timeout(k,o),t._alert("上传图片超时")},k.upload&&(k.upload.onprogress=function(e){var t=void 0,i=new Q(o);e.lengthComputable&&(t=e.loaded/e.total,i.show(t))}),k.onreadystatechange=function(){var e=void 0;if(4===k.readyState){if(k.status<200||k.status>=300)return b.error&&"function"==typeof b.error&&b.error(k,o),void t._alert("上传图片发生错误","上传图片发生错误,服务器返回状态是 "+k.status);if(e=k.responseText,"object"!==(void 0===e?"undefined":Z(e)))try{e=JSON.parse(e)}catch(i){return b.fail&&"function"==typeof b.fail&&b.fail(k,o,e),void t._alert("上传图片失败","上传图片返回结果错误,返回结果是: "+e)}if(b.customInsert||"0"==e.errno){if(b.customInsert&&"function"==typeof b.customInsert)b.customInsert(t.insertLinkImg.bind(t),e,o);else{(e.data||[]).forEach(function(e){t.insertLinkImg(e)})}b.success&&"function"==typeof b.success&&b.success(k,o,e)}else b.fail&&"function"==typeof b.fail&&b.fail(k,o,e),t._alert("上传图片失败","上传图片返回结果错误,返回结果 errno="+e.errno)}},b.before&&"function"==typeof b.before){var E=b.before(k,o,_);if(E&&"object"===(void 0===E?"undefined":Z(E))&&E.prevent)return void this._alert(E.msg)}return n(h,function(e,t){k.setRequestHeader(e,t)}),k.withCredentials=m,void k.send(v)}a&&l(e,function(e){var o=t,i=new FileReader;i.readAsDataURL(e),i.onload=function(){o.insertLinkImg(this.result)}})}}}};var W=1;j.prototype={constructor:j,_initConfig:function(){var e={};this.config=Object.assign(e,H,this.customConfig);var t=this.config.lang||{},o=[];n(t,function(e,t){o.push({reg:new RegExp(e,"img"),val:t})}),this.config.langArgs=o},_initDom:function(){var e=this,t=this.toolbarSelector,o=r(t),i=this.textSelector,n=this.config,l=n.zIndex,s=void 0,c=void 0,p=void 0,d=void 0;null==i?(s=r("
          "),c=r("
          "),d=o.children(),o.append(s).append(c),s.css("background-color","#f1f1f1").css("border","1px solid #ccc"),c.css("border","1px solid #ccc").css("border-top","none").css("height","300px")):(s=o,c=r(i),d=c.children()),p=r("
          "),p.attr("contenteditable","true").css("width","100%").css("height","100%"),d&&d.length?p.append(d):p.append(r("


          ")),c.append(p),s.addClass("w-e-toolbar"),c.addClass("w-e-text-container"),c.css("z-index",l),p.addClass("w-e-text");var u=a("toolbar-elem");s.attr("id",u);var f=a("text-elem");p.attr("id",f),this.$toolbarElem=s,this.$textContainerElem=c,this.$textElem=p,this.toolbarElemId=u,this.textElemId=f;var h=!0;c.on("compositionstart",function(){h=!1}),c.on("compositionend",function(){h=!0}),c.on("click keyup",function(){h&&e.change&&e.change()}),s.on("click",function(){this.change&&this.change()}),(n.onfocus||n.onblur)&&(this.isFocus=!1,r(document).on("click",function(t){var o=p.isContain(r(t.target)),i=s.isContain(r(t.target)),n=s[0]==t.target;if(o)e.isFocus||e.onfocus&&e.onfocus(),e.isFocus=!0;else{if(i&&!n)return;e.isFocus&&e.onblur&&e.onblur(),e.isFocus=!1}}))},_initCommand:function(){this.cmd=new F(this)},_initSelectionAPI:function(){this.selection=new M(this)},_initUploadImg:function(){this.uploadImg=new Y(this)},_initMenus:function(){this.menus=new R(this),this.menus.init()},_initText:function(){this.txt=new N(this),this.txt.init()},initSelection:function(e){var t=this.$textElem,o=t.children();if(!o.length)return t.append(r("


          ")),void this.initSelection();var i=o.last();if(e){var n=i.html().toLowerCase(),l=i.getNodeName();if("
          "!==n&&"
          "!==n||"P"!==l)return t.append(r("


          ")),void this.initSelection()}this.selection.createRangeByElem(i,!1,!0),this.selection.restoreSelection()},_bindEvent:function(){var e=0,t=this.txt.html(),o=this.config,i=o.onchangeTimeout;(!(i=parseInt(i,10))||i<=0)&&(i=200);var r=o.onchange;r&&"function"==typeof r&&(this.change=function(){var o=this.txt.html();o.length===t.length&&o===t||(e&&clearTimeout(e),e=setTimeout(function(){r(o),t=o},i))});var n=o.onblur;n&&"function"==typeof n&&(this.onblur=function(){var e=this.txt.html();n(e)});var l=o.onfocus;l&&"function"==typeof l&&(this.onfocus=function(){l()})},create:function(){this._initConfig(),this._initDom(),this._initCommand(),this._initSelectionAPI(),this._initText(),this._initMenus(),this._initUploadImg(),this.initSelection(!0),this._bindEvent()},_offAllEvent:function(){r.offAll()}};try{document}catch(e){throw new Error("请在浏览器环境下运行")}!function(){"function"!=typeof Object.assign&&(Object.assign=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(e),i=1;i=0&&t.item(o)!==this;);return o>-1})}();var $=document.createElement("style");return $.type="text/css",$.innerHTML='.w-e-toolbar,.w-e-text-container,.w-e-menu-panel { padding: 0; margin: 0; box-sizing: border-box;}.w-e-toolbar *,.w-e-text-container *,.w-e-menu-panel * { padding: 0; margin: 0; box-sizing: border-box;}.w-e-clear-fix:after { content: ""; display: table; clear: both;}.w-e-toolbar .w-e-droplist { position: absolute; left: 0; top: 0; background-color: #fff; border: 1px solid #f1f1f1; border-right-color: #ccc; border-bottom-color: #ccc;}.w-e-toolbar .w-e-droplist .w-e-dp-title { text-align: center; color: #999; line-height: 2; border-bottom: 1px solid #f1f1f1; font-size: 13px;}.w-e-toolbar .w-e-droplist ul.w-e-list { list-style: none; line-height: 1;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { color: #333; padding: 5px 0;}.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { background-color: #f1f1f1;}.w-e-toolbar .w-e-droplist ul.w-e-block { list-style: none; text-align: left; padding: 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { display: inline-block; *display: inline; *zoom: 1; padding: 3px 5px;}.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { background-color: #f1f1f1;}@font-face { font-family: \'w-e-icon\'; src: url(data:application/x-font-woff;charset=utf-8;base64,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) format(\'truetype\'); font-weight: normal; font-style: normal;}[class^="w-e-icon-"],[class*=" w-e-icon-"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: \'w-e-icon\' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}.w-e-icon-close:before { content: "\\f00d";}.w-e-icon-upload2:before { content: "\\e9c6";}.w-e-icon-trash-o:before { content: "\\f014";}.w-e-icon-header:before { content: "\\f1dc";}.w-e-icon-pencil2:before { content: "\\e906";}.w-e-icon-paint-brush:before { content: "\\f1fc";}.w-e-icon-image:before { content: "\\e90d";}.w-e-icon-play:before { content: "\\e912";}.w-e-icon-location:before { content: "\\e947";}.w-e-icon-undo:before { content: "\\e965";}.w-e-icon-redo:before { content: "\\e966";}.w-e-icon-quotes-left:before { content: "\\e977";}.w-e-icon-list-numbered:before { content: "\\e9b9";}.w-e-icon-list2:before { content: "\\e9bb";}.w-e-icon-link:before { content: "\\e9cb";}.w-e-icon-happy:before { content: "\\e9df";}.w-e-icon-bold:before { content: "\\ea62";}.w-e-icon-underline:before { content: "\\ea63";}.w-e-icon-italic:before { content: "\\ea64";}.w-e-icon-strikethrough:before { content: "\\ea65";}.w-e-icon-table2:before { content: "\\ea71";}.w-e-icon-paragraph-left:before { content: "\\ea77";}.w-e-icon-paragraph-center:before { content: "\\ea78";}.w-e-icon-paragraph-right:before { content: "\\ea79";}.w-e-icon-terminal:before { content: "\\f120";}.w-e-icon-page-break:before { content: "\\ea68";}.w-e-icon-cancel-circle:before { content: "\\ea0d";}.w-e-icon-font:before { content: "\\ea5c";}.w-e-icon-text-heigh:before { content: "\\ea5f";}.w-e-toolbar { display: -webkit-box; display: -ms-flexbox; display: flex; padding: 0 5px; /* flex-wrap: wrap; */ /* 单个菜单 */}.w-e-toolbar .w-e-menu { position: relative; text-align: center; padding: 5px 10px; cursor: pointer;}.w-e-toolbar .w-e-menu i { color: #999;}.w-e-toolbar .w-e-menu:hover i { color: #333;}.w-e-toolbar .w-e-active i { color: #1e88e5;}.w-e-toolbar .w-e-active:hover i { color: #1e88e5;}.w-e-text-container .w-e-panel-container { position: absolute; top: 0; left: 50%; border: 1px solid #ccc; border-top: 0; box-shadow: 1px 1px 2px #ccc; color: #333; background-color: #fff; /* 为 emotion panel 定制的样式 */ /* 上传图片的 panel 定制样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-close { position: absolute; right: 0; top: 0; padding: 5px; margin: 2px 5px 0 0; cursor: pointer; color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-close:hover { color: #333;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title { list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; font-size: 14px; margin: 2px 10px 0 10px; border-bottom: 1px solid #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-item { padding: 3px 5px; color: #999; cursor: pointer; margin: 0 3px; position: relative; top: 1px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-title .w-e-active { color: #333; border-bottom: 1px solid #333; cursor: default; font-weight: 700;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content { padding: 10px 15px 10px 15px; font-size: 16px; /* 输入框的样式 */ /* 按钮的样式 */}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus,.w-e-text-container .w-e-panel-container .w-e-panel-tab-content button:focus { outline: none;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea { width: 100%; border: 1px solid #ccc; padding: 5px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content textarea:focus { border-color: #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text] { border: none; border-bottom: 1px solid #ccc; font-size: 14px; height: 20px; color: #333; text-align: left;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].small { width: 30px; text-align: center;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text].block { display: block; width: 100%; margin: 10px 0;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { border-bottom: 2px solid #1e88e5;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { font-size: 14px; color: #1e88e5; border: none; padding: 5px 10px; background-color: #fff; cursor: pointer; border-radius: 3px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { float: left; margin-right: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { float: right; margin-left: 10px;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { color: #999;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { color: #c24f4a;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { background-color: #f1f1f1;}.w-e-text-container .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { content: ""; display: table; clear: both;}.w-e-text-container .w-e-panel-container .w-e-emoticon-container .w-e-item { cursor: pointer; font-size: 18px; padding: 0 3px; display: inline-block; *display: inline; *zoom: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container { text-align: center;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn { display: inline-block; *display: inline; *zoom: 1; color: #999; cursor: pointer; font-size: 60px; line-height: 1;}.w-e-text-container .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover { color: #333;}.w-e-text-container { position: relative;}.w-e-text-container .w-e-progress { position: absolute; background-color: #1e88e5; bottom: 0; left: 0; height: 1px;}.w-e-text { padding: 0 10px; overflow-y: scroll;}.w-e-text p,.w-e-text h1,.w-e-text h2,.w-e-text h3,.w-e-text h4,.w-e-text h5,.w-e-text table,.w-e-text pre { margin: 10px 0; line-height: 1.5;}.w-e-text ul,.w-e-text ol { margin: 10px 0 10px 20px;}.w-e-text blockquote { display: block; border-left: 8px solid #d0e5f2; padding: 5px 10px; margin: 10px 0; line-height: 1.4; font-size: 100%; background-color: #f1f1f1;}.w-e-text code { display: inline-block; *display: inline; *zoom: 1; background-color: #f1f1f1; border-radius: 3px; padding: 3px 5px; margin: 0 3px;}.w-e-text pre code { display: block;}.w-e-text table { border-top: 1px solid #ccc; border-left: 1px solid #ccc;}.w-e-text table td,.w-e-text table th { border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; padding: 3px 5px;}.w-e-text table th { border-bottom: 2px solid #ccc; text-align: center;}.w-e-text:focus { outline: none;}.w-e-text img { cursor: pointer;}.w-e-text img:hover { box-shadow: 0 0 5px #333;}',document.getElementsByTagName("HEAD").item(0).appendChild($),window.wangEditor||j})}],[149]); +//# sourceMappingURL=index.js.map?e0d7e5de80109913da55 \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/manifest.js b/zyplayer-doc-wiki/src/main/resources/manifest.js index 59a25d9b..e45eea70 100644 --- a/zyplayer-doc-wiki/src/main/resources/manifest.js +++ b/zyplayer-doc-wiki/src/main/resources/manifest.js @@ -1,2 +1,2 @@ -!function(e){function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var i,a,f,l=0,s=[];l