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 43601125..bea5d7fe 100644 --- a/zyplayer-doc-ui/wiki-ui/src/components/layouts/GlobalLayout.vue +++ b/zyplayer-doc-ui/wiki-ui/src/components/layouts/GlobalLayout.vue @@ -31,10 +31,10 @@ - + - - + + {{userSelfInfo.userName}} @@ -69,18 +69,16 @@ - 控制台 - 关于 - 我的资料 - 退出登录 + 关于 + 退出登录 - + - zyplayer-doc是一款开源的在线文档工具,现有WIKI文档、数据库文档、swagger文档、dubbo文档、ElasticSearch文档等,不止文档。期待与你一起来迭代完善,欢迎加群讨论,QQ群号:466363173 - +
+ zyplayer-doc是一款开源的在线文档工具,现有WIKI文档、数据库文档、swagger文档、dubbo文档、ElasticSearch文档等,不止文档。期待与你一起来迭代完善,欢迎加群讨论,QQ群号:466363173 +
+ @@ -173,6 +175,9 @@ param = param || {}; this.doGetPageList(param.parentId, param.node); }, + turnLeftCollapse() { + this.leftCollapse = !this.leftCollapse; + }, createWiki() { if (this.choiceSpace > 0) { this.$router.push({path: '/page/edit', query: {parentId: this.nowPageId}}); @@ -370,6 +375,9 @@ userApi.systemUpgradeInfo({}).then(json => { if (!!json.data) { this.upgradeInfo = json.data; + if (!!this.upgradeInfo.upgradeContent) { + this.upgradeInfo.upgradeContent = this.upgradeInfo.upgradeContent.replaceAll(';', '\n'); + } console.log("zyplayer-doc发现新版本:" + "\n升级地址:" + json.data.upgradeUrl + "\n当前版本:" + json.data.nowVersion @@ -407,8 +415,9 @@ } .header-right-user-name{color: #fff;padding-right: 5px;} .el-header {color: #333; line-height: 40px; text-align: right;height: 40px !important;} - .icon-collapse{float: left;font-size: 25px;color: #aaa;margin-top: 8px;cursor: pointer;} - .icon-collapse:hover{color: #eee;} + .el-icon-download,.el-icon-upload2{transform: rotate(-90deg);float: left;font-size: 25px;color: #aaa;margin-top: 8px;cursor: pointer;} + .el-icon-download:hover,.el-icon-upload2: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;} diff --git a/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue b/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue index 92308071..c8db77cd 100644 --- a/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue +++ b/zyplayer-doc-ui/wiki-ui/src/views/page/Show.vue @@ -681,8 +681,7 @@ diff --git a/zyplayer-doc-wiki/src/main/resources/css/app.1d1355c7.css b/zyplayer-doc-wiki/src/main/resources/css/app.1d1355c7.css new file mode 100644 index 00000000..5ed031e6 --- /dev/null +++ b/zyplayer-doc-wiki/src/main/resources/css/app.1d1355c7.css @@ -0,0 +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}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-download,.el-icon-upload2{-webkit-transform:rotate(-90deg);transform:rotate(-90deg);float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.el-icon-download:hover,.el-icon-upload2: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}#app[data-v-51ce7152],body[data-v-51ce7152],html[data-v-51ce7152]{margin:0;padding:0;height:100%}pre[data-v-51ce7152]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-51ce7152]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-51ce7152]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-51ce7152]{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-51ce7152]{margin-right:3px}.logo[data-v-51ce7152]{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-51ce7152]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-51ce7152]:hover{color:#ccc}.comment-box .head[data-v-51ce7152]{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-51ce7152]{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-51ce7152]{color:#4183c4;cursor:pointer;text-decoration:none}#app[data-v-fa54273c],body[data-v-fa54273c],html[data-v-fa54273c]{margin:0;padding:0;height:100%}.share-mobile-layout[data-v-fa54273c]{height:100%}.popup-module .header[data-v-fa54273c]{width:100%;height:46px}.popup-module .main[data-v-fa54273c]{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto}.popup-module .footer[data-v-fa54273c]{width:100%;height:26px;position:fixed;bottom:0}pre[data-v-fa54273c]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-fa54273c]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-fa54273c]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-fa54273c]{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-fa54273c]{margin-right:3px}.logo[data-v-fa54273c]{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-fa54273c]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-fa54273c]:hover{color:#ccc}.comment-box .head[data-v-fa54273c]{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-fa54273c]{text-align:center;padding:5px 0;color:#aaa;font-size:12px;margin:10px 0}.build-info a[data-v-fa54273c]{color:#4183c4;cursor:pointer;text-decoration:none} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/css/app.27ee3e9a.css b/zyplayer-doc-wiki/src/main/resources/css/app.27ee3e9a.css deleted file mode 100644 index 4dabfe41..00000000 --- a/zyplayer-doc-wiki/src/main/resources/css/app.27ee3e9a.css +++ /dev/null @@ -1 +0,0 @@ -::-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}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}.icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.icon-collapse: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}#app[data-v-51ce7152],body[data-v-51ce7152],html[data-v-51ce7152]{margin:0;padding:0;height:100%}pre[data-v-51ce7152]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-51ce7152]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-51ce7152]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-51ce7152]{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-51ce7152]{margin-right:3px}.logo[data-v-51ce7152]{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-51ce7152]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-51ce7152]:hover{color:#ccc}.comment-box .head[data-v-51ce7152]{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-51ce7152]{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-51ce7152]{color:#4183c4;cursor:pointer;text-decoration:none}#app[data-v-fa54273c],body[data-v-fa54273c],html[data-v-fa54273c]{margin:0;padding:0;height:100%}.share-mobile-layout[data-v-fa54273c]{height:100%}.popup-module .header[data-v-fa54273c]{width:100%;height:46px}.popup-module .main[data-v-fa54273c]{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto}.popup-module .footer[data-v-fa54273c]{width:100%;height:26px;position:fixed;bottom:0}pre[data-v-fa54273c]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-fa54273c]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-fa54273c]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-fa54273c]{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-fa54273c]{margin-right:3px}.logo[data-v-fa54273c]{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-fa54273c]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-fa54273c]:hover{color:#ccc}.comment-box .head[data-v-fa54273c]{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-fa54273c]{text-align:center;padding:5px 0;color:#aaa;font-size:12px;margin:10px 0}.build-info a[data-v-fa54273c]{color:#4183c4;cursor:pointer;text-decoration:none} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/css/chunk-7498915d.3df29f1b.css b/zyplayer-doc-wiki/src/main/resources/css/chunk-7498915d.3df29f1b.css deleted file mode 100644 index 72cdee2e..00000000 --- a/zyplayer-doc-wiki/src/main/resources/css/chunk-7498915d.3df29f1b.css +++ /dev/null @@ -1 +0,0 @@ -.el-main{overflow:hidden}.page-show-vue{height:100%}.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} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/css/chunk-7498915d.ab8b8fd2.css b/zyplayer-doc-wiki/src/main/resources/css/chunk-7498915d.ab8b8fd2.css new file mode 100644 index 00000000..ac944e0b --- /dev/null +++ b/zyplayer-doc-wiki/src/main/resources/css/chunk-7498915d.ab8b8fd2.css @@ -0,0 +1 @@ +.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} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/css/chunk-7ecd39ac.52f4ee05.css b/zyplayer-doc-wiki/src/main/resources/css/chunk-7ecd39ac.bf68cbeb.css similarity index 100% rename from zyplayer-doc-wiki/src/main/resources/css/chunk-7ecd39ac.52f4ee05.css rename to zyplayer-doc-wiki/src/main/resources/css/chunk-7ecd39ac.bf68cbeb.css diff --git a/zyplayer-doc-wiki/src/main/resources/doc-wiki.html b/zyplayer-doc-wiki/src/main/resources/doc-wiki.html index ddf6b1d9..9845f74e 100644 --- a/zyplayer-doc-wiki/src/main/resources/doc-wiki.html +++ b/zyplayer-doc-wiki/src/main/resources/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/js/app.1b455cff.js b/zyplayer-doc-wiki/src/main/resources/js/app.1b455cff.js deleted file mode 100644 index 414aebf3..00000000 --- a/zyplayer-doc-wiki/src/main/resources/js/app.1b455cff.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var n,o,s=t[0],c=t[1],l=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",divided:""}},[e._v("关于")]),a("el-dropdown-item",{attrs:{command:"myInfo"}},[e._v("我的资料")]),a("el-dropdown-item",{attrs:{command:"userSignOut"}},[e._v("退出登录")])],1)],1)],1),a("el-main",{staticStyle:{padding:"0"}},[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("el-dialog",{attrs:{title:"关于zyplayer-doc-wiki",visible:e.aboutDialogVisible,width:"600px"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:"开源地址:"}},[a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("zyplayer-doc")])]),a("el-form-item",{attrs:{label:"开发人员:"}},[a("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])]),e.upgradeInfo.lastVersion?[a("el-form-item",{attrs:{label:"当前版本:"}},[e._v(e._s(e.upgradeInfo.nowVersion)+"、最新版本:"+e._s(e.upgradeInfo.lastVersion)+","),a("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v("去升级")])]),a("el-form-item",{attrs:{label:"升级内容:"}},[e._v(e._s(e.upgradeInfo.upgradeContent))])]:e._e(),a("el-form-item",{attrs:{label:""}},[e._v(" zyplayer-doc是一款开源的在线文档工具,现有WIKI文档、数据库文档、swagger文档、dubbo文档、ElasticSearch文档等,不止文档。期待与你一起来迭代完善,欢迎加群讨论,QQ群号:466363173 ")])],2)],1),a("create-space",{ref:"createSpace",on:{success:e.loadSpaceList}})],1)}),g=[],m=(a("4de4"),a("7db0"),a("4160"),a("c975"),a("a15b"),a("4ec9"),a("e25e"),a("3ca3"),a("159b"),a("ddb0"),a("9f03")),y=a("0a79"),b=a("c82a"),w={data:function(){return{leftCollapse:!0,aboutDialogVisible:!1,rightContentLoading:!1,pathIndex:[],defaultProps:{children:"children",label:"name"},spaceOptions:[],spaceList:[],choiceSpace:"",nowSpaceShow:{},nowPageId:"",treePathDataMap:new Map,searchKeywords:"",wikiPageList:[],wikiPage:{},wikiPageExpandedKeys:[],userSelfInfo:{},upgradeInfo:{},userMessageList:[],haveNotReadUserMessage:!1,userMessagePopVisible:!1,userMsgTotalCount:0,userMsgParam:{sysType:2,pageNum:1,pageSize:20}}},components:{"create-space":b["a"]},computed:{},mounted:function(){this.loadSpaceList(),this.loadUserMessageList(),this.getSelfUserInfo(),this.checkSystemUpgrade()},methods:{loadPageList:function(e){e=e||{},this.doGetPageList(e.parentId,e.node)},createWiki:function(){this.choiceSpace>0?this.$router.push({path:"/page/edit",query:{parentId:this.nowPageId}}):this.$message.warning("请先选择或创建空间")},changeWikiPageExpandedKeys:function(e){this.wikiPageExpandedKeys=[e]},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}})},handleNodeExpand:function(e){e.children.length>0&&e.children[0].needLoad&&(console.log("加载节点:",e),this.doGetPageList(e.id,e))},handlePageDrop:function(e,t,a,n){var o=this;console.log("tree drop: ",e.data,t.data,a);var i={id:e.data.id,parentId:t.data.parentId};"inner"==a?i.parentId=t.data.id:"before"==a?i.beforeSeq=t.data.seqNo:"after"==a&&(i.afterSeq=t.data.seqNo),y["a"].pageChangeParent(i).then((function(e){o.doGetPageList(null)}))},loadUserMessageIfPopVisible:function(){this.userMessagePopVisible||this.loadUserMessageList()},loadUserMessageList:function(){var e=this;m["a"].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&&m["a"].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||m["a"].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 o=e,i=t.spaceList.find((function(t){return t.id==e}));i||(i=t.spaceList[0],o=i.id),t.nowSpaceShow=i,t.choiceSpace=o,t.nowPageId="",t.doGetPageList(null);try{"/home"==t.$router.app._route.path&&t.$router.push({path:"/home",query:{spaceId:o}})}catch(r){console.log(r)}}}))},doGetPageList:function(e,t){var a=this,n={spaceId:this.choiceSpace,parentId:e||0};0==this.nowSpaceShow.treeLazyLoad&&(n.parentId=null),y["a"].pageList(n).then((function(n){var o=n.data||[],i=[];if(0==a.nowSpaceShow.treeLazyLoad)i=o;else for(var r=0;r0?t.children=i:a.wikiPageList=i}))},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?this.aboutDialogVisible=!0:"myInfo"==e?this.$router.push({path:"/user/myInfo"}):"console"==e?window.location="./":this.$message.warning("暂未开放")},userSignOut:function(){m["a"].userLogout().then((function(){location.reload()}))},getSelfUserInfo:function(){var e=this;m["a"].getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))},getSpaceInfo:function(e){for(var t=0;t0?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)},o=[],i=(a("b0c0"),a("0a79")),r={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&&i["a"].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};i["a"].updateSpace(a).then((function(e){t.$message.success("创建成功"),t.newSpaceDialogVisible=!1,t.$emit("success",e.data.id)}))}}))},onNewSpaceCancel:function(){this.newSpaceDialogVisible=!1}}},s=r,c=(a("34c6"),a("2877")),l=Object(c["a"])(s,n,o,!1,null,null,null);t["a"]=l.exports},d978:function(e,t,a){"use strict";a("d3b7");var n=a("bc3a"),o=a.n(n),i=a("56d7"),r=o.a.create({baseURL:"./",timeout:1e4,headers:{"Content-type":"application/x-www-form-urlencoded"},withCredentials:!0}),s={"/zyplayer-doc-db/executor/execute":!0};r.interceptors.request.use((function(e){return e.needValidateResult=!0,s[e.url]&&(e.needValidateResult=!1),e}),(function(e){return console.log(e),Promise.reject(e)})),r.interceptors.response.use((function(e){if(e.message)i["default"].$message.error("请求错误:"+e.message);else{if(!e.config.needValidateResult||200==e.data.errCode)return e.data;if(400==e.data.errCode){i["default"].$message.error("请先登录");var t=encodeURIComponent(window.location.href);window.location="./#/user/login?redirect="+t}else 402==e.data.errCode?i["default"].$router.push("/common/noAuth"):200!==e.data.errCode&&i["default"].$message.error(e.data.errMsg||"未知错误")}return Promise.reject("请求错误")}),(function(e){return console.log("err"+e),i["default"].$message.info("请求错误:"+e.message),Promise.reject(e)})),t["a"]=r}}); \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/js/app.86552349.js b/zyplayer-doc-wiki/src/main/resources/js/app.86552349.js new file mode 100644 index 00000000..a4dd2b6c --- /dev/null +++ b/zyplayer-doc-wiki/src/main/resources/js/app.86552349.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var n,o,s=t[0],c=t[1],l=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("el-dialog",{attrs:{title:"关于zyplayer-doc-wiki",visible:e.aboutDialogVisible,width:"600px"},on:{"update:visible":function(t){e.aboutDialogVisible=t}}},[a("el-form",[a("el-form-item",{attrs:{label:"开源地址:"}},[a("a",{attrs:{target:"_blank",href:"https://gitee.com/zyplayer/zyplayer-doc"}},[e._v("zyplayer-doc")])]),a("el-form-item",{attrs:{label:"开发人员:"}},[a("a",{attrs:{target:"_blank",href:"http://zyplayer.com"}},[e._v("暮光:城中城")])]),e.upgradeInfo.lastVersion?[a("el-form-item",{attrs:{label:"当前版本:"}},[e._v(e._s(e.upgradeInfo.nowVersion)+"、最新版本:"+e._s(e.upgradeInfo.lastVersion)+","),a("a",{attrs:{target:"_blank",href:e.upgradeInfo.upgradeUrl}},[e._v("去升级")])]),a("el-form-item",{attrs:{label:"升级内容:"}},[a("pre",{staticClass:"upgrade-info"},[e._v(e._s(e.upgradeInfo.upgradeContent))])])]:e._e(),a("el-form-item",{attrs:{label:""}},[a("div",{staticStyle:{"line-height":"26px"}},[e._v(" zyplayer-doc是一款开源的在线文档工具,现有WIKI文档、数据库文档、swagger文档、dubbo文档、ElasticSearch文档等,不止文档。期待与你一起来迭代完善,欢迎加群讨论,QQ群号:466363173 ")])])],2)],1),a("create-space",{ref:"createSpace",on:{success:e.loadSpaceList}})],1)}),g=[],m=(a("4de4"),a("7db0"),a("4160"),a("c975"),a("a15b"),a("4ec9"),a("e25e"),a("3ca3"),a("159b"),a("ddb0"),a("9f03")),y=a("0a79"),b=a("c82a"),w={data:function(){return{leftCollapse:!0,aboutDialogVisible:!1,rightContentLoading:!1,pathIndex:[],defaultProps:{children:"children",label:"name"},spaceOptions:[],spaceList:[],choiceSpace:"",nowSpaceShow:{},nowPageId:"",treePathDataMap:new Map,searchKeywords:"",wikiPageList:[],wikiPage:{},wikiPageExpandedKeys:[],userSelfInfo:{},upgradeInfo:{},userMessageList:[],haveNotReadUserMessage:!1,userMessagePopVisible:!1,userMsgTotalCount:0,userMsgParam:{sysType:2,pageNum:1,pageSize:20}}},components:{"create-space":b["a"]},computed:{},mounted:function(){this.loadSpaceList(),this.loadUserMessageList(),this.getSelfUserInfo(),this.checkSystemUpgrade()},methods:{loadPageList:function(e){e=e||{},this.doGetPageList(e.parentId,e.node)},turnLeftCollapse:function(){this.leftCollapse=!this.leftCollapse},createWiki:function(){this.choiceSpace>0?this.$router.push({path:"/page/edit",query:{parentId:this.nowPageId}}):this.$message.warning("请先选择或创建空间")},changeWikiPageExpandedKeys:function(e){this.wikiPageExpandedKeys=[e]},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}})},handleNodeExpand:function(e){e.children.length>0&&e.children[0].needLoad&&(console.log("加载节点:",e),this.doGetPageList(e.id,e))},handlePageDrop:function(e,t,a,n){var o=this;console.log("tree drop: ",e.data,t.data,a);var i={id:e.data.id,parentId:t.data.parentId};"inner"==a?i.parentId=t.data.id:"before"==a?i.beforeSeq=t.data.seqNo:"after"==a&&(i.afterSeq=t.data.seqNo),y["a"].pageChangeParent(i).then((function(e){o.doGetPageList(null)}))},loadUserMessageIfPopVisible:function(){this.userMessagePopVisible||this.loadUserMessageList()},loadUserMessageList:function(){var e=this;m["a"].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&&m["a"].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||m["a"].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 o=e,i=t.spaceList.find((function(t){return t.id==e}));i||(i=t.spaceList[0],o=i.id),t.nowSpaceShow=i,t.choiceSpace=o,t.nowPageId="",t.doGetPageList(null);try{"/home"==t.$router.app._route.path&&t.$router.push({path:"/home",query:{spaceId:o}})}catch(r){console.log(r)}}}))},doGetPageList:function(e,t){var a=this,n={spaceId:this.choiceSpace,parentId:e||0};0==this.nowSpaceShow.treeLazyLoad&&(n.parentId=null),y["a"].pageList(n).then((function(n){var o=n.data||[],i=[];if(0==a.nowSpaceShow.treeLazyLoad)i=o;else for(var r=0;r0?t.children=i:a.wikiPageList=i}))},userSettingDropdown:function(e){console.log("command:"+e),"userSignOut"==e?this.userSignOut():"aboutDoc"==e?this.aboutDialogVisible=!0:"myInfo"==e?this.$router.push({path:"/user/myInfo"}):"console"==e?window.location="./":this.$message.warning("暂未开放")},userSignOut:function(){m["a"].userLogout().then((function(){location.reload()}))},getSelfUserInfo:function(){var e=this;m["a"].getSelfUserInfo().then((function(t){e.userSelfInfo=t.data}))},getSpaceInfo:function(e){for(var t=0;t0?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)},o=[],i=(a("b0c0"),a("0a79")),r={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&&i["a"].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};i["a"].updateSpace(a).then((function(e){t.$message.success("创建成功"),t.newSpaceDialogVisible=!1,t.$emit("success",e.data.id)}))}}))},onNewSpaceCancel:function(){this.newSpaceDialogVisible=!1}}},s=r,c=(a("34c6"),a("2877")),l=Object(c["a"])(s,n,o,!1,null,null,null);t["a"]=l.exports},d978:function(e,t,a){"use strict";a("d3b7");var n=a("bc3a"),o=a.n(n),i=a("56d7"),r=o.a.create({baseURL:"./",timeout:1e4,headers:{"Content-type":"application/x-www-form-urlencoded"},withCredentials:!0}),s={"/zyplayer-doc-db/executor/execute":!0};r.interceptors.request.use((function(e){return e.needValidateResult=!0,s[e.url]&&(e.needValidateResult=!1),e}),(function(e){return console.log(e),Promise.reject(e)})),r.interceptors.response.use((function(e){if(e.message)i["default"].$message.error("请求错误:"+e.message);else{if(!e.config.needValidateResult||200==e.data.errCode)return e.data;if(400==e.data.errCode){i["default"].$message.error("请先登录");var t=encodeURIComponent(window.location.href);window.location="./#/user/login?redirect="+t}else 402==e.data.errCode?i["default"].$router.push("/common/noAuth"):200!==e.data.errCode&&i["default"].$message.error(e.data.errMsg||"未知错误")}return Promise.reject("请求错误")}),(function(e){return console.log("err"+e),i["default"].$message.info("请求错误:"+e.message),Promise.reject(e)})),t["a"]=r}}); \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/js/chunk-7498915d.be9dd0fc.js b/zyplayer-doc-wiki/src/main/resources/js/chunk-7498915d.64120de7.js similarity index 100% rename from zyplayer-doc-wiki/src/main/resources/js/chunk-7498915d.be9dd0fc.js rename to zyplayer-doc-wiki/src/main/resources/js/chunk-7498915d.64120de7.js diff --git a/zyplayer-doc-wiki/src/main/resources/js/chunk-7ecd39ac.89b4826b.js b/zyplayer-doc-wiki/src/main/resources/js/chunk-7ecd39ac.a039a08e.js similarity index 100% rename from zyplayer-doc-wiki/src/main/resources/js/chunk-7ecd39ac.89b4826b.js rename to zyplayer-doc-wiki/src/main/resources/js/chunk-7ecd39ac.a039a08e.js