From fe1da585acd7c354e06ec1af0b9405a636aa1d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=A4=E8=BA=AB=E6=B3=95?= <328787885@qq.com> Date: Wed, 4 Jan 2023 09:49:05 +0000 Subject: [PATCH] =?UTF-8?q?!7=20md=E9=A2=84=E8=A7=88=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20*=20=E5=8A=A0=E5=9B=BE=E6=A0=87=20*=20utf-?= =?UTF-8?q?8=20md=E8=BF=87=E6=BB=A4=E6=A0=BC=E5=BC=8F=20*=20Merge=20branch?= =?UTF-8?q?=20'master'=20of=20https://gitee.com/zyplayer/zyplayer-doc=20*?= =?UTF-8?q?=20jar=E6=89=93=E5=8C=85=20=E6=89=93=E5=8C=85=E7=89=88=E6=9C=AC?= =?UTF-8?q?=20tree=E5=9B=BE=E6=A0=87=20=E9=A2=84=E8=A7=88=E8=BF=87?= =?UTF-8?q?=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zyplayer-doc-manage/pom.xml | 2 +- zyplayer-doc-ui/wiki-ui/package-lock.json | 160 +++++++++--------- .../src/components/layouts/GlobalLayout.vue | 4 + .../src/components/layouts/ShareLayout.vue | 5 + zyplayer-doc-wiki/pom.xml | 7 + .../wiki/controller/WikiPageController.java | 5 + .../doc/wiki/framework/common/MDToText.java | 55 ++++++ .../doc/wiki/service/git/GitService.java | 3 +- ...{index.f468d8c4.css => index.87aebf71.css} | 2 +- .../src/main/resources/dist/doc-wiki.html | 2 +- ....9b1db48e.js => chunk-vendors.fcb2db6f.js} | 0 .../main/resources/dist/js/index.dbe36481.js | 1 + .../main/resources/dist/js/index.ea3c72f8.js | 1 - 13 files changed, 163 insertions(+), 84 deletions(-) create mode 100644 zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/framework/common/MDToText.java rename zyplayer-doc-wiki/src/main/resources/dist/css/{index.f468d8c4.css => index.87aebf71.css} (96%) rename zyplayer-doc-wiki/src/main/resources/dist/js/{chunk-vendors.9b1db48e.js => chunk-vendors.fcb2db6f.js} (100%) create mode 100644 zyplayer-doc-wiki/src/main/resources/dist/js/index.dbe36481.js delete mode 100644 zyplayer-doc-wiki/src/main/resources/dist/js/index.ea3c72f8.js diff --git a/zyplayer-doc-manage/pom.xml b/zyplayer-doc-manage/pom.xml index f4e28326..cd5a9312 100644 --- a/zyplayer-doc-manage/pom.xml +++ b/zyplayer-doc-manage/pom.xml @@ -3,7 +3,7 @@ 4.0.0 zyplayer-doc-manage - war + jar zyplayer-doc-manage 定位为所有文档的管理项目,API接口文档、数据库文档、、、、等 diff --git a/zyplayer-doc-ui/wiki-ui/package-lock.json b/zyplayer-doc-ui/wiki-ui/package-lock.json index 6ac0e20d..aef323d8 100644 --- a/zyplayer-doc-ui/wiki-ui/package-lock.json +++ b/zyplayer-doc-ui/wiki-ui/package-lock.json @@ -1880,44 +1880,6 @@ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "dev": true }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "optional": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "optional": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "optional": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "optional": true - }, "debug": { "version": "4.3.3", "resolved": "https://registry.npmmirror.com/debug/download/debug-4.3.3.tgz", @@ -1927,25 +1889,6 @@ "ms": "2.1.2" } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "optional": true - }, - "loader-utils": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/loader-utils/-/loader-utils-2.0.4.tgz", - "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", - "dev": true, - "optional": true, - "requires": { - "big.js": "^5.2.2", - "emojis-list": "^3.0.0", - "json5": "^2.1.2" - } - }, "ms": { "version": "2.1.2", "resolved": "https://registry.npmmirror.com/ms/download/ms-2.1.2.tgz", @@ -1960,28 +1903,6 @@ "requires": { "minipass": "^3.1.1" } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "optional": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "vue-loader-v16": { - "version": "npm:vue-loader@16.8.3", - "resolved": "https://registry.npmmirror.com/vue-loader/-/vue-loader-16.8.3.tgz", - "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", - "dev": true, - "optional": true, - "requires": { - "chalk": "^4.1.0", - "hash-sum": "^2.0.0", - "loader-utils": "^2.0.0" - } } } }, @@ -11870,6 +11791,87 @@ } } }, + "vue-loader-v16": { + "version": "npm:vue-loader@16.8.3", + "resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz", + "integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==", + "dev": true, + "optional": true, + "requires": { + "chalk": "^4.1.0", + "hash-sum": "^2.0.0", + "loader-utils": "^2.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "optional": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "optional": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "optional": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "optional": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "optional": true + }, + "loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "dev": true, + "optional": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "optional": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, "vue-router": { "version": "3.5.3", "resolved": "https://registry.npmmirror.com/vue-router/download/vue-router-3.5.3.tgz", diff --git a/zyplayer-doc-ui/wiki-ui/src/components/layouts/GlobalLayout.vue b/zyplayer-doc-ui/wiki-ui/src/components/layouts/GlobalLayout.vue index 1444eb65..74d0ede8 100644 --- a/zyplayer-doc-ui/wiki-ui/src/components/layouts/GlobalLayout.vue +++ b/zyplayer-doc-ui/wiki-ui/src/components/layouts/GlobalLayout.vue @@ -50,6 +50,10 @@ @node-click="handleNodeClick" @node-expand="handleNodeExpand" @node-drop="handlePageDrop"> + +   + {{ node.label }} + diff --git a/zyplayer-doc-ui/wiki-ui/src/components/layouts/ShareLayout.vue b/zyplayer-doc-ui/wiki-ui/src/components/layouts/ShareLayout.vue index 4ced1972..7523497c 100644 --- a/zyplayer-doc-ui/wiki-ui/src/components/layouts/ShareLayout.vue +++ b/zyplayer-doc-ui/wiki-ui/src/components/layouts/ShareLayout.vue @@ -12,6 +12,11 @@ :expand-on-click-node="false" :default-expanded-keys="wikiPageExpandedKeys" node-key="id" style="background-color: #fafafa;padding-bottom: 30px;"> + +   + {{ node.label }} + +
本文档使用zyplayer-doc构建
diff --git a/zyplayer-doc-wiki/pom.xml b/zyplayer-doc-wiki/pom.xml index d3ee258e..792830a5 100644 --- a/zyplayer-doc-wiki/pom.xml +++ b/zyplayer-doc-wiki/pom.xml @@ -79,6 +79,13 @@ ooxml-schemas 1.4 + + + + com.atlassian.commonmark + commonmark + 0.10.0 + 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 9ab5f5cb..69b35547 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 @@ -30,6 +30,7 @@ import com.zyplayer.doc.data.utils.CachePrefix; import com.zyplayer.doc.data.utils.CacheUtil; import com.zyplayer.doc.wiki.controller.vo.WikiPageContentVo; import com.zyplayer.doc.wiki.controller.vo.WikiPageVo; +import com.zyplayer.doc.wiki.framework.common.MDToText; import com.zyplayer.doc.wiki.framework.consts.SpaceType; import com.zyplayer.doc.wiki.service.common.WikiPageAuthService; import com.zyplayer.doc.wiki.service.git.GitService; @@ -210,6 +211,10 @@ public class WikiPageController { DocUserDetails currentUser = DocUserUtil.getCurrentUser(); WikiPageContent pageContent = new WikiPageContent(); pageContent.setContent(content); + if(wikiPage.getEditorType()==2) + { + preview = MDToText.mdToText(preview); + } pageContent.setPreview(preview); // 数据库是varchar(16000),所以如果不开启es的话搜索超过16000的文章就搜不到~,es存preview不截断 if (StringUtils.isNotBlank(preview) && preview.length() > 16000) { diff --git a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/framework/common/MDToText.java b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/framework/common/MDToText.java new file mode 100644 index 00000000..7e4ca92e --- /dev/null +++ b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/framework/common/MDToText.java @@ -0,0 +1,55 @@ +package com.zyplayer.doc.wiki.framework.common; + +import org.commonmark.node.Node; +import org.commonmark.parser.Parser; +import org.commonmark.renderer.html.HtmlRenderer; + +public class MDToText { + /** + * 去除html代码中含有的标签 + * @param htmlStr + * @return + */ + private static String delHtmlTags(String htmlStr) { + //定义script的正则表达式,去除js可以防止注入 + String scriptRegex="]*?>[\\s\\S]*?<\\/script>"; + //定义style的正则表达式,去除style样式,防止css代码过多时只截取到css样式代码 + String styleRegex="]*?>[\\s\\S]*?<\\/style>"; + //定义HTML标签的正则表达式,去除标签,只提取文字内容 + String htmlRegex="<[^>]+>"; + //定义空格,回车,换行符,制表符 + String spaceRegex = "\\s*|\t|\r|\n"; + + // 过滤script标签 + htmlStr = htmlStr.replaceAll(scriptRegex, ""); + // 过滤style标签 + htmlStr = htmlStr.replaceAll(styleRegex, ""); + // 过滤html标签 + htmlStr = htmlStr.replaceAll(htmlRegex, ""); + // 过滤空格等 + htmlStr = htmlStr.replaceAll(spaceRegex, ""); + return htmlStr.trim(); // 返回文本字符串 + } + /** + * 获取HTML代码里的内容 + * @param htmlStr + * @returnMARKDOWN取文本 + */ + public static String getTextFromHtml(String htmlStr){ + //去除html标签 + htmlStr = delHtmlTags(htmlStr); + //去除空格" " + htmlStr = htmlStr.replaceAll(" ",""); + return htmlStr; + } + + public static String mdToText(String mdContent){ + Parser parser = Parser.builder().build(); + Node document = parser.parse(mdContent); + HtmlRenderer renderer = HtmlRenderer.builder().build(); + String html= renderer.render(document); + return getTextFromHtml(html); + } + + +} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/service/git/GitService.java b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/service/git/GitService.java index 81182641..625333df 100644 --- a/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/service/git/GitService.java +++ b/zyplayer-doc-wiki/src/main/java/com/zyplayer/doc/wiki/service/git/GitService.java @@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import java.io.File; +import java.nio.charset.Charset; import java.util.Date; import java.util.Set; @@ -158,7 +159,7 @@ public class GitService { treeWalk.setRecursive(false); ObjectId blobId = treeWalk.getObjectId(0); ObjectLoader loader = repository.open(blobId); - return new String(loader.getBytes()); + return new String(loader.getBytes(), Charset.forName("UTF-8")); } catch (Exception e) { log.error("获取git文件内容失败", e); throw new ConfirmException("获取历史版本数据失败:" + e.getMessage()); diff --git a/zyplayer-doc-wiki/src/main/resources/dist/css/index.f468d8c4.css b/zyplayer-doc-wiki/src/main/resources/dist/css/index.87aebf71.css similarity index 96% rename from zyplayer-doc-wiki/src/main/resources/dist/css/index.f468d8c4.css rename to zyplayer-doc-wiki/src/main/resources/dist/css/index.87aebf71.css index bbbafd4f..44ca1044 100644 --- a/zyplayer-doc-wiki/src/main/resources/dist/css/index.f468d8c4.css +++ b/zyplayer-doc-wiki/src/main/resources/dist/css/index.87aebf71.css @@ -1 +1 @@ -::-webkit-scrollbar{width:6px;height:9px;-webkit-appearance:none}::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}::-webkit-scrollbar-track-piece{background:#eee}.create-space-vue .empty-news{text-align:center;padding:100px}.create-space-vue .text-link{color:#444}.create-space-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.create-space-vue .line-title{font-size:14px}.create-space-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.create-space-vue .page-preview-content{font-size:16px;margin-bottom:5px}.create-space-vue .zan-img{vertical-align:middle;margin-top:-3px}.create-space-vue .view-img{font-size:16px;color:#666}.create-space-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.right-resize[data-v-5c90866c]{width:5px;height:100%;cursor:w-resize;background:#fafafa}.right-resize i[data-v-5c90866c]{margin-top:300px;width:5px;height:35px;display:inline-block;word-wrap:break-word;word-break:break-all;line-height:8px;border-radius:5px;background:#ccc;color:#888}.about-zyplayer-doc{text-align:left;line-height:normal}.about-zyplayer-doc .el-dialog__body{padding:20px}body,html{margin:0;padding:0}#app,.el-container,.el-menu,.global-layout-vue,body,html{height:100%}.el-header{background-color:#1d4e89!important}.header-right-user-name{color:#fff;padding-right:5px}.el-header{color:#333;line-height:40px;text-align:right;height:40px!important}.el-icon-fold{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.el-icon-fold:hover{color:#eee}.head-icon{margin-right:15px;font-size:16px;cursor:pointer;color:#fff}.header-user-message .page-info-box{text-align:right;margin-top:10px}.upgrade-info{max-height:150px;overflow-y:auto;word-break:break-all;white-space:pre-wrap;line-height:26px}.search-option-item,.search-option-item .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-option-item .title{font-weight:700}.search-option-item .content{font-size:12px;color:#888}.search-autocomplete{width:600px!important}#app[data-v-a8a86fe2],body[data-v-a8a86fe2],html[data-v-a8a86fe2]{margin:0;padding:0;height:100%}pre[data-v-a8a86fe2]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-a8a86fe2]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-a8a86fe2]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-a8a86fe2]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-a8a86fe2]{margin-right:3px}.logo[data-v-a8a86fe2]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-a8a86fe2]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-a8a86fe2]:hover{color:#ccc}.comment-box .head[data-v-a8a86fe2]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-a8a86fe2]{position:fixed;bottom:0;left:0;background:#fafafa;width:240px;text-align:center;padding:5px 0;color:#aaa;font-size:12px}.build-info a[data-v-a8a86fe2]{color:#4183c4;cursor:pointer;text-decoration:none}#app[data-v-6812dd83],body[data-v-6812dd83],html[data-v-6812dd83]{margin:0;padding:0;height:100%}.share-mobile-layout[data-v-6812dd83]{height:100%}.popup-module .header[data-v-6812dd83]{width:100%;height:46px}.popup-module .main[data-v-6812dd83]{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto}.popup-module .footer[data-v-6812dd83]{width:100%;height:26px;position:fixed;bottom:0}pre[data-v-6812dd83]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-6812dd83]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-6812dd83]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-6812dd83]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-6812dd83]{margin-right:3px}.logo[data-v-6812dd83]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-6812dd83]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-6812dd83]:hover{color:#ccc}.comment-box .head[data-v-6812dd83]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-6812dd83]{text-align:center;padding:5px 0;color:#aaa;font-size:12px;margin:10px 0}.build-info a[data-v-6812dd83]{color:#4183c4;cursor:pointer;text-decoration:none}.page-search-vue .empty-news{text-align:center;padding:100px}.page-search-vue .text-link{color:#444}.page-search-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.page-search-vue .line-title{font-size:14px}.page-search-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.page-search-vue .page-preview-content{font-size:16px;margin-bottom:5px}.page-search-vue .zan-img{vertical-align:middle;margin-top:-3px}.page-search-vue .view-img{font-size:16px;color:#666}.page-search-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.mg-editor-box{overflow:auto}.mg-editor-box .user-input{width:1px;height:1px;font-size:1px;background:transparent;opacity:0;position:fixed;top:0;left:0;display:none;z-index:1;-moz-appearance:none;-webkit-appearance:none;appearance:none;border:none;resize:none;outline:none;overflow:hidden;padding:0 1px;margin:0 -1px;contain:strict;-ms-user-select:text;-moz-user-select:text;-webkit-user-select:text;user-select:text;white-space:pre!important}.mg-editor-box .mg-editor-cursor{display:block;top:42px;left:202px;width:7px;height:14px;color:#f8f8f0;opacity:.2;z-index:4;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;border-left:2px solid;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:step-end;animation-timing-function:step-end;-webkit-animation-name:blink-ace-animate;animation-name:blink-ace-animate;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-transform:translatez(0);transform:translatez(0)}@-webkit-keyframes blink-ace-animate{0%,to{opacity:1}60%{opacity:0}}@keyframes blink-ace-animate{0%,to{opacity:1}60%{opacity:0}}@-webkit-keyframes blink-ace-animate-smooth{0%,to{opacity:1}45%{opacity:1}60%{opacity:0}85%{opacity:0}}@keyframes blink-ace-animate-smooth{0%,to{opacity:1}45%{opacity:1}60%{opacity:0}85%{opacity:0}}.mg-editor{padding:10px;height:100%;width:100%;font-size:16px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:text;background:#272822;color:#fff}.mg-editor:focus{outline:none}.mg-editor:empty:before{content:attr(placeholder);font-size:14px;color:#ccc;line-height:20px;padding-top:10px}.mg-editor-toolbar{position:fixed;top:0;left:0;display:none;z-index:1;padding:5px 6px;background-color:#fff;border-radius:4px;border:1px solid #dee0e3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-shadow:0 6px 24px 0 rgba(31,35,41,.1);box-shadow:0 6px 24px 0 rgba(31,35,41,.1)}.mg-editor-toolbar .iconfont{padding:5px;font-size:24px;cursor:pointer}.mg-editor .list-code{font-size:14px!important;line-height:1.68!important}.mg-editor .list-code code{border:1px solid #dee0e3;display:block;background-color:#f5f6f7;line-height:1.5;padding:6px 8px 3px 45px;font-size:14px;word-break:break-word;margin:5px 0}.mg-editor .list-code code .list-code-span{padding-top:0!important;padding-bottom:0!important;line-height:1.5}.mg-editor .list-code code:before{content:attr(start);display:inline-block;font-size:14px;text-align:right;direction:rtl;text-overflow:ellipsis;overflow:visible;white-space:nowrap;width:0;margin-left:-11px;padding-right:11px;font-weight:400;background-color:transparent;line-height:1.5;color:#8f959e;vertical-align:bottom}.mg-editor .list-code code+code{border-top:none;margin-top:-9px}.mg-editor .ace-editor .list-code code:before{left:4px}.mg-editor .head-h1,.mg-editor .head-h2,.mg-editor .head-h3,.mg-editor .head-h4,.mg-editor .head-h5,.mg-editor .head-h6,.mg-editor .head-h7,.mg-editor .head-h8,.mg-editor .head-h9{font-weight:600;letter-spacing:.02em;line-height:1.65}.mg-editor .head-h1{font-size:26px;margin-bottom:10px}.mg-editor .head-h1 .collapsable-section-handle{font-size:26px}.mg-editor .head-h2{font-size:22px;margin-bottom:8px}.mg-editor .head-h2 .collapsable-section-handle{font-size:22px}.mg-editor .head-h3{font-size:20px;margin-bottom:8px}.mg-editor .head-h3 .collapsable-section-handle{font-size:20px}.mg-editor .head-h4{font-size:18px;margin-bottom:8px}.mg-editor .head-h4 .collapsable-section-handle{font-size:18px}.mg-editor .head-h5,.mg-editor .head-h6,.mg-editor .head-h7,.mg-editor .head-h8,.mg-editor .head-h9{font-size:16px;margin-bottom:6px}.mg-editor .head-h5 .collapsable-section-handle,.mg-editor .head-h6 .collapsable-section-handle,.mg-editor .head-h7 .collapsable-section-handle,.mg-editor .head-h8 .collapsable-section-handle,.mg-editor .head-h9 .collapsable-section-handle{font-size:16px}.mg-editor .bold{font-weight:700}.mg-editor .strikethrough{text-decoration:line-through}@font-face{font-family:iconfont;src:url("data:application/x-font-woff2;charset=utf-8;base64,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") format("woff2")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-h2:before{content:"\e503"}.icon-h1:before{content:"\e504"}.icon-h3:before{content:"\e505"}.icon-hn:before{content:"\e506"}.icon-h4:before{content:"\e507"}.icon-h5:before{content:"\e508"}.icon-h6:before{content:"\e509"}.icon-h7:before{content:"\e50b"}.icon-h8:before{content:"\e50c"}.icon-h9:before{content:"\e50d"}.icon-bold:before{content:"\e50e"}.icon-delete:before{content:"\e50f"}.icon-backcolor:before{content:"\e510"}.icon-orderedlist:before{content:"\e511"}.icon-unorderedlist:before{content:"\e512"}.icon-checkbox:before{content:"\e513"}.icon-link:before{content:"\e514"}.icon-more:before{content:"\e515"}.icon-underline:before{content:"\e516"}.icon-aligncenter:before{content:"\e517"}.icon-alignleft:before{content:"\e518"}.icon-blockquote:before{content:"\e519"}.icon-italic:before{content:"\e51a"}.icon-alignright:before{content:"\e51b"}.icon-inlinecode:before{content:"\e51c"}.icon-inlinecodelist:before{content:"\e51d"}.home-vue .empty-news{text-align:center;padding:100px}.home-vue .text-link{color:#444}.home-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.home-vue .line-title{font-size:14px}.home-vue .page-preview-title{cursor:pointer;font-size:20px;margin:10px 0 5px 0;color:#3a8ee6}.home-vue .page-preview-content{font-size:16px;margin-bottom:5px}.home-vue .zan-img{vertical-align:middle;margin-top:-3px}.home-vue .view-img{font-size:16px;color:#666}.home-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.my-info-vue .box-card{margin:10px}.navigation{width:100%}.navigation-heading{position:fixed;z-index:4;top:150px;max-height:calc(100vh - 250px);width:100%;overflow-y:auto;padding-left:16px;-webkit-box-sizing:border-box;box-sizing:border-box}.navigation-heading .heading-item{padding:5px 0;cursor:pointer;color:#646a73;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navigation-heading .heading-item:hover{color:#3370ff}.navigation-heading .heading-1{padding-left:0}.navigation-heading .heading-2{padding-left:16px}.navigation-heading .heading-3{padding-left:32px}.navigation-heading .heading-4{padding-left:48px}.navigation-heading .heading-5{padding-left:64px}.navigation-heading .heading-6{padding-left:80px}.wang-editor-body{font-size:14px;padding:6px;overflow-y:auto}.wang-editor-body table{border-top:1px solid #ccc;border-left:1px solid #ccc}.wang-editor-body table td,.wang-editor-body table th{border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:3px 5px}.wang-editor-body table th{border-bottom:2px solid #ccc;text-align:center}.wang-editor-body blockquote{display:block;border-left:8px solid #d0e5f2;padding:5px 10px;margin:10px 0;line-height:1.4;font-size:100%;background-color:#f1f1f1}.wang-editor-body code{display:inline-block;*display:inline;*zoom:1;background-color:#f1f1f1;border-radius:3px;padding:3px 5px;margin:0 3px}.wang-editor-body pre code{display:block}.page-show-vue{height:100%;overflow:hidden}.page-show-vue .icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.page-show-vue .icon-collapse:hover{color:#eee}.page-show-vue .wiki-title{font-size:20px;text-align:center;font-weight:700}.page-show-vue .create-user-time{margin-right:20px}.page-show-vue .wiki-author{font-size:14px;color:#888;padding:20px 0;height:40px;line-height:40px}.page-show-vue .wiki-page-content img{cursor:pointer;max-width:100%}.page-show-vue .wiki-page-content img:hover{-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,.3);box-shadow:0 2px 6px 0 rgba(0,0,0,.3)}.page-show-vue .upload-page-file .el-upload-list{display:none}.page-show-vue .is-link{color:#1e88e5;cursor:pointer}.page-show-vue #newPageContentDiv .w-e-text-container{height:600px!important}.page-show-vue .head{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.page-show-vue .el-tabs__header{margin:0}.page-show-vue .el-tabs__nav-wrap{padding:0 20px}.page-show-vue .close-action-tab{position:absolute;right:15px;top:12px;cursor:pointer;z-index:1}.page-show-vue .action-tab-box{height:calc(100vh - 120px);overflow:auto;padding:20px 10px}.page-show-vue .action-box-empty{text-align:center;padding-top:30px;color:#888;font-size:14px}.page-show-vue .history-item{height:55px;line-height:25px;cursor:pointer;vertical-align:middle}.page-show-vue .history-loading-status{margin-left:5px;color:#67c23a}.page-show-vue .history-loading-status.el-icon-circle-close{color:#f56c6c}.page-show-vue .el-timeline{-webkit-padding-start:0;padding-inline-start:0}.page-show-vue .comment-user-name{margin-bottom:10px}.page-show-vue .comment-content{padding:0;color:#666;margin:0;white-space:pre-wrap;word-wrap:break-word;line-height:20px}.page-show-vue .comment-input-box{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #f1f1f1}.page-show-vue .comment-input-box textarea{resize:none;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;border:0;outline:none!important;padding:10px}.page-show-vue .comment-card .comment-user-name .el-icon-delete{color:#888;font-size:13px;cursor:pointer;float:right;display:none}.mobile-qr,.page-show-vue .comment-card:hover .comment-user-name .el-icon-delete{display:inline-block}.mobile-qr{width:250px;height:250px;border:1px solid #ccc;border-radius:4px;margin-bottom:10px;padding:5px}.wang-editor-box{background-color:#f5f5f5}.wang-editor-box .top-container{border-bottom:1px solid #e8e8e8;padding-left:30px}.wang-editor-box .editor-toolbar{width:1200px;background-color:#fcfcfc;margin:0 auto}.wang-editor-box .editor-toolbar-box{border-bottom:1px solid #e8e8e8;background-color:#fcfcfc}.wang-editor-box .wang-editor-content{padding:20px 0;overflow:auto;height:calc(100vh - 170px)}.wang-editor-box .editor-container{width:850px;margin:0 auto;background-color:#fff;padding:20px 50px 50px 50px;border:1px solid #e8e8e8;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.12);box-shadow:0 2px 10px rgba(0,0,0,.12)}.wang-editor-box .title-container{padding:20px 0;border-bottom:1px solid #e8e8e8}.wang-editor-box .title-container input{font-size:30px;border:0;outline:none;width:100%;line-height:1}.wang-editor-box .editor-text-area{margin-top:20px;min-height:600px}.page-edit-vue .icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.page-edit-vue .icon-collapse:hover{color:#eee}.page-edit-vue .wiki-title{font-size:20px}.page-edit-vue .wiki-author{font-size:14px;color:#888;padding:20px 0;height:40px;line-height:40px}.page-edit-vue .wiki-content{font-size:14px}.page-edit-vue .wiki-content.w-e-text{overflow-y:auto}.page-edit-vue .upload-page-file .el-upload-list{display:none}.page-edit-vue .is-link{color:#1e88e5;cursor:pointer}.page-edit-vue #newPageContentDiv .w-e-text-container{height:100%!important}.page-edit-vue .comment-box .head{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.page-edit-vue .page-content-editor{padding:10px 0}.page-edit-vue .page-title-input{padding-bottom:10px}.space-manage-vue .empty-news{text-align:center;padding:100px}.space-manage-vue .text-link{color:#444}.space-manage-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.space-manage-vue .line-title{font-size:14px}.space-manage-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.space-manage-vue .page-preview-content{font-size:16px;margin-bottom:5px}.space-manage-vue .zan-img{vertical-align:middle;margin-top:-3px}.space-manage-vue .view-img{font-size:16px;color:#666}.space-manage-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.space-manage-vue .favorite-icon{cursor:pointer;font-size:20px}.space-manage-vue .favorite-icon.el-icon-star-on{color:#e6a23c;font-size:24px}.page-share-home-vue .empty-news{text-align:center;padding:100px}.page-share-home-vue .text-link{color:#444}.page-share-home-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.page-share-home-vue .line-title{font-size:14px}.page-share-home-vue .page-preview-title{cursor:pointer;font-size:20px;margin:10px 0 5px 0;color:#3a8ee6}.page-share-home-vue .page-preview-content{font-size:16px;margin-bottom:5px}.page-share-home-vue .zan-img{vertical-align:middle;margin-top:-3px}.page-share-home-vue .view-img{font-size:16px;color:#666}.page-share-home-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.page-share-view-vue .wiki-author{padding:20px 0}.page-share-view-vue .wiki-title{font-size:20px;text-align:center}.page-share-view-vue .wiki-author{font-size:14px;color:#888;height:40px;line-height:40px}.page-share-view-vue .wiki-page-content img{cursor:pointer;max-width:100%}.page-share-view-vue .wiki-page-content img:hover{-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,.3);box-shadow:0 2px 6px 0 rgba(0,0,0,.3)}.page-share-view-vue .upload-page-file .el-upload-list{display:none}.page-share-view-vue .is-link{color:#1e88e5;cursor:pointer}.page-share-view-vue .header{width:100%;height:46px}.page-share-view-vue .main{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto;padding:10px}.page-share-view-vue .footer{width:100%;height:26px;position:fixed;bottom:0} \ No newline at end of file +::-webkit-scrollbar{width:6px;height:9px;-webkit-appearance:none}::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}::-webkit-scrollbar-track-piece{background:#eee}.create-space-vue .empty-news{text-align:center;padding:100px}.create-space-vue .text-link{color:#444}.create-space-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.create-space-vue .line-title{font-size:14px}.create-space-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.create-space-vue .page-preview-content{font-size:16px;margin-bottom:5px}.create-space-vue .zan-img{vertical-align:middle;margin-top:-3px}.create-space-vue .view-img{font-size:16px;color:#666}.create-space-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.right-resize[data-v-5c90866c]{width:5px;height:100%;cursor:w-resize;background:#fafafa}.right-resize i[data-v-5c90866c]{margin-top:300px;width:5px;height:35px;display:inline-block;word-wrap:break-word;word-break:break-all;line-height:8px;border-radius:5px;background:#ccc;color:#888}.about-zyplayer-doc{text-align:left;line-height:normal}.about-zyplayer-doc .el-dialog__body{padding:20px}body,html{margin:0;padding:0}#app,.el-container,.el-menu,.global-layout-vue,body,html{height:100%}.el-header{background-color:#1d4e89!important}.header-right-user-name{color:#fff;padding-right:5px}.el-header{color:#333;line-height:40px;text-align:right;height:40px!important}.el-icon-fold{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.el-icon-fold:hover{color:#eee}.head-icon{margin-right:15px;font-size:16px;cursor:pointer;color:#fff}.header-user-message .page-info-box{text-align:right;margin-top:10px}.upgrade-info{max-height:150px;overflow-y:auto;word-break:break-all;white-space:pre-wrap;line-height:26px}.search-option-item,.search-option-item .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-option-item .title{font-weight:700}.search-option-item .content{font-size:12px;color:#888}.search-autocomplete{width:600px!important}#app[data-v-74f1619a],body[data-v-74f1619a],html[data-v-74f1619a]{margin:0;padding:0;height:100%}pre[data-v-74f1619a]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-74f1619a]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-74f1619a]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-74f1619a]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-74f1619a]{margin-right:3px}.logo[data-v-74f1619a]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-74f1619a]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-74f1619a]:hover{color:#ccc}.comment-box .head[data-v-74f1619a]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-74f1619a]{position:fixed;bottom:0;left:0;background:#fafafa;width:240px;text-align:center;padding:5px 0;color:#aaa;font-size:12px}.build-info a[data-v-74f1619a]{color:#4183c4;cursor:pointer;text-decoration:none}#app[data-v-6812dd83],body[data-v-6812dd83],html[data-v-6812dd83]{margin:0;padding:0;height:100%}.share-mobile-layout[data-v-6812dd83]{height:100%}.popup-module .header[data-v-6812dd83]{width:100%;height:46px}.popup-module .main[data-v-6812dd83]{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto}.popup-module .footer[data-v-6812dd83]{width:100%;height:26px;position:fixed;bottom:0}pre[data-v-6812dd83]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-6812dd83]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-6812dd83]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-6812dd83]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-6812dd83]{margin-right:3px}.logo[data-v-6812dd83]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-6812dd83]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-6812dd83]:hover{color:#ccc}.comment-box .head[data-v-6812dd83]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-6812dd83]{text-align:center;padding:5px 0;color:#aaa;font-size:12px;margin:10px 0}.build-info a[data-v-6812dd83]{color:#4183c4;cursor:pointer;text-decoration:none}.page-search-vue .empty-news{text-align:center;padding:100px}.page-search-vue .text-link{color:#444}.page-search-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.page-search-vue .line-title{font-size:14px}.page-search-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.page-search-vue .page-preview-content{font-size:16px;margin-bottom:5px}.page-search-vue .zan-img{vertical-align:middle;margin-top:-3px}.page-search-vue .view-img{font-size:16px;color:#666}.page-search-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.mg-editor-box{overflow:auto}.mg-editor-box .user-input{width:1px;height:1px;font-size:1px;background:transparent;opacity:0;position:fixed;top:0;left:0;display:none;z-index:1;-moz-appearance:none;-webkit-appearance:none;appearance:none;border:none;resize:none;outline:none;overflow:hidden;padding:0 1px;margin:0 -1px;contain:strict;-ms-user-select:text;-moz-user-select:text;-webkit-user-select:text;user-select:text;white-space:pre!important}.mg-editor-box .mg-editor-cursor{display:block;top:42px;left:202px;width:7px;height:14px;color:#f8f8f0;opacity:.2;z-index:4;position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;border-left:2px solid;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:step-end;animation-timing-function:step-end;-webkit-animation-name:blink-ace-animate;animation-name:blink-ace-animate;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-transform:translatez(0);transform:translatez(0)}@-webkit-keyframes blink-ace-animate{0%,to{opacity:1}60%{opacity:0}}@keyframes blink-ace-animate{0%,to{opacity:1}60%{opacity:0}}@-webkit-keyframes blink-ace-animate-smooth{0%,to{opacity:1}45%{opacity:1}60%{opacity:0}85%{opacity:0}}@keyframes blink-ace-animate-smooth{0%,to{opacity:1}45%{opacity:1}60%{opacity:0}85%{opacity:0}}.mg-editor{padding:10px;height:100%;width:100%;font-size:16px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:text;background:#272822;color:#fff}.mg-editor:focus{outline:none}.mg-editor:empty:before{content:attr(placeholder);font-size:14px;color:#ccc;line-height:20px;padding-top:10px}.mg-editor-toolbar{position:fixed;top:0;left:0;display:none;z-index:1;padding:5px 6px;background-color:#fff;border-radius:4px;border:1px solid #dee0e3;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-shadow:0 6px 24px 0 rgba(31,35,41,.1);box-shadow:0 6px 24px 0 rgba(31,35,41,.1)}.mg-editor-toolbar .iconfont{padding:5px;font-size:24px;cursor:pointer}.mg-editor .list-code{font-size:14px!important;line-height:1.68!important}.mg-editor .list-code code{border:1px solid #dee0e3;display:block;background-color:#f5f6f7;line-height:1.5;padding:6px 8px 3px 45px;font-size:14px;word-break:break-word;margin:5px 0}.mg-editor .list-code code .list-code-span{padding-top:0!important;padding-bottom:0!important;line-height:1.5}.mg-editor .list-code code:before{content:attr(start);display:inline-block;font-size:14px;text-align:right;direction:rtl;text-overflow:ellipsis;overflow:visible;white-space:nowrap;width:0;margin-left:-11px;padding-right:11px;font-weight:400;background-color:transparent;line-height:1.5;color:#8f959e;vertical-align:bottom}.mg-editor .list-code code+code{border-top:none;margin-top:-9px}.mg-editor .ace-editor .list-code code:before{left:4px}.mg-editor .head-h1,.mg-editor .head-h2,.mg-editor .head-h3,.mg-editor .head-h4,.mg-editor .head-h5,.mg-editor .head-h6,.mg-editor .head-h7,.mg-editor .head-h8,.mg-editor .head-h9{font-weight:600;letter-spacing:.02em;line-height:1.65}.mg-editor .head-h1{font-size:26px;margin-bottom:10px}.mg-editor .head-h1 .collapsable-section-handle{font-size:26px}.mg-editor .head-h2{font-size:22px;margin-bottom:8px}.mg-editor .head-h2 .collapsable-section-handle{font-size:22px}.mg-editor .head-h3{font-size:20px;margin-bottom:8px}.mg-editor .head-h3 .collapsable-section-handle{font-size:20px}.mg-editor .head-h4{font-size:18px;margin-bottom:8px}.mg-editor .head-h4 .collapsable-section-handle{font-size:18px}.mg-editor .head-h5,.mg-editor .head-h6,.mg-editor .head-h7,.mg-editor .head-h8,.mg-editor .head-h9{font-size:16px;margin-bottom:6px}.mg-editor .head-h5 .collapsable-section-handle,.mg-editor .head-h6 .collapsable-section-handle,.mg-editor .head-h7 .collapsable-section-handle,.mg-editor .head-h8 .collapsable-section-handle,.mg-editor .head-h9 .collapsable-section-handle{font-size:16px}.mg-editor .bold{font-weight:700}.mg-editor .strikethrough{text-decoration:line-through}@font-face{font-family:iconfont;src:url("data:application/x-font-woff2;charset=utf-8;base64,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") format("woff2")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-h2:before{content:"\e503"}.icon-h1:before{content:"\e504"}.icon-h3:before{content:"\e505"}.icon-hn:before{content:"\e506"}.icon-h4:before{content:"\e507"}.icon-h5:before{content:"\e508"}.icon-h6:before{content:"\e509"}.icon-h7:before{content:"\e50b"}.icon-h8:before{content:"\e50c"}.icon-h9:before{content:"\e50d"}.icon-bold:before{content:"\e50e"}.icon-delete:before{content:"\e50f"}.icon-backcolor:before{content:"\e510"}.icon-orderedlist:before{content:"\e511"}.icon-unorderedlist:before{content:"\e512"}.icon-checkbox:before{content:"\e513"}.icon-link:before{content:"\e514"}.icon-more:before{content:"\e515"}.icon-underline:before{content:"\e516"}.icon-aligncenter:before{content:"\e517"}.icon-alignleft:before{content:"\e518"}.icon-blockquote:before{content:"\e519"}.icon-italic:before{content:"\e51a"}.icon-alignright:before{content:"\e51b"}.icon-inlinecode:before{content:"\e51c"}.icon-inlinecodelist:before{content:"\e51d"}.home-vue .empty-news{text-align:center;padding:100px}.home-vue .text-link{color:#444}.home-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.home-vue .line-title{font-size:14px}.home-vue .page-preview-title{cursor:pointer;font-size:20px;margin:10px 0 5px 0;color:#3a8ee6}.home-vue .page-preview-content{font-size:16px;margin-bottom:5px}.home-vue .zan-img{vertical-align:middle;margin-top:-3px}.home-vue .view-img{font-size:16px;color:#666}.home-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.my-info-vue .box-card{margin:10px}.navigation{width:100%}.navigation-heading{position:fixed;z-index:4;top:150px;max-height:calc(100vh - 250px);width:100%;overflow-y:auto;padding-left:16px;-webkit-box-sizing:border-box;box-sizing:border-box}.navigation-heading .heading-item{padding:5px 0;cursor:pointer;color:#646a73;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.navigation-heading .heading-item:hover{color:#3370ff}.navigation-heading .heading-1{padding-left:0}.navigation-heading .heading-2{padding-left:16px}.navigation-heading .heading-3{padding-left:32px}.navigation-heading .heading-4{padding-left:48px}.navigation-heading .heading-5{padding-left:64px}.navigation-heading .heading-6{padding-left:80px}.wang-editor-body{font-size:14px;padding:6px;overflow-y:auto}.wang-editor-body table{border-top:1px solid #ccc;border-left:1px solid #ccc}.wang-editor-body table td,.wang-editor-body table th{border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:3px 5px}.wang-editor-body table th{border-bottom:2px solid #ccc;text-align:center}.wang-editor-body blockquote{display:block;border-left:8px solid #d0e5f2;padding:5px 10px;margin:10px 0;line-height:1.4;font-size:100%;background-color:#f1f1f1}.wang-editor-body code{display:inline-block;*display:inline;*zoom:1;background-color:#f1f1f1;border-radius:3px;padding:3px 5px;margin:0 3px}.wang-editor-body pre code{display:block}.page-show-vue{height:100%;overflow:hidden}.page-show-vue .icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.page-show-vue .icon-collapse:hover{color:#eee}.page-show-vue .wiki-title{font-size:20px;text-align:center;font-weight:700}.page-show-vue .create-user-time{margin-right:20px}.page-show-vue .wiki-author{font-size:14px;color:#888;padding:20px 0;height:40px;line-height:40px}.page-show-vue .wiki-page-content img{cursor:pointer;max-width:100%}.page-show-vue .wiki-page-content img:hover{-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,.3);box-shadow:0 2px 6px 0 rgba(0,0,0,.3)}.page-show-vue .upload-page-file .el-upload-list{display:none}.page-show-vue .is-link{color:#1e88e5;cursor:pointer}.page-show-vue #newPageContentDiv .w-e-text-container{height:600px!important}.page-show-vue .head{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.page-show-vue .el-tabs__header{margin:0}.page-show-vue .el-tabs__nav-wrap{padding:0 20px}.page-show-vue .close-action-tab{position:absolute;right:15px;top:12px;cursor:pointer;z-index:1}.page-show-vue .action-tab-box{height:calc(100vh - 120px);overflow:auto;padding:20px 10px}.page-show-vue .action-box-empty{text-align:center;padding-top:30px;color:#888;font-size:14px}.page-show-vue .history-item{height:55px;line-height:25px;cursor:pointer;vertical-align:middle}.page-show-vue .history-loading-status{margin-left:5px;color:#67c23a}.page-show-vue .history-loading-status.el-icon-circle-close{color:#f56c6c}.page-show-vue .el-timeline{-webkit-padding-start:0;padding-inline-start:0}.page-show-vue .comment-user-name{margin-bottom:10px}.page-show-vue .comment-content{padding:0;color:#666;margin:0;white-space:pre-wrap;word-wrap:break-word;line-height:20px}.page-show-vue .comment-input-box{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #f1f1f1}.page-show-vue .comment-input-box textarea{resize:none;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;border:0;outline:none!important;padding:10px}.page-show-vue .comment-card .comment-user-name .el-icon-delete{color:#888;font-size:13px;cursor:pointer;float:right;display:none}.mobile-qr,.page-show-vue .comment-card:hover .comment-user-name .el-icon-delete{display:inline-block}.mobile-qr{width:250px;height:250px;border:1px solid #ccc;border-radius:4px;margin-bottom:10px;padding:5px}.wang-editor-box{background-color:#f5f5f5}.wang-editor-box .top-container{border-bottom:1px solid #e8e8e8;padding-left:30px}.wang-editor-box .editor-toolbar{width:1200px;background-color:#fcfcfc;margin:0 auto}.wang-editor-box .editor-toolbar-box{border-bottom:1px solid #e8e8e8;background-color:#fcfcfc}.wang-editor-box .wang-editor-content{padding:20px 0;overflow:auto;height:calc(100vh - 170px)}.wang-editor-box .editor-container{width:850px;margin:0 auto;background-color:#fff;padding:20px 50px 50px 50px;border:1px solid #e8e8e8;-webkit-box-shadow:0 2px 10px rgba(0,0,0,.12);box-shadow:0 2px 10px rgba(0,0,0,.12)}.wang-editor-box .title-container{padding:20px 0;border-bottom:1px solid #e8e8e8}.wang-editor-box .title-container input{font-size:30px;border:0;outline:none;width:100%;line-height:1}.wang-editor-box .editor-text-area{margin-top:20px;min-height:600px}.page-edit-vue .icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.page-edit-vue .icon-collapse:hover{color:#eee}.page-edit-vue .wiki-title{font-size:20px}.page-edit-vue .wiki-author{font-size:14px;color:#888;padding:20px 0;height:40px;line-height:40px}.page-edit-vue .wiki-content{font-size:14px}.page-edit-vue .wiki-content.w-e-text{overflow-y:auto}.page-edit-vue .upload-page-file .el-upload-list{display:none}.page-edit-vue .is-link{color:#1e88e5;cursor:pointer}.page-edit-vue #newPageContentDiv .w-e-text-container{height:100%!important}.page-edit-vue .comment-box .head{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.page-edit-vue .page-content-editor{padding:10px 0}.page-edit-vue .page-title-input{padding-bottom:10px}.space-manage-vue .empty-news{text-align:center;padding:100px}.space-manage-vue .text-link{color:#444}.space-manage-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.space-manage-vue .line-title{font-size:14px}.space-manage-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.space-manage-vue .page-preview-content{font-size:16px;margin-bottom:5px}.space-manage-vue .zan-img{vertical-align:middle;margin-top:-3px}.space-manage-vue .view-img{font-size:16px;color:#666}.space-manage-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.space-manage-vue .favorite-icon{cursor:pointer;font-size:20px}.space-manage-vue .favorite-icon.el-icon-star-on{color:#e6a23c;font-size:24px}.page-share-home-vue .empty-news{text-align:center;padding:100px}.page-share-home-vue .text-link{color:#444}.page-share-home-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.page-share-home-vue .line-title{font-size:14px}.page-share-home-vue .page-preview-title{cursor:pointer;font-size:20px;margin:10px 0 5px 0;color:#3a8ee6}.page-share-home-vue .page-preview-content{font-size:16px;margin-bottom:5px}.page-share-home-vue .zan-img{vertical-align:middle;margin-top:-3px}.page-share-home-vue .view-img{font-size:16px;color:#666}.page-share-home-vue .page-info-box{text-align:right;margin:20px 0 50px 0}.page-share-view-vue .wiki-author{padding:20px 0}.page-share-view-vue .wiki-title{font-size:20px;text-align:center}.page-share-view-vue .wiki-author{font-size:14px;color:#888;height:40px;line-height:40px}.page-share-view-vue .wiki-page-content img{cursor:pointer;max-width:100%}.page-share-view-vue .wiki-page-content img:hover{-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,.3);box-shadow:0 2px 6px 0 rgba(0,0,0,.3)}.page-share-view-vue .upload-page-file .el-upload-list{display:none}.page-share-view-vue .is-link{color:#1e88e5;cursor:pointer}.page-share-view-vue .header{width:100%;height:46px}.page-share-view-vue .main{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto;padding:10px}.page-share-view-vue .footer{width:100%;height:26px;position:fixed;bottom:0} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html b/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html index 40495cc1..e7a3cdb0 100644 --- a/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html +++ b/zyplayer-doc-wiki/src/main/resources/dist/doc-wiki.html @@ -1 +1 @@ -WIKI文档管理系统
\ No newline at end of file +WIKI文档管理系统
\ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/dist/js/chunk-vendors.9b1db48e.js b/zyplayer-doc-wiki/src/main/resources/dist/js/chunk-vendors.fcb2db6f.js similarity index 100% rename from zyplayer-doc-wiki/src/main/resources/dist/js/chunk-vendors.9b1db48e.js rename to zyplayer-doc-wiki/src/main/resources/dist/js/chunk-vendors.fcb2db6f.js diff --git a/zyplayer-doc-wiki/src/main/resources/dist/js/index.dbe36481.js b/zyplayer-doc-wiki/src/main/resources/dist/js/index.dbe36481.js new file mode 100644 index 00000000..1164d88a --- /dev/null +++ b/zyplayer-doc-wiki/src/main/resources/dist/js/index.dbe36481.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var i,s,r=t[0],l=t[1],c=t[2],u=0,p=[];u ")])],1)]}}])})],1),a("div",{staticClass:"page-info-box"},[a("el-pagination",{attrs:{"current-page":e.userMsgParam.pageNum,"page-size":e.userMsgParam.pageSize,total:e.userMsgTotalCount,layout:"prev, pager, next, total"},on:{"current-change":e.handleCurrentChange}})],1)],1)],1),a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.userSettingDropdown}},[a("i",{staticClass:"el-icon-setting head-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"console"}},[e._v("控制台")]),a("el-dropdown-item",{attrs:{command:"aboutDoc"}},[e._v("关于")]),a("el-dropdown-item",{attrs:{command:"userSignOut",divided:""}},[e._v("退出登录")])],1)],1)],1),a("el-main",{staticStyle:{padding:"0","border-left":"1px solid #dcdfe6"}},[a("router-view",{attrs:{spaceId:e.choiceSpace,spaceInfo:e.getSpaceInfo(e.choiceSpace)},on:{changeExpandedKeys:e.changeWikiPageExpandedKeys,loadPageList:e.loadPageList,loadSpace:e.loadSpaceList,switchSpace:e.switchSpacePage}})],1)],1)],1),a("create-space",{ref:"createSpace",on:{success:e.loadSpaceList}}),a("about-dialog",{ref:"aboutDialog"})],1)},f=[],m=(a("4ec9"),a("3ca3"),a("ddb0"),a("498a"),a("4de4"),a("a15b"),a("7db0"),a("4328")),v=a.n(m),w=a("bc3a"),y=a.n(w),b=y.a.create({baseURL:"./",timeout:1e4,headers:{"Content-type":"application/x-www-form-urlencoded"},withCredentials:!0}),k={"/zyplayer-doc-db/executor/execute":!0};b.interceptors.request.use((function(e){return e.needValidateResult=!0,k[e.url]&&(e.needValidateResult=!1),e}),(function(e){return console.log(e),Promise.reject(e)})),b.interceptors.response.use((function(e){if(e.message)ka.$message.error("请求错误:"+e.message);else{if(!e.config.needValidateResult||200==e.data.errCode)return e.data;if(400==e.data.errCode){ka.$message.error("请先登录");var t=encodeURIComponent(window.location.href);window.location="./#/user/login?redirect="+t}else 402==e.data.errCode?ka.$router.push("/common/noAuth"):200!==e.data.errCode&&ka.$message.error(e.data.errMsg||"未知错误")}return Promise.reject("请求错误")}),(function(e){return console.log("err"+e),ka.$message.info("请求错误:"+e.message),Promise.reject(e)}));var x=b,S={userLogin:function(e){return x({url:"/login",method:"post",data:v.a.stringify(e)})},userLogout:function(){return x({url:"/logout",method:"post",data:v.a.stringify({})})},getSelfUserInfo:function(){return x({url:"/user/info/selfInfo",method:"post",data:v.a.stringify({})})},getUserBaseInfo:function(e){return x({url:"/zyplayer-doc-wiki/common/user/base",method:"post",data:v.a.stringify(e)})},userGroupList:function(e){return x({url:"/user/group/list",method:"post",data:v.a.stringify(e)})},getUserMessageList:function(e){return x({url:"/user/message/list",method:"post",data:v.a.stringify(e)})},readUserMessage:function(e){return x({url:"/user/message/read",method:"post",data:v.a.stringify(e)})},deleteUserMessage:function(e){return x({url:"/user/message/delete",method:"post",data:v.a.stringify(e)})}},P={pageUpdate:function(e){return x({url:"/zyplayer-doc-wiki/page/update",method:"post",data:v.a.stringify(e)})},pageChangeParent:function(e){return x({url:"/zyplayer-doc-wiki/page/changeParent",method:"post",data:v.a.stringify(e)})},pageList:function(e){return x({url:"/zyplayer-doc-wiki/page/list",method:"post",data:v.a.stringify(e)})},updatePage:function(e){return x({url:"/zyplayer-doc-wiki/page/update",method:"post",data:v.a.stringify(e)})},pageDetail:function(e){return x({url:"/zyplayer-doc-wiki/page/detail",method:"post",data:v.a.stringify(e)})},pageDelete:function(e){return x({url:"/zyplayer-doc-wiki/page/delete",method:"post",data:v.a.stringify(e)})},pageHistoryList:function(e){return x({url:"/zyplayer-doc-wiki/page/history/list",method:"post",data:v.a.stringify(e)})},pageHistoryDetail:function(e){return x({url:"/zyplayer-doc-wiki/page/history/detail",method:"post",data:v.a.stringify(e)})},pageNews:function(e){return x({url:"/zyplayer-doc-wiki/page/news",method:"post",data:v.a.stringify(e)})},pageSearchByEs:function(e){return x({url:"/zyplayer-doc-wiki/page/searchByEs",method:"post",data:v.a.stringify(e)})},pageLock:function(e){return x({url:"/zyplayer-doc-wiki/page/lock",method:"post",data:v.a.stringify(e)})},pageUnlock:function(e){return x({url:"/zyplayer-doc-wiki/page/unlock",method:"post",data:v.a.stringify(e)})},spaceFavoriteUpdate:function(e){return x({url:"/zyplayer-doc-wiki/space/favorite/update",method:"post",data:v.a.stringify(e)})},spaceAuthAssign:function(e){return x({url:"/zyplayer-doc-wiki/space/auth/assign",method:"post",data:v.a.stringify(e)})},spaceAuthList:function(e){return x({url:"/zyplayer-doc-wiki/space/auth/list",method:"post",data:v.a.stringify(e)})},spaceSettingList:function(e){return x({url:"/zyplayer-doc-wiki/space/setting/list",method:"post",data:v.a.stringify(e)})},spaceSettingUpdate:function(e){return x({url:"/zyplayer-doc-wiki/space/setting/update",method:"post",data:v.a.stringify(e)})},spaceList:function(e){return x({url:"/zyplayer-doc-wiki/space/list",method:"post",data:v.a.stringify(e)})},updateSpace:function(e){return x({url:"/zyplayer-doc-wiki/space/update",method:"post",data:v.a.stringify(e)})},getPageUserAuthList:function(e){return x({url:"/zyplayer-doc-wiki/page/auth/list",method:"post",data:v.a.stringify(e)})},assignPageUserAuth:function(e){return x({url:"/zyplayer-doc-wiki/page/auth/assign",method:"post",data:v.a.stringify(e)})},deletePageFile:function(e){return x({url:"/zyplayer-doc-wiki/page/file/delete",method:"post",data:v.a.stringify(e)})},pageCommentList:function(e){return x({url:"/zyplayer-doc-wiki/page/comment/list",method:"post",data:v.a.stringify(e)})},updatePageComment:function(e){return x({url:"/zyplayer-doc-wiki/page/comment/update",method:"post",data:v.a.stringify(e)})},deletePageComment:function(e){return x({url:"/zyplayer-doc-wiki/page/comment/delete",method:"post",data:v.a.stringify(e)})},pageZanList:function(e){return x({url:"/zyplayer-doc-wiki/page/zan/list",method:"post",data:v.a.stringify(e)})},updatePageZan:function(e){return x({url:"/zyplayer-doc-wiki/page/zan/update",method:"post",data:v.a.stringify(e)})},openPageDetail:function(e){return x({url:"/zyplayer-doc-wiki/open-api/page/detail",method:"post",data:v.a.stringify(e)})},openPageList:function(e){return x({url:"/zyplayer-doc-wiki/open-api/page/list",method:"post",data:v.a.stringify(e)})},openSpaceInfo:function(e){return x({url:"/zyplayer-doc-wiki/open-api/space/info",method:"post",data:v.a.stringify(e)})},openPageNews:function(e){return x({url:"/zyplayer-doc-wiki/open-api/page/news",method:"post",data:v.a.stringify(e)})},xxxxxxxxxxxx:function(e){return x({url:"update",method:"post",data:v.a.stringify(e)})}},C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"create-space-vue"},[a("el-dialog",{attrs:{title:"创建空间",visible:e.newSpaceDialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.newSpaceDialogVisible=t}}},[a("el-form",{ref:"newSpaceForm",attrs:{"label-width":"100px",model:e.newSpaceForm,rules:e.newSpaceFormRules}},[a("el-form-item",{attrs:{label:"空间名:",prop:"name"}},[a("el-input",{model:{value:e.newSpaceForm.name,callback:function(t){e.$set(e.newSpaceForm,"name",t)},expression:"newSpaceForm.name"}})],1),a("el-form-item",{attrs:{label:"空间描述:",prop:"spaceExplain"}},[a("el-input",{model:{value:e.newSpaceForm.spaceExplain,callback:function(t){e.$set(e.newSpaceForm,"spaceExplain",t)},expression:"newSpaceForm.spaceExplain"}})],1),a("el-form-item",{attrs:{label:"空间开放:"}},[a("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),a("el-form-item",{attrs:{label:"空间类型:"}},[a("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"}},[a("el-option",{key:1,attrs:{label:"公共空间",value:1}},[a("span",{staticStyle:{float:"left"}},[e._v("公共空间")]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于公共,登录用户可访问、编辑")])]),a("el-option",{key:2,attrs:{label:"个人空间",value:2}},[a("span",{staticStyle:{float:"left"}},[e._v("个人空间")]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,所有登录用户可访问")])]),a("el-option",{key:3,attrs:{label:"隐私空间",value:3}},[a("span",{staticStyle:{float:"left"}},[e._v("隐私空间")]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,仅创建者可访问")])])],1)],1),a("el-form-item",[e.newSpaceForm.id>0?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("保存修改")]):a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("立即创建")]),a("el-button",{on:{click:e.onNewSpaceCancel}},[e._v("取消")])],1)],1)],1)],1)},_=[],I={data:function(){return{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"}]},editSpaceId:""}},mounted:function(){},methods:{show:function(e){var t=this;this.newSpaceForm={id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},this.editSpaceId=e||"",this.editSpaceId&&P.spaceList({id:this.editSpaceId}).then((function(e){var a=e.data||[];a.length>0&&(t.newSpaceForm=a[0])})),this.newSpaceDialogVisible=!0},onNewSpaceSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var a={id:t.newSpaceForm.id,name:t.newSpaceForm.name,type:t.newSpaceForm.type,openDoc:t.newSpaceForm.openDoc,spaceExplain:t.newSpaceForm.spaceExplain,treeLazyLoad:t.newSpaceForm.treeLazyLoad};P.updateSpace(a).then((function(e){t.$message.success("创建成功"),t.newSpaceDialogVisible=!1,t.$emit("success",e.data.id)}))}}))},onNewSpaceCancel:function(){this.newSpaceDialogVisible=!1}}},L=I,T=(a("34c6"),Object(d["a"])(L,C,_,!1,null,null,null)),D=T.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rightResize",staticClass:"right-resize"},[a("i",{ref:"rightResizeBar"},[e._v("...")])])},N=[],U={data:function(){return{rightAsideWidth:300}},mounted:function(){this.dragChangeRightAsideWidth()},methods:{dragChangeRightAsideWidth:function(){var e=this,t=this.$refs.rightResize,a=this.$refs.rightResizeBar;t.onmousedown=function(i){var n=i.clientX;return t.style.background="#ccc",a.style.background="#aaa",t.left=t.offsetLeft,document.onmousemove=function(t){var a=t.clientX,i=n-a;(i<0&&e.rightAsideWidth<600||i>0&&e.rightAsideWidth>300)&&(n=a,e.rightAsideWidth-=i,e.rightAsideWidth<300&&(e.rightAsideWidth=300),e.$emit("input",e.rightAsideWidth),e.$emit("change",e.rightAsideWidth))},document.onmouseup=function(){t.style.background="#fafafa",a.style.background="#ccc",document.onmousemove=null,document.onmouseup=null},!1}}}},z=U,R=(a("b49e"),Object(d["a"])(z,A,N,!1,null,"5c90866c",null)),E=R.exports,$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关于",visible:e.aboutDialogVisible,width:"600px","custom-class":"about-zyplayer-doc"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[a("div",{},[a("div",{staticStyle:{"font-weight":"bold","font-size":"25px"}},[e._v("zyplayer-doc")]),a("div",{staticStyle:{"line-height":"30px",padding:"10px 0"}},[a("div",[e._v("版本 "+e._s(e.upgradeInfo.nowVersion||"1.0.0"))]),a("div",[e._v("版权所有 © 2018-2021 "),a("a",{attrs:{target:"_blank",href:"http://doc.zyplayer.com"}},[e._v("doc.zyplayer.com")])])]),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"支持"}},[a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("文档:"),a("a",{attrs:{target:"_blank",href:"http://doc.zyplayer.com/doc-wiki#/docs/w4eSzPWvQRSBvaCHZS8t6d"}},[e._v("http://doc.zyplayer.com")])]),a("div",[e._v("主页:"),a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("https://gitee.com/zyplayer/zyplayer-doc")])]),a("div",[e._v("反馈:"),a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc/issues"}},[e._v("https://gitee.com/zyplayer/zyplayer-doc/issues")])]),a("div",[e._v("特性关注&技术交流QQ群:466363173")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("UI/设计/开发/测试")]),a("div",[a("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])])],1)]),a("el-tab-pane",{attrs:{label:"开源软件"}},[a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("此项目基于以下开源软件构建")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("后端")]),a("div",[a("a",{attrs:{target:"_blank",href:"https://spring.io/projects/spring-boot"}},[e._v("Spring-Boot")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"http://www.mybatis.org"}},[e._v("MyBatis")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://github.com/alibaba/druid"}},[e._v("Druid")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://mp.baomidou.com"}},[e._v("MyBatis-Plus")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://www.hutool.cn"}},[e._v("Hutool")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://github.com/alibaba/fastjson"}},[e._v("Fastjson")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://alibaba-easyexcel.github.io"}},[e._v("Easy Excel")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://swagger.io"}},[e._v("Swagger")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"http://www.eclipse.org/jgit"}},[e._v("JGit")]),e._v("、... ")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("前端")]),e._v(" Vue、element-ui、wangeditor、mavon-editor、qrcodejs2、vant、vue-router、axios、vue-hljs、brace、echarts、sql-formatter、vue-clipboard2、... "),a("div")],1)]),e.upgradeInfo.lastVersion?a("el-tab-pane",{attrs:{label:"软件更新"}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 软件更新 "),a("sup",{staticClass:"el-badge__content el-badge__content--undefined is-fixed is-dot",staticStyle:{top:"10px",right:"20px"}})]),a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("当前版本:"+e._s(e.upgradeInfo.nowVersion))]),a("div",[e._v("最新版本:"+e._s(e.upgradeInfo.lastVersion))]),a("div",[e._v("升级地址:"),a("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v(e._s(e.upgradeInfo.upgradeUrl))])]),a("div",[e._v("升级内容:")]),a("pre",{staticStyle:{margin:"0","max-height":"250px",overflow:"auto"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])])]):e._e()],1)],1)])},F=[],O=(a("ac1f"),a("5319"),a("5b81"),{systemUpgradeInfo:function(e){return x({url:"/system/info/upgrade",method:"post",data:v.a.stringify(e)})}}),M={data:function(){return{aboutDialogVisible:!1,upgradeInfo:{}}},mounted:function(){this.checkSystemUpgrade()},methods:{show:function(){this.aboutDialogVisible=!0},checkSystemUpgrade:function(){var e=this;O.systemUpgradeInfo({}).then((function(t){t.data&&(e.upgradeInfo=t.data,e.upgradeInfo.upgradeContent&&(e.upgradeInfo.upgradeContent=e.upgradeInfo.upgradeContent.replaceAll(";","\n"),console.log("zyplayer-doc发现新版本:\n升级地址:"+t.data.upgradeUrl+"\n当前版本:"+t.data.nowVersion+"\n最新版本:"+t.data.lastVersion+"\n升级内容:"+t.data.upgradeContent)))}))}}},H=M,W=(a("1cc7"),Object(d["a"])(H,$,F,!1,null,null,null)),B=W.exports,V={data:function(){return{leftCollapse:!0,rightContentLoading:!1,pathIndex:[],defaultProps:{children:"children",label:"name"},spaceOptions:[],spaceList:[],choiceSpace:"",nowSpaceShow:{},nowPageId:"",treePathDataMap:new Map,searchKeywords:"",wikiPageList:[],wikiPage:{},wikiPageExpandedKeys:[],userSelfInfo:{},userMessageList:[],haveNotReadUserMessage:!1,userMessagePopVisible:!1,userMsgTotalCount:0,userMsgParam:{sysType:2,pageNum:1,pageSize:20},rightAsideWidth:300}},components:{RightResize:E,"create-space":D,"about-dialog":B},computed:{},mounted:function(){this.loadSpaceList(),this.loadUserMessageList(),this.getSelfUserInfo()},methods:{loadPageList:function(e){e=e||{},this.doGetPageList(e.parentId,e.node)},turnLeftCollapse:function(){var e=this;this.leftCollapse=!this.leftCollapse,setTimeout((function(){e.leftCollapse?e.rightAsideWidthChange(e.rightAsideWidth+1):e.rightAsideWidthChange(1)}),100)},createWiki:function(){this.choiceSpace>0?this.$router.push({path:"/page/edit",query:{parentId:this.nowPageId}}):this.$message.warning("请先选择或创建空间")},changeWikiPageExpandedKeys:function(e){},doSearchByKeywords:function(e,t){e&&e.trim()?P.pageNews({spaceId:this.choiceSpace,keywords:e}).then((function(e){var a=e.data||[];t(a)})):t([])},handleSearchKeywordsSelect:function(e){this.searchKeywords="",this.$router.push({path:"/page/show",query:{pageId:e.pageId}})},searchByKeywords:function(){this.$refs.wikiPageTree.filter(this.searchKeywords)},searchByKeywordsNewPage:function(){var e=this.$router.resolve({path:"/page/search",query:{keywords:this.searchKeywords}});window.open(e.href,"_blank")},handleNodeClick:function(e){console.log("点击节点:",e,this.nowPageId),this.nowPageId=e.id,this.$router.push({path:"/page/show",query:{pageId:e.id}}),this.handleNodeExpand(e)},handleNodeExpand:function(e){e.children&&e.children.length>0&&e.children[0].needLoad&&(console.log("加载节点:",e),this.doGetPageList(e.id,e))},handlePageDrop:function(e,t,a,i){var n=this;console.log("tree drop: ",e.data,t.data,a);var o={id:e.data.id,parentId:t.data.parentId};"inner"==a?o.parentId=t.data.id:"before"==a?o.beforeSeq=t.data.seqNo:"after"==a&&(o.afterSeq=t.data.seqNo),P.pageChangeParent(o).then((function(e){n.doGetPageList(null)}))},loadUserMessageIfPopVisible:function(){this.userMessagePopVisible||this.loadUserMessageList()},loadUserMessageList:function(){var e=this;S.getUserMessageList(this.userMsgParam).then((function(t){e.userMessageList=t.data||[],e.userMsgTotalCount=t.total||0,e.haveNotReadUserMessage=e.userMessageList.filter((function(e){return 0==e.msgStatus})).length>0}))},showUserMessage:function(e){var t=this;0==e.msgStatus&&S.readUserMessage({ids:e.id}).then((function(){t.loadUserMessageList()})),e.msgType>=2&&e.msgType<=12&&(this.$router.push({path:"/page/show",query:{pageId:e.dataId}}),this.userMessagePopVisible=!1)},readAllUserMessage:function(){var e=this,t=[];this.userMessageList.filter((function(e){return 0==e.msgStatus})).forEach((function(e){t.push(e.id)})),t.length<=0||S.readUserMessage({ids:t.join(",")}).then((function(){e.$message.success("标记成功"),e.loadUserMessageList()}))},handleCurrentChange:function(e){this.userMsgParam.pageNum=e,this.loadUserMessageList()},filterPageNode:function(e,t){if(!e||!t.name)return!0;var a=t.name.toLowerCase();return-1!==a.indexOf(e.toLowerCase())},spaceChangeEvents:function(e){if(0==e)this.$refs.createSpace.show();else if(-1==e)this.$router.push({path:"/space/manage"});else{this.choiceSpace=e;for(var t=0;t0){var n=e,o=t.spaceList.find((function(t){return t.id==e}));o||(o=t.spaceList[0],n=o.id),t.nowSpaceShow=o,t.choiceSpace=n,t.nowPageId="",t.doGetPageList(null);try{"/home"==t.$router.app._route.path&&t.$router.push({path:"/home",query:{spaceId:n}})}catch(s){console.log(s)}}}))},doGetPageList:function(e,t){var a=this,i={spaceId:this.choiceSpace};P.pageList(i).then((function(e){a.wikiPageList=e.data||[],a.$nextTick((function(){a.nowPageId=a.$route.query.pageId,a.nowPageId&&(console.log("moern?"),a.$refs["wikiPageTree"].setCurrentKey(a.nowPageId))}))}))},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?this.$refs.aboutDialog.show():"myInfo"==e?this.$router.push({path:"/user/myInfo"}):"console"==e?window.open("./","_blank"):this.$message.warning("暂未开放")},userSignOut:function(){S.userLogout().then((function(){location.reload()}))},getSelfUserInfo:function(){var e=this;S.getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))},getSpaceInfo:function(e){for(var t=0;t0?e._l(t.dom,(function(t,n){return a("span",{class:t.cls,attrs:{index:i,subindex:n}},[e._v(e._s(t.text))])})):t.text?[e._v(e._s(t.text))]:a("br")],2):"locate"==t.type?a("div",{class:t.cls,attrs:{index:i},on:{click:function(a){return a.stopPropagation(),e.domClick(t,a)}}},[a("br")]):e._e()]}))],2),a("div",{staticClass:"mg-editor-toolbar",style:e.editorToolbarStyle},[a("span",{staticClass:"iconfont icon-h1",on:{click:function(t){return e.handleToolbarHn("h1")}}}),a("span",{staticClass:"iconfont icon-h2",on:{click:function(t){return e.handleToolbarHn("h2")}}}),a("span",{staticClass:"iconfont icon-h3",on:{click:function(t){return e.handleToolbarHn("h3")}}}),a("span",{staticClass:"iconfont icon-hn"}),a("span",{staticClass:"iconfont icon-bold",on:{click:function(t){return e.handleToolbarBold()}}}),a("span",{staticClass:"iconfont icon-delete",on:{click:function(t){return e.handleToolbarStrikeThrough()}}}),a("span",{staticClass:"iconfont icon-backcolor"}),a("span",{staticClass:"iconfont icon-orderedlist"}),a("span",{staticClass:"iconfont icon-unorderedlist"}),a("span",{staticClass:"iconfont icon-checkbox"}),a("span",{staticClass:"iconfont icon-link"}),a("span",{staticClass:"iconfont icon-more"})]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.userInputData,expression:"userInputData"}],ref:"userInput",staticClass:"user-input",style:e.userInputStyle,domProps:{value:e.userInputData},on:{input:[function(t){t.target.composing||(e.userInputData=t.target.value)},function(t){return e.userInputDataChange()}]}}),a("div",{staticClass:"mg-editor-cursor",style:e.editorCursorStyle})])},xe=[];a("25f0"),a("e9c4"),a("64b7"),a("05e1"),a("6062"),a("1276"),a("a630"),a("99af"),a("4e82"),a("a434");function Se(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";a=a.trim(),this.start=e,this.end=t,this.cls=a,this.clsSet=new Set(a.split(" "))}Se.prototype={constructor:Se,removeClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.trim(),this.hasClass(e)&&(this.clsSet.delete(e),this.cls=Array.from(this.clsSet).join(" "))},hasClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.trim(),this.clsSet.has(e)},addClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.trim(),this.hasClass(e)||(this.clsSet.add(e),this.cls=Array.from(this.clsSet).join(" "))},getSortClass:function(){return Array.from(this.clsSet).sort((function(e,t){return e-t})).join(" ")},classSameAll:function(e){if(e.clsSet.size!=this.clsSet.size)return!1;for(var t=Array.from(e.clsSet),a=0;a0&&void 0!==arguments[0]?arguments[0]:"text",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.type=t,this.text=i,this.target="",this.cls=a,this.clsSet=new Set(a.split(" ")),this.startOffset=-1,this.endOffset=-1,this.dom=[],this.styleRange=[],n.forEach((function(t){e.styleRange.push(new Pe(t.start,t.end,t.cls))}))}Ie.prototype={constructor:Ie,removeClass:function(e){this.hasClass(e)&&(this.clsSet.delete(e),this.cls=Array.from(this.clsSet).join(" "))},hasClass:function(e){return this.clsSet.has(e)},addClass:function(e){return this.hasClass(e)||(this.clsSet.add(e),this.cls=Array.from(this.clsSet).join(" ")),this},setOffset:function(e,t){this.startOffset=e,this.endOffset=t},setOffsetAll:function(){this.startOffset=0,this.endOffset=this.text.length},clearRange:function(){this.startOffset=this.endOffset=-1},addText:function(e,t){if(t){for(var a=0;a=i.start&&e0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.type=e,this.index=t,this.before=a,this.after=i}Te.prototype={constructor:Te};var De=Te;function Ae(e){this.editorDom=e,this.undoRedoList=[],this.undoRedoIndex=-1}Ae.prototype={constructor:Ae,execute:function(e,t,a,i){this.undoRedoIndex>=0&&this.undoRedoIndex=50&&this.undoRedoList.splice(0,1),a=this.handleDomColumn(a),i=this.handleDomColumn(i),this.undoRedoList.push(new De(e,t,a,i)),this.undoRedoIndex=this.undoRedoList.length-1},handleDomColumn:function(e){if(!e)return"";var t=[];return e instanceof Array?e.forEach((function(e){t.push({type:e.type,cls:e.cls,text:e.text,styleRange:e.styleRange})})):t.push({type:e.type,cls:e.cls,text:e.text,styleRange:e.styleRange}),JSON.stringify(t)},undo:function(){var e=this;if(this.undoRedoIndex>=this.undoRedoList.length&&(this.undoRedoIndex=this.undoRedoList.length-1),!(this.undoRedoIndex<0)){var t=this.undoRedoList[this.undoRedoIndex],a=JSON.parse(t.before),i=t.index;a.forEach((function(a){e.undoObjDomToEditor(t,i,a),i++})),this.undoRedoIndex=Math.max(this.undoRedoIndex-1,-1)}},redo:function(){var e=this;if(this.undoRedoIndex++,this.undoRedoIndex<0||this.undoRedoIndex>=this.undoRedoList.length)this.undoRedoIndex--;else{var t=this.undoRedoList[this.undoRedoIndex],a=1==t.type?t.after:t.before,i=JSON.parse(a),n=t.index;i.forEach((function(a){e.redoObjDomToEditor(t,n,a),n++}))}},redoObjDomToEditor:function(e,t,a){var i=new Le(a.type,a.cls,a.text,a.styleRange);i.computerStyleRangeToDom(),1==e.type?this.editorDom.length>t&&ka.$set(this.editorDom,t,i):2==e.type?this.editorDom.length==t?this.editorDom.push(i):this.editorDom.length>t&&this.editorDom.splice(t,0,i):3==e.type&&this.editorDom.length>t&&this.editorDom.splice(t,1)},undoObjDomToEditor:function(e,t,a){var i=new Le(a.type,a.cls,a.text,a.styleRange);i.computerStyleRangeToDom(),1==e.type?this.editorDom.length>t&&ka.$set(this.editorDom,t,i):2==e.type?this.editorDom.length>t&&this.editorDom.splice(t,1):3==e.type&&(this.editorDom.length==t?this.editorDom.push(i):this.editorDom.length>t&&this.editorDom.splice(t,0,i))}};var Ne=Ae,Ue={getSelectionContainer:function(e){var t=window.getSelection().getRangeAt(0).commonAncestorContainer;return 1!=t.nodeType&&(t=t.parentNode),1!=t.nodeType||e&&this.isRootBox(t)?null:t},getRootDom:function(e){var t=this.getRealElem(e);return!t||this.isRootBox(e)?null:this.isRootBox(t.parentNode)?t:this.getRootDom(t.parentNode)},getRealElem:function(e){return e&&1!==e.nodeType?e.parentNode:e},isRootBox:function(e){return this.domHaveClass(e,"mg-editor")},domHaveClass:function(e,t){return e&&e.classList&&e.classList.contains(t)}},ze=(a("1157"),{name:"mg-editor",data:function(){return{editor:{},editorRange:{startOffset:0,endOffset:0,startDomIndex:-1,endDomIndex:-1},userInput:{},userInputStyle:{top:0,left:0,display:"none"},editorCursorStyle:{top:0,left:0,display:"none"},editorToolbarStyle:{top:0,left:0,display:"none"},editorDom:[],editDom:{},userInputData:"",undoRedo:{}}},mounted:function(){var e=this;this.undoRedo=new Ne(this.editorDom),this.editor=this.$refs.mgEditor,this.userInput=this.$refs.userInput,this.editorDom.push(new Le("text","head head-h1")),document.body.addEventListener("click",(function(t){for(var a=Math.min(e.editorDom.length,e.editorRange.endDomIndex),i=e.editorRange.startDomIndex;i=0){for(var c=a.startOffset,d=Ue.getRealElem(a.startContainer).previousSibling;d;)c+=d.innerText.length,d=d.previousSibling;for(var u=e.editorDom[s],p=l?a.endOffset:u.text.length,h=Ue.getRealElem(a.endContainer).previousSibling;h;)p+=h.innerText.length,h=h.previousSibling;u.setOffset(c,p)}if(!l){for(var g=s+1;g=0){var v=e.editorDom[r];v.setOffset(0,f)}}e.editorRange.startDomIndex=s,e.editorRange.endDomIndex=r+1,e.editorToolbarStyle.display="block"}else e.hideToolbar()}else e.hideToolbar()}))},methods:{editorClick:function(e){var t=this.editorDom[this.editorDom.length-1];"locate"!=t.type&&(t=new Le("locate","locate"),this.editorDom.push(t),this.undoRedo.execute(2,this.editorDom.length-1,t,"")),setTimeout((function(){return e.target.lastChild.click()}),100)},domClick:function(e,t){var a=this;setTimeout((function(){return a.domClickTimer(e,t)}),50)},domClickTimer:function(e,t){var a=this;this.editDom=e,this.editDom.target=t.target,this.userInputStyle.top=t.pageY+"px",this.userInputStyle.left=t.pageX+"px",this.userInputStyle.display="block";var i=window.getComputedStyle(t.target),n=parseInt(i.fontSize),o=t.target.offsetTop+n/2/2,s=t.target.offsetLeft;this.editorCursorStyle.top=o+"px",this.editorCursorStyle.left=s+"px",this.editorCursorStyle.height=i.fontSize,this.editorCursorStyle.display="block";var r=this.getSelectionRange();if(null!=r){var l=Ue.getRootDom(r.startContainer),c=Ue.getRootDom(r.endContainer),d=l.getAttribute("index"),u=c.getAttribute("index");if(d==u){for(var p=r.startOffset,h=Ue.getRealElem(r.startContainer).previousSibling;h;h=h.previousSibling)p+=h.innerText.length;for(var g=r.endOffset,f=Ue.getRealElem(r.endContainer).previousSibling;f;f=f.previousSibling)g+=f.innerText.length;this.editorRange.startOffset=p,this.editorRange.endOffset=g,p==g&&(this.hideToolbar(),setTimeout((function(){return a.userInput.focus()}),50))}}else this.hideToolbar()},userInputDataChange:function(){if(this.userInputData){var e;"locate"==this.editDom.type&&(this.editDom.type="text",this.editDom.removeClass("locate"),e=new Le("locate","locate"),this.editorDom.push(e));var t=this.editDom.clone(),a=this.editDom.text||"",i=this.editorRange.startOffset;this.editDom.addText(i,this.userInputData),i0?e.getRangeAt(0):null}}}),Re=ze,Ee=Object(d["a"])(Re,ke,xe,!1,null,null,null),$e=Ee.exports,Fe={data:function(){return{editor:{}}},components:{"mg-editor":$e},mounted:function(){},methods:{}},Oe=Fe,Me=Object(d["a"])(Oe,ye,be,!1,null,null,null),He=Me.exports,We=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._v("没有权限访问该模块")])},Be=[],Ve={data:function(){return{}},mounted:function(){},methods:{}},je=Ve,qe=Object(d["a"])(je,We,Be,!1,null,null,null),Ke=qe.exports,Ge=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"home-vue",staticStyle:{padding:"10px"}},[i("div",{staticStyle:{"max-width":"800px",margin:"0 auto"}},[i("el-tabs",{attrs:{value:"first"}},[i("el-tab-pane",{attrs:{label:e.newsTypesMap[e.searchParam.newsType],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))])]),i("div",{staticClass:"page-preview-box"},[i("div",{staticClass:"page-preview-title",domProps:{innerHTML:e._s(t.pageTitle)},on:{click:function(a){return e.showPageDetail(t)}}}),i("div",{staticClass:"page-preview-content",domProps:{innerHTML:e._s(t.previewContent)}}),i("div",[i("span",[i("img",{staticClass:"zan-img",attrs:{src:a("6c9a")}}),e._v(" "+e._s(t.zanNum)+" ")]),i("span",[i("i",{staticClass:"el-icon-view view-img"}),e._v(" "+e._s(t.viewNum)+" ")]),i("span",[e._v(e._s(t.updateTime||t.createTime))])])])])}))],2)],1)],1)])},Ze=[],Qe={data:function(){return{totalCount:0,searchParam:{spaceId:"",newsType:1,pageNum:1,pageSize:20},spacePageNews:[],newsTypesArr:[{key:1,val:"最近更新"},{key:2,val:"最新创建"},{key:3,val:"查看最多"},{key:4,val:"点赞最多"},{key:5,val:"查看+点赞最多"}],newsTypesMap:{}}},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{getSpacePageNews:function(){var e=this;P.pageNews(this.searchParam).then((function(t){e.spacePageNews=t.data||[]}))},handleSizeChange:function(e){this.searchParam.pageSize=e,this.getSpacePageNews()},showPageDetail:function(e){this.nowClickPath={pageId:e.pageId},this.$router.push({path:"/page/show",query:this.nowClickPath})},handleCurrentChange:function(e){this.searchParam.pageNum=e,this.getSpacePageNews()},initQueryParam:function(e){var t=this;this.searchParam={spaceId:e.query.spaceId,newsType:1,pageNum:1,pageSize:20},this.searchParam.spaceId&&this.getSpacePageNews(),this.newsTypesMap={},this.newsTypesArr.forEach((function(e){return t.newsTypesMap[e.key]=e.val}))}}},Je=Qe,Xe=(a("2629"),Object(d["a"])(Je,Ge,Ze,!1,null,null,null)),Ye=Xe.exports,et=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-info-vue"},[a("div",{staticStyle:{margin:"0 auto","max-width":"1000px"}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e._v("我的信息")]),a("el-form",{staticClass:"search-form-box",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号:"}},[e._v(e._s(e.userInfo.userNo))]),a("el-form-item",{attrs:{label:"用户名:"}},[e._v(e._s(e.userInfo.userName))]),a("el-form-item",{attrs:{label:"手机号:"}},[e._v(e._s(e.userInfo.phone))]),a("el-form-item",{attrs:{label:"邮箱:"}},[e._v(e._s(e.userInfo.email))]),a("el-form-item",{attrs:{label:"状态:"}},[e._v(e._s(0==e.userInfo.delFlag?"正常":"停用"))]),a("el-form-item",{attrs:{label:"性别:"}},[e._v(e._s(0==e.userInfo.sex?"女":"男"))])],1)],1)],1)])},tt=[],at={data:function(){return{userInfo:{}}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;S.getSelfUserInfo().then((function(t){e.userInfo=t.data}))}}},it=at,nt=(a("dcfc"),Object(d["a"])(it,et,tt,!1,null,null,null)),ot=nt.exports,st=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-show-vue"},[i("el-row",{staticStyle:{height:"100%"},attrs:{type:"border-card"}},[i("el-col",{staticStyle:{padding:"20px","border-right":"1px solid #f1f1f1",height:"100%",overflow:"auto"},attrs:{span:e.actionTabVisible?18:24}},[i("el-row",[i("el-col",{attrs:{xs:24,sm:e.navigationList.length>0?20:24,md:e.navigationList.length>0?20:24,lg:e.navigationList.length>0?18:24,xl:e.navigationList.length>0?18:24}},[i("div",{staticStyle:{"max-width":"1000px",margin:"0 auto","padding-left":"10px"}},[i("div",{ref:"wikiTitle",staticClass:"wiki-title"},[e._v(e._s(e.wikiPage.name))]),i("div",{staticClass:"wiki-author"},[i("div",[e.wikiPage.updateUserName?i("span",[e._v(e._s(e.wikiPage.updateUserName)+" 于 "+e._s(e.wikiPage.updateTime)+" 修改")]):i("span",{staticClass:"create-user-time"},[e._v(e._s(e.wikiPage.createUserName)+" 于 "+e._s(e.wikiPage.createTime)+" 创建")]),i("div",{staticStyle:{float:"right"}},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"text",icon:"el-icon-chat-line-round"},on:{click:e.showCommentWiki}},[e._v("评论")]),1==e.wikiPageAuth.canUploadFile?i("el-upload",{staticClass:"upload-page-file",staticStyle:{display:"inline","margin-right":"10px"},attrs:{action:e.uploadFileUrl,"with-credentials":!0,"on-success":e.uploadFileSuccess,"on-error":e.uploadFileError,name:"files","show-file-list":"",multiple:"",data:e.uploadFormData,limit:999}},[i("el-button",{attrs:{type:"text",icon:"el-icon-upload"}},[e._v("上传附件")])],1):e._e(),1==e.wikiPageAuth.canEdit?i("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:e.editWiki}},[e._v("编辑")]):e._e(),i("el-dropdown",{staticStyle:{"margin-left":"10px"},on:{command:e.handleMoreCommand}},[i("el-button",{attrs:{type:"text"}},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"showPageHistory",icon:"el-icon-time"}},[e._v("查看历史版本")]),1==e.wikiPageAuth.canConfigAuth?i("el-dropdown-item",{attrs:{command:"editAuth",icon:"el-icon-s-check"}},[e._v("权限设置")]):e._e(),1==e.spaceInfo.openDoc?i("el-dropdown-item",{attrs:{command:"showOpenPage",icon:"el-icon-share"}},[e._v("查看开放文档")]):e._e(),1==e.spaceInfo.openDoc?i("el-dropdown-item",{attrs:{command:"showMobileView",icon:"el-icon-mobile-phone"}},[e._v("手机端查看")]):e._e(),i("el-dropdown-item",{attrs:{command:"exportWord",icon:"el-icon-download"}},[e._v("导出为Word文档")]),1==e.wikiPageAuth.canDelete?i("el-dropdown-item",{attrs:{command:"deletePage",icon:"el-icon-delete"}},[e._v("删除")]):e._e()],1)],1)],1)])]),i("div",{staticClass:"wiki-files"},[i("el-table",{directives:[{name:"show",rawName:"v-show",value:e.pageFileList.length>0,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))])]}}])}),i("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),i("el-table-column",{attrs:{label:"文件大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.computeFileSize(t.row.fileSize)))]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),i("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}}),1==e.wikiPageAuth.canDeleteFile?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(a){return e.deletePageFile(t.row)}}},[e._v("删除")])]}}],null,!1,2397412326)}):e._e()],1)],1),i("div",{ref:"pageContent",staticClass:"wiki-page-content"},[2==e.wikiPage.editorType?i("div",{directives:[{name:"highlight",rawName:"v-highlight"}],staticClass:"markdown-body",domProps:{innerHTML:e._s(e.pageShowDetail)}}):i("div",{staticClass:"wang-editor-body",domProps:{innerHTML:e._s(e.pageShowDetail)}})]),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){return e.zanPage(1)}}},[i("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:a("6c9a")}}),e._v(" 赞")]),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.wikiPage.selfZan,expression:"wikiPage.selfZan == 1"}],on:{click:function(t){return e.zanPage(0)}}},[i("img",{staticStyle:{"vertical-align":"middle",transform:"rotateX(180deg)"},attrs:{src:a("6c9a")}}),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()]),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)+"次阅读 ")])])])]),e.navigationList.length>0?i("el-col",{attrs:{xs:0,sm:4,md:4,lg:6,xl:6}},[i("Navigation",{ref:"navigation",attrs:{heading:e.navigationList}})],1):e._e()],1)],1),i("el-col",{directives:[{name:"show",rawName:"v-show",value:e.actionTabVisible,expression:"actionTabVisible"}],staticStyle:{height:"100%"},attrs:{span:6}},[i("i",{staticClass:"el-icon-close close-action-tab",on:{click:e.closeActionTab}}),i("el-tabs",{on:{"tab-click":e.actionTabClick},model:{value:e.actionTabActiveName,callback:function(t){e.actionTabActiveName=t},expression:"actionTabActiveName"}},[i("el-tab-pane",{attrs:{label:"评论",name:"comment"}},[i("div",{ref:"actionTabComment",staticClass:"action-tab-box",staticStyle:{"padding-bottom":"130px","box-sizing":"border-box",height:"calc(100vh - 80px)"}},[e.commentList.length<=0?i("div",{staticClass:"action-box-empty"},[e._v("暂无评论")]):i("el-timeline",e._l(e.commentList,(function(t){return i("el-timeline-item",{attrs:{timestamp:t.createTime,placement:"top"}},[i("el-card",{staticClass:"box-card comment-card",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"head",style:"background-color: "+t.color},[e._v(e._s(t.createUserName.substr(0,1)))]),i("div",{staticClass:"comment-user-name"},[e._v(" "+e._s(t.createUserName)+" "),e.canDeleteComment(t)?i("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(a){e.$set(t,"visible",a)},expression:"comment.visible"}},[i("p",[e._v("确定要除删此评论吗?")]),i("div",{staticStyle:{"text-align":"right",margin:"0"}},[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.deleteComment(t.id)}}},[e._v("确定")])],1),i("i",{staticClass:"el-icon-delete",attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),i("pre",{staticClass:"comment-content"},[e._v(e._s(t.content))])])],1)})),1)],1),i("div",{staticClass:"comment-input-box"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentTextInput,expression:"commentTextInput"}],attrs:{rows:"5",placeholder:"发表评论"},domProps:{value:e.commentTextInput},on:{input:function(t){t.target.composing||(e.commentTextInput=t.target.value)}}}),i("el-button",{staticStyle:{float:"right",margin:"2px 5px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitPageComment}},[e._v("发送")])],1)]),i("el-tab-pane",{attrs:{label:"修改历史",name:"history"}},[i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.getPageHistoryByScroll,expression:"getPageHistoryByScroll"}],staticClass:"action-tab-box"},[e.pageHistoryList.length<=0?i("div",{staticClass:"action-box-empty"},[e._v("暂无修改历史记录")]):i("el-timeline",e._l(e.pageHistoryList,(function(t){return i("el-timeline-item",[i("el-tag",{staticClass:"history-item",attrs:{type:e.pageHistoryChoice.id==t.id?3==t.loading?"danger":"success":"info"},on:{click:function(a){return e.historyClick(t)}}},[i("div",[e._v(e._s(t.createUserName))]),i("div",[e._v(e._s(t.createTime))])]),i("i",{directives:[{name:"show",rawName:"v-show",value:1==t.loading,expression:"history.loading==1"}],staticClass:"el-icon-loading history-loading-status"}),i("i",{directives:[{name:"show",rawName:"v-show",value:2==t.loading,expression:"history.loading==2"}],staticClass:"el-icon-circle-check history-loading-status"}),i("i",{directives:[{name:"show",rawName:"v-show",value:3==t.loading,expression:"history.loading==3"}],staticClass:"el-icon-circle-close history-loading-status"})],1)})),1)],1)])],1)],1)],1),i("el-dialog",{attrs:{title:"手机扫码查看",visible:e.mobileScanDialogVisible,width:"400px"},on:{"update:visible":function(t){e.mobileScanDialogVisible=t}}},[i("div",{staticStyle:{"text-align":"center"}},[i("div",{ref:"qrCodeDiv",staticClass:"mobile-qr"}),i("div",[e._v("使用微信或手机浏览器扫一扫查看")]),i("div",[e._v("或 "),i("a",{attrs:{target:"_blank",href:e.qrCodeUrl}},[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:"用户"}}),i("el-table-column",{attrs:{prop:"createTime",label:"时间"}})],1)],1),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","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",autoComplete:"new-password",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}})})),1),i("el-button",{on:{click:e.addPageAuthUser}},[e._v("添加")])],1),i("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.pageAuthUserList,border:""}},[i("el-table-column",{attrs:{prop:"userName",label:"用户",width:"150"}}),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(a){e.$set(t.row,"editPage",a)},expression:"scope.row.editPage"}},[e._v("编辑")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.deletePage,callback:function(a){e.$set(t.row,"deletePage",a)},expression:"scope.row.deletePage"}},[e._v("删除")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileUpload,callback:function(a){e.$set(t.row,"pageFileUpload",a)},expression:"scope.row.pageFileUpload"}},[e._v("文件上传")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileDelete,callback:function(a){e.$set(t.row,"pageFileDelete",a)},expression:"scope.row.pageFileDelete"}},[e._v("文件删除")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageAuthManage,callback:function(a){e.$set(t.row,"pageAuthManage",a)},expression:"scope.row.pageAuthManage"}},[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(a){return e.deleteUserPageAuth(t.row)}}},[e._v("删除")])]}}])})],1),i("div",[i("el-button",{attrs:{type:"primary"},on:{click:e.saveUserPageAuth}},[e._v("保存配置")])],1)],1),i("div",{ref:"imagePreview"},[e.showImagePreview?i("el-image-viewer",{attrs:{"url-list":e.showImagePreviewList,"on-close":e.closeImagePreview,"initial-index":e.previewInitialIndex}}):e._e()],1),i("form",{ref:"downloadForm",attrs:{method:"post",action:e.downloadFormParam.url,target:"_blank"}},e._l(e.downloadFormParam.param,(function(e,t){return i("input",{attrs:{type:"hidden",name:t},domProps:{value:e}})})),0)],1)},rt=[],lt=a("d044"),ct=a.n(lt),dt=(a("b680"),{computeFileSize:function(e){if(!e)return"-";var t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";var a=t+"",i=a.indexOf("."),n=a.substr(i+1,2);return"00"==n?a.substring(0,i)+a.substr(i+3,2):t}}),ut={createNavigationHeading:function(){var e=[],t=document.querySelector(".wiki-page-content").querySelectorAll("h1,h2,h3,h4,h5,h6");return t.length<=0?[]:(t.forEach((function(t){var a=t.innerHTML.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/<\/?[^>]+(>|$)/g,"");e.push({node:t,level:parseInt(t.tagName.replace(/[h]/i,""),10),text:a})})),e)}},pt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navigation"},[a("div",{ref:"navigation",staticStyle:{display:"inline-block",width:"100%"}}),a("div",{staticClass:"navigation-heading",style:{width:e.navigationWidth}},e._l(e.heading,(function(t){return a("div",{class:"heading-item heading-"+t.level,on:{click:function(a){return e.headingItemClick(t)}}},[e._v(" "+e._s(t.text)+" ")])})),0)])},ht=[],gt={props:{heading:{type:Array,default:[]}},data:function(){return{navigationWidth:"100px"}},watch:{"$store.state.global.rightAsideWidth":function(){this.computeNavigationWidth()}},mounted:function(){var e=this;window.onresize=function(){e.computeNavigationWidth()},setTimeout((function(){return e.computeNavigationWidth()}),100)},methods:{computeNavigationWidth:function(){this.navigationWidth=window.getComputedStyle(this.$refs.navigation,null).width},headingItemClick:function(e){e.node.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}},ft=gt,mt=(a("43a0"),Object(d["a"])(ft,pt,ht,!1,null,null,null)),vt=mt.exports,wt=a("b2d8"),yt=a("08a9"),bt=(a("c350"),a("64e1"),{colorArr:["#67C23A","#409EFF","#E6A23C","#F56C6C","#909399","#303133"],userHeadColor:{}}),kt={props:["spaceInfo"],components:{"el-image-viewer":yt["a"],mavonEditor:wt["mavonEditor"],Navigation:vt},data:function(){return{wikiPage:{},wikiPageAuth:{},pageContent:{},pageFileList:[],selfUserId:0,uploadFileList:[],uploadFormData:{pageId:0},zanUserDialogVisible:!1,zanUserList:[],parentPath:{},qrCodeUrl:"",mobileScanDialogVisible:!1,commentTextInput:"",commentList:[],recommentInfo:{},uploadFileUrl:".//zyplayer-doc-wiki/page/file/upload",pageAuthDialogVisible:!1,pageAuthUserList:[],searchUserList:[],pageAuthNewUser:"",pageAuthUserLoading:!1,actionTabVisible:!1,actionTabActiveName:"comment",pageHistoryDetail:"",pageShowDetail:"",pageHistoryChoice:{},pageHistoryList:[],pageHistoryPageNum:1,navigationList:[],previewInitialIndex:0,showImagePreview:!1,showImagePreviewList:[],markdownToolbars:{fullscreen:!0,readmodel:!0},downloadFormParam:{url:"zyplayer-doc-wiki/page/download",param:{}}}},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{editWiki:function(){var e=this,t={pageId:this.parentPath.pageId};P.pageLock(t).then((function(){e.$router.push({path:"/page/edit",query:{pageId:e.parentPath.pageId}})}))},getSearchUserList:function(e){var t=this;""!=e&&(this.pageAuthUserLoading=!0,S.getUserBaseInfo({search:e}).then((function(e){t.searchUserList=e.data||[],t.pageAuthUserLoading=!1})))},handleMoreCommand:function(e){"editAuth"==e?this.editWikiAuth():"deletePage"==e?this.deleteWikiPage():"showPageHistory"==e?this.showPageHistory():"showOpenPage"==e?this.showOpenPage():"showMobileView"==e?this.showMobileView():"exportWord"==e&&this.exportWord()},exportWord:function(){var e=this;this.downloadFormParam.param={pageId:this.wikiPage.id},setTimeout((function(){return e.$refs.downloadForm.submit()}),0)},showOpenPage:function(){if(1!=this.spaceInfo.openDoc)this.$message.warning("该空间未开放,无法查看开放文档地址");else{var e=this.$router.resolve({path:"/page/share/view",query:{pageId:this.wikiPage.id,space:this.spaceInfo.uuid}});window.open(e.href,"_blank")}},showMobileView:function(){var e=this;if(1!=this.spaceInfo.openDoc)this.$message.warning("该空间未开放,无法查看开放文档地址");else{var t=this.$router.resolve({path:"/page/share/mobile/view",query:{pageId:this.wikiPage.id,space:this.spaceInfo.uuid}});this.mobileScanDialogVisible=!0;var a=window.location.href.split("#")[0];setTimeout((function(){e.qrCodeUrl=a+t.href,e.$refs.qrCodeDiv.innerHTML="",new ct.a(e.$refs.qrCodeDiv,{text:e.qrCodeUrl,width:250,height:250,colorDark:"#333333",colorLight:"#ffffff",correctLevel:ct.a.CorrectLevel.M})}),0)}},addPageAuthUser:function(){var e=this;if(this.pageAuthNewUser.length<=0)this.$message.warning("请先选择用户");else if(this.searchUserList.find((function(t){return t.userId==e.pageAuthNewUser})))this.pageAuthNewUser="";else{for(var t="",a=0;a0){var t=this.wikiPage.name||"WIKI-内容展示";e.unshift({level:1,node:this.$refs.wikiTitle,text:t})}this.navigationList=e},closeImagePreview:function(){this.showImagePreview=!1},previewPageImage:function(){var e=this,t=[],a=this.$refs.pageContent.querySelectorAll("img");a.forEach((function(a,i){t.push(a.src),a.onclick=function(){e.previewInitialIndex=i,e.showImagePreviewList=t,e.showImagePreview=!0,setTimeout((function(){return e.initImageViewerMask()}),0)}}))},initImageViewerMask:function(){var e=this,t=this.$refs.imagePreview.querySelectorAll(".el-image-viewer__mask");t.forEach((function(t){t.onclick=function(){e.showImagePreview=!1}}))},loadCommentList:function(e){var t=this;this.cancelCommentUser(),P.pageCommentList({pageId:e}).then((function(e){for(var a=e.data||[],i=0;i0?"":this.parentId,s={spaceId:this.spaceId,parentId:o,id:this.wikiPage.id,name:this.wikiPageEdit.pageTitle,editorType:this.wikiPageEdit.editorType,content:a,preview:i};P.updatePage(s).then((function(a){t.$message.success("保存成功!"),t.$emit("loadPageList"),t.pageId=a.data.id,1==e?t.$router.push({path:"/page/show",query:{pageId:t.pageId}}):t.loadPageDetail(t.pageId)}))}else this.$message.warning("标题不能为空")},loadPageDetail:function(e){var t=this;P.pageDetail({id:e}).then((function(e){t.wikiPage=e.data.wikiPage||{},t.pageContent=e.data.pageContent||{},t.pageFileList=e.data.fileList||[],t.wikiPageEdit.pageTitle=t.wikiPage.name,t.wikiPageEdit.editorType=t.wikiPage.editorType,2===t.wikiPageEdit.editorType?t.markdownContent=t.pageContent.content||"":setTimeout((function(){t.$refs.wangEditor.setTitle(t.wikiPage.name||""),t.$refs.wangEditor.setHtml(t.pageContent.content||"")}),0)}))},loadParentPageDetail:function(e){var t=this;e&&P.pageDetail({id:e}).then((function(e){t.parentWikiPage=e.data.wikiPage||{}}))},cleanPage:function(){this.wikiPage={},this.pageContent={},this.pageFileList=[],this.wikiPageEdit.pageTitle="",this.editor.txt&&this.editor.txt.html("")},initQueryParam:function(e){var t=this;this.pageId=e.query.pageId,this.parentId=e.query.parentId,this.pageId?(this.loadPageDetail(this.pageId),P.pageLock({pageId:this.pageId}).catch((function(e){var a=t;t.$alert(e.errMsg||"未知错误","错误",{confirmButtonText:"确定",callback:function(){a.$router.back()}})}))):(this.loadParentPageDetail(this.parentId),this.cleanPage())},addMarkdownImage:function(e,t){var a=this,i=new FormData;i.append("files",t),y()({url:this.fileUploadUrl,method:"post",data:i,headers:{"Content-Type":"multipart/form-data"},timeout:1e4,withCredentials:!0}).then((function(t){var i=t.data.data||{};i.url?a.$refs.mavonEditor.$img2Url(e,i.url):a.$message.warning("上传失败,返回数据为空")})).catch((function(e){a.$message.warning("上传失败:"+e.message)}))},initEditor:function(){}}},Rt=zt,Et=(a("5e96"),Object(d["a"])(Rt,Ct,_t,!1,null,null,null)),$t=Et.exports,Ft=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"space-manage-vue",staticStyle:{"min-height":"100%"}},[a("el-breadcrumb",{staticStyle:{padding:"20px 10px"},attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",[e._v("WIKI文档")]),a("el-breadcrumb-item",[e._v("空间管理")])],1),a("div",{staticStyle:{"max-width":"1200px",margin:"0 auto",background:"#fff",padding:"20px","min-height":"100%","box-sizing":"border-box"}},[a("div",{staticStyle:{"text-align":"right","margin-bottom":"10px"}},[a("span",{staticStyle:{float:"left","line-height":"40px"}},[e._v(" 仅展示我收藏的空间: "),a("el-switch",{attrs:{"inactive-value":"0","active-value":"1"},on:{change:e.wikiOnlyShowFavoriteChange},model:{value:e.userSetting.wiki_only_show_favorite,callback:function(t){e.$set(e.userSetting,"wiki_only_show_favorite",t)},expression:"userSetting.wiki_only_show_favorite"}}),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"控制左上角空间下拉列表仅展示我收藏的空间",placement:"top-start"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"vertical-align":"middle","margin-left":"10px",color:"#999"}})])],1),a("el-button",{attrs:{icon:"refresh",loading:e.spaceListLoading},on:{click:e.loadSpaceList}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.showCreateSpace}},[e._v("创建空间")])],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.spaceList,border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"60"}}),a("el-table-column",{attrs:{prop:"name",label:"名字"}}),a("el-table-column",{attrs:{prop:"spaceExplain",label:"说明"}}),a("el-table-column",{attrs:{label:"开放地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.openDoc?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showOpenSpace(t.row.uuid)}}},[e._v(e._s(t.row.name))]):a("span",[e._v("暂未开放")])]}}])}),a("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{prop:"favorite",label:"收藏",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.favorite?a("i",{staticClass:"el-icon-star-on favorite-icon",on:{click:function(a){return e.updateSpaceFavorite(t.row)}}}):a("i",{staticClass:"el-icon-star-off favorite-icon",on:{click:function(a){return e.updateSpaceFavorite(t.row)}}})]}}])}),a("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return e.userSelfInfo.id==t.row.createUserId?[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(a){return e.editSpaceInfo(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{size:"small",type:"warning"},on:{click:function(a){return e.editSpaceAuth(t.row)}}},[e._v("授权")]),a("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(a){return e.deleteSpaceInfo(t.row)}}},[e._v("删除")])]:void 0}}],null,!0)})],1)],1),a("el-dialog",{attrs:{title:"权限管理",visible:e.spaceAuthDialogVisible,width:"900px"},on:{"update:visible":function(t){e.spaceAuthDialogVisible=t}}},[a("el-row",[a("el-select",{staticStyle:{width:"750px","margin-right":"10px"},attrs:{filterable:"",placeholder:"请选择分组"},model:{value:e.spaceAuthNewGroupId,callback:function(t){e.spaceAuthNewGroupId=t},expression:"spaceAuthNewGroupId"}},e._l(e.searchGroupList,(function(t){return a("el-option",{key:t.id,attrs:{label:e.searchGroupMap[t.id],value:t.id}})})),1),a("el-button",{on:{click:e.addSpaceAuthUserGroup}},[e._v("添加")])],1),a("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.spaceAuthGroupList,border:""}},[a("el-table-column",{attrs:{prop:"groupId",label:"分组名",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.searchGroupMap[t.row.groupId]))]}}])}),a("el-table-column",{attrs:{label:"权限"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.editPage,callback:function(a){e.$set(t.row,"editPage",a)},expression:"scope.row.editPage"}},[e._v("编辑")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.deletePage,callback:function(a){e.$set(t.row,"deletePage",a)},expression:"scope.row.deletePage"}},[e._v("删除")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileUpload,callback:function(a){e.$set(t.row,"pageFileUpload",a)},expression:"scope.row.pageFileUpload"}},[e._v("文件上传")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileDelete,callback:function(a){e.$set(t.row,"pageFileDelete",a)},expression:"scope.row.pageFileDelete"}},[e._v("文件删除")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageAuthManage,callback:function(a){e.$set(t.row,"pageAuthManage",a)},expression:"scope.row.pageAuthManage"}},[e._v("权限管理")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"danger",plain:""},on:{click:function(a){return e.deleteGroupSpaceAuth(t.row)}}},[e._v("删除")])]}}])})],1),a("div",{staticStyle:{"text-align":"right"}},[a("el-button",{on:{click:e.manageUserGroup}},[e._v("分组管理")]),a("el-button",{attrs:{type:"primary"},on:{click:e.saveGroupSpaceAuth}},[e._v("保存配置")])],1)],1),a("create-space",{ref:"createSpace",on:{success:e.loadSpaceList}})],1)},Ot=[],Mt={data:function(){return{spaceListLoading:!1,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"}]},userSelfInfo:{},editSpaceId:"",spaceAuthDialogVisible:!1,spaceAuthNewGroupId:"",spaceAuthGroupLoading:!1,searchGroupList:[],searchGroupMap:{},spaceAuthGroupList:[],userSetting:{wiki_only_show_favorite:0}}},components:{"create-space":D},mounted:function(){this.loadSpaceList(),this.getSelfUserInfo(),this.getSpaceSettingList()},methods:{showOpenSpace:function(e){var t=this.$router.resolve({path:"/page/share/home",query:{space:e}});window.open(t.href,"_blank")},showCreateSpace:function(){this.$refs.createSpace.show()},editSpaceInfo:function(e){this.$refs.createSpace.show(e.id)},addSpaceAuthUserGroup:function(){var e=this;this.spaceAuthNewGroupId?(this.spaceAuthGroupList.find((function(t){return t.groupId==e.spaceAuthNewGroupId}))||this.spaceAuthGroupList.push({groupId:this.spaceAuthNewGroupId,editPage:0,commentPage:0,deletePage:0,pageFileUpload:0,pageFileDelete:0,pageAuthManage:0}),this.spaceAuthNewGroupId=""):this.$message.warning("请先选择分组")},updateSpaceFavorite:function(e){var t=1==e.favorite?1:0;P.spaceFavoriteUpdate({spaceId:e.id,delFlag:t}).then((function(t){e.favorite=1==e.favorite?0:1}))},saveGroupSpaceAuth:function(){var e=this,t={spaceId:this.editSpaceId,authList:JSON.stringify(this.spaceAuthGroupList)};P.spaceAuthAssign(t).then((function(t){e.$message.success("授权成功!")}))},manageUserGroup:function(){var e=location.href.substring(0,location.href.indexOf("/doc-wiki"))+"#/console/userGroupList";window.open(e,"_blank")},deleteGroupSpaceAuth:function(e){this.spaceAuthGroupList=this.spaceAuthGroupList.filter((function(t){return t.groupId!=e.groupId}))},editSpaceAuth:function(e){var t=this;this.editSpaceId=e.id,this.spaceAuthNewGroupId="",this.spaceAuthGroupList=[],S.userGroupList().then((function(e){t.searchGroupList=e.data||[],t.searchGroupList.forEach((function(e){return t.searchGroupMap[e.id]=e.name}))})),P.spaceAuthList({spaceId:e.id}).then((function(e){t.spaceAuthGroupList=e.data||[],t.spaceAuthDialogVisible=!0}))},deleteSpaceInfo:function(e){var t=this;this.$confirm("确定要删除此空间及下面的所有文档吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:e.id,delFlag:1};P.updateSpace(a).then((function(){t.$message.success("删除成功"),t.loadSpaceList(),t.$emit("loadSpace")}))}))},loadSpaceList:function(){var e=this;this.spaceListLoading=!0,P.spaceList({ignoreFavorite:1}).then((function(t){e.spaceList=t.data||[],setTimeout((function(){return e.spaceListLoading=!1}),500)}))},wikiOnlyShowFavoriteChange:function(){var e=this,t={name:"wiki_only_show_favorite",value:this.userSetting.wiki_only_show_favorite};P.spaceSettingUpdate(t).then((function(t){e.$emit("loadSpace")}))},getSpaceSettingList:function(){var e=this;P.spaceSettingList().then((function(t){var a=t.data||{};e.userSetting={wiki_only_show_favorite:a.wiki_only_show_favorite||0}}))},getSelfUserInfo:function(){var e=this;S.getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))}}},Ht=Mt,Wt=(a("8186"),Object(d["a"])(Ht,Ft,Ot,!1,null,null,null)),Bt=Wt.exports,Vt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-share-home-vue",staticStyle:{padding:"10px"}},[i("div",{staticStyle:{"max-width":"800px",margin:"0 auto"}},[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))])]),i("div",{staticClass:"page-preview-box"},[i("div",{staticClass:"page-preview-title",domProps:{innerHTML:e._s(t.pageTitle)},on:{click:function(a){return e.showPageDetail(t)}}}),i("div",{staticClass:"page-preview-content",domProps:{innerHTML:e._s(t.previewContent)}}),i("div",[i("span",[i("img",{staticClass:"zan-img",attrs:{src:a("6c9a")}}),e._v(" "+e._s(t.zanNum)+" ")]),i("span",[i("i",{staticClass:"el-icon-view view-img"}),e._v(" "+e._s(t.viewNum)+" ")]),i("span",[e._v(e._s(t.updateTime||t.createTime))])])])])})),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)],2)])},jt=[],qt={data:function(){return{totalCount:0,searchParam:{spaceId:"",newsType:1,pageNum:1,pageSize:20},spacePageNews:[]}},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{getSpacePageNews:function(){var e=this;P.openPageNews(this.searchParam).then((function(t){e.spacePageNews=t.data||[],e.totalCount=t.total}))},handleSizeChange:function(e){this.searchParam.pageSize=e,this.getSpacePageNews()},showPageDetail:function(e){this.nowClickPath={space:e.space,pageId:e.pageId},this.$router.push({path:"/page/share/view",query:this.nowClickPath})},handleCurrentChange:function(e){this.searchParam.pageNum=e,this.getSpacePageNews()},initQueryParam:function(e){this.searchParam={space:e.query.space,newsType:1,pageNum:1,pageSize:20},this.searchParam.space&&this.getSpacePageNews()}}},Kt=qt,Gt=(a("d132"),Object(d["a"])(Kt,Vt,jt,!1,null,null,null)),Zt=Gt.exports,Qt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-share-view-vue"},[a("el-row",{attrs:{type:"border-card"}},[a("el-row",[e.navigationList.length>0?a("el-col",{attrs:{xs:0,sm:4,md:4,lg:6,xl:6}},[a("Navigation",{attrs:{heading:e.navigationList}})],1):e._e(),a("el-col",{attrs:{xs:24,sm:e.navigationList.length>0?20:24,md:e.navigationList.length>0?20:24,lg:e.navigationList.length>0?18:24,xl:e.navigationList.length>0?18:24}},[a("div",{staticStyle:{"max-width":"1000px","padding-left":"10px",margin:"0 auto"}},[a("div",{ref:"wikiTitle",staticClass:"wiki-title"},[e._v(e._s(e.wikiPage.name))]),a("div",{staticClass:"wiki-author"},[e.wikiPage.updateTime?a("span",[e._v("最后修改:"+e._s(e.wikiPage.updateTime))]):a("span",[e._v("创建时间:"+e._s(e.wikiPage.createTime))])]),a("div",{staticClass:"wiki-files"},[a("el-table",{directives:[{name:"show",rawName:"v-show",value:e.pageFileList.length>0,expression:"pageFileList.length > 0"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.pageFileList,border:""}},[a("el-table-column",{attrs:{label:"文件名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{attrs:{target:"_blank",href:t.row.fileUrl}},[e._v(e._s(t.row.fileName))])]}}])}),a("el-table-column",{attrs:{label:"文件大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.computeFileSize(t.row.fileSize)))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),a("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}})],1)],1),a("div",{ref:"pageContent",staticClass:"wiki-page-content"},[2==e.wikiPage.editorType?a("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.pageShowDetail)}}):a("div",{staticClass:"wang-editor-body",domProps:{innerHTML:e._s(e.pageShowDetail)}})])])])],1)],1),a("div",{ref:"imagePreview"},[e.showImagePreview?a("el-image-viewer",{attrs:{"url-list":e.showImagePreviewList,"on-close":e.closeImagePreview,"initial-index":e.previewInitialIndex}}):e._e()],1)],1)},Jt=[],Xt={data:function(){return{spaceUuid:"",nowPageId:"",wikiPage:{},pageFileList:[],pageShowDetail:"",previewInitialIndex:0,showImagePreview:!1,showImagePreviewList:[],navigationList:[]}},components:{"el-image-viewer":yt["a"],Navigation:vt},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{loadPageDetail:function(e){var t=this,a={pageId:e,space:this.spaceUuid};P.openPageDetail(a).then((function(e){var a=e.data.wikiPage||{};a.selfZan=e.data.selfZan||0,t.wikiPage=a;var i=e.data.pageContent||{};t.pageFileList=e.data.fileList||[],2===t.wikiPage.editorType&&(i.content=wt["mavonEditor"].getMarkdownIt().render(i.content)),t.pageShowDetail=i.content;var n=a.name||"WIKI-内容展示";document.title=n,setTimeout((function(){t.previewPageImage();var e=ut.createNavigationHeading();e.length>0&&e.unshift({level:1,node:t.$refs.wikiTitle,text:n}),t.navigationList=e}),500)}))},initQueryParam:function(e){this.spaceUuid=e.query.space,this.nowPageId=e.query.pageId,this.nowPageId&&this.loadPageDetail(this.nowPageId)},computeFileSize:function(e){if(!e)return"-";var t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";var a=t+"",i=a.indexOf("."),n=a.substr(i+1,2);return"00"==n?a.substring(0,i)+a.substr(i+3,2):t},closeImagePreview:function(){this.showImagePreview=!1},previewPageImage:function(){var e=this,t=[],a=this.$refs.pageContent.querySelectorAll("img");a.forEach((function(a,i){t.push(a.src),a.onclick=function(){e.previewInitialIndex=i,e.showImagePreviewList=t,e.showImagePreview=!0,setTimeout((function(){return e.initImageViewerMask()}),0)}}))},initImageViewerMask:function(){var e=this,t=this.$refs.imagePreview.querySelectorAll(".el-image-viewer__mask");t.forEach((function(t){t.onclick=function(){return e.showImagePreview=!1}}))}}},Yt=Xt,ea=(a("6afb"),Object(d["a"])(Yt,Qt,Jt,!1,null,null,null)),ta=ea.exports,aa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-share-view-vue"},[a("van-nav-bar",{staticClass:"header",attrs:{title:e.wikiPage.name}},[a("van-icon",{attrs:{slot:"left",name:"wap-nav",size:"20"},on:{click:e.popupShowChange},slot:"left"})],1),a("el-row",{staticClass:"main",attrs:{type:"border-card"}},[a("div",{staticStyle:{"max-width":"950px",margin:"0 auto"}},[a("div",{staticClass:"wiki-author"},[e.wikiPage.updateTime?a("span",[e._v("最后修改:"+e._s(e.wikiPage.updateTime))]):a("span",[e._v("创建时间:"+e._s(e.wikiPage.createTime))])]),a("div",{staticClass:"wiki-files"},[a("el-table",{directives:[{name:"show",rawName:"v-show",value:e.pageFileList.length>0,expression:"pageFileList.length > 0"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.pageFileList,border:""}},[a("el-table-column",{attrs:{label:"文件名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{attrs:{target:"_blank",href:t.row.fileUrl}},[e._v(e._s(t.row.fileName))])]}}])}),a("el-table-column",{attrs:{label:"文件大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.computeFileSize(t.row.fileSize)))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),a("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}})],1)],1),a("div",{ref:"pageContent",staticClass:"wiki-page-content"},[2==e.wikiPage.editorType?a("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.pageShowDetail)}}):a("div",{staticClass:"wang-editor-body",domProps:{innerHTML:e._s(e.pageShowDetail)}})])])])],1)},ia=[],na=a("28a2"),oa={data:function(){return{spaceUuid:"",nowPageId:"",wikiPage:{},pageFileList:[],pageShowDetail:"",previewInitialIndex:0,showImagePreviewList:[]}},components:{"el-image-viewer":yt["a"]},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{popupShowChange:function(){this.$emit("popupShow",!0)},loadPageDetail:function(e){var t=this,a={pageId:e,space:this.spaceUuid};P.openPageDetail(a).then((function(e){var a=e.data.wikiPage||{};a.selfZan=e.data.selfZan||0,t.wikiPage=a;var i=e.data.pageContent||{};t.pageFileList=e.data.fileList||[],2===t.wikiPage.editorType&&(i.content=wt["mavonEditor"].getMarkdownIt().render(i.content)),t.pageShowDetail=i.content,document.title=a.name||"WIKI-内容展示",setTimeout((function(){return t.previewPageImage()}),500)}))},initQueryParam:function(e){this.spaceUuid=e.query.space,this.nowPageId=e.query.pageId,this.nowPageId&&this.loadPageDetail(this.nowPageId)},computeFileSize:function(e){if(!e)return"-";var t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";var a=t+"",i=a.indexOf("."),n=a.substr(i+1,2);return"00"==n?a.substring(0,i)+a.substr(i+3,2):t},previewPageImage:function(){var e=this,t=[],a=this.$refs.pageContent.querySelectorAll("img");a.forEach((function(a,i){t.push(a.src),a.onclick=function(){e.previewInitialIndex=i,e.showImagePreviewList=t,Object(na["a"])({images:t,startPosition:i})}}))}}},sa=oa,ra=(a("36c7"),Object(d["a"])(sa,aa,ia,!1,null,null,null)),la=ra.exports,ca=[{path:"/",redirect:"/home"},{path:"/page/search",name:"WIKI-全局搜索",component:we},{path:"/common/noAuth",name:"WIKI-没有权限",component:Ke},{path:"/page/editorTest",name:"编辑内容",component:He},{path:"/",name:"页面管理",component:K,children:[{path:"/home",name:"WIKI文档管理",component:Ye},{path:"/user/myInfo",name:"WIKI-我的信息",component:ot},{path:"/page/show",name:"WIKI-内容展示",component:Pt},{path:"/page/edit",name:"WIKI-编辑内容",component:$t},{path:"/space/manage",name:"WIKI-空间管理",component:Bt}]},{path:"/",name:"页面管理",component:Y,children:[{path:"/page/share/home",name:"WIKI-开放文档",component:Zt},{path:"/page/share/view",name:"WIKI-内容展示",component:ta}]},{path:"/",name:"页面管理",component:pe,children:[{path:"/page/share/mobile/view",name:"WIKI-开放文档",component:la}]}],da=ca,ua=a("2f62"),pa={namespaced:!0,state:{pageTabNameMap:{},rightAsideWidth:0},getters:{getPageTabNameMap:function(e){return e.pageTabNameMap}},mutations:{addTableName:function(e,t){var a=Object.assign({},e.pageTabNameMap);a[t.key]=t.val,e.pageTabNameMap=a},setRightAsideWidth:function(e,t){e.rightAsideWidth=t}}};i["default"].use(ua["a"]);var ha=new ua["a"].Store({modules:{global:pa}}),ga=a("a7fe"),fa=a.n(ga),ma=a("1487"),va=a.n(ma);a("eba2");i["default"].use(o.a),i["default"].use(h["a"]),i["default"].use(fa.a,y.a),i["default"].prototype.$store=ha;var wa=h["a"].prototype.push;h["a"].prototype.push=function(e){return wa.call(this,e).catch((function(e){return e}))};var ya=new h["a"]({routes:da});ya.beforeEach((function(e,t,a){e.name&&(document.title=e.name),a()}));var ba=new i["default"]({el:"#app",router:ya,render:function(e){return e(p)}});i["default"].directive("highlight",(function(e){var t=e.querySelectorAll("pre code");t.forEach((function(e){va.a.highlightBlock(e)}))}));var ka=t["default"]=ba},"5d0c":function(e,t,a){"use strict";a("8b6f")},"5e96":function(e,t,a){"use strict";a("c85a")},"64b7":function(e,t,a){},"6afb":function(e,t,a){"use strict";a("aae1")},"6c9a":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEX///9wcHBwcHBwcHBwcHB8fHxwcHB6enpwcHCDg4NwcHB8fHx6enqSkpJ8fHxycnJwcHDp6el2dnZwcHD////39/f19fXz8/Pw8PDr6+vn5+fj4+PZ2dnX19fHx8fExMS9vb20tLSrq6uhoaGenp6MjIyKioqDg4N8fHx6enp4eHh0dHRycnKZmZmOjo6KioqDg4OAgIB/f396enp4eHh2dnZycnJwcHDyRjyJAAAALXRSTlMAETNEVWZmd3eIiJmqu7u7u93d3e7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u6OCyV0AAAAi0lEQVQYGXXBRwKCMBAF0B9Q7Io6RJGo2LAEu8zc/2YuyCILfQ/4R8k5gK+zy0v4TilZeAZb2rTCSMHp3bV+jeJpDEDFIvagSRtNJAro2vHjSo4owOYzNlTTAoDnGZNjLABOFkzOagigWiecUW3fBNB/L5+33GgiSksFQE1YPkUlciwuETxhox3ghy8Wng9K1E9YIwAAAABJRU5ErkJggg=="},7176:function(e,t,a){},8186:function(e,t,a){"use strict";a("7176")},"85ec":function(e,t,a){},"867a":function(e,t,a){},"8b6f":function(e,t,a){},"9c8a":function(e,t,a){"use strict";a("342a")},aae1:function(e,t,a){},b49e:function(e,t,a){"use strict";a("f29e")},c85a:function(e,t,a){},cdc2:function(e,t,a){},d132:function(e,t,a){"use strict";a("2725")},d1f1:function(e,t,a){},d7846:function(e,t,a){},dcfc:function(e,t,a){"use strict";a("ed55")},ed55:function(e,t,a){},f29e:function(e,t,a){},faea:function(e,t,a){"use strict";a("1a52")},fd9f:function(e,t,a){"use strict";a("4b0d")}}); \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/dist/js/index.ea3c72f8.js b/zyplayer-doc-wiki/src/main/resources/dist/js/index.ea3c72f8.js deleted file mode 100644 index e2a21879..00000000 --- a/zyplayer-doc-wiki/src/main/resources/dist/js/index.ea3c72f8.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var i,s,r=t[0],l=t[1],c=t[2],u=0,p=[];u")])],1)]}}])})],1),a("div",{staticClass:"page-info-box"},[a("el-pagination",{attrs:{"page-size":e.userMsgParam.pageSize,"current-page":e.userMsgParam.pageNum,layout:"prev, pager, next, total",total:e.userMsgTotalCount},on:{"current-change":e.handleCurrentChange}})],1)],1)],1),a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.userSettingDropdown}},[a("i",{staticClass:"el-icon-setting head-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"console"}},[e._v("控制台")]),a("el-dropdown-item",{attrs:{command:"aboutDoc"}},[e._v("关于")]),a("el-dropdown-item",{attrs:{command:"userSignOut",divided:""}},[e._v("退出登录")])],1)],1)],1),a("el-main",{staticStyle:{padding:"0","border-left":"1px solid #dcdfe6"}},[a("router-view",{attrs:{spaceId:e.choiceSpace,spaceInfo:e.getSpaceInfo(e.choiceSpace)},on:{loadPageList:e.loadPageList,changeExpandedKeys:e.changeWikiPageExpandedKeys,switchSpace:e.switchSpacePage,loadSpace:e.loadSpaceList}})],1)],1)],1),a("create-space",{ref:"createSpace",on:{success:e.loadSpaceList}}),a("about-dialog",{ref:"aboutDialog"})],1)},f=[],m=(a("4ec9"),a("3ca3"),a("ddb0"),a("498a"),a("4de4"),a("a15b"),a("7db0"),a("4328")),v=a.n(m),w=a("bc3a"),y=a.n(w),b=y.a.create({baseURL:"./",timeout:1e4,headers:{"Content-type":"application/x-www-form-urlencoded"},withCredentials:!0}),k={"/zyplayer-doc-db/executor/execute":!0};b.interceptors.request.use((function(e){return e.needValidateResult=!0,k[e.url]&&(e.needValidateResult=!1),e}),(function(e){return console.log(e),Promise.reject(e)})),b.interceptors.response.use((function(e){if(e.message)ba.$message.error("请求错误:"+e.message);else{if(!e.config.needValidateResult||200==e.data.errCode)return e.data;if(400==e.data.errCode){ba.$message.error("请先登录");var t=encodeURIComponent(window.location.href);window.location="./#/user/login?redirect="+t}else 402==e.data.errCode?ba.$router.push("/common/noAuth"):200!==e.data.errCode&&ba.$message.error(e.data.errMsg||"未知错误")}return Promise.reject("请求错误")}),(function(e){return console.log("err"+e),ba.$message.info("请求错误:"+e.message),Promise.reject(e)}));var x=b,S={userLogin:function(e){return x({url:"/login",method:"post",data:v.a.stringify(e)})},userLogout:function(){return x({url:"/logout",method:"post",data:v.a.stringify({})})},getSelfUserInfo:function(){return x({url:"/user/info/selfInfo",method:"post",data:v.a.stringify({})})},getUserBaseInfo:function(e){return x({url:"/zyplayer-doc-wiki/common/user/base",method:"post",data:v.a.stringify(e)})},userGroupList:function(e){return x({url:"/user/group/list",method:"post",data:v.a.stringify(e)})},getUserMessageList:function(e){return x({url:"/user/message/list",method:"post",data:v.a.stringify(e)})},readUserMessage:function(e){return x({url:"/user/message/read",method:"post",data:v.a.stringify(e)})},deleteUserMessage:function(e){return x({url:"/user/message/delete",method:"post",data:v.a.stringify(e)})}},P={pageUpdate:function(e){return x({url:"/zyplayer-doc-wiki/page/update",method:"post",data:v.a.stringify(e)})},pageChangeParent:function(e){return x({url:"/zyplayer-doc-wiki/page/changeParent",method:"post",data:v.a.stringify(e)})},pageList:function(e){return x({url:"/zyplayer-doc-wiki/page/list",method:"post",data:v.a.stringify(e)})},updatePage:function(e){return x({url:"/zyplayer-doc-wiki/page/update",method:"post",data:v.a.stringify(e)})},pageDetail:function(e){return x({url:"/zyplayer-doc-wiki/page/detail",method:"post",data:v.a.stringify(e)})},pageDelete:function(e){return x({url:"/zyplayer-doc-wiki/page/delete",method:"post",data:v.a.stringify(e)})},pageHistoryList:function(e){return x({url:"/zyplayer-doc-wiki/page/history/list",method:"post",data:v.a.stringify(e)})},pageHistoryDetail:function(e){return x({url:"/zyplayer-doc-wiki/page/history/detail",method:"post",data:v.a.stringify(e)})},pageNews:function(e){return x({url:"/zyplayer-doc-wiki/page/news",method:"post",data:v.a.stringify(e)})},pageSearchByEs:function(e){return x({url:"/zyplayer-doc-wiki/page/searchByEs",method:"post",data:v.a.stringify(e)})},pageLock:function(e){return x({url:"/zyplayer-doc-wiki/page/lock",method:"post",data:v.a.stringify(e)})},pageUnlock:function(e){return x({url:"/zyplayer-doc-wiki/page/unlock",method:"post",data:v.a.stringify(e)})},spaceFavoriteUpdate:function(e){return x({url:"/zyplayer-doc-wiki/space/favorite/update",method:"post",data:v.a.stringify(e)})},spaceAuthAssign:function(e){return x({url:"/zyplayer-doc-wiki/space/auth/assign",method:"post",data:v.a.stringify(e)})},spaceAuthList:function(e){return x({url:"/zyplayer-doc-wiki/space/auth/list",method:"post",data:v.a.stringify(e)})},spaceSettingList:function(e){return x({url:"/zyplayer-doc-wiki/space/setting/list",method:"post",data:v.a.stringify(e)})},spaceSettingUpdate:function(e){return x({url:"/zyplayer-doc-wiki/space/setting/update",method:"post",data:v.a.stringify(e)})},spaceList:function(e){return x({url:"/zyplayer-doc-wiki/space/list",method:"post",data:v.a.stringify(e)})},updateSpace:function(e){return x({url:"/zyplayer-doc-wiki/space/update",method:"post",data:v.a.stringify(e)})},getPageUserAuthList:function(e){return x({url:"/zyplayer-doc-wiki/page/auth/list",method:"post",data:v.a.stringify(e)})},assignPageUserAuth:function(e){return x({url:"/zyplayer-doc-wiki/page/auth/assign",method:"post",data:v.a.stringify(e)})},deletePageFile:function(e){return x({url:"/zyplayer-doc-wiki/page/file/delete",method:"post",data:v.a.stringify(e)})},pageCommentList:function(e){return x({url:"/zyplayer-doc-wiki/page/comment/list",method:"post",data:v.a.stringify(e)})},updatePageComment:function(e){return x({url:"/zyplayer-doc-wiki/page/comment/update",method:"post",data:v.a.stringify(e)})},deletePageComment:function(e){return x({url:"/zyplayer-doc-wiki/page/comment/delete",method:"post",data:v.a.stringify(e)})},pageZanList:function(e){return x({url:"/zyplayer-doc-wiki/page/zan/list",method:"post",data:v.a.stringify(e)})},updatePageZan:function(e){return x({url:"/zyplayer-doc-wiki/page/zan/update",method:"post",data:v.a.stringify(e)})},openPageDetail:function(e){return x({url:"/zyplayer-doc-wiki/open-api/page/detail",method:"post",data:v.a.stringify(e)})},openPageList:function(e){return x({url:"/zyplayer-doc-wiki/open-api/page/list",method:"post",data:v.a.stringify(e)})},openSpaceInfo:function(e){return x({url:"/zyplayer-doc-wiki/open-api/space/info",method:"post",data:v.a.stringify(e)})},openPageNews:function(e){return x({url:"/zyplayer-doc-wiki/open-api/page/news",method:"post",data:v.a.stringify(e)})},xxxxxxxxxxxx:function(e){return x({url:"update",method:"post",data:v.a.stringify(e)})}},C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"create-space-vue"},[a("el-dialog",{attrs:{title:"创建空间",visible:e.newSpaceDialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.newSpaceDialogVisible=t}}},[a("el-form",{ref:"newSpaceForm",attrs:{"label-width":"100px",model:e.newSpaceForm,rules:e.newSpaceFormRules}},[a("el-form-item",{attrs:{label:"空间名:",prop:"name"}},[a("el-input",{model:{value:e.newSpaceForm.name,callback:function(t){e.$set(e.newSpaceForm,"name",t)},expression:"newSpaceForm.name"}})],1),a("el-form-item",{attrs:{label:"空间描述:",prop:"spaceExplain"}},[a("el-input",{model:{value:e.newSpaceForm.spaceExplain,callback:function(t){e.$set(e.newSpaceForm,"spaceExplain",t)},expression:"newSpaceForm.spaceExplain"}})],1),a("el-form-item",{attrs:{label:"空间开放:"}},[a("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),a("el-form-item",{attrs:{label:"空间类型:"}},[a("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"}},[a("el-option",{key:1,attrs:{label:"公共空间",value:1}},[a("span",{staticStyle:{float:"left"}},[e._v("公共空间")]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于公共,登录用户可访问、编辑")])]),a("el-option",{key:2,attrs:{label:"个人空间",value:2}},[a("span",{staticStyle:{float:"left"}},[e._v("个人空间")]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,所有登录用户可访问")])]),a("el-option",{key:3,attrs:{label:"隐私空间",value:3}},[a("span",{staticStyle:{float:"left"}},[e._v("隐私空间")]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v("属于个人,仅创建者可访问")])])],1)],1),a("el-form-item",[e.newSpaceForm.id>0?a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("保存修改")]):a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onNewSpaceSubmit("newSpaceForm")}}},[e._v("立即创建")]),a("el-button",{on:{click:e.onNewSpaceCancel}},[e._v("取消")])],1)],1)],1)],1)},_=[],I={data:function(){return{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"}]},editSpaceId:""}},mounted:function(){},methods:{show:function(e){var t=this;this.newSpaceForm={id:"",name:"",spaceExplain:"",treeLazyLoad:0,openDoc:0,uuid:"",type:1},this.editSpaceId=e||"",this.editSpaceId&&P.spaceList({id:this.editSpaceId}).then((function(e){var a=e.data||[];a.length>0&&(t.newSpaceForm=a[0])})),this.newSpaceDialogVisible=!0},onNewSpaceSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var a={id:t.newSpaceForm.id,name:t.newSpaceForm.name,type:t.newSpaceForm.type,openDoc:t.newSpaceForm.openDoc,spaceExplain:t.newSpaceForm.spaceExplain,treeLazyLoad:t.newSpaceForm.treeLazyLoad};P.updateSpace(a).then((function(e){t.$message.success("创建成功"),t.newSpaceDialogVisible=!1,t.$emit("success",e.data.id)}))}}))},onNewSpaceCancel:function(){this.newSpaceDialogVisible=!1}}},L=I,T=(a("34c6"),Object(d["a"])(L,C,_,!1,null,null,null)),D=T.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rightResize",staticClass:"right-resize"},[a("i",{ref:"rightResizeBar"},[e._v("...")])])},N=[],U={data:function(){return{rightAsideWidth:300}},mounted:function(){this.dragChangeRightAsideWidth()},methods:{dragChangeRightAsideWidth:function(){var e=this,t=this.$refs.rightResize,a=this.$refs.rightResizeBar;t.onmousedown=function(i){var n=i.clientX;return t.style.background="#ccc",a.style.background="#aaa",t.left=t.offsetLeft,document.onmousemove=function(t){var a=t.clientX,i=n-a;(i<0&&e.rightAsideWidth<600||i>0&&e.rightAsideWidth>300)&&(n=a,e.rightAsideWidth-=i,e.rightAsideWidth<300&&(e.rightAsideWidth=300),e.$emit("input",e.rightAsideWidth),e.$emit("change",e.rightAsideWidth))},document.onmouseup=function(){t.style.background="#fafafa",a.style.background="#ccc",document.onmousemove=null,document.onmouseup=null},!1}}}},z=U,R=(a("b49e"),Object(d["a"])(z,A,N,!1,null,"5c90866c",null)),E=R.exports,$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关于",visible:e.aboutDialogVisible,width:"600px","custom-class":"about-zyplayer-doc"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[a("div",{},[a("div",{staticStyle:{"font-weight":"bold","font-size":"25px"}},[e._v("zyplayer-doc")]),a("div",{staticStyle:{"line-height":"30px",padding:"10px 0"}},[a("div",[e._v("版本 "+e._s(e.upgradeInfo.nowVersion||"1.0.0"))]),a("div",[e._v("版权所有 © 2018-2021 "),a("a",{attrs:{target:"_blank",href:"http://doc.zyplayer.com"}},[e._v("doc.zyplayer.com")])])]),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"支持"}},[a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("文档:"),a("a",{attrs:{target:"_blank",href:"http://doc.zyplayer.com/doc-wiki#/docs/w4eSzPWvQRSBvaCHZS8t6d"}},[e._v("http://doc.zyplayer.com")])]),a("div",[e._v("主页:"),a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("https://gitee.com/zyplayer/zyplayer-doc")])]),a("div",[e._v("反馈:"),a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc/issues"}},[e._v("https://gitee.com/zyplayer/zyplayer-doc/issues")])]),a("div",[e._v("特性关注&技术交流QQ群:466363173")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("UI/设计/开发/测试")]),a("div",[a("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])])],1)]),a("el-tab-pane",{attrs:{label:"开源软件"}},[a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("此项目基于以下开源软件构建")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("后端")]),a("div",[a("a",{attrs:{target:"_blank",href:"https://spring.io/projects/spring-boot"}},[e._v("Spring-Boot")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"http://www.mybatis.org"}},[e._v("MyBatis")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://github.com/alibaba/druid"}},[e._v("Druid")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://mp.baomidou.com"}},[e._v("MyBatis-Plus")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://www.hutool.cn"}},[e._v("Hutool")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://github.com/alibaba/fastjson"}},[e._v("Fastjson")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://alibaba-easyexcel.github.io"}},[e._v("Easy Excel")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"https://swagger.io"}},[e._v("Swagger")]),e._v("、 "),a("a",{attrs:{target:"_blank",href:"http://www.eclipse.org/jgit"}},[e._v("JGit")]),e._v("、... ")]),a("el-divider",{attrs:{"content-position":"left"}},[e._v("前端")]),e._v(" Vue、element-ui、wangeditor、mavon-editor、qrcodejs2、vant、vue-router、axios、vue-hljs、brace、echarts、sql-formatter、vue-clipboard2、... "),a("div")],1)]),e.upgradeInfo.lastVersion?a("el-tab-pane",{attrs:{label:"软件更新"}},[a("span",{attrs:{slot:"label"},slot:"label"},[e._v(" 软件更新 "),a("sup",{staticClass:"el-badge__content el-badge__content--undefined is-fixed is-dot",staticStyle:{top:"10px",right:"20px"}})]),a("div",{staticStyle:{"line-height":"30px"}},[a("div",[e._v("当前版本:"+e._s(e.upgradeInfo.nowVersion))]),a("div",[e._v("最新版本:"+e._s(e.upgradeInfo.lastVersion))]),a("div",[e._v("升级地址:"),a("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v(e._s(e.upgradeInfo.upgradeUrl))])]),a("div",[e._v("升级内容:")]),a("pre",{staticStyle:{margin:"0","max-height":"250px",overflow:"auto"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])])]):e._e()],1)],1)])},F=[],O=(a("ac1f"),a("5319"),a("5b81"),{systemUpgradeInfo:function(e){return x({url:"/system/info/upgrade",method:"post",data:v.a.stringify(e)})}}),M={data:function(){return{aboutDialogVisible:!1,upgradeInfo:{}}},mounted:function(){this.checkSystemUpgrade()},methods:{show:function(){this.aboutDialogVisible=!0},checkSystemUpgrade:function(){var e=this;O.systemUpgradeInfo({}).then((function(t){t.data&&(e.upgradeInfo=t.data,e.upgradeInfo.upgradeContent&&(e.upgradeInfo.upgradeContent=e.upgradeInfo.upgradeContent.replaceAll(";","\n"),console.log("zyplayer-doc发现新版本:\n升级地址:"+t.data.upgradeUrl+"\n当前版本:"+t.data.nowVersion+"\n最新版本:"+t.data.lastVersion+"\n升级内容:"+t.data.upgradeContent)))}))}}},H=M,W=(a("1cc7"),Object(d["a"])(H,$,F,!1,null,null,null)),B=W.exports,V={data:function(){return{leftCollapse:!0,rightContentLoading:!1,pathIndex:[],defaultProps:{children:"children",label:"name"},spaceOptions:[],spaceList:[],choiceSpace:"",nowSpaceShow:{},nowPageId:"",treePathDataMap:new Map,searchKeywords:"",wikiPageList:[],wikiPage:{},wikiPageExpandedKeys:[],userSelfInfo:{},userMessageList:[],haveNotReadUserMessage:!1,userMessagePopVisible:!1,userMsgTotalCount:0,userMsgParam:{sysType:2,pageNum:1,pageSize:20},rightAsideWidth:300}},components:{RightResize:E,"create-space":D,"about-dialog":B},computed:{},mounted:function(){this.loadSpaceList(),this.loadUserMessageList(),this.getSelfUserInfo()},methods:{loadPageList:function(e){e=e||{},this.doGetPageList(e.parentId,e.node)},turnLeftCollapse:function(){var e=this;this.leftCollapse=!this.leftCollapse,setTimeout((function(){e.leftCollapse?e.rightAsideWidthChange(e.rightAsideWidth+1):e.rightAsideWidthChange(1)}),100)},createWiki:function(){this.choiceSpace>0?this.$router.push({path:"/page/edit",query:{parentId:this.nowPageId}}):this.$message.warning("请先选择或创建空间")},changeWikiPageExpandedKeys:function(e){},doSearchByKeywords:function(e,t){e&&e.trim()?P.pageNews({spaceId:this.choiceSpace,keywords:e}).then((function(e){var a=e.data||[];t(a)})):t([])},handleSearchKeywordsSelect:function(e){this.searchKeywords="",this.$router.push({path:"/page/show",query:{pageId:e.pageId}})},searchByKeywords:function(){this.$refs.wikiPageTree.filter(this.searchKeywords)},searchByKeywordsNewPage:function(){var e=this.$router.resolve({path:"/page/search",query:{keywords:this.searchKeywords}});window.open(e.href,"_blank")},handleNodeClick:function(e){console.log("点击节点:",e),this.nowPageId=e.id,this.$router.push({path:"/page/show",query:{pageId:e.id}}),this.handleNodeExpand(e)},handleNodeExpand:function(e){e.children.length>0&&e.children[0].needLoad&&(console.log("加载节点:",e),this.doGetPageList(e.id,e))},handlePageDrop:function(e,t,a,i){var n=this;console.log("tree drop: ",e.data,t.data,a);var o={id:e.data.id,parentId:t.data.parentId};"inner"==a?o.parentId=t.data.id:"before"==a?o.beforeSeq=t.data.seqNo:"after"==a&&(o.afterSeq=t.data.seqNo),P.pageChangeParent(o).then((function(e){n.doGetPageList(null)}))},loadUserMessageIfPopVisible:function(){this.userMessagePopVisible||this.loadUserMessageList()},loadUserMessageList:function(){var e=this;S.getUserMessageList(this.userMsgParam).then((function(t){e.userMessageList=t.data||[],e.userMsgTotalCount=t.total||0,e.haveNotReadUserMessage=e.userMessageList.filter((function(e){return 0==e.msgStatus})).length>0}))},showUserMessage:function(e){var t=this;0==e.msgStatus&&S.readUserMessage({ids:e.id}).then((function(){t.loadUserMessageList()})),e.msgType>=2&&e.msgType<=12&&(this.$router.push({path:"/page/show",query:{pageId:e.dataId}}),this.userMessagePopVisible=!1)},readAllUserMessage:function(){var e=this,t=[];this.userMessageList.filter((function(e){return 0==e.msgStatus})).forEach((function(e){t.push(e.id)})),t.length<=0||S.readUserMessage({ids:t.join(",")}).then((function(){e.$message.success("标记成功"),e.loadUserMessageList()}))},handleCurrentChange:function(e){this.userMsgParam.pageNum=e,this.loadUserMessageList()},filterPageNode:function(e,t){if(!e||!t.name)return!0;var a=t.name.toLowerCase();return-1!==a.indexOf(e.toLowerCase())},spaceChangeEvents:function(e){if(0==e)this.$refs.createSpace.show();else if(-1==e)this.$router.push({path:"/space/manage"});else{this.choiceSpace=e;for(var t=0;t0){var n=e,o=t.spaceList.find((function(t){return t.id==e}));o||(o=t.spaceList[0],n=o.id),t.nowSpaceShow=o,t.choiceSpace=n,t.nowPageId="",t.doGetPageList(null);try{"/home"==t.$router.app._route.path&&t.$router.push({path:"/home",query:{spaceId:n}})}catch(s){console.log(s)}}}))},doGetPageList:function(e,t){var a=this,i={spaceId:this.choiceSpace};P.pageList(i).then((function(e){a.wikiPageList=e.data||[]}))},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?this.$refs.aboutDialog.show():"myInfo"==e?this.$router.push({path:"/user/myInfo"}):"console"==e?window.open("./","_blank"):this.$message.warning("暂未开放")},userSignOut:function(){S.userLogout().then((function(){location.reload()}))},getSelfUserInfo:function(){var e=this;S.getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))},getSpaceInfo:function(e){for(var t=0;t0?e._l(t.dom,(function(t,n){return a("span",{class:t.cls,attrs:{index:i,subindex:n}},[e._v(e._s(t.text))])})):t.text?[e._v(e._s(t.text))]:a("br")],2):"locate"==t.type?a("div",{class:t.cls,attrs:{index:i},on:{click:function(a){return a.stopPropagation(),e.domClick(t,a)}}},[a("br")]):e._e()]}))],2),a("div",{staticClass:"mg-editor-toolbar",style:e.editorToolbarStyle},[a("span",{staticClass:"iconfont icon-h1",on:{click:function(t){return e.handleToolbarHn("h1")}}}),a("span",{staticClass:"iconfont icon-h2",on:{click:function(t){return e.handleToolbarHn("h2")}}}),a("span",{staticClass:"iconfont icon-h3",on:{click:function(t){return e.handleToolbarHn("h3")}}}),a("span",{staticClass:"iconfont icon-hn"}),a("span",{staticClass:"iconfont icon-bold",on:{click:function(t){return e.handleToolbarBold()}}}),a("span",{staticClass:"iconfont icon-delete",on:{click:function(t){return e.handleToolbarStrikeThrough()}}}),a("span",{staticClass:"iconfont icon-backcolor"}),a("span",{staticClass:"iconfont icon-orderedlist"}),a("span",{staticClass:"iconfont icon-unorderedlist"}),a("span",{staticClass:"iconfont icon-checkbox"}),a("span",{staticClass:"iconfont icon-link"}),a("span",{staticClass:"iconfont icon-more"})]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.userInputData,expression:"userInputData"}],ref:"userInput",staticClass:"user-input",style:e.userInputStyle,domProps:{value:e.userInputData},on:{input:[function(t){t.target.composing||(e.userInputData=t.target.value)},function(t){return e.userInputDataChange()}]}}),a("div",{staticClass:"mg-editor-cursor",style:e.editorCursorStyle})])},xe=[];a("25f0"),a("e9c4"),a("64b7"),a("05e1"),a("6062"),a("1276"),a("a630"),a("99af"),a("4e82"),a("a434");function Se(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";a=a.trim(),this.start=e,this.end=t,this.cls=a,this.clsSet=new Set(a.split(" "))}Se.prototype={constructor:Se,removeClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.trim(),this.hasClass(e)&&(this.clsSet.delete(e),this.cls=Array.from(this.clsSet).join(" "))},hasClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.trim(),this.clsSet.has(e)},addClass:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";e=e.trim(),this.hasClass(e)||(this.clsSet.add(e),this.cls=Array.from(this.clsSet).join(" "))},getSortClass:function(){return Array.from(this.clsSet).sort((function(e,t){return e-t})).join(" ")},classSameAll:function(e){if(e.clsSet.size!=this.clsSet.size)return!1;for(var t=Array.from(e.clsSet),a=0;a0&&void 0!==arguments[0]?arguments[0]:"text",a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.type=t,this.text=i,this.target="",this.cls=a,this.clsSet=new Set(a.split(" ")),this.startOffset=-1,this.endOffset=-1,this.dom=[],this.styleRange=[],n.forEach((function(t){e.styleRange.push(new Pe(t.start,t.end,t.cls))}))}Ie.prototype={constructor:Ie,removeClass:function(e){this.hasClass(e)&&(this.clsSet.delete(e),this.cls=Array.from(this.clsSet).join(" "))},hasClass:function(e){return this.clsSet.has(e)},addClass:function(e){return this.hasClass(e)||(this.clsSet.add(e),this.cls=Array.from(this.clsSet).join(" ")),this},setOffset:function(e,t){this.startOffset=e,this.endOffset=t},setOffsetAll:function(){this.startOffset=0,this.endOffset=this.text.length},clearRange:function(){this.startOffset=this.endOffset=-1},addText:function(e,t){if(t){for(var a=0;a=i.start&&e0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.type=e,this.index=t,this.before=a,this.after=i}Te.prototype={constructor:Te};var De=Te;function Ae(e){this.editorDom=e,this.undoRedoList=[],this.undoRedoIndex=-1}Ae.prototype={constructor:Ae,execute:function(e,t,a,i){this.undoRedoIndex>=0&&this.undoRedoIndex=50&&this.undoRedoList.splice(0,1),a=this.handleDomColumn(a),i=this.handleDomColumn(i),this.undoRedoList.push(new De(e,t,a,i)),this.undoRedoIndex=this.undoRedoList.length-1},handleDomColumn:function(e){if(!e)return"";var t=[];return e instanceof Array?e.forEach((function(e){t.push({type:e.type,cls:e.cls,text:e.text,styleRange:e.styleRange})})):t.push({type:e.type,cls:e.cls,text:e.text,styleRange:e.styleRange}),JSON.stringify(t)},undo:function(){var e=this;if(this.undoRedoIndex>=this.undoRedoList.length&&(this.undoRedoIndex=this.undoRedoList.length-1),!(this.undoRedoIndex<0)){var t=this.undoRedoList[this.undoRedoIndex],a=JSON.parse(t.before),i=t.index;a.forEach((function(a){e.undoObjDomToEditor(t,i,a),i++})),this.undoRedoIndex=Math.max(this.undoRedoIndex-1,-1)}},redo:function(){var e=this;if(this.undoRedoIndex++,this.undoRedoIndex<0||this.undoRedoIndex>=this.undoRedoList.length)this.undoRedoIndex--;else{var t=this.undoRedoList[this.undoRedoIndex],a=1==t.type?t.after:t.before,i=JSON.parse(a),n=t.index;i.forEach((function(a){e.redoObjDomToEditor(t,n,a),n++}))}},redoObjDomToEditor:function(e,t,a){var i=new Le(a.type,a.cls,a.text,a.styleRange);i.computerStyleRangeToDom(),1==e.type?this.editorDom.length>t&&ba.$set(this.editorDom,t,i):2==e.type?this.editorDom.length==t?this.editorDom.push(i):this.editorDom.length>t&&this.editorDom.splice(t,0,i):3==e.type&&this.editorDom.length>t&&this.editorDom.splice(t,1)},undoObjDomToEditor:function(e,t,a){var i=new Le(a.type,a.cls,a.text,a.styleRange);i.computerStyleRangeToDom(),1==e.type?this.editorDom.length>t&&ba.$set(this.editorDom,t,i):2==e.type?this.editorDom.length>t&&this.editorDom.splice(t,1):3==e.type&&(this.editorDom.length==t?this.editorDom.push(i):this.editorDom.length>t&&this.editorDom.splice(t,0,i))}};var Ne=Ae,Ue={getSelectionContainer:function(e){var t=window.getSelection().getRangeAt(0).commonAncestorContainer;return 1!=t.nodeType&&(t=t.parentNode),1!=t.nodeType||e&&this.isRootBox(t)?null:t},getRootDom:function(e){var t=this.getRealElem(e);return!t||this.isRootBox(e)?null:this.isRootBox(t.parentNode)?t:this.getRootDom(t.parentNode)},getRealElem:function(e){return e&&1!==e.nodeType?e.parentNode:e},isRootBox:function(e){return this.domHaveClass(e,"mg-editor")},domHaveClass:function(e,t){return e&&e.classList&&e.classList.contains(t)}},ze=(a("1157"),{name:"mg-editor",data:function(){return{editor:{},editorRange:{startOffset:0,endOffset:0,startDomIndex:-1,endDomIndex:-1},userInput:{},userInputStyle:{top:0,left:0,display:"none"},editorCursorStyle:{top:0,left:0,display:"none"},editorToolbarStyle:{top:0,left:0,display:"none"},editorDom:[],editDom:{},userInputData:"",undoRedo:{}}},mounted:function(){var e=this;this.undoRedo=new Ne(this.editorDom),this.editor=this.$refs.mgEditor,this.userInput=this.$refs.userInput,this.editorDom.push(new Le("text","head head-h1")),document.body.addEventListener("click",(function(t){for(var a=Math.min(e.editorDom.length,e.editorRange.endDomIndex),i=e.editorRange.startDomIndex;i=0){for(var c=a.startOffset,d=Ue.getRealElem(a.startContainer).previousSibling;d;)c+=d.innerText.length,d=d.previousSibling;for(var u=e.editorDom[s],p=l?a.endOffset:u.text.length,h=Ue.getRealElem(a.endContainer).previousSibling;h;)p+=h.innerText.length,h=h.previousSibling;u.setOffset(c,p)}if(!l){for(var g=s+1;g=0){var v=e.editorDom[r];v.setOffset(0,f)}}e.editorRange.startDomIndex=s,e.editorRange.endDomIndex=r+1,e.editorToolbarStyle.display="block"}else e.hideToolbar()}else e.hideToolbar()}))},methods:{editorClick:function(e){var t=this.editorDom[this.editorDom.length-1];"locate"!=t.type&&(t=new Le("locate","locate"),this.editorDom.push(t),this.undoRedo.execute(2,this.editorDom.length-1,t,"")),setTimeout((function(){return e.target.lastChild.click()}),100)},domClick:function(e,t){var a=this;setTimeout((function(){return a.domClickTimer(e,t)}),50)},domClickTimer:function(e,t){var a=this;this.editDom=e,this.editDom.target=t.target,this.userInputStyle.top=t.pageY+"px",this.userInputStyle.left=t.pageX+"px",this.userInputStyle.display="block";var i=window.getComputedStyle(t.target),n=parseInt(i.fontSize),o=t.target.offsetTop+n/2/2,s=t.target.offsetLeft;this.editorCursorStyle.top=o+"px",this.editorCursorStyle.left=s+"px",this.editorCursorStyle.height=i.fontSize,this.editorCursorStyle.display="block";var r=this.getSelectionRange();if(null!=r){var l=Ue.getRootDom(r.startContainer),c=Ue.getRootDom(r.endContainer),d=l.getAttribute("index"),u=c.getAttribute("index");if(d==u){for(var p=r.startOffset,h=Ue.getRealElem(r.startContainer).previousSibling;h;h=h.previousSibling)p+=h.innerText.length;for(var g=r.endOffset,f=Ue.getRealElem(r.endContainer).previousSibling;f;f=f.previousSibling)g+=f.innerText.length;this.editorRange.startOffset=p,this.editorRange.endOffset=g,p==g&&(this.hideToolbar(),setTimeout((function(){return a.userInput.focus()}),50))}}else this.hideToolbar()},userInputDataChange:function(){if(this.userInputData){var e;"locate"==this.editDom.type&&(this.editDom.type="text",this.editDom.removeClass("locate"),e=new Le("locate","locate"),this.editorDom.push(e));var t=this.editDom.clone(),a=this.editDom.text||"",i=this.editorRange.startOffset;this.editDom.addText(i,this.userInputData),i0?e.getRangeAt(0):null}}}),Re=ze,Ee=Object(d["a"])(Re,ke,xe,!1,null,null,null),$e=Ee.exports,Fe={data:function(){return{editor:{}}},components:{"mg-editor":$e},mounted:function(){},methods:{}},Oe=Fe,Me=Object(d["a"])(Oe,ye,be,!1,null,null,null),He=Me.exports,We=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._v("没有权限访问该模块")])},Be=[],Ve={data:function(){return{}},mounted:function(){},methods:{}},je=Ve,qe=Object(d["a"])(je,We,Be,!1,null,null,null),Ge=qe.exports,Ke=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"home-vue",staticStyle:{padding:"10px"}},[i("div",{staticStyle:{"max-width":"800px",margin:"0 auto"}},[i("el-tabs",{attrs:{value:"first"}},[i("el-tab-pane",{attrs:{label:e.newsTypesMap[e.searchParam.newsType],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))])]),i("div",{staticClass:"page-preview-box"},[i("div",{staticClass:"page-preview-title",domProps:{innerHTML:e._s(t.pageTitle)},on:{click:function(a){return e.showPageDetail(t)}}}),i("div",{staticClass:"page-preview-content",domProps:{innerHTML:e._s(t.previewContent)}}),i("div",[i("span",[i("img",{staticClass:"zan-img",attrs:{src:a("6c9a")}}),e._v(" "+e._s(t.zanNum)+" ")]),i("span",[i("i",{staticClass:"el-icon-view view-img"}),e._v(" "+e._s(t.viewNum)+" ")]),i("span",[e._v(e._s(t.updateTime||t.createTime))])])])])}))],2)],1)],1)])},Ze=[],Qe={data:function(){return{totalCount:0,searchParam:{spaceId:"",newsType:1,pageNum:1,pageSize:20},spacePageNews:[],newsTypesArr:[{key:1,val:"最近更新"},{key:2,val:"最新创建"},{key:3,val:"查看最多"},{key:4,val:"点赞最多"},{key:5,val:"查看+点赞最多"}],newsTypesMap:{}}},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{getSpacePageNews:function(){var e=this;P.pageNews(this.searchParam).then((function(t){e.spacePageNews=t.data||[]}))},handleSizeChange:function(e){this.searchParam.pageSize=e,this.getSpacePageNews()},showPageDetail:function(e){this.nowClickPath={pageId:e.pageId},this.$router.push({path:"/page/show",query:this.nowClickPath})},handleCurrentChange:function(e){this.searchParam.pageNum=e,this.getSpacePageNews()},initQueryParam:function(e){var t=this;this.searchParam={spaceId:e.query.spaceId,newsType:1,pageNum:1,pageSize:20},this.searchParam.spaceId&&this.getSpacePageNews(),this.newsTypesMap={},this.newsTypesArr.forEach((function(e){return t.newsTypesMap[e.key]=e.val}))}}},Je=Qe,Xe=(a("2629"),Object(d["a"])(Je,Ke,Ze,!1,null,null,null)),Ye=Xe.exports,et=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-info-vue"},[a("div",{staticStyle:{margin:"0 auto","max-width":"1000px"}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e._v("我的信息")]),a("el-form",{staticClass:"search-form-box",attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"账号:"}},[e._v(e._s(e.userInfo.userNo))]),a("el-form-item",{attrs:{label:"用户名:"}},[e._v(e._s(e.userInfo.userName))]),a("el-form-item",{attrs:{label:"手机号:"}},[e._v(e._s(e.userInfo.phone))]),a("el-form-item",{attrs:{label:"邮箱:"}},[e._v(e._s(e.userInfo.email))]),a("el-form-item",{attrs:{label:"状态:"}},[e._v(e._s(0==e.userInfo.delFlag?"正常":"停用"))]),a("el-form-item",{attrs:{label:"性别:"}},[e._v(e._s(0==e.userInfo.sex?"女":"男"))])],1)],1)],1)])},tt=[],at={data:function(){return{userInfo:{}}},mounted:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;S.getSelfUserInfo().then((function(t){e.userInfo=t.data}))}}},it=at,nt=(a("dcfc"),Object(d["a"])(it,et,tt,!1,null,null,null)),ot=nt.exports,st=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-show-vue"},[i("el-row",{staticStyle:{height:"100%"},attrs:{type:"border-card"}},[i("el-col",{staticStyle:{padding:"20px","border-right":"1px solid #f1f1f1",height:"100%",overflow:"auto"},attrs:{span:e.actionTabVisible?18:24}},[i("el-row",[i("el-col",{attrs:{xs:24,sm:e.navigationList.length>0?20:24,md:e.navigationList.length>0?20:24,lg:e.navigationList.length>0?18:24,xl:e.navigationList.length>0?18:24}},[i("div",{staticStyle:{"max-width":"1000px",margin:"0 auto","padding-left":"10px"}},[i("div",{ref:"wikiTitle",staticClass:"wiki-title"},[e._v(e._s(e.wikiPage.name))]),i("div",{staticClass:"wiki-author"},[i("div",[e.wikiPage.updateUserName?i("span",[e._v(e._s(e.wikiPage.updateUserName)+" 于 "+e._s(e.wikiPage.updateTime)+" 修改")]):i("span",{staticClass:"create-user-time"},[e._v(e._s(e.wikiPage.createUserName)+" 于 "+e._s(e.wikiPage.createTime)+" 创建")]),i("div",{staticStyle:{float:"right"}},[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"text",icon:"el-icon-chat-line-round"},on:{click:e.showCommentWiki}},[e._v("评论")]),1==e.wikiPageAuth.canUploadFile?i("el-upload",{staticClass:"upload-page-file",staticStyle:{display:"inline","margin-right":"10px"},attrs:{action:e.uploadFileUrl,"with-credentials":!0,"on-success":e.uploadFileSuccess,"on-error":e.uploadFileError,name:"files","show-file-list":"",multiple:"",data:e.uploadFormData,limit:999}},[i("el-button",{attrs:{type:"text",icon:"el-icon-upload"}},[e._v("上传附件")])],1):e._e(),1==e.wikiPageAuth.canEdit?i("el-button",{attrs:{type:"text",icon:"el-icon-edit"},on:{click:e.editWiki}},[e._v("编辑")]):e._e(),i("el-dropdown",{staticStyle:{"margin-left":"10px"},on:{command:e.handleMoreCommand}},[i("el-button",{attrs:{type:"text"}},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"showPageHistory",icon:"el-icon-time"}},[e._v("查看历史版本")]),1==e.wikiPageAuth.canConfigAuth?i("el-dropdown-item",{attrs:{command:"editAuth",icon:"el-icon-s-check"}},[e._v("权限设置")]):e._e(),1==e.spaceInfo.openDoc?i("el-dropdown-item",{attrs:{command:"showOpenPage",icon:"el-icon-share"}},[e._v("查看开放文档")]):e._e(),1==e.spaceInfo.openDoc?i("el-dropdown-item",{attrs:{command:"showMobileView",icon:"el-icon-mobile-phone"}},[e._v("手机端查看")]):e._e(),i("el-dropdown-item",{attrs:{command:"exportWord",icon:"el-icon-download"}},[e._v("导出为Word文档")]),1==e.wikiPageAuth.canDelete?i("el-dropdown-item",{attrs:{command:"deletePage",icon:"el-icon-delete"}},[e._v("删除")]):e._e()],1)],1)],1)])]),i("div",{staticClass:"wiki-files"},[i("el-table",{directives:[{name:"show",rawName:"v-show",value:e.pageFileList.length>0,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))])]}}])}),i("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),i("el-table-column",{attrs:{label:"文件大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.computeFileSize(t.row.fileSize)))]}}])}),i("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),i("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}}),1==e.wikiPageAuth.canDeleteFile?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(a){return e.deletePageFile(t.row)}}},[e._v("删除")])]}}],null,!1,2397412326)}):e._e()],1)],1),i("div",{ref:"pageContent",staticClass:"wiki-page-content"},[2==e.wikiPage.editorType?i("div",{directives:[{name:"highlight",rawName:"v-highlight"}],staticClass:"markdown-body",domProps:{innerHTML:e._s(e.pageShowDetail)}}):i("div",{staticClass:"wang-editor-body",domProps:{innerHTML:e._s(e.pageShowDetail)}})]),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){return e.zanPage(1)}}},[i("img",{staticStyle:{"vertical-align":"middle"},attrs:{src:a("6c9a")}}),e._v(" 赞")]),i("span",{directives:[{name:"show",rawName:"v-show",value:1==e.wikiPage.selfZan,expression:"wikiPage.selfZan == 1"}],on:{click:function(t){return e.zanPage(0)}}},[i("img",{staticStyle:{"vertical-align":"middle",transform:"rotateX(180deg)"},attrs:{src:a("6c9a")}}),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()]),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)+"次阅读 ")])])])]),e.navigationList.length>0?i("el-col",{attrs:{xs:0,sm:4,md:4,lg:6,xl:6}},[i("Navigation",{ref:"navigation",attrs:{heading:e.navigationList}})],1):e._e()],1)],1),i("el-col",{directives:[{name:"show",rawName:"v-show",value:e.actionTabVisible,expression:"actionTabVisible"}],staticStyle:{height:"100%"},attrs:{span:6}},[i("i",{staticClass:"el-icon-close close-action-tab",on:{click:e.closeActionTab}}),i("el-tabs",{on:{"tab-click":e.actionTabClick},model:{value:e.actionTabActiveName,callback:function(t){e.actionTabActiveName=t},expression:"actionTabActiveName"}},[i("el-tab-pane",{attrs:{label:"评论",name:"comment"}},[i("div",{ref:"actionTabComment",staticClass:"action-tab-box",staticStyle:{"padding-bottom":"130px","box-sizing":"border-box",height:"calc(100vh - 80px)"}},[e.commentList.length<=0?i("div",{staticClass:"action-box-empty"},[e._v("暂无评论")]):i("el-timeline",e._l(e.commentList,(function(t){return i("el-timeline-item",{attrs:{timestamp:t.createTime,placement:"top"}},[i("el-card",{staticClass:"box-card comment-card",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"head",style:"background-color: "+t.color},[e._v(e._s(t.createUserName.substr(0,1)))]),i("div",{staticClass:"comment-user-name"},[e._v(" "+e._s(t.createUserName)+" "),e.canDeleteComment(t)?i("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.visible,callback:function(a){e.$set(t,"visible",a)},expression:"comment.visible"}},[i("p",[e._v("确定要除删此评论吗?")]),i("div",{staticStyle:{"text-align":"right",margin:"0"}},[i("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){t.visible=!1}}},[e._v("取消")]),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.deleteComment(t.id)}}},[e._v("确定")])],1),i("i",{staticClass:"el-icon-delete",attrs:{slot:"reference"},slot:"reference"})]):e._e()],1),i("pre",{staticClass:"comment-content"},[e._v(e._s(t.content))])])],1)})),1)],1),i("div",{staticClass:"comment-input-box"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentTextInput,expression:"commentTextInput"}],attrs:{rows:"5",placeholder:"发表评论"},domProps:{value:e.commentTextInput},on:{input:function(t){t.target.composing||(e.commentTextInput=t.target.value)}}}),i("el-button",{staticStyle:{float:"right",margin:"2px 5px"},attrs:{type:"primary",size:"mini"},on:{click:e.submitPageComment}},[e._v("发送")])],1)]),i("el-tab-pane",{attrs:{label:"修改历史",name:"history"}},[i("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.getPageHistoryByScroll,expression:"getPageHistoryByScroll"}],staticClass:"action-tab-box"},[e.pageHistoryList.length<=0?i("div",{staticClass:"action-box-empty"},[e._v("暂无修改历史记录")]):i("el-timeline",e._l(e.pageHistoryList,(function(t){return i("el-timeline-item",[i("el-tag",{staticClass:"history-item",attrs:{type:e.pageHistoryChoice.id==t.id?3==t.loading?"danger":"success":"info"},on:{click:function(a){return e.historyClick(t)}}},[i("div",[e._v(e._s(t.createUserName))]),i("div",[e._v(e._s(t.createTime))])]),i("i",{directives:[{name:"show",rawName:"v-show",value:1==t.loading,expression:"history.loading==1"}],staticClass:"el-icon-loading history-loading-status"}),i("i",{directives:[{name:"show",rawName:"v-show",value:2==t.loading,expression:"history.loading==2"}],staticClass:"el-icon-circle-check history-loading-status"}),i("i",{directives:[{name:"show",rawName:"v-show",value:3==t.loading,expression:"history.loading==3"}],staticClass:"el-icon-circle-close history-loading-status"})],1)})),1)],1)])],1)],1)],1),i("el-dialog",{attrs:{title:"手机扫码查看",visible:e.mobileScanDialogVisible,width:"400px"},on:{"update:visible":function(t){e.mobileScanDialogVisible=t}}},[i("div",{staticStyle:{"text-align":"center"}},[i("div",{ref:"qrCodeDiv",staticClass:"mobile-qr"}),i("div",[e._v("使用微信或手机浏览器扫一扫查看")]),i("div",[e._v("或 "),i("a",{attrs:{target:"_blank",href:e.qrCodeUrl}},[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:"用户"}}),i("el-table-column",{attrs:{prop:"createTime",label:"时间"}})],1)],1),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","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",autoComplete:"new-password",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}})})),1),i("el-button",{on:{click:e.addPageAuthUser}},[e._v("添加")])],1),i("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.pageAuthUserList,border:""}},[i("el-table-column",{attrs:{prop:"userName",label:"用户",width:"150"}}),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(a){e.$set(t.row,"editPage",a)},expression:"scope.row.editPage"}},[e._v("编辑")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.deletePage,callback:function(a){e.$set(t.row,"deletePage",a)},expression:"scope.row.deletePage"}},[e._v("删除")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileUpload,callback:function(a){e.$set(t.row,"pageFileUpload",a)},expression:"scope.row.pageFileUpload"}},[e._v("文件上传")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileDelete,callback:function(a){e.$set(t.row,"pageFileDelete",a)},expression:"scope.row.pageFileDelete"}},[e._v("文件删除")]),i("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageAuthManage,callback:function(a){e.$set(t.row,"pageAuthManage",a)},expression:"scope.row.pageAuthManage"}},[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(a){return e.deleteUserPageAuth(t.row)}}},[e._v("删除")])]}}])})],1),i("div",[i("el-button",{attrs:{type:"primary"},on:{click:e.saveUserPageAuth}},[e._v("保存配置")])],1)],1),i("div",{ref:"imagePreview"},[e.showImagePreview?i("el-image-viewer",{attrs:{"url-list":e.showImagePreviewList,"on-close":e.closeImagePreview,"initial-index":e.previewInitialIndex}}):e._e()],1),i("form",{ref:"downloadForm",attrs:{method:"post",action:e.downloadFormParam.url,target:"_blank"}},e._l(e.downloadFormParam.param,(function(e,t){return i("input",{attrs:{type:"hidden",name:t},domProps:{value:e}})})),0)],1)},rt=[],lt=a("d044"),ct=a.n(lt),dt=(a("b680"),{computeFileSize:function(e){if(!e)return"-";var t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";var a=t+"",i=a.indexOf("."),n=a.substr(i+1,2);return"00"==n?a.substring(0,i)+a.substr(i+3,2):t}}),ut={createNavigationHeading:function(){var e=[],t=document.querySelector(".wiki-page-content").querySelectorAll("h1,h2,h3,h4,h5,h6");return t.length<=0?[]:(t.forEach((function(t){var a=t.innerHTML.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/<\/?[^>]+(>|$)/g,"");e.push({node:t,level:parseInt(t.tagName.replace(/[h]/i,""),10),text:a})})),e)}},pt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navigation"},[a("div",{ref:"navigation",staticStyle:{display:"inline-block",width:"100%"}}),a("div",{staticClass:"navigation-heading",style:{width:e.navigationWidth}},e._l(e.heading,(function(t){return a("div",{class:"heading-item heading-"+t.level,on:{click:function(a){return e.headingItemClick(t)}}},[e._v(" "+e._s(t.text)+" ")])})),0)])},ht=[],gt={props:{heading:{type:Array,default:[]}},data:function(){return{navigationWidth:"100px"}},watch:{"$store.state.global.rightAsideWidth":function(){this.computeNavigationWidth()}},mounted:function(){var e=this;window.onresize=function(){e.computeNavigationWidth()},setTimeout((function(){return e.computeNavigationWidth()}),100)},methods:{computeNavigationWidth:function(){this.navigationWidth=window.getComputedStyle(this.$refs.navigation,null).width},headingItemClick:function(e){e.node.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}},ft=gt,mt=(a("43a0"),Object(d["a"])(ft,pt,ht,!1,null,null,null)),vt=mt.exports,wt=a("b2d8"),yt=a("08a9"),bt=(a("c350"),a("64e1"),{colorArr:["#67C23A","#409EFF","#E6A23C","#F56C6C","#909399","#303133"],userHeadColor:{}}),kt={props:["spaceInfo"],components:{"el-image-viewer":yt["a"],mavonEditor:wt["mavonEditor"],Navigation:vt},data:function(){return{wikiPage:{},wikiPageAuth:{},pageContent:{},pageFileList:[],selfUserId:0,uploadFileList:[],uploadFormData:{pageId:0},zanUserDialogVisible:!1,zanUserList:[],parentPath:{},qrCodeUrl:"",mobileScanDialogVisible:!1,commentTextInput:"",commentList:[],recommentInfo:{},uploadFileUrl:".//zyplayer-doc-wiki/page/file/upload",pageAuthDialogVisible:!1,pageAuthUserList:[],searchUserList:[],pageAuthNewUser:"",pageAuthUserLoading:!1,actionTabVisible:!1,actionTabActiveName:"comment",pageHistoryDetail:"",pageShowDetail:"",pageHistoryChoice:{},pageHistoryList:[],pageHistoryPageNum:1,navigationList:[],previewInitialIndex:0,showImagePreview:!1,showImagePreviewList:[],markdownToolbars:{fullscreen:!0,readmodel:!0},downloadFormParam:{url:"zyplayer-doc-wiki/page/download",param:{}}}},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{editWiki:function(){var e=this,t={pageId:this.parentPath.pageId};P.pageLock(t).then((function(){e.$router.push({path:"/page/edit",query:{pageId:e.parentPath.pageId}})}))},getSearchUserList:function(e){var t=this;""!=e&&(this.pageAuthUserLoading=!0,S.getUserBaseInfo({search:e}).then((function(e){t.searchUserList=e.data||[],t.pageAuthUserLoading=!1})))},handleMoreCommand:function(e){"editAuth"==e?this.editWikiAuth():"deletePage"==e?this.deleteWikiPage():"showPageHistory"==e?this.showPageHistory():"showOpenPage"==e?this.showOpenPage():"showMobileView"==e?this.showMobileView():"exportWord"==e&&this.exportWord()},exportWord:function(){var e=this;this.downloadFormParam.param={pageId:this.wikiPage.id},setTimeout((function(){return e.$refs.downloadForm.submit()}),0)},showOpenPage:function(){if(1!=this.spaceInfo.openDoc)this.$message.warning("该空间未开放,无法查看开放文档地址");else{var e=this.$router.resolve({path:"/page/share/view",query:{pageId:this.wikiPage.id,space:this.spaceInfo.uuid}});window.open(e.href,"_blank")}},showMobileView:function(){var e=this;if(1!=this.spaceInfo.openDoc)this.$message.warning("该空间未开放,无法查看开放文档地址");else{var t=this.$router.resolve({path:"/page/share/mobile/view",query:{pageId:this.wikiPage.id,space:this.spaceInfo.uuid}});this.mobileScanDialogVisible=!0;var a=window.location.href.split("#")[0];setTimeout((function(){e.qrCodeUrl=a+t.href,e.$refs.qrCodeDiv.innerHTML="",new ct.a(e.$refs.qrCodeDiv,{text:e.qrCodeUrl,width:250,height:250,colorDark:"#333333",colorLight:"#ffffff",correctLevel:ct.a.CorrectLevel.M})}),0)}},addPageAuthUser:function(){var e=this;if(this.pageAuthNewUser.length<=0)this.$message.warning("请先选择用户");else if(this.searchUserList.find((function(t){return t.userId==e.pageAuthNewUser})))this.pageAuthNewUser="";else{for(var t="",a=0;a0){var t=this.wikiPage.name||"WIKI-内容展示";e.unshift({level:1,node:this.$refs.wikiTitle,text:t})}this.navigationList=e},closeImagePreview:function(){this.showImagePreview=!1},previewPageImage:function(){var e=this,t=[],a=this.$refs.pageContent.querySelectorAll("img");a.forEach((function(a,i){t.push(a.src),a.onclick=function(){e.previewInitialIndex=i,e.showImagePreviewList=t,e.showImagePreview=!0,setTimeout((function(){return e.initImageViewerMask()}),0)}}))},initImageViewerMask:function(){var e=this,t=this.$refs.imagePreview.querySelectorAll(".el-image-viewer__mask");t.forEach((function(t){t.onclick=function(){e.showImagePreview=!1}}))},loadCommentList:function(e){var t=this;this.cancelCommentUser(),P.pageCommentList({pageId:e}).then((function(e){for(var a=e.data||[],i=0;i0?"":this.parentId,s={spaceId:this.spaceId,parentId:o,id:this.wikiPage.id,name:this.wikiPageEdit.pageTitle,editorType:this.wikiPageEdit.editorType,content:a,preview:i};P.updatePage(s).then((function(a){t.$message.success("保存成功!"),t.$emit("loadPageList"),t.pageId=a.data.id,1==e?t.$router.push({path:"/page/show",query:{pageId:t.pageId}}):t.loadPageDetail(t.pageId)}))}else this.$message.warning("标题不能为空")},loadPageDetail:function(e){var t=this;P.pageDetail({id:e}).then((function(e){t.wikiPage=e.data.wikiPage||{},t.pageContent=e.data.pageContent||{},t.pageFileList=e.data.fileList||[],t.wikiPageEdit.pageTitle=t.wikiPage.name,t.wikiPageEdit.editorType=t.wikiPage.editorType,2===t.wikiPageEdit.editorType?t.markdownContent=t.pageContent.content||"":setTimeout((function(){t.$refs.wangEditor.setTitle(t.wikiPage.name||""),t.$refs.wangEditor.setHtml(t.pageContent.content||"")}),0)}))},loadParentPageDetail:function(e){var t=this;e&&P.pageDetail({id:e}).then((function(e){t.parentWikiPage=e.data.wikiPage||{}}))},cleanPage:function(){this.wikiPage={},this.pageContent={},this.pageFileList=[],this.wikiPageEdit.pageTitle="",this.editor.txt&&this.editor.txt.html("")},initQueryParam:function(e){var t=this;this.pageId=e.query.pageId,this.parentId=e.query.parentId,this.pageId?(this.loadPageDetail(this.pageId),P.pageLock({pageId:this.pageId}).catch((function(e){var a=t;t.$alert(e.errMsg||"未知错误","错误",{confirmButtonText:"确定",callback:function(){a.$router.back()}})}))):(this.loadParentPageDetail(this.parentId),this.cleanPage())},addMarkdownImage:function(e,t){var a=this,i=new FormData;i.append("files",t),y()({url:this.fileUploadUrl,method:"post",data:i,headers:{"Content-Type":"multipart/form-data"},timeout:1e4,withCredentials:!0}).then((function(t){var i=t.data.data||{};i.url?a.$refs.mavonEditor.$img2Url(e,i.url):a.$message.warning("上传失败,返回数据为空")})).catch((function(e){a.$message.warning("上传失败:"+e.message)}))},initEditor:function(){}}},Rt=zt,Et=(a("5e96"),Object(d["a"])(Rt,Ct,_t,!1,null,null,null)),$t=Et.exports,Ft=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"space-manage-vue",staticStyle:{"min-height":"100%"}},[a("el-breadcrumb",{staticStyle:{padding:"20px 10px"},attrs:{"separator-class":"el-icon-arrow-right"}},[a("el-breadcrumb-item",[e._v("WIKI文档")]),a("el-breadcrumb-item",[e._v("空间管理")])],1),a("div",{staticStyle:{"max-width":"1200px",margin:"0 auto",background:"#fff",padding:"20px","min-height":"100%","box-sizing":"border-box"}},[a("div",{staticStyle:{"text-align":"right","margin-bottom":"10px"}},[a("span",{staticStyle:{float:"left","line-height":"40px"}},[e._v(" 仅展示我收藏的空间: "),a("el-switch",{attrs:{"inactive-value":"0","active-value":"1"},on:{change:e.wikiOnlyShowFavoriteChange},model:{value:e.userSetting.wiki_only_show_favorite,callback:function(t){e.$set(e.userSetting,"wiki_only_show_favorite",t)},expression:"userSetting.wiki_only_show_favorite"}}),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"控制左上角空间下拉列表仅展示我收藏的空间",placement:"top-start"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"vertical-align":"middle","margin-left":"10px",color:"#999"}})])],1),a("el-button",{attrs:{icon:"refresh",loading:e.spaceListLoading},on:{click:e.loadSpaceList}},[e._v("刷新")]),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.showCreateSpace}},[e._v("创建空间")])],1),a("el-table",{staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.spaceList,border:""}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"60"}}),a("el-table-column",{attrs:{prop:"name",label:"名字"}}),a("el-table-column",{attrs:{prop:"spaceExplain",label:"说明"}}),a("el-table-column",{attrs:{label:"开放地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.openDoc?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showOpenSpace(t.row.uuid)}}},[e._v(e._s(t.row.name))]):a("span",[e._v("暂未开放")])]}}])}),a("el-table-column",{attrs:{prop:"createUserName",label:"创建人"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{prop:"favorite",label:"收藏",width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.favorite?a("i",{staticClass:"el-icon-star-on favorite-icon",on:{click:function(a){return e.updateSpaceFavorite(t.row)}}}):a("i",{staticClass:"el-icon-star-off favorite-icon",on:{click:function(a){return e.updateSpaceFavorite(t.row)}}})]}}])}),a("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return e.userSelfInfo.id==t.row.createUserId?[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(a){return e.editSpaceInfo(t.row)}}},[e._v("编辑")]),a("el-button",{attrs:{size:"small",type:"warning"},on:{click:function(a){return e.editSpaceAuth(t.row)}}},[e._v("授权")]),a("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(a){return e.deleteSpaceInfo(t.row)}}},[e._v("删除")])]:void 0}}],null,!0)})],1)],1),a("el-dialog",{attrs:{title:"权限管理",visible:e.spaceAuthDialogVisible,width:"900px"},on:{"update:visible":function(t){e.spaceAuthDialogVisible=t}}},[a("el-row",[a("el-select",{staticStyle:{width:"750px","margin-right":"10px"},attrs:{filterable:"",placeholder:"请选择分组"},model:{value:e.spaceAuthNewGroupId,callback:function(t){e.spaceAuthNewGroupId=t},expression:"spaceAuthNewGroupId"}},e._l(e.searchGroupList,(function(t){return a("el-option",{key:t.id,attrs:{label:e.searchGroupMap[t.id],value:t.id}})})),1),a("el-button",{on:{click:e.addSpaceAuthUserGroup}},[e._v("添加")])],1),a("el-table",{staticStyle:{width:"100%",margin:"10px 0"},attrs:{data:e.spaceAuthGroupList,border:""}},[a("el-table-column",{attrs:{prop:"groupId",label:"分组名",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.searchGroupMap[t.row.groupId]))]}}])}),a("el-table-column",{attrs:{label:"权限"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.editPage,callback:function(a){e.$set(t.row,"editPage",a)},expression:"scope.row.editPage"}},[e._v("编辑")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.deletePage,callback:function(a){e.$set(t.row,"deletePage",a)},expression:"scope.row.deletePage"}},[e._v("删除")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileUpload,callback:function(a){e.$set(t.row,"pageFileUpload",a)},expression:"scope.row.pageFileUpload"}},[e._v("文件上传")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageFileDelete,callback:function(a){e.$set(t.row,"pageFileDelete",a)},expression:"scope.row.pageFileDelete"}},[e._v("文件删除")]),a("el-checkbox",{attrs:{"true-label":1,"false-label":0},model:{value:t.row.pageAuthManage,callback:function(a){e.$set(t.row,"pageAuthManage",a)},expression:"scope.row.pageAuthManage"}},[e._v("权限管理")])]}}])}),a("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"danger",plain:""},on:{click:function(a){return e.deleteGroupSpaceAuth(t.row)}}},[e._v("删除")])]}}])})],1),a("div",{staticStyle:{"text-align":"right"}},[a("el-button",{on:{click:e.manageUserGroup}},[e._v("分组管理")]),a("el-button",{attrs:{type:"primary"},on:{click:e.saveGroupSpaceAuth}},[e._v("保存配置")])],1)],1),a("create-space",{ref:"createSpace",on:{success:e.loadSpaceList}})],1)},Ot=[],Mt={data:function(){return{spaceListLoading:!1,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"}]},userSelfInfo:{},editSpaceId:"",spaceAuthDialogVisible:!1,spaceAuthNewGroupId:"",spaceAuthGroupLoading:!1,searchGroupList:[],searchGroupMap:{},spaceAuthGroupList:[],userSetting:{wiki_only_show_favorite:0}}},components:{"create-space":D},mounted:function(){this.loadSpaceList(),this.getSelfUserInfo(),this.getSpaceSettingList()},methods:{showOpenSpace:function(e){var t=this.$router.resolve({path:"/page/share/home",query:{space:e}});window.open(t.href,"_blank")},showCreateSpace:function(){this.$refs.createSpace.show()},editSpaceInfo:function(e){this.$refs.createSpace.show(e.id)},addSpaceAuthUserGroup:function(){var e=this;this.spaceAuthNewGroupId?(this.spaceAuthGroupList.find((function(t){return t.groupId==e.spaceAuthNewGroupId}))||this.spaceAuthGroupList.push({groupId:this.spaceAuthNewGroupId,editPage:0,commentPage:0,deletePage:0,pageFileUpload:0,pageFileDelete:0,pageAuthManage:0}),this.spaceAuthNewGroupId=""):this.$message.warning("请先选择分组")},updateSpaceFavorite:function(e){var t=1==e.favorite?1:0;P.spaceFavoriteUpdate({spaceId:e.id,delFlag:t}).then((function(t){e.favorite=1==e.favorite?0:1}))},saveGroupSpaceAuth:function(){var e=this,t={spaceId:this.editSpaceId,authList:JSON.stringify(this.spaceAuthGroupList)};P.spaceAuthAssign(t).then((function(t){e.$message.success("授权成功!")}))},manageUserGroup:function(){var e=location.href.substring(0,location.href.indexOf("/doc-wiki"))+"#/console/userGroupList";window.open(e,"_blank")},deleteGroupSpaceAuth:function(e){this.spaceAuthGroupList=this.spaceAuthGroupList.filter((function(t){return t.groupId!=e.groupId}))},editSpaceAuth:function(e){var t=this;this.editSpaceId=e.id,this.spaceAuthNewGroupId="",this.spaceAuthGroupList=[],S.userGroupList().then((function(e){t.searchGroupList=e.data||[],t.searchGroupList.forEach((function(e){return t.searchGroupMap[e.id]=e.name}))})),P.spaceAuthList({spaceId:e.id}).then((function(e){t.spaceAuthGroupList=e.data||[],t.spaceAuthDialogVisible=!0}))},deleteSpaceInfo:function(e){var t=this;this.$confirm("确定要删除此空间及下面的所有文档吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var a={id:e.id,delFlag:1};P.updateSpace(a).then((function(){t.$message.success("删除成功"),t.loadSpaceList(),t.$emit("loadSpace")}))}))},loadSpaceList:function(){var e=this;this.spaceListLoading=!0,P.spaceList({ignoreFavorite:1}).then((function(t){e.spaceList=t.data||[],setTimeout((function(){return e.spaceListLoading=!1}),500)}))},wikiOnlyShowFavoriteChange:function(){var e=this,t={name:"wiki_only_show_favorite",value:this.userSetting.wiki_only_show_favorite};P.spaceSettingUpdate(t).then((function(t){e.$emit("loadSpace")}))},getSpaceSettingList:function(){var e=this;P.spaceSettingList().then((function(t){var a=t.data||{};e.userSetting={wiki_only_show_favorite:a.wiki_only_show_favorite||0}}))},getSelfUserInfo:function(){var e=this;S.getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))}}},Ht=Mt,Wt=(a("8186"),Object(d["a"])(Ht,Ft,Ot,!1,null,null,null)),Bt=Wt.exports,Vt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"page-share-home-vue",staticStyle:{padding:"10px"}},[i("div",{staticStyle:{"max-width":"800px",margin:"0 auto"}},[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))])]),i("div",{staticClass:"page-preview-box"},[i("div",{staticClass:"page-preview-title",domProps:{innerHTML:e._s(t.pageTitle)},on:{click:function(a){return e.showPageDetail(t)}}}),i("div",{staticClass:"page-preview-content",domProps:{innerHTML:e._s(t.previewContent)}}),i("div",[i("span",[i("img",{staticClass:"zan-img",attrs:{src:a("6c9a")}}),e._v(" "+e._s(t.zanNum)+" ")]),i("span",[i("i",{staticClass:"el-icon-view view-img"}),e._v(" "+e._s(t.viewNum)+" ")]),i("span",[e._v(e._s(t.updateTime||t.createTime))])])])])})),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)],2)])},jt=[],qt={data:function(){return{totalCount:0,searchParam:{spaceId:"",newsType:1,pageNum:1,pageSize:20},spacePageNews:[]}},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{getSpacePageNews:function(){var e=this;P.openPageNews(this.searchParam).then((function(t){e.spacePageNews=t.data||[],e.totalCount=t.total}))},handleSizeChange:function(e){this.searchParam.pageSize=e,this.getSpacePageNews()},showPageDetail:function(e){this.nowClickPath={space:e.space,pageId:e.pageId},this.$router.push({path:"/page/share/view",query:this.nowClickPath})},handleCurrentChange:function(e){this.searchParam.pageNum=e,this.getSpacePageNews()},initQueryParam:function(e){this.searchParam={space:e.query.space,newsType:1,pageNum:1,pageSize:20},this.searchParam.space&&this.getSpacePageNews()}}},Gt=qt,Kt=(a("d132"),Object(d["a"])(Gt,Vt,jt,!1,null,null,null)),Zt=Kt.exports,Qt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-share-view-vue"},[a("el-row",{attrs:{type:"border-card"}},[a("el-row",[e.navigationList.length>0?a("el-col",{attrs:{xs:0,sm:4,md:4,lg:6,xl:6}},[a("Navigation",{attrs:{heading:e.navigationList}})],1):e._e(),a("el-col",{attrs:{xs:24,sm:e.navigationList.length>0?20:24,md:e.navigationList.length>0?20:24,lg:e.navigationList.length>0?18:24,xl:e.navigationList.length>0?18:24}},[a("div",{staticStyle:{"max-width":"1000px","padding-left":"10px",margin:"0 auto"}},[a("div",{ref:"wikiTitle",staticClass:"wiki-title"},[e._v(e._s(e.wikiPage.name))]),a("div",{staticClass:"wiki-author"},[e.wikiPage.updateTime?a("span",[e._v("最后修改:"+e._s(e.wikiPage.updateTime))]):a("span",[e._v("创建时间:"+e._s(e.wikiPage.createTime))])]),a("div",{staticClass:"wiki-files"},[a("el-table",{directives:[{name:"show",rawName:"v-show",value:e.pageFileList.length>0,expression:"pageFileList.length > 0"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.pageFileList,border:""}},[a("el-table-column",{attrs:{label:"文件名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{attrs:{target:"_blank",href:t.row.fileUrl}},[e._v(e._s(t.row.fileName))])]}}])}),a("el-table-column",{attrs:{label:"文件大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.computeFileSize(t.row.fileSize)))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),a("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}})],1)],1),a("div",{ref:"pageContent",staticClass:"wiki-page-content"},[2==e.wikiPage.editorType?a("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.pageShowDetail)}}):a("div",{staticClass:"wang-editor-body",domProps:{innerHTML:e._s(e.pageShowDetail)}})])])])],1)],1),a("div",{ref:"imagePreview"},[e.showImagePreview?a("el-image-viewer",{attrs:{"url-list":e.showImagePreviewList,"on-close":e.closeImagePreview,"initial-index":e.previewInitialIndex}}):e._e()],1)],1)},Jt=[],Xt={data:function(){return{spaceUuid:"",nowPageId:"",wikiPage:{},pageFileList:[],pageShowDetail:"",previewInitialIndex:0,showImagePreview:!1,showImagePreviewList:[],navigationList:[]}},components:{"el-image-viewer":yt["a"],Navigation:vt},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{loadPageDetail:function(e){var t=this,a={pageId:e,space:this.spaceUuid};P.openPageDetail(a).then((function(e){var a=e.data.wikiPage||{};a.selfZan=e.data.selfZan||0,t.wikiPage=a;var i=e.data.pageContent||{};t.pageFileList=e.data.fileList||[],2===t.wikiPage.editorType&&(i.content=wt["mavonEditor"].getMarkdownIt().render(i.content)),t.pageShowDetail=i.content;var n=a.name||"WIKI-内容展示";document.title=n,setTimeout((function(){t.previewPageImage();var e=ut.createNavigationHeading();e.length>0&&e.unshift({level:1,node:t.$refs.wikiTitle,text:n}),t.navigationList=e}),500)}))},initQueryParam:function(e){this.spaceUuid=e.query.space,this.nowPageId=e.query.pageId,this.nowPageId&&this.loadPageDetail(this.nowPageId)},computeFileSize:function(e){if(!e)return"-";var t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";var a=t+"",i=a.indexOf("."),n=a.substr(i+1,2);return"00"==n?a.substring(0,i)+a.substr(i+3,2):t},closeImagePreview:function(){this.showImagePreview=!1},previewPageImage:function(){var e=this,t=[],a=this.$refs.pageContent.querySelectorAll("img");a.forEach((function(a,i){t.push(a.src),a.onclick=function(){e.previewInitialIndex=i,e.showImagePreviewList=t,e.showImagePreview=!0,setTimeout((function(){return e.initImageViewerMask()}),0)}}))},initImageViewerMask:function(){var e=this,t=this.$refs.imagePreview.querySelectorAll(".el-image-viewer__mask");t.forEach((function(t){t.onclick=function(){return e.showImagePreview=!1}}))}}},Yt=Xt,ea=(a("6afb"),Object(d["a"])(Yt,Qt,Jt,!1,null,null,null)),ta=ea.exports,aa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-share-view-vue"},[a("van-nav-bar",{staticClass:"header",attrs:{title:e.wikiPage.name}},[a("van-icon",{attrs:{slot:"left",name:"wap-nav",size:"20"},on:{click:e.popupShowChange},slot:"left"})],1),a("el-row",{staticClass:"main",attrs:{type:"border-card"}},[a("div",{staticStyle:{"max-width":"950px",margin:"0 auto"}},[a("div",{staticClass:"wiki-author"},[e.wikiPage.updateTime?a("span",[e._v("最后修改:"+e._s(e.wikiPage.updateTime))]):a("span",[e._v("创建时间:"+e._s(e.wikiPage.createTime))])]),a("div",{staticClass:"wiki-files"},[a("el-table",{directives:[{name:"show",rawName:"v-show",value:e.pageFileList.length>0,expression:"pageFileList.length > 0"}],staticStyle:{width:"100%","margin-bottom":"5px"},attrs:{data:e.pageFileList,border:""}},[a("el-table-column",{attrs:{label:"文件名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{attrs:{target:"_blank",href:t.row.fileUrl}},[e._v(e._s(t.row.fileName))])]}}])}),a("el-table-column",{attrs:{label:"文件大小"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.computeFileSize(t.row.fileSize)))]}}])}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间",width:"180px"}}),a("el-table-column",{attrs:{prop:"downloadNum",label:"下载次数",width:"80px"}})],1)],1),a("div",{ref:"pageContent",staticClass:"wiki-page-content"},[2==e.wikiPage.editorType?a("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.pageShowDetail)}}):a("div",{staticClass:"wang-editor-body",domProps:{innerHTML:e._s(e.pageShowDetail)}})])])])],1)},ia=[],na=a("28a2"),oa={data:function(){return{spaceUuid:"",nowPageId:"",wikiPage:{},pageFileList:[],pageShowDetail:"",previewInitialIndex:0,showImagePreviewList:[]}},components:{"el-image-viewer":yt["a"]},beforeRouteUpdate:function(e,t,a){this.initQueryParam(e),a()},mounted:function(){this.initQueryParam(this.$route)},methods:{popupShowChange:function(){this.$emit("popupShow",!0)},loadPageDetail:function(e){var t=this,a={pageId:e,space:this.spaceUuid};P.openPageDetail(a).then((function(e){var a=e.data.wikiPage||{};a.selfZan=e.data.selfZan||0,t.wikiPage=a;var i=e.data.pageContent||{};t.pageFileList=e.data.fileList||[],2===t.wikiPage.editorType&&(i.content=wt["mavonEditor"].getMarkdownIt().render(i.content)),t.pageShowDetail=i.content,document.title=a.name||"WIKI-内容展示",setTimeout((function(){return t.previewPageImage()}),500)}))},initQueryParam:function(e){this.spaceUuid=e.query.space,this.nowPageId=e.query.pageId,this.nowPageId&&this.loadPageDetail(this.nowPageId)},computeFileSize:function(e){if(!e)return"-";var t="";t=e<102.4?e.toFixed(2)+"B":e<104857.6?(e/1024).toFixed(2)+"KB":e<107374182.4?(e/1048576).toFixed(2)+"MB":(e/1073741824).toFixed(2)+"GB";var a=t+"",i=a.indexOf("."),n=a.substr(i+1,2);return"00"==n?a.substring(0,i)+a.substr(i+3,2):t},previewPageImage:function(){var e=this,t=[],a=this.$refs.pageContent.querySelectorAll("img");a.forEach((function(a,i){t.push(a.src),a.onclick=function(){e.previewInitialIndex=i,e.showImagePreviewList=t,Object(na["a"])({images:t,startPosition:i})}}))}}},sa=oa,ra=(a("36c7"),Object(d["a"])(sa,aa,ia,!1,null,null,null)),la=ra.exports,ca=[{path:"/",redirect:"/home"},{path:"/page/search",name:"WIKI-全局搜索",component:we},{path:"/common/noAuth",name:"WIKI-没有权限",component:Ge},{path:"/page/editorTest",name:"编辑内容",component:He},{path:"/",name:"页面管理",component:G,children:[{path:"/home",name:"WIKI文档管理",component:Ye},{path:"/user/myInfo",name:"WIKI-我的信息",component:ot},{path:"/page/show",name:"WIKI-内容展示",component:Pt},{path:"/page/edit",name:"WIKI-编辑内容",component:$t},{path:"/space/manage",name:"WIKI-空间管理",component:Bt}]},{path:"/",name:"页面管理",component:Y,children:[{path:"/page/share/home",name:"WIKI-开放文档",component:Zt},{path:"/page/share/view",name:"WIKI-内容展示",component:ta}]},{path:"/",name:"页面管理",component:pe,children:[{path:"/page/share/mobile/view",name:"WIKI-开放文档",component:la}]}],da=ca,ua=a("2f62"),pa={namespaced:!0,state:{pageTabNameMap:{},rightAsideWidth:0},getters:{getPageTabNameMap:function(e){return e.pageTabNameMap}},mutations:{addTableName:function(e,t){var a=Object.assign({},e.pageTabNameMap);a[t.key]=t.val,e.pageTabNameMap=a},setRightAsideWidth:function(e,t){e.rightAsideWidth=t}}};i["default"].use(ua["a"]);var ha=new ua["a"].Store({modules:{global:pa}}),ga=a("a7fe"),fa=a.n(ga),ma=a("1487"),va=a.n(ma);a("eba2");i["default"].use(o.a),i["default"].use(h["a"]),i["default"].use(fa.a,y.a),i["default"].prototype.$store=ha;var wa=new h["a"]({routes:da});wa.beforeEach((function(e,t,a){e.name&&(document.title=e.name),a()}));var ya=new i["default"]({el:"#app",router:wa,render:function(e){return e(p)}});i["default"].directive("highlight",(function(e){var t=e.querySelectorAll("pre code");t.forEach((function(e){va.a.highlightBlock(e)}))}));var ba=t["default"]=ya},"5d0c":function(e,t,a){"use strict";a("8b6f")},"5e96":function(e,t,a){"use strict";a("c85a")},"64b7":function(e,t,a){},"6afb":function(e,t,a){"use strict";a("aae1")},"6c9a":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAqFBMVEX///9wcHBwcHBwcHBwcHB8fHxwcHB6enpwcHCDg4NwcHB8fHx6enqSkpJ8fHxycnJwcHDp6el2dnZwcHD////39/f19fXz8/Pw8PDr6+vn5+fj4+PZ2dnX19fHx8fExMS9vb20tLSrq6uhoaGenp6MjIyKioqDg4N8fHx6enp4eHh0dHRycnKZmZmOjo6KioqDg4OAgIB/f396enp4eHh2dnZycnJwcHDyRjyJAAAALXRSTlMAETNEVWZmd3eIiJmqu7u7u93d3e7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u6OCyV0AAAAi0lEQVQYGXXBRwKCMBAF0B9Q7Io6RJGo2LAEu8zc/2YuyCILfQ/4R8k5gK+zy0v4TilZeAZb2rTCSMHp3bV+jeJpDEDFIvagSRtNJAro2vHjSo4owOYzNlTTAoDnGZNjLABOFkzOagigWiecUW3fBNB/L5+33GgiSksFQE1YPkUlciwuETxhox3ghy8Wng9K1E9YIwAAAABJRU5ErkJggg=="},7176:function(e,t,a){},8186:function(e,t,a){"use strict";a("7176")},"85ec":function(e,t,a){},"867a":function(e,t,a){},"8b6f":function(e,t,a){},"9c8a":function(e,t,a){"use strict";a("342a")},aae1:function(e,t,a){},b49e:function(e,t,a){"use strict";a("f29e")},c85a:function(e,t,a){},cdc2:function(e,t,a){},d132:function(e,t,a){"use strict";a("2725")},d1f1:function(e,t,a){},d7846:function(e,t,a){},dcfc:function(e,t,a){"use strict";a("ed55")},ed55:function(e,t,a){},f29e:function(e,t,a){},faea:function(e,t,a){"use strict";a("1a52")}}); \ No newline at end of file