Commit 6cbc2cc1 authored by huanle's avatar huanle

Merge branch 'master' of gitlab.linanquan.com:jiangyipeng/doc_phone

parents 5c7e3511 3c220d26
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><title>doc</title><link href=./static/css/app.1d9fd9f454e38d13b1f70838b64639f9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.481972107a4b2bbf8c2a.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.35ca84d71febcb21ecd9.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><script src=https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js></script><script src=./static/showdown.min.js></script><script src=./static/marked.min.js></script><script src=./static/mdjs.min.js></script><title>doc</title><link href=./static/css/app.8684109fa89afad8ebf6d62332a26ff5.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.5606033c8b11b6b476c2.js></script><script type=text/javascript src=./static/js/vendor.2df28332b4a58963dfd2.js></script><script type=text/javascript src=./static/js/app.e32716a7f0d67e0e51e5.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([0],{"2NXm":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"add_file",props:["show_addFile"],data:function(){return{closeAni:!0}},methods:{closeAdd:function(){var t=this;this.closeAni=!1,setTimeout(function(){t.$emit("update:show_addFile",!1),t.closeAni=!0},300)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.show_addFile,expression:"show_addFile"}],staticClass:"add_file"},[a("div",{staticClass:"main"},[a("div",{staticClass:"folder",class:{folder2:!t.closeAni}},[a("van-button",{attrs:{round:"",type:"info",size:"small",block:""}},[t._v("新建文件夹")])],1),t._v(" "),a("div",{staticClass:"divider",class:{divider2:!t.closeAni}},[a("van-divider",{style:{borderColor:"#cccccc",margin:"30px 0"}})],1),t._v(" "),a("div",{staticClass:"file",class:{file2:!t.closeAni}},[a("van-button",{staticStyle:{"margin-bottom":"20px"},attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建富文本")]),t._v(" "),a("van-button",{attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建Markdown")])],1)]),t._v(" "),a("div",{staticClass:"footer"},[a("i",{staticClass:"icon-19",class:{icon19:!t.closeAni},on:{click:t.closeAdd}})])])},staticRenderFns:[]};var n={name:"tabbar",data:function(){return{nav_index:1,show_addFile:!1}},created:function(){"/folder"!==this.$route.path&&this.$router.push({path:"/folder"})},methods:{selectNav:function(t,e){if(3===t)return this.$router.replace({path:"/markdown"});1===t&&(this.nav_index=t,"/folder"==this.$route.path?this.$router.replace({path:"/folder2"}):this.$router.replace({path:e}))}},components:{addFile:a("VU/8")(s,i,!1,function(t){a("uUID")},"data-v-339b1cfe",null).exports}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tabber"},[a("div",{staticClass:"each_nav",class:{select_nav:0==t.nav_index},on:{click:function(e){return t.selectNav(0,"/test")}}},[a("i",{staticClass:"icon-59"}),t._v(" "),a("div",[t._v("最新")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:1==t.nav_index},on:{click:function(e){return t.selectNav(1,"/folder")}}},[a("i",{staticClass:"icon-37"}),t._v(" "),a("div",[t._v("文件夹")])]),t._v(" "),a("div",{staticClass:"each_nav"},[a("i",{staticClass:"icon-100",on:{click:function(e){t.show_addFile=!0}}})]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:2==t.nav_index},on:{click:function(e){return t.selectNav(2,"/test")}}},[a("i",{staticClass:"icon-4"}),t._v(" "),a("div",[t._v("云笔")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:3==t.nav_index},on:{click:function(e){return t.selectNav(3,"/wangeditor")}}},[a("i",{staticClass:"icon-53"}),t._v(" "),a("div",[t._v("我的")])]),t._v(" "),a("add-file",{attrs:{show_addFile:t.show_addFile},on:{"update:show_addFile":function(e){t.show_addFile=e},"update:show_add-file":function(e){t.show_addFile=e}}})],1)},staticRenderFns:[]};var l={name:"index",components:{tabbar:a("VU/8")(n,c,!1,function(t){a("l97x")},"data-v-dc4674f8",null).exports}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"index"},[e("div",{staticClass:"main"},[e("router-view")],1),this._v(" "),e("tabbar",{staticClass:"nav"})],1)},staticRenderFns:[]};var d=a("VU/8")(l,o,!1,function(t){a("4EM1")},"data-v-247b97df",null);e.default=d.exports},"4EM1":function(t,e){},l97x:function(t,e){},uUID:function(t,e){}});
//# sourceMappingURL=0.0b3e29fa9fb715a6c568.js.map
\ No newline at end of file
webpackJsonp([0],{"2NXm":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"add_file",props:["show_addFile"],data:function(){return{closeAni:!0}},methods:{closeAdd:function(){var t=this;this.closeAni=!1,setTimeout(function(){t.$emit("update:show_addFile",!1),t.closeAni=!0},300)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.show_addFile,expression:"show_addFile"}],staticClass:"add_file"},[a("div",{staticClass:"main"},[a("div",{staticClass:"folder",class:{folder2:!t.closeAni}},[a("van-button",{attrs:{round:"",type:"info",size:"small",block:""}},[t._v("新建文件夹")])],1),t._v(" "),a("div",{staticClass:"divider",class:{divider2:!t.closeAni}},[a("van-divider",{style:{borderColor:"#cccccc",margin:"30px 0"}})],1),t._v(" "),a("div",{staticClass:"file",class:{file2:!t.closeAni}},[a("van-button",{staticStyle:{"margin-bottom":"20px"},attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建富文本")]),t._v(" "),a("van-button",{attrs:{plain:"",round:"",type:"info",size:"small",block:""}},[t._v("新建Markdown")])],1)]),t._v(" "),a("div",{staticClass:"footer"},[a("i",{staticClass:"icon-19",class:{icon19:!t.closeAni},on:{click:t.closeAdd}})])])},staticRenderFns:[]};var n={name:"tabbar",data:function(){return{nav_index:1,show_addFile:!1}},created:function(){"/folder"!==this.$route.path&&this.$router.push({path:"/folder"})},methods:{selectNav:function(t,e){3===t&&dd.biz.util.openLink({url:"http://doc-phone.linanquan.com/html/dist/index.html/?token="+localStorage.getItem("doc_phone_token")+"#/folder",onSuccess:function(t){},onFail:function(t){}}),1===t&&(this.nav_index=t,"/folder"==this.$route.path?this.$router.replace({path:"/folder2"}):this.$router.replace({path:e}))}},components:{addFile:a("VU/8")(s,i,!1,function(t){a("uUID")},"data-v-339b1cfe",null).exports}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tabber"},[a("div",{staticClass:"each_nav",class:{select_nav:0==t.nav_index},on:{click:function(e){return t.selectNav(0,"/test")}}},[a("i",{staticClass:"icon-59"}),t._v(" "),a("div",[t._v("最新")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:1==t.nav_index},on:{click:function(e){return t.selectNav(1,"/folder")}}},[a("i",{staticClass:"icon-37"}),t._v(" "),a("div",[t._v("文件夹")])]),t._v(" "),a("div",{staticClass:"each_nav"},[a("i",{staticClass:"icon-100",on:{click:function(e){t.show_addFile=!0}}})]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:2==t.nav_index},on:{click:function(e){return t.selectNav(2,"/test")}}},[a("i",{staticClass:"icon-4"}),t._v(" "),a("div",[t._v("云笔")])]),t._v(" "),a("div",{staticClass:"each_nav",class:{select_nav:3==t.nav_index},on:{click:function(e){return t.selectNav(3,"/wangeditor")}}},[a("i",{staticClass:"icon-53"}),t._v(" "),a("div",[t._v("我的")])]),t._v(" "),a("add-file",{attrs:{show_addFile:t.show_addFile},on:{"update:show_addFile":function(e){t.show_addFile=e},"update:show_add-file":function(e){t.show_addFile=e}}})],1)},staticRenderFns:[]};var o={name:"index",components:{tabbar:a("VU/8")(n,c,!1,function(t){a("eHMs")},"data-v-e8875c44",null).exports}},l={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"index"},[e("div",{staticClass:"main"},[e("router-view")],1),this._v(" "),e("tabbar",{staticClass:"nav"})],1)},staticRenderFns:[]};var d=a("VU/8")(o,l,!1,function(t){a("4EM1")},"data-v-247b97df",null);e.default=d.exports},"4EM1":function(t,e){},eHMs:function(t,e){},uUID:function(t,e){}});
//# sourceMappingURL=0.c92537de197cd514d0c0.js.map
\ No newline at end of file
This diff is collapsed.
webpackJsonp([3],{SaS0:function(t,e){},tZVe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("I22p"),c={name:"markdown",data:function(){return{title:"",content:"",converter:null,html:"",mdjs:null}},created:function(){this.docid=this.$route.query.docid,this.articleDetail(this.docid)},mounted:function(){this.mdjs=new Mdjs},methods:{articleDetail:function(t){var e=this;i.a.articleDetail({docid:t}).then(function(t){console.log(t,999),0==t.err_code&&(e.content=t.data.doc,e.title=t.data.title,e.convertText())})},convertText:function(){this.html=this.mdjs.md2html(this.content)},cancel:function(){},sure:function(){}}},a={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"markdown"},[n("van-field",{staticClass:"doc_name",attrs:{"input-align":"center"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}}),t._v(" "),n("div",{staticClass:"main",domProps:{innerHTML:t._s(t.html)}}),t._v(" "),n("div",{staticClass:"bottom"},[n("van-button",{attrs:{plain:"",type:"info",color:"#cccccc"},on:{click:t.cancel}},[t._v("取消")]),t._v(" "),n("van-button",{attrs:{type:"info"},on:{click:t.sure}},[t._v("确定")])],1)],1)},staticRenderFns:[]};var o=n("VU/8")(c,a,!1,function(t){n("SaS0")},"data-v-fd976ee4",null);e.default=o.exports}});
//# sourceMappingURL=3.1d5f70c5ef57426d51dd.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/pages/markdown.vue","webpack:///./src/pages/markdown.vue?84b2","webpack:///./src/pages/markdown.vue"],"names":["markdown","name","data","title","content","converter","html","mdjs","created","this","docid","$route","query","articleDetail","mounted","Mdjs","methods","_this","then","console","log","err_code","doc","convertText","md2html","cancel","sure","pages_markdown","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","input-align","model","value","callback","$$v","expression","_v","domProps","innerHTML","_s","plain","type","color","on","click","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"0IAeAA,GACAC,KAAA,WACAC,KAFA,WAGA,OACAC,MAAA,GACAC,QAAA,GACAC,UAAA,KACAC,KAAA,GACAC,KAAA,OAGAC,QAXA,WAYAC,KAAAC,MAAAD,KAAAE,OAAAC,MAAAF,MACAD,KAAAI,cAAAJ,KAAAC,QAEAI,QAfA,WAoBAL,KAAAF,KAAA,IAAAQ,MAEAC,SAEAH,cAFA,SAEAH,GAAA,IAAAO,EAAAR,KACYO,EAAA,EAAZH,eAAAH,UAAAQ,KAAA,SAAAhB,GACAiB,QAAAC,IAAAlB,EAAA,KACA,GAAAA,EAAAmB,WACAJ,EAAAb,QAAAF,OAAAoB,IACAL,EAAAd,MAAAD,OAAAC,MACAc,EAAAM,kBAKAA,YAbA,WAgBAd,KAAAH,KAAAG,KAAAF,KAAAiB,QAAAf,KAAAL,UAEAqB,OAlBA,aAmBAC,KAnBA,eClCeC,GADEC,OAFjB,WAA0B,IAAAC,EAAApB,KAAaqB,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,aAAuBF,EAAA,aAAkBE,YAAA,WAAAC,OAA8BC,cAAA,UAAuBC,OAAQC,MAAAT,EAAA,MAAAU,SAAA,SAAAC,GAA2CX,EAAA1B,MAAAqC,GAAcC,WAAA,WAAqBZ,EAAAa,GAAA,KAAAV,EAAA,OAAwBE,YAAA,OAAAS,UAA6BC,UAAAf,EAAAgB,GAAAhB,EAAAvB,SAA8BuB,EAAAa,GAAA,KAAAV,EAAA,OAAwBE,YAAA,WAAqBF,EAAA,cAAmBG,OAAOW,MAAA,GAAAC,KAAA,OAAAC,MAAA,WAA2CC,IAAKC,MAAArB,EAAAJ,UAAoBI,EAAAa,GAAA,QAAAb,EAAAa,GAAA,KAAAV,EAAA,cAA8CG,OAAOY,KAAA,QAAcE,IAAKC,MAAArB,EAAAH,QAAkBG,EAAAa,GAAA,iBAErkBS,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEtD,EACA2B,GATF,EAVA,SAAA4B,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/3.1d5f70c5ef57426d51dd.js","sourcesContent":["<template>\r\n <div class=\"markdown\">\r\n <van-field v-model=\"title\" input-align=\"center\" class=\"doc_name\"/>\r\n <!--<van-field v-model=\"content\" input-align=\"center\" class=\"doc_name\"-->\r\n <!--@input=\"convertText\"/>-->\r\n <div v-html=\"html\" class=\"main\"></div>\r\n <div class=\"bottom\">\r\n <van-button plain type=\"info\" color=\"#cccccc\" @click=\"cancel\">取消</van-button>\r\n <van-button type=\"info\" @click=\"sure\">确定</van-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import api from '../api/methods';\r\n export default {\r\n name: \"markdown\",\r\n data(){\r\n return {\r\n title:'',\r\n content:'', //内容\r\n converter:null, //转化器\r\n html:'', //格式化后内容\r\n mdjs:null,\r\n }\r\n },\r\n created(){\r\n this.docid = this.$route.query.docid;\r\n this.articleDetail(this.docid);\r\n },\r\n mounted() {\r\n // console.log(marked,99)\r\n //创建实例\r\n // this.converter = new showdown.Converter();\r\n // console.log(this.converter,99)\r\n this.mdjs = new Mdjs();\r\n },\r\n methods: {\r\n //获取文件详情\r\n articleDetail(docid){\r\n api.articleDetail({docid:docid}).then((data)=>{\r\n console.log(data,999)\r\n if(data.err_code == 0){\r\n this.content = data.data.doc;\r\n this.title = data.data.title;\r\n this.convertText();\r\n }\r\n })\r\n },\r\n //格式转化\r\n convertText() {\r\n // this.html = this.converter.makeHtml(this.content);\r\n // this.html = marked(this.content);\r\n this.html = this.mdjs.md2html(this.content);\r\n },\r\n cancel(){},\r\n sure(){},\r\n },\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n @import \"../assets/sspai.css\";\r\n @basefont:50;\r\n .markdown{\r\n height:100vh;\r\n width:100%;\r\n .doc_name{\r\n height:80rem /@basefont;\r\n color:#333333;\r\n font-size:36rem /@basefont;\r\n }\r\n .main{\r\n height:calc(100% - (200rem /@basefont));\r\n width:100%;\r\n word-break:break-word;\r\n overflow:auto;\r\n padding:20rem /@basefont;\r\n font-size:28rem /@basefont;\r\n box-sizing:border-box;\r\n }\r\n .bottom{\r\n height:120rem /@basefont;\r\n width:100%;\r\n position:fixed;\r\n bottom:0;\r\n background-color:white;\r\n display:flex;\r\n z-index:11;\r\n align-items:center;\r\n justify-content:space-around;\r\n padding:20rem /@basefont 0;\r\n box-sizing:border-box;\r\n box-shadow:0 -2px 5px #eeeeee;\r\n .van-button{\r\n width:40%;\r\n }\r\n }\r\n }\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/pages/markdown.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"markdown\"},[_c('van-field',{staticClass:\"doc_name\",attrs:{\"input-align\":\"center\"},model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}}),_vm._v(\" \"),_c('div',{staticClass:\"main\",domProps:{\"innerHTML\":_vm._s(_vm.html)}}),_vm._v(\" \"),_c('div',{staticClass:\"bottom\"},[_c('van-button',{attrs:{\"plain\":\"\",\"type\":\"info\",\"color\":\"#cccccc\"},on:{\"click\":_vm.cancel}},[_vm._v(\"取消\")]),_vm._v(\" \"),_c('van-button',{attrs:{\"type\":\"info\"},on:{\"click\":_vm.sure}},[_vm._v(\"确定\")])],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-fd976ee4\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/markdown.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-fd976ee4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./markdown.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./markdown.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./markdown.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-fd976ee4\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./markdown.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-fd976ee4\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/markdown.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([4],{ftJn:function(t,e){},tZVe:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c=n("I22p"),i={name:"markdown",data:function(){return{title:"",content:"",converter:null,html:""}},created:function(){this.docid=this.$route.query.docid,this.articleDetail(this.docid)},mounted:function(){this.converter=new showdown.Converter,console.log(this.converter,99)},methods:{articleDetail:function(t){var e=this;c.a.articleDetail({docid:t}).then(function(t){console.log(t,999),0==t.err_code&&(e.content=t.data.doc,e.title=t.data.title,e.convertText())})},convertText:function(){this.html=this.converter.makeHtml(this.content)},cancel:function(){},sure:function(){}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"markdown"},[n("van-field",{staticClass:"doc_name",attrs:{"input-align":"center"},model:{value:t.title,callback:function(e){t.title=e},expression:"title"}}),t._v(" "),n("div",{staticClass:"main",domProps:{innerHTML:t._s(t.html)}}),t._v(" "),n("div",{staticClass:"bottom"},[n("van-button",{attrs:{plain:"",type:"info",color:"#cccccc"},on:{click:t.cancel}},[t._v("取消")]),t._v(" "),n("van-button",{attrs:{type:"info"},on:{click:t.sure}},[t._v("确定")])],1)],1)},staticRenderFns:[]};var a=n("VU/8")(i,o,!1,function(t){n("ftJn")},"data-v-41dc2520",null);e.default=a.exports}});
//# sourceMappingURL=4.d0cca719db357b6e07c6.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/pages/markdown.vue","webpack:///./src/pages/markdown.vue?561a","webpack:///./src/pages/markdown.vue"],"names":["markdown","name","data","title","content","converter","html","created","this","docid","$route","query","articleDetail","mounted","showdown","Converter","console","log","methods","_this","then","err_code","doc","convertText","makeHtml","cancel","sure","pages_markdown","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","input-align","model","value","callback","$$v","expression","_v","domProps","innerHTML","_s","plain","type","color","on","click","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"0IAeAA,GACAC,KAAA,WACAC,KAFA,WAGA,OACAC,MAAA,GACAC,QAAA,GACAC,UAAA,KACAC,KAAA,KAGAC,QAVA,WAWAC,KAAAC,MAAAD,KAAAE,OAAAC,MAAAF,MACAD,KAAAI,cAAAJ,KAAAC,QAEAI,QAdA,WAgBAL,KAAAH,UAAA,IAAAS,SAAAC,UACAC,QAAAC,IAAAT,KAAAH,UAAA,KAEAa,SAEAN,cAFA,SAEAH,GAAA,IAAAU,EAAAX,KACYU,EAAA,EAAZN,eAAAH,UAAAW,KAAA,SAAAlB,GACAc,QAAAC,IAAAf,EAAA,KACA,GAAAA,EAAAmB,WACAF,EAAAf,QAAAF,OAAAoB,IACAH,EAAAhB,MAAAD,OAAAC,MACAgB,EAAAI,kBAKAA,YAbA,WAcAf,KAAAF,KAAAE,KAAAH,UAAAmB,SAAAhB,KAAAJ,UAEAqB,OAhBA,aAiBAC,KAjBA,eC/BeC,GADEC,OAFjB,WAA0B,IAAAC,EAAArB,KAAasB,EAAAD,EAAAE,eAA0BC,EAAAH,EAAAI,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,aAAuBF,EAAA,aAAkBE,YAAA,WAAAC,OAA8BC,cAAA,UAAuBC,OAAQC,MAAAT,EAAA,MAAAU,SAAA,SAAAC,GAA2CX,EAAA1B,MAAAqC,GAAcC,WAAA,WAAqBZ,EAAAa,GAAA,KAAAV,EAAA,OAAwBE,YAAA,OAAAS,UAA6BC,UAAAf,EAAAgB,GAAAhB,EAAAvB,SAA8BuB,EAAAa,GAAA,KAAAV,EAAA,OAAwBE,YAAA,WAAqBF,EAAA,cAAmBG,OAAOW,MAAA,GAAAC,KAAA,OAAAC,MAAA,WAA2CC,IAAKC,MAAArB,EAAAJ,UAAoBI,EAAAa,GAAA,QAAAb,EAAAa,GAAA,KAAAV,EAAA,cAA8CG,OAAOY,KAAA,QAAcE,IAAKC,MAAArB,EAAAH,QAAkBG,EAAAa,GAAA,iBAErkBS,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,CACEtD,EACA2B,GATF,EAVA,SAAA4B,GACEF,EAAQ,SAaV,kBAEA,MAUeG,EAAA,QAAAJ,EAAiB","file":"static/js/4.d0cca719db357b6e07c6.js","sourcesContent":["<template>\r\n <div class=\"markdown\">\r\n <van-field v-model=\"title\" input-align=\"center\" class=\"doc_name\"/>\r\n <!--<van-field v-model=\"content\" input-align=\"center\" class=\"doc_name\"-->\r\n <!--@input=\"convertText\"/>-->\r\n <div v-html=\"html\" class=\"main\"></div>\r\n <div class=\"bottom\">\r\n <van-button plain type=\"info\" color=\"#cccccc\" @click=\"cancel\">取消</van-button>\r\n <van-button type=\"info\" @click=\"sure\">确定</van-button>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import api from '../api/methods';\r\n export default {\r\n name: \"markdown\",\r\n data(){\r\n return {\r\n title:'',\r\n content:'', //内容\r\n converter:null, //转化器\r\n html:'', //格式化后内容\r\n }\r\n },\r\n created(){\r\n this.docid = this.$route.query.docid;\r\n this.articleDetail(this.docid);\r\n },\r\n mounted() {\r\n //创建实例\r\n this.converter = new showdown.Converter();\r\n console.log(this.converter,99)\r\n },\r\n methods: {\r\n //获取文件详情\r\n articleDetail(docid){\r\n api.articleDetail({docid:docid}).then((data)=>{\r\n console.log(data,999)\r\n if(data.err_code == 0){\r\n this.content = data.data.doc;\r\n this.title = data.data.title;\r\n this.convertText();\r\n }\r\n })\r\n },\r\n //格式转化\r\n convertText() {\r\n this.html = this.converter.makeHtml(this.content);\r\n },\r\n cancel(){},\r\n sure(){},\r\n },\r\n }\r\n</script>\r\n\r\n<style scoped lang=\"less\">\r\n @import \"../assets/sspai.css\";\r\n @basefont:50;\r\n .markdown{\r\n height:100vh;\r\n width:100%;\r\n .doc_name{\r\n height:80rem /@basefont;\r\n color:#333333;\r\n font-size:36rem /@basefont;\r\n }\r\n .main{\r\n height:calc(100% - (200rem /@basefont));\r\n width:100%;\r\n /*word-break:break-all;*/\r\n overflow:auto;\r\n padding:20rem /@basefont;\r\n font-size:28rem /@basefont;\r\n box-sizing:border-box;\r\n }\r\n .bottom{\r\n height:120rem /@basefont;\r\n width:100%;\r\n position:fixed;\r\n bottom:0;\r\n background-color:white;\r\n display:flex;\r\n z-index:11;\r\n align-items:center;\r\n justify-content:space-around;\r\n padding:20rem /@basefont 0;\r\n box-sizing:border-box;\r\n box-shadow:0 -2px 5px #eeeeee;\r\n .van-button{\r\n width:40%;\r\n }\r\n }\r\n }\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/pages/markdown.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"markdown\"},[_c('van-field',{staticClass:\"doc_name\",attrs:{\"input-align\":\"center\"},model:{value:(_vm.title),callback:function ($$v) {_vm.title=$$v},expression:\"title\"}}),_vm._v(\" \"),_c('div',{staticClass:\"main\",domProps:{\"innerHTML\":_vm._s(_vm.html)}}),_vm._v(\" \"),_c('div',{staticClass:\"bottom\"},[_c('van-button',{attrs:{\"plain\":\"\",\"type\":\"info\",\"color\":\"#cccccc\"},on:{\"click\":_vm.cancel}},[_vm._v(\"取消\")]),_vm._v(\" \"),_c('van-button',{attrs:{\"type\":\"info\"},on:{\"click\":_vm.sure}},[_vm._v(\"确定\")])],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-41dc2520\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/markdown.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-41dc2520\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!less-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./markdown.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./markdown.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./markdown.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-41dc2520\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./markdown.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-41dc2520\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/markdown.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([3],{LKzM:function(e,t){},Y7I0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var a=n("VU/8")({name:"test"},r,!1,function(e){n("LKzM")},"data-v-bdeb9c22",null);t.default=a.exports}});
//# sourceMappingURL=3.41f78fb7461aaef8a580.js.map
\ No newline at end of file
webpackJsonp([4],{LKzM:function(e,t){},Y7I0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var a=n("VU/8")({name:"test"},r,!1,function(e){n("LKzM")},"data-v-bdeb9c22",null);t.default=a.exports}});
//# sourceMappingURL=4.d10ba5b27b34dea08bd1.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///src/pages/test.vue","webpack:///./src/pages/test.vue?e628","webpack:///./src/pages/test.vue"],"names":["pages_test","render","_h","this","$createElement","_self","_c","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","ssrContext","__webpack_exports__"],"mappings":"0HAKA,ICFeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,QAExEK,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFXAC,KAAA,QEaEX,GATF,EAVA,SAAAY,GACEH,EAAQ,SAaV,kBAEA,MAUeI,EAAA,QAAAL,EAAiB","file":"static/js/3.41f78fb7461aaef8a580.js","sourcesContent":["<template>\r\n \r\n</template>\r\n\r\n<script>\r\n export default {\r\n name: \"test\"\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/pages/test.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(\"div\")}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-bdeb9c22\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/test.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-bdeb9c22\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./test.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./test.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./test.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-bdeb9c22\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./test.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-bdeb9c22\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/test.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:///src/pages/test.vue","webpack:///./src/pages/test.vue?e628","webpack:///./src/pages/test.vue"],"names":["pages_test","render","_h","this","$createElement","_self","_c","staticRenderFns","Component","__webpack_require__","normalizeComponent","name","ssrContext","__webpack_exports__"],"mappings":"0HAKA,ICFeA,GADEC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,QAExEK,oBCCjB,IAcAC,EAdyBC,EAAQ,OAcjCC,EFXAC,KAAA,QEaEX,GATF,EAVA,SAAAY,GACEH,EAAQ,SAaV,kBAEA,MAUeI,EAAA,QAAAL,EAAiB","file":"static/js/4.d10ba5b27b34dea08bd1.js","sourcesContent":["<template>\r\n \r\n</template>\r\n\r\n<script>\r\n export default {\r\n name: \"test\"\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\n\n\n// WEBPACK FOOTER //\n// src/pages/test.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(\"div\")}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-bdeb9c22\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/pages/test.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-bdeb9c22\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./test.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./test.vue\"\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./test.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-bdeb9c22\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./test.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-bdeb9c22\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/pages/test.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
\ No newline at end of file
webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),i=t.n(o),r=t("mtWM"),a=t.n(r),c=t("mw3O"),u=t.n(c),f={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},s=new(t("7+uW").a);a.a.interceptors.request.use(function(n){return n},function(n){return i.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code&&s.$notify({type:"danger",duration:2e3,message:n.data.err_msg}),n.data},function(n){return i.a.reject(n)});var d=function(n,e){var t=f[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};e.a={config:function(n){return d("config",n)},getSsoToken:function(n){return d("getSsoToken",n)},folderList:function(n){return d("folderList",n)},articleList:function(n){return d("articleList",n)},articleDetail:function(n){return d("articleDetail",n)},articleEdit:function(n){return d("articleEdit",n)}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),i=(t("MY4N"),t("0zAV")),r=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),f=t("7+uW"),s={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var d=t("VU/8")({name:"App"},s,!1,function(n){t("Lorf")},null,null).exports,l=t("/ocq"),p=t("mvHQ"),h=t.n(p),g=t("I22p"),m={config:function(n){g.a.config().then(function(e){0==e.err_code&&(console.log("config::",e),n(e.data))})},getSsoToken:function(n){g.a.getSsoToken({code:n}).then(function(n){alert(h()(n)),0==n.err_code&&console.log("config::",n)})},getCode:function(){var n=this;this.config(function(e){dd.ready(function(){dd.runtime.permission.requestAuthCode({corpId:e.corpId,onSuccess:function(e){alert(h()(e)),n.getSsoToken(e.code)},onFail:function(e){alert(h()(e)),n.getSsoToken(e.code)}})})})}},x=t("NYxO");f.a.use(x.a);var v=new x.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});f.a.use(l.a);var S=new l.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(4).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(3).then(t.bind(null,"Y7I0"))}}]}]});S.beforeEach(function(n,e,t){v.state.user_info||m.getCode(),t()});var k=S,b=t("G0J2"),w=t.n(b);t("3f40"),t("4qOc"),t("+cgv");f.a.use(w.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),f.a.use(u.a),f.a.use(c.a),f.a.use(a.a),f.a.use(r.a),f.a.use(i.a),f.a.use(o.a),f.a.config.productionTip=!1,new f.a({el:"#app",router:k,components:{App:d},template:"<App/>"})},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]);
//# sourceMappingURL=app.35ca84d71febcb21ecd9.js.map
\ No newline at end of file
webpackJsonp([7],{"+cgv":function(n,e){},"02pT":function(n,e){},"1H7Z":function(n,e){},"3IMD":function(n,e){},"3f40":function(n,e){},"4qOc":function(n,e){},FhoU:function(n,e){},I22p:function(n,e,t){"use strict";var o=t("//Fk"),r=t.n(o),i=t("mtWM"),a=t.n(i),c=t("mw3O"),u=t.n(c),d={config:"index.php/login/index/config",getSsoToken:"index.php/login/index/getSsoToken",folderList:"index.php/api/index/folderList",articleList:"index.php/api/index/articleList",articleDetail:"index.php/api/index/articleDetail",articleEdit:"index.php/api/index/articleEdit"},f=t("7+uW"),s=t("RjhT"),l=new f.a;a.a.interceptors.request.use(function(n){return n},function(n){return r.a.reject(n)}),a.a.interceptors.response.use(function(n){return 0!==n.data.err_code?l.$notify({type:"danger",duration:2e3,message:n.data.err_msg}):10003===n.data.err_code&&(alert("10003"),s.a.getCode()),n.data},function(n){return r.a.reject(n)});var p=function(n,e){var t=d[n];return a()({method:"post",baseURL:"http://doc-phone.linanquan.com/",url:t,data:u.a.stringify(e)})};function h(n){var e=n||{};return e.token=localStorage.getItem("doc_phone_token"),e}e.a={config:function(n){return p("config",n)},getSsoToken:function(n){return p("getSsoToken",n)},folderList:function(n){return p("folderList",h(n))},articleList:function(n){return p("articleList",h(n))},articleDetail:function(n){return p("articleDetail",h(n))},articleEdit:function(n){return p("articleEdit",h(n))}}},Lorf:function(n,e){},NHnr:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});t("cOrn");var o=t("77gS"),r=(t("MY4N"),t("0zAV")),i=(t("nOaS"),t("pIDD")),a=(t("Ny/I"),t("7Tnr")),c=(t("3Lne"),t("SSsa")),u=(t("4yKu"),t("wolx")),d=t("7+uW"),f={render:function(){var n=this.$createElement,e=this._self._c||n;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App"},f,!1,function(n){t("Lorf")},null,null).exports,l=t("/ocq"),p=t("RjhT"),h=t("NYxO");d.a.use(h.a);new h.a.Store({state:{user_info:null},mutations:{userInfo:function(n,e){n.user_info=e}}});d.a.use(l.a);var g=new l.a({routes:[{path:"/",name:"index",component:function(){return t.e(0).then(t.bind(null,"2NXm"))},children:[{path:"folder",name:"folder",component:function(){return t.e(2).then(t.bind(null,"C0Ug"))}},{path:"folder2",name:"folder2",component:function(){return t.e(1).then(t.bind(null,"M+ft"))}},{path:"wangeditor",name:"wangeditor",component:function(){return t.e(5).then(t.bind(null,"5DMK"))}},{path:"markdown",name:"markdown",component:function(){return t.e(3).then(t.bind(null,"tZVe"))}},{path:"test",name:"test",component:function(){return t.e(4).then(t.bind(null,"Y7I0"))}}]}]});g.beforeEach(function(n,e,t){localStorage.getItem("doc_phone_token")?t():p.a.getCode(function(){return t()})});var m=g,k=t("G0J2"),v=t.n(k);t("3f40"),t("4qOc"),t("+cgv");d.a.use(v.a,{placeholder:"请输入内容",modules:{toolbar:[[{color:[]}],["bold","italic","underline","strike"],[{header:1},{header:2}],[{header:[1,2,3,4,5,6,!1]}]]}}),d.a.use(u.a),d.a.use(c.a),d.a.use(a.a),d.a.use(i.a),d.a.use(r.a),d.a.use(o.a),d.a.config.productionTip=!1,new d.a({el:"#app",router:m,components:{App:s},template:"<App/>"})},RjhT:function(n,e,t){"use strict";var o=t("mvHQ"),r=t.n(o),i=t("I22p");e.a={config:function(n){i.a.config().then(function(e){alert("getConfig"),0==e.err_code&&n(e.data)})},getSsoToken:function(n,e){i.a.getSsoToken({code:n}).then(function(n){0==n.err_code&&(alert("重新登录"),localStorage.setItem("doc_phone_token",n.data.token),e())})},getCode:function(n){var e=this;this.config(function(t){dd.ready(function(){alert("getCode"),dd.runtime.permission.requestAuthCode({corpId:t.corpId,onSuccess:function(t){e.getSsoToken(t.code,function(){return n()})},onFail:function(n){alert(r()(n)),e.getSsoToken(n.code)}})})})}}},T2s0:function(n,e){},WRFY:function(n,e){},WpgC:function(n,e){},hW8u:function(n,e){},"n/tq":function(n,e){},nsZj:function(n,e){},px3J:function(n,e){},qpP9:function(n,e){}},["NHnr"]);
//# sourceMappingURL=app.e32716a7f0d67e0e51e5.js.map
\ No newline at end of file
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"0b3e29fa9fb715a6c568",1:"7e05128e2126c69a7e68",2:"886e1aadccebe3fa542c",3:"41f78fb7461aaef8a580",4:"d0cca719db357b6e07c6",5:"9cd0f2020c75b7a9dbf1"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.481972107a4b2bbf8c2a.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,d=0,s=[];d<r.length;d++)u=r[d],t[u]&&s.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)f=o(o.s=a[d]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"c92537de197cd514d0c0",1:"7e05128e2126c69a7e68",2:"886e1aadccebe3fa542c",3:"1d5f70c5ef57426d51dd",4:"d10ba5b27b34dea08bd1",5:"9cd0f2020c75b7a9dbf1"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.5606033c8b11b6b476c2.js.map
\ No newline at end of file
This diff is collapsed.
(function(){function a(a,b){!String.prototype[a]&&(String.prototype[a]=b);}a('trim',function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');}),a('startsWith',function(a,b){return b=b||0,this.substr(b,a.length)===a;}),a('endsWith',function(a,b){var c=this.toString();(typeof b!=='number'||!isFinite(b)||Math.floor(b)!==b||b>c.length)&&(b=c.length),b-=a.length;var d=c.lastIndexOf(a,b);return d!==-1&&d===b;});})();
(function(){function a(a){return a<0?'':a<1024?t.slice(0,a):s(a);}function b(a){var b=r.exec(a);if(!b)return a;var c='',d='',e=0,f=0,g=a.length;for(e=b.index;e<g;e++){switch(a.charCodeAt(e)){case 34:d='&quot;';break;case 38:d='&amp;';break;case 39:d='&#39;';break;case 60:d='&lt;';break;case 62:d='&gt;';break;default:continue;}f!==e&&(c+=a.substring(f,e)),f=e+1,c+=d;}return f===e?c:c+a.substring(f,e);}function c(a){var b={},c=[];this.set=function(d,e,f){f&&(e.id=c.push(e),e.url=a.func.footNoteName(e.id)),b[d.toLowerCase()]=e;},this.get=function(a){return b[a.toLowerCase()];},this.getFootNotes=function(){return c;};}function d(){var a=[],b=[],c=0;this.topLevel=function(){return c?a[c-1]:-1;},this.topType=function(){return c?b[c-1]:-1;},this.push=function(d,e){a.push(d),b.push(e),c++;},this.pop=function(){a.pop(),b.pop(),c=a.length;};}function e(){this.tag={hr:'<hr />',br:'<br />',p:['<p>','</p>'],quote:['<blockquote>','</blockquote>'],del:['<del>','</del>'],strong:['<strong>','</strong>'],em:['<em>','</em>'],inlineCode:['<code>','</code>'],codeBlock:['<pre><code data-lang="$language">','</code></pre>'],list:['<ul>','</ul>'],orderList:['<ol>','</ol>'],listItem:['<li>','</li>'],toc:['<div class="md_toc">','</div>'],tocList:['<ol>','</ol>'],tocItem:['<a href="#$uri"><li>','</li></a>'],footNote:['<div class="md_foot"><ol>','</ol></div>']},this.func={heading:function(a,b,c){return"<h"+a+" id=\""+b+"\" name=\""+b+"\">"+c+"</h"+a+">";},link:function(a,c,d){return"<a title=\""+b(c)+"\" href=\""+encodeURI(a)+"\">"+d+"</a>";},email:function(a){return"<a href=\"mailto:"+a+"\">"+a+"</a>";},image:function(a,c,d){return"<img alt=\""+b(d)+"\" title=\""+b(c)+"\" src=\""+encodeURI(a)+"\" />";},table:function(a,b){return"<table class=\"md_table\"><thead>"+a+"</thead><tbody>"+b+"</tbody></table>";},tableRow:function(a,b,c){for(var d='<tr>',e=a?'<th style="text-align: {0}">':'<td style="text-align: {0}">',f=a?'</th>':'</td>',g=['left','center','right'],h=0;h<b.length;h++)d+=e.replace('{0}',g[c[h]])+b[h]+f;return d+'</tr>';},footNoteLink:function(a,c,d){return"<sup><a title=\""+b(c)+"\" href=\"#"+encodeURI(a)+"\">"+d+"</a></sup>";},footNote:function(a,b){return"<li name=\""+a+"\" id=\""+a+"\">"+b+"</li>";},footNoteName:function(a){return"markdown_foot_"+a;}};var a=[];this.addRefLinkProvider=function(b){return a.push(b);},this._resolveRefLink=function(b){for(var c,d=0;d<a.length;d++)if(c=a[d](b))return c.url?c:{url:c};};}function f(f){function g(a){a=a.trim();var b={url:a,title:''},c=a.match(/(.+?)\s+(.+)/);if(!c)return b;b.url=c[1];var d=c[2],e=d[0],f=d[d.length-1];return d.length>=2&&((e=='\''||e=='"')&&e==f||e=='('&&f==')')&&(d=d.slice(1,-1)),b.title=d,b;}function h(a){var b=a.charCodeAt(0);if(b!=61&&b!=45&&b!=42&&b!=95)return!1;var c=0,d=0;for(var e=0;e<a.length;e++,c++)if(d=a.charCodeAt(e),d!=32&&d!=9&&d!=b)return!1;return c>=3;}function r(a){for(var b=0,c=0;c<a.length;c++)if(a[c]==' ')b++;else if(a[c]=='\t')b+=4;else break;return b;}function s(a){var b=0;for(b=0;b<a.length&&!(a[b]!='#');b++);return b;}function t(a){return a.endsWith(' ');}function u(a){return a.replace(m,'_').replace(/^_/,'').replace(/_$/,'');}function v(c,d,e){for(var f='',g=c.length,m=0,n='',o='',p=0,D=-1,E=[],H=[],I=[],J=!0,K=!1,L='',M={},N=0,O=0;O<g;O++){if(n=c[O],o=n.trim(),m){if(o=='```'){m=0,f+=F.codeBlock[1];continue;}f+=(m++>1?'\n':'')+b(n);continue;}p=r(n);var i=x(o);if(i!=0){f+=y(p,i,o);continue;}if(f+=z(),o.length==0){!J&&(f+=(K?F.br:'')+F.p[1],J=!0);continue;}if(p<4){if(o.startsWith('```')){var P=o.slice(3).trim();f+=F.codeBlock[0].replace(q,P),m=1;continue;}if(N=s(o),N>0){for(var Q=o.length-1;Q>N&&o[Q]=='#';Q--);var R=o.slice(N,Q+1),S=R=C(R,0);I.push(N),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading(N,S,R);continue;}if(o[0]=='>'&&o.length>1){for(var T=[],U=O;U<g&&(L=c[U].trim(),L.length!=0);U++){if(L[0]=='>')L=L.slice(1)+(t(c[U])?' ':'');else if(d)break;else L=c[U];T.push(L);}f+=F.quote[0]+v(T,!0,e)+F.quote[1],O=U-1;continue;}if(h(o)){f+=F.hr;continue;}if(o=='[TOC]'){D=f.length;continue;}var _=B(o);if(_!==!1&&O<g-1){var aa=A(c[O+1].trim(),_.length);if(aa!==!1){for(var k=G.tableRow(!0,_,aa),V='',W=O+2;W<g&&(_=B(c[W].trim()))!=!1;W++)V+=G.tableRow(!1,_,aa);O=W-1,f+=G.table(k,V);continue;}}}else if(O==0||c[O-1].trim().length==0){f+=F.codeBlock[0].replace(q,'');for(var j,X='',Y=O,W=O;W<g;W++){if(c[W].trim().length==0){X+='\n';continue;}if((j=r(c[W]))<4)break;f+=X+(W==O?'':'\n')+a(j-2)+b(c[W].trim()),X='',Y=W;}f+=F.codeBlock[1],O=Y;continue;}if(O+1<g){var Z=c[O+1].trim();if(h(Z)){var $=3;Z[0]=='='?$=1:Z[0]=='-'&&($=2);var S=R=C(o,0);I.push($),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading($,S,R),O++;continue;}}M={},L=C(n,0,M),J&&M.onlyOneImg?f+=L:(J&&(L=F.p[0]+L,K=!1),(e.alwaysNewline&&!J||K)&&(f+=F.br),K=t(n),f+=L,J=!1);}return!J&&(f+=(K?F.br:'')+F.p[1],J=!0),D!=-1&&(f=f.slice(0,D)+w(E,H,I)+f.slice(D)),f;}function w(a,b,c){for(var d,e,f=F.toc[0],g=[],h=0;h<a.length;h++)e=F.tocItem[0].replace('$uri',b[h])+a[h]+F.tocItem[1],g.length==0||c[h]>d?(f+=F.tocList[0]+e,g.push(d=c[h])):c[h]==d?f+=e:(f+=F.tocList[1],g.pop(),d=g[g.length-1],h--);for(;g.length;)f+=F.tocList[1],g.pop();return f+F.toc[1];}function x(a){return h(a)?0:a.search(j)==-1?a.search(i)==-1?0:2:1;}function y(a,b,c){var d=I.topLevel(),e=F.listItem[0]+C(c,c.indexOf(' '))+F.listItem[1],f='';if(a>d)return I.push(a,b),(b==1?F.orderList:F.list)[0]+e;if(a==d)return e;for(;a<d;)f+=I.topType()==1?F.orderList[1]:F.list[1],I.pop(),d=I.topLevel();return d==-1?(I.push(a,b),f+(b==1?F.orderList:F.list)[0]+e):f+e;}function z(){for(var a='';I.topLevel()!=-1;)a+=I.topType()==1?F.orderList[1]:F.list[1],I.pop();return a;}function A(a,b){var c=B(a,!0),d=[],e=0,f=0;if(c===!1)return!1;for(var g=c.length;e<g;e++,f=0){if(c[e].length<=1){d[e]=0;continue;}c[e][c[e].length-1]==':'&&(f=c[e][0]==':'?1:2),d[e]=f;}for(;e<b;e++)d[e]=0;return d;}function B(a,b){for(var c=[],d=a.length,e='',f=a[0]=='|'?1:0;f<d;f++){switch(a[f]){case'\\':if(b)return!1;e+='\\',a[f+1]=='|'&&(e+='|',f++);continue;case'|':if(e=e.trim(),b&&e.length==0)return!1;c.push(e),e='';continue;}if(!b||a[f]==':'||a[f]=='-'||a[f]==' '||a[f]=='\t')e+=a[f];else return!1;}return(c.length!=0||a[0]=='|')&&(e=e.trim(),e.length!=0&&c.push(e),c);}function C(a,c,d){for(var e,f,h,l,m,p,q,s,t=a.length,u=[],v='',r=-1,w=-1,x=-1,y=-1,z=-1,A='*',B='*',D=0,I=!1,J=c||0;J<t;J++)switch(a[J]){case'\\':k.indexOf(a[J+1])>=0&&(r=u.length,w=++J),v+=a[J];break;case'`':p=a[J+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,J+q))==-1?v+=p:(v+=F.inlineCode[0]+b(a.slice(J+q,e))+F.inlineCode[1],J=e),J+=q-1;break;case'~':a[J+1]=='~'?(z>=0?v==''?u[z]+='~~':(u[z]+=F.del[0],v+=F.del[1],z=-1):(z=u.push(v)-1,v=''),J++):v+='~';break;case'*':case'_':if((a[J+1]==' '||a[J+1]=='\t')&&(a[J-1]==' '||a[J-1]=='\t')){v+=a[J];break;}if(a[J+1]==a[J]){if(x>=0){if(A!=a[J]){v+=a[J++]+a[J];break;}u[x]+=F.strong[0],v+=F.strong[1],x=-1;}else a[J+2]==a[J]&&a[J+3]==a[J]&&(v+=a[J++]+a[J++]),x=u.push(v)-1,v='',A=a[J];J++;}else if(y>=0){if(B!=a[J]){v+=a[J];break;}u[y]+=F.em[0],v+=F.em[1],y=-1;}else y=u.push(v)-1,v='',B=a[J];break;case'>':v+=J>=2&&a.slice(J-2,J)=='--'?'-->':'>';break;case'<':if(a.slice(J+1,J+4)=='!--'){v+='<!--';break;}for(I=!0,e=J+1;e<t&&a[e]!='>';e++)(a[e]==' '||a[e]=='\t')&&(I=!1);if(e>=t){v+='&lt;';break;}if(p=a.slice(J+1,e),I){if(p.match(n)){v+=G.link(p,'',p),J=e;break;}if(p.match(o)){v+=G.email(p),J=e;break;}}v+='<';break;case'!':a[J+1]!='['&&(v+='!');break;case'[':f=a[J-1]=='!'&&(r!=u.length||w!=J-1)?'i':a[J+1]=='^'?'s':'';for(var i=0,K=J+1,j=0;K<t;K++)switch(a[K]){case'!':if(a[K+1]!='[')break;f==''?(i=1,K++):K=t;break;case'`':p=a[K+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,K+q))==-1?K+=q-1:K=e+q-1;break;case'[':K=t;break;case']':if(h=a.slice(J+1,K),f=='s'){s=H.get(h),s&&(v+=G.footNoteLink(s.url,s.title,s.id),j=1,J=K,K=t);break;}p=a[K+1];var L;if(p=='(')L=')';else if(p=='['||p==' '&&a[K+2]=='[')L=']';else{K=t;break;}if(q=p==' '?K+3:K+2,(e=a.indexOf(L,q))!=-1){if(i){i=0;break;}var M=a.slice(q,e).trim();if(L!=']')s=g(M);else if(M.length==0&&(M=h),s=H.get(M),!s&&!(s=E._resolveRefLink(M))){K=t;break;}l=s.url,m=s.title||'',f=='i'?(u.push(v),u.push(G.image(l,m,h)),v='',D++):v+=G.link(l,m,C(h,0)),j=1,J=e;}K=t;}!j&&K>=t&&(f==='s'?(v+='[^',J++):f==='i'?v+='![':v+='[');break;default:v+=a[J];}if(u.push(v),z!=-1&&(u[z]+='~~'),x!=-1&&(u[x]+=A+A),y!=-1&&(u[y]+=B),D==1){var N=0;for(var O in u)N+=u[O].trim()?1:0;N==1&&d&&(d.onlyOneImg=!0);}return u.join('');}function D(){var a=H.getFootNotes();if(a.length==0)return'';var b=F.footNote[0];return a.forEach(function(a){return b+=G.footNote(a.url,C(a.content,0));}),b+F.footNote[1];}var E=new e();f&&(E=f);var F=E.tag,G=E.func,H=new c(E),I=new d();this.render=E,this.md2html=function(a,b){b=b||{},a=typeof a=='string'?a:String(a),H=new c(E),I=new d();for(var e=a.split(/\r?\n/),f=e.length,h=[],j='',l=0;l<f;l++){j=e[l];var i=j.trim().match(p);if(!i){h.push(j);continue;}var m,n=!1,o='';if(n=i[1]=='^'){o=i[3];for(var q=l+1;q<f&&(j=e[q].trim(),!!j)&&!j.match(p);q++,l++)o+='\n'+e[q];m={title:i[2],content:o};}else m=g(i[3].trim());H.set(i[1]+i[2],m,n);}return v(h,!1,b)+D();};}var g="Mdjs",h=function(a,b){return typeof a.prototype[b]==='function';},k="#`*[]()-_{}+.!|\\",i=/^[\*\-\+] +\S*/g,j=/^\d+\. +\S*/g,l=/<\/?[^<>]+>/g,m=/\W+/g,n=/^\w+:\/{2,3}\S+$/g,o=/^\S+@\S+\.\S+$/g,p=/^\[([\^]?)(.+)\]\:\s+(.+)$/,q=/\$language/g,r=/[<>"'&]/,s=h(String,'repeat')?function(a){return' '.repeat(a);}:function(a){return new Array(a).join(' ');},t=s(1024),u=new f();f.md2html=function(a,b){return u.md2html(a,b);},f.escapedHTML=b,f.MdjsRenderer=e,f.Mdjs=f,typeof module=='object'&&typeof global=='object'&&(module.exports=global[g]=f),typeof window!='undefined'&&(window[g]=f);})();
\ No newline at end of file
......@@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no" />
<script src="https://g.alicdn.com/dingding/dingtalk-jsapi/2.10.3/dingtalk.open.js"></script>
<script src="./static/showdown.min.js"></script>
<script src="./static/marked.min.js"></script>
<script src="./static/mdjs.min.js"></script>
<title>doc</title>
</head>
<body>
......
......@@ -2,6 +2,7 @@ import axios from 'axios';
import qs from 'qs';
import apiList from './apiList';
import Vue from 'vue';
import ddLogin from "../assets/js/ddLogin";
let vm = new Vue();
let baseUrl = 'http://doc-phone.linanquan.com/';
......@@ -19,6 +20,10 @@ axios.interceptors.response.use(function (response) {
// 对响应数据做点什么
if(response.data.err_code !== 0){
vm.$notify({ type:'danger',duration: 2000,message:response.data.err_msg});
}else if(response.data.err_code === 10003){
//token过期去获取
alert('10003')
ddLogin.getCode();
}
return response.data;
}, function (error) {
......
import api from './index';
function setData(data) {
let params = data ? data : {};
params.token = localStorage.getItem('doc_phone_token');
return params;
}
export default {
//获取钉钉配置信息
config(data){
......@@ -13,18 +19,18 @@ export default {
//访问文件夹列表
folderList(data){
return api.post('folderList',data);
return api.post('folderList',setData(data));
},
//访问文件列表
articleList(data){
return api.post('articleList',data);
return api.post('articleList',setData(data));
},
//获取文件详情
articleDetail(data){
return api.post('articleDetail',data);
return api.post('articleDetail',setData(data));
},
//修改文件
articleEdit(data){
return api.post('articleEdit',data);
return api.post('articleEdit',setData(data));
},
}
\ No newline at end of file
import api from '../../api/methods';
export default {
//获取钉钉配置信息
config(callback){
api.config().then((data)=>{
alert('getConfig')
if(data.err_code == 0){
console.log('config::',data)
callback(data.data);
}
})
},
//通过免签码获取uid
getSsoToken(code){
getSsoToken(code,callback){
api.getSsoToken({code:code }).then((data)=>{
alert(JSON.stringify(data))
if(data.err_code == 0){
// alert(JSON.stringify(data))
console.log('config::',data)
alert('重新登录')
localStorage.setItem('doc_phone_token',data.data.token);
callback();
}
})
},
//获取微应用免登授权码
getCode(){
getCode(callback){
let _this = this;
this.config((data)=>{
dd.ready(function() {
alert('getCode')
dd.runtime.permission.requestAuthCode({
corpId: data.corpId, // 企业id
onSuccess: function (info) {
alert(JSON.stringify(info))
// code = info.code // 通过该免登授权码可以获取用户身份
_this.getSsoToken(info.code);
_this.getSsoToken(info.code,()=> callback());
},
onFail: function (info) {
alert(JSON.stringify(info))
......
......@@ -40,7 +40,15 @@
},
methods:{
selectNav(index,path){
if(index === 3) return this.$router.replace({path:'/markdown'});
if(index === 3){
dd.biz.util.openLink({
url:"http://doc-phone.linanquan.com/html/dist/index.html/?token="+localStorage.getItem('doc_phone_token')+ '#/folder',//要打开链接的地址
onSuccess : function(result) {
/**/
},
onFail : function(err) {}
})
}
if(index === 1){
this.nav_index = index;
if(this.$route.path == '/folder') this.$router.replace({path:'/folder2'});
......
......@@ -21,6 +21,7 @@
content:'', //内容
converter:null, //转化器
html:'', //格式化后内容
mdjs:null,
}
},
created(){
......@@ -28,9 +29,11 @@
this.articleDetail(this.docid);
},
mounted() {
// console.log(marked,99)
//创建实例
this.converter = new showdown.Converter();
console.log(this.converter,99)
// this.converter = new showdown.Converter();
// console.log(this.converter,99)
this.mdjs = new Mdjs();
},
methods: {
//获取文件详情
......@@ -46,7 +49,9 @@
},
//格式转化
convertText() {
this.html = this.converter.makeHtml(this.content);
// this.html = this.converter.makeHtml(this.content);
// this.html = marked(this.content);
this.html = this.mdjs.md2html(this.content);
},
cancel(){},
sure(){},
......@@ -68,7 +73,7 @@
.main{
height:calc(100% - (200rem /@basefont));
width:100%;
/*word-break:break-all;*/
word-break:break-word;
overflow:auto;
padding:20rem /@basefont;
font-size:28rem /@basefont;
......
......@@ -43,11 +43,13 @@ let router = new Router({
});
router.beforeEach((to, from, next) => {
//没有用户信息说明则获取
if(!store.state.user_info){
ddLogin.getCode();
}
//没有token则去获取
let token = localStorage.getItem('doc_phone_token');
if(!token){
ddLogin.getCode(()=> next());
}else{
next();
}
});
export default router;
\ No newline at end of file
This diff is collapsed.
(function(){function a(a,b){!String.prototype[a]&&(String.prototype[a]=b);}a('trim',function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,'');}),a('startsWith',function(a,b){return b=b||0,this.substr(b,a.length)===a;}),a('endsWith',function(a,b){var c=this.toString();(typeof b!=='number'||!isFinite(b)||Math.floor(b)!==b||b>c.length)&&(b=c.length),b-=a.length;var d=c.lastIndexOf(a,b);return d!==-1&&d===b;});})();
(function(){function a(a){return a<0?'':a<1024?t.slice(0,a):s(a);}function b(a){var b=r.exec(a);if(!b)return a;var c='',d='',e=0,f=0,g=a.length;for(e=b.index;e<g;e++){switch(a.charCodeAt(e)){case 34:d='&quot;';break;case 38:d='&amp;';break;case 39:d='&#39;';break;case 60:d='&lt;';break;case 62:d='&gt;';break;default:continue;}f!==e&&(c+=a.substring(f,e)),f=e+1,c+=d;}return f===e?c:c+a.substring(f,e);}function c(a){var b={},c=[];this.set=function(d,e,f){f&&(e.id=c.push(e),e.url=a.func.footNoteName(e.id)),b[d.toLowerCase()]=e;},this.get=function(a){return b[a.toLowerCase()];},this.getFootNotes=function(){return c;};}function d(){var a=[],b=[],c=0;this.topLevel=function(){return c?a[c-1]:-1;},this.topType=function(){return c?b[c-1]:-1;},this.push=function(d,e){a.push(d),b.push(e),c++;},this.pop=function(){a.pop(),b.pop(),c=a.length;};}function e(){this.tag={hr:'<hr />',br:'<br />',p:['<p>','</p>'],quote:['<blockquote>','</blockquote>'],del:['<del>','</del>'],strong:['<strong>','</strong>'],em:['<em>','</em>'],inlineCode:['<code>','</code>'],codeBlock:['<pre><code data-lang="$language">','</code></pre>'],list:['<ul>','</ul>'],orderList:['<ol>','</ol>'],listItem:['<li>','</li>'],toc:['<div class="md_toc">','</div>'],tocList:['<ol>','</ol>'],tocItem:['<a href="#$uri"><li>','</li></a>'],footNote:['<div class="md_foot"><ol>','</ol></div>']},this.func={heading:function(a,b,c){return"<h"+a+" id=\""+b+"\" name=\""+b+"\">"+c+"</h"+a+">";},link:function(a,c,d){return"<a title=\""+b(c)+"\" href=\""+encodeURI(a)+"\">"+d+"</a>";},email:function(a){return"<a href=\"mailto:"+a+"\">"+a+"</a>";},image:function(a,c,d){return"<img alt=\""+b(d)+"\" title=\""+b(c)+"\" src=\""+encodeURI(a)+"\" />";},table:function(a,b){return"<table class=\"md_table\"><thead>"+a+"</thead><tbody>"+b+"</tbody></table>";},tableRow:function(a,b,c){for(var d='<tr>',e=a?'<th style="text-align: {0}">':'<td style="text-align: {0}">',f=a?'</th>':'</td>',g=['left','center','right'],h=0;h<b.length;h++)d+=e.replace('{0}',g[c[h]])+b[h]+f;return d+'</tr>';},footNoteLink:function(a,c,d){return"<sup><a title=\""+b(c)+"\" href=\"#"+encodeURI(a)+"\">"+d+"</a></sup>";},footNote:function(a,b){return"<li name=\""+a+"\" id=\""+a+"\">"+b+"</li>";},footNoteName:function(a){return"markdown_foot_"+a;}};var a=[];this.addRefLinkProvider=function(b){return a.push(b);},this._resolveRefLink=function(b){for(var c,d=0;d<a.length;d++)if(c=a[d](b))return c.url?c:{url:c};};}function f(f){function g(a){a=a.trim();var b={url:a,title:''},c=a.match(/(.+?)\s+(.+)/);if(!c)return b;b.url=c[1];var d=c[2],e=d[0],f=d[d.length-1];return d.length>=2&&((e=='\''||e=='"')&&e==f||e=='('&&f==')')&&(d=d.slice(1,-1)),b.title=d,b;}function h(a){var b=a.charCodeAt(0);if(b!=61&&b!=45&&b!=42&&b!=95)return!1;var c=0,d=0;for(var e=0;e<a.length;e++,c++)if(d=a.charCodeAt(e),d!=32&&d!=9&&d!=b)return!1;return c>=3;}function r(a){for(var b=0,c=0;c<a.length;c++)if(a[c]==' ')b++;else if(a[c]=='\t')b+=4;else break;return b;}function s(a){var b=0;for(b=0;b<a.length&&!(a[b]!='#');b++);return b;}function t(a){return a.endsWith(' ');}function u(a){return a.replace(m,'_').replace(/^_/,'').replace(/_$/,'');}function v(c,d,e){for(var f='',g=c.length,m=0,n='',o='',p=0,D=-1,E=[],H=[],I=[],J=!0,K=!1,L='',M={},N=0,O=0;O<g;O++){if(n=c[O],o=n.trim(),m){if(o=='```'){m=0,f+=F.codeBlock[1];continue;}f+=(m++>1?'\n':'')+b(n);continue;}p=r(n);var i=x(o);if(i!=0){f+=y(p,i,o);continue;}if(f+=z(),o.length==0){!J&&(f+=(K?F.br:'')+F.p[1],J=!0);continue;}if(p<4){if(o.startsWith('```')){var P=o.slice(3).trim();f+=F.codeBlock[0].replace(q,P),m=1;continue;}if(N=s(o),N>0){for(var Q=o.length-1;Q>N&&o[Q]=='#';Q--);var R=o.slice(N,Q+1),S=R=C(R,0);I.push(N),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading(N,S,R);continue;}if(o[0]=='>'&&o.length>1){for(var T=[],U=O;U<g&&(L=c[U].trim(),L.length!=0);U++){if(L[0]=='>')L=L.slice(1)+(t(c[U])?' ':'');else if(d)break;else L=c[U];T.push(L);}f+=F.quote[0]+v(T,!0,e)+F.quote[1],O=U-1;continue;}if(h(o)){f+=F.hr;continue;}if(o=='[TOC]'){D=f.length;continue;}var _=B(o);if(_!==!1&&O<g-1){var aa=A(c[O+1].trim(),_.length);if(aa!==!1){for(var k=G.tableRow(!0,_,aa),V='',W=O+2;W<g&&(_=B(c[W].trim()))!=!1;W++)V+=G.tableRow(!1,_,aa);O=W-1,f+=G.table(k,V);continue;}}}else if(O==0||c[O-1].trim().length==0){f+=F.codeBlock[0].replace(q,'');for(var j,X='',Y=O,W=O;W<g;W++){if(c[W].trim().length==0){X+='\n';continue;}if((j=r(c[W]))<4)break;f+=X+(W==O?'':'\n')+a(j-2)+b(c[W].trim()),X='',Y=W;}f+=F.codeBlock[1],O=Y;continue;}if(O+1<g){var Z=c[O+1].trim();if(h(Z)){var $=3;Z[0]=='='?$=1:Z[0]=='-'&&($=2);var S=R=C(o,0);I.push($),E.push(S=S.trim().replace(l,'')),H.push(S=u(S)),f+=G.heading($,S,R),O++;continue;}}M={},L=C(n,0,M),J&&M.onlyOneImg?f+=L:(J&&(L=F.p[0]+L,K=!1),(e.alwaysNewline&&!J||K)&&(f+=F.br),K=t(n),f+=L,J=!1);}return!J&&(f+=(K?F.br:'')+F.p[1],J=!0),D!=-1&&(f=f.slice(0,D)+w(E,H,I)+f.slice(D)),f;}function w(a,b,c){for(var d,e,f=F.toc[0],g=[],h=0;h<a.length;h++)e=F.tocItem[0].replace('$uri',b[h])+a[h]+F.tocItem[1],g.length==0||c[h]>d?(f+=F.tocList[0]+e,g.push(d=c[h])):c[h]==d?f+=e:(f+=F.tocList[1],g.pop(),d=g[g.length-1],h--);for(;g.length;)f+=F.tocList[1],g.pop();return f+F.toc[1];}function x(a){return h(a)?0:a.search(j)==-1?a.search(i)==-1?0:2:1;}function y(a,b,c){var d=I.topLevel(),e=F.listItem[0]+C(c,c.indexOf(' '))+F.listItem[1],f='';if(a>d)return I.push(a,b),(b==1?F.orderList:F.list)[0]+e;if(a==d)return e;for(;a<d;)f+=I.topType()==1?F.orderList[1]:F.list[1],I.pop(),d=I.topLevel();return d==-1?(I.push(a,b),f+(b==1?F.orderList:F.list)[0]+e):f+e;}function z(){for(var a='';I.topLevel()!=-1;)a+=I.topType()==1?F.orderList[1]:F.list[1],I.pop();return a;}function A(a,b){var c=B(a,!0),d=[],e=0,f=0;if(c===!1)return!1;for(var g=c.length;e<g;e++,f=0){if(c[e].length<=1){d[e]=0;continue;}c[e][c[e].length-1]==':'&&(f=c[e][0]==':'?1:2),d[e]=f;}for(;e<b;e++)d[e]=0;return d;}function B(a,b){for(var c=[],d=a.length,e='',f=a[0]=='|'?1:0;f<d;f++){switch(a[f]){case'\\':if(b)return!1;e+='\\',a[f+1]=='|'&&(e+='|',f++);continue;case'|':if(e=e.trim(),b&&e.length==0)return!1;c.push(e),e='';continue;}if(!b||a[f]==':'||a[f]=='-'||a[f]==' '||a[f]=='\t')e+=a[f];else return!1;}return(c.length!=0||a[0]=='|')&&(e=e.trim(),e.length!=0&&c.push(e),c);}function C(a,c,d){for(var e,f,h,l,m,p,q,s,t=a.length,u=[],v='',r=-1,w=-1,x=-1,y=-1,z=-1,A='*',B='*',D=0,I=!1,J=c||0;J<t;J++)switch(a[J]){case'\\':k.indexOf(a[J+1])>=0&&(r=u.length,w=++J),v+=a[J];break;case'`':p=a[J+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,J+q))==-1?v+=p:(v+=F.inlineCode[0]+b(a.slice(J+q,e))+F.inlineCode[1],J=e),J+=q-1;break;case'~':a[J+1]=='~'?(z>=0?v==''?u[z]+='~~':(u[z]+=F.del[0],v+=F.del[1],z=-1):(z=u.push(v)-1,v=''),J++):v+='~';break;case'*':case'_':if((a[J+1]==' '||a[J+1]=='\t')&&(a[J-1]==' '||a[J-1]=='\t')){v+=a[J];break;}if(a[J+1]==a[J]){if(x>=0){if(A!=a[J]){v+=a[J++]+a[J];break;}u[x]+=F.strong[0],v+=F.strong[1],x=-1;}else a[J+2]==a[J]&&a[J+3]==a[J]&&(v+=a[J++]+a[J++]),x=u.push(v)-1,v='',A=a[J];J++;}else if(y>=0){if(B!=a[J]){v+=a[J];break;}u[y]+=F.em[0],v+=F.em[1],y=-1;}else y=u.push(v)-1,v='',B=a[J];break;case'>':v+=J>=2&&a.slice(J-2,J)=='--'?'-->':'>';break;case'<':if(a.slice(J+1,J+4)=='!--'){v+='<!--';break;}for(I=!0,e=J+1;e<t&&a[e]!='>';e++)(a[e]==' '||a[e]=='\t')&&(I=!1);if(e>=t){v+='&lt;';break;}if(p=a.slice(J+1,e),I){if(p.match(n)){v+=G.link(p,'',p),J=e;break;}if(p.match(o)){v+=G.email(p),J=e;break;}}v+='<';break;case'!':a[J+1]!='['&&(v+='!');break;case'[':f=a[J-1]=='!'&&(r!=u.length||w!=J-1)?'i':a[J+1]=='^'?'s':'';for(var i=0,K=J+1,j=0;K<t;K++)switch(a[K]){case'!':if(a[K+1]!='[')break;f==''?(i=1,K++):K=t;break;case'`':p=a[K+1]=='`'?'``':'`',q=p.length,(e=a.indexOf(p,K+q))==-1?K+=q-1:K=e+q-1;break;case'[':K=t;break;case']':if(h=a.slice(J+1,K),f=='s'){s=H.get(h),s&&(v+=G.footNoteLink(s.url,s.title,s.id),j=1,J=K,K=t);break;}p=a[K+1];var L;if(p=='(')L=')';else if(p=='['||p==' '&&a[K+2]=='[')L=']';else{K=t;break;}if(q=p==' '?K+3:K+2,(e=a.indexOf(L,q))!=-1){if(i){i=0;break;}var M=a.slice(q,e).trim();if(L!=']')s=g(M);else if(M.length==0&&(M=h),s=H.get(M),!s&&!(s=E._resolveRefLink(M))){K=t;break;}l=s.url,m=s.title||'',f=='i'?(u.push(v),u.push(G.image(l,m,h)),v='',D++):v+=G.link(l,m,C(h,0)),j=1,J=e;}K=t;}!j&&K>=t&&(f==='s'?(v+='[^',J++):f==='i'?v+='![':v+='[');break;default:v+=a[J];}if(u.push(v),z!=-1&&(u[z]+='~~'),x!=-1&&(u[x]+=A+A),y!=-1&&(u[y]+=B),D==1){var N=0;for(var O in u)N+=u[O].trim()?1:0;N==1&&d&&(d.onlyOneImg=!0);}return u.join('');}function D(){var a=H.getFootNotes();if(a.length==0)return'';var b=F.footNote[0];return a.forEach(function(a){return b+=G.footNote(a.url,C(a.content,0));}),b+F.footNote[1];}var E=new e();f&&(E=f);var F=E.tag,G=E.func,H=new c(E),I=new d();this.render=E,this.md2html=function(a,b){b=b||{},a=typeof a=='string'?a:String(a),H=new c(E),I=new d();for(var e=a.split(/\r?\n/),f=e.length,h=[],j='',l=0;l<f;l++){j=e[l];var i=j.trim().match(p);if(!i){h.push(j);continue;}var m,n=!1,o='';if(n=i[1]=='^'){o=i[3];for(var q=l+1;q<f&&(j=e[q].trim(),!!j)&&!j.match(p);q++,l++)o+='\n'+e[q];m={title:i[2],content:o};}else m=g(i[3].trim());H.set(i[1]+i[2],m,n);}return v(h,!1,b)+D();};}var g="Mdjs",h=function(a,b){return typeof a.prototype[b]==='function';},k="#`*[]()-_{}+.!|\\",i=/^[\*\-\+] +\S*/g,j=/^\d+\. +\S*/g,l=/<\/?[^<>]+>/g,m=/\W+/g,n=/^\w+:\/{2,3}\S+$/g,o=/^\S+@\S+\.\S+$/g,p=/^\[([\^]?)(.+)\]\:\s+(.+)$/,q=/\$language/g,r=/[<>"'&]/,s=h(String,'repeat')?function(a){return' '.repeat(a);}:function(a){return new Array(a).join(' ');},t=s(1024),u=new f();f.md2html=function(a,b){return u.md2html(a,b);},f.escapedHTML=b,f.MdjsRenderer=e,f.Mdjs=f,typeof module=='object'&&typeof global=='object'&&(module.exports=global[g]=f),typeof window!='undefined'&&(window[g]=f);})();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment