初始化
BIN
dist/favicon.ico
vendored
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
1
dist/index.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>vue-xuAdmin权限管理后台模板</title><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.c9ac944aa47ab861ea9e1a592945e7d9.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.b14a6c36bb1f29714483.js></script><script type=text/javascript src=./static/js/vendor.6c569533e81d92501246.js></script><script type=text/javascript src=./static/js/app.c18387d0c5ea119cfe04.js></script></body></html>
|
||||
7
dist/static/css/app.c9ac944aa47ab861ea9e1a592945e7d9.css
vendored
Normal file
1
dist/static/css/app.c9ac944aa47ab861ea9e1a592945e7d9.css.map
vendored
Normal file
13
dist/static/fit.config.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import figlet from 'figlet'
|
||||
// 花式控制台
|
||||
export default function fig () {
|
||||
figlet('JDC O2 Team', function (err, data) {
|
||||
if (err) {
|
||||
console.log('Something went wrong...')
|
||||
console.dir(err)
|
||||
return
|
||||
}
|
||||
debugger
|
||||
console.log(data)
|
||||
})
|
||||
}
|
||||
BIN
dist/static/fonts/element-icons.6f0a763.ttf
vendored
Normal file
BIN
dist/static/fonts/fontawesome-webfont.674f50d.eot
vendored
Normal file
BIN
dist/static/fonts/fontawesome-webfont.af7ae50.woff2
vendored
Normal file
BIN
dist/static/fonts/fontawesome-webfont.b06871f.ttf
vendored
Normal file
BIN
dist/static/fonts/fontawesome-webfont.fee66e7.woff
vendored
Normal file
BIN
dist/static/images/icon.jpg
vendored
Normal file
|
After Width: | Height: | Size: 43 KiB |
2671
dist/static/img/fontawesome-webfont.912ec66.svg
vendored
Normal file
|
After Width: | Height: | Size: 434 KiB |
41
dist/static/img/iconfont.dd8285f.svg
vendored
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
dist/static/img/sign.39acb98.png
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
23
dist/static/js/0.a0770adcec9fb1c7f373.js
vendored
Normal file
1
dist/static/js/0.a0770adcec9fb1c7f373.js.map
vendored
Normal file
13
dist/static/js/1.2228238d84d5236a8720.js
vendored
Normal file
1
dist/static/js/1.2228238d84d5236a8720.js.map
vendored
Normal file
2
dist/static/js/10.90a682b9a86bf57c5e08.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([10],{BPLX:function(e,n){},UNG5:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 无限级菜单测试======三级22222222页面\n")])},staticRenderFns:[]};var r=t("VU/8")({name:"sanji1"},a,!1,function(e){t("BPLX")},"data-v-7ccd8aa0",null);n.default=r.exports}});
|
||||
//# sourceMappingURL=10.90a682b9a86bf57c5e08.js.map
|
||||
1
dist/static/js/10.90a682b9a86bf57c5e08.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///src/views/duoji/sanji2.vue","webpack:///./src/views/duoji/sanji2.vue?ddb5","webpack:///./src/views/duoji/sanji2.vue"],"names":["duoji_sanji2","render","_h","this","$createElement","_self","_c","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"2HAOA,ICJAA,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAA/DC,KAA+DI,GAAA,sCAExEC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,OFRA,UEUAX,GATA,EAVA,SAAAY,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/10.90a682b9a86bf57c5e08.js","sourcesContent":["<template>\r\n <div>\r\n 无限级菜单测试======三级22222222页面\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'sanji1'\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/duoji/sanji2.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n 无限级菜单测试======三级22222222页面\\n\")])}\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-7ccd8aa0\",\"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/views/duoji/sanji2.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-7ccd8aa0\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./sanji2.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!./sanji2.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./sanji2.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7ccd8aa0\\\",\\\"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!./sanji2.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-7ccd8aa0\"\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/views/duoji/sanji2.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|
||||
2
dist/static/js/11.f818f6bd6a44ad0a701d.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([11],{pDWz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={name:"transfer",data:function(){this.$createElement;return{data:function(e){for(var t=[],a=1;a<=15;a++)t.push({key:a,label:"备选项 "+a,disabled:a%4==0});return t}(),value1:[1,4],data2:function(e){var t=[],a=["shanghai","beijing","guangzhou","shenzhen","nanjing","xian","chengdu"];return["上海","北京","广州","深圳","南京","西安","成都"].forEach(function(e,l){t.push({label:e,key:l,pinyin:a[l]})}),t}(),value2:[],filterMethod:function(e,t){return t.pinyin.indexOf(e)>-1},data3:function(e){for(var t=[],a=1;a<=15;a++)t.push({key:a,label:"备选项 "+a,disabled:a%4==0});return t}(),value3:[1],value4:[1],renderFunc:function(e,t){return e("span",[t.key," - ",t.label])}}},methods:{handleChange:function(e,t,a){console.log(e,t,a)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h3",[e._v("基础用法")]),e._v(" "),[a("el-transfer",{attrs:{data:e.data},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],e._v(" "),a("h3",[e._v("可搜索")]),e._v(" "),a("p",[e._v("在数据很多的情况下,可以对数据进行搜索和过滤。")]),e._v(" "),[a("el-transfer",{attrs:{filterable:"","filter-method":e.filterMethod,"filter-placeholder":"请输入城市拼音",data:e.data2},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}})],e._v(" "),a("h3",[e._v("可自定义")]),e._v(" "),a("p",[e._v("可以对列表标题文案、按钮文案、数据项的渲染函数、列表底部的勾选状态文案、列表底部的内容区等进行自定义。")]),e._v(" "),[a("p",{staticStyle:{"text-align":"center",margin:"0 0 20px"}},[e._v("使用 render-content 自定义数据项")]),e._v(" "),a("div",{staticStyle:{"text-align":"center"}},[a("el-transfer",{staticStyle:{"text-align":"left",display:"inline-block"},attrs:{filterable:"","left-default-checked":[2,3],"right-default-checked":[1],"render-content":e.renderFunc,titles:["Source","Target"],"button-texts":["到左边","到右边"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},data:e.data3},on:{change:e.handleChange},model:{value:e.value3,callback:function(t){e.value3=t},expression:"value3"}},[a("el-button",{staticClass:"transfer-footer",attrs:{slot:"left-footer",size:"small"},slot:"left-footer"},[e._v("操作")]),e._v(" "),a("el-button",{staticClass:"transfer-footer",attrs:{slot:"right-footer",size:"small"},slot:"right-footer"},[e._v("操作")])],1)],1),e._v(" "),a("p",{staticStyle:{"text-align":"center",margin:"50px 0 20px"}},[e._v("使用 scoped-slot 自定义数据项")]),e._v(" "),a("div",{staticStyle:{"text-align":"center"}},[a("el-transfer",{staticStyle:{"text-align":"left",display:"inline-block"},attrs:{filterable:"","left-default-checked":[2,3],"right-default-checked":[1],titles:["Source","Target"],"button-texts":["到左边","到右边"],format:{noChecked:"${total}",hasChecked:"${checked}/${total}"},data:e.data},on:{change:e.handleChange},scopedSlots:e._u([{key:"default",fn:function(t){var l=t.option;return a("span",{},[e._v(e._s(l.key)+" - "+e._s(l.label))])}}]),model:{value:e.value4,callback:function(t){e.value4=t},expression:"value4"}},[a("el-button",{staticClass:"transfer-footer",attrs:{slot:"left-footer",size:"small"},slot:"left-footer"},[e._v("操作")]),e._v(" "),a("el-button",{staticClass:"transfer-footer",attrs:{slot:"right-footer",size:"small"},slot:"right-footer"},[e._v("操作")])],1)],1)]],2)},staticRenderFns:[]};var r=a("VU/8")(l,n,!1,function(e){a("uvcn")},"data-v-6fdb7bf8",null);t.default=r.exports},uvcn:function(e,t){}});
|
||||
//# sourceMappingURL=11.f818f6bd6a44ad0a701d.js.map
|
||||
1
dist/static/js/11.f818f6bd6a44ad0a701d.js.map
vendored
Normal file
2
dist/static/js/12.fae98b270aa8d49cc7b3.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([12],{YncQ:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var c={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 无限级菜单测试======三级页面\n")])},staticRenderFns:[]};var r=t("VU/8")({name:"sanji"},c,!1,function(e){t("cZZ+")},"data-v-66f0d0d6",null);n.default=r.exports},"cZZ+":function(e,n){}});
|
||||
//# sourceMappingURL=12.fae98b270aa8d49cc7b3.js.map
|
||||
1
dist/static/js/12.fae98b270aa8d49cc7b3.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///src/views/duoji/sanji.vue","webpack:///./src/views/duoji/sanji.vue?5c05","webpack:///./src/views/duoji/sanji.vue"],"names":["duoji_sanji","render","_h","this","$createElement","_self","_c","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"sGAOA,ICJAA,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAA/DC,KAA+DI,GAAA,8BAExEC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,OFRA,SEUAX,GATA,EAVA,SAAAY,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/12.fae98b270aa8d49cc7b3.js","sourcesContent":["<template>\r\n <div>\r\n 无限级菜单测试======三级页面\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'sanji'\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/duoji/sanji.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n 无限级菜单测试======三级页面\\n\")])}\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-66f0d0d6\",\"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/views/duoji/sanji.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-66f0d0d6\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./sanji.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!./sanji.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./sanji.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-66f0d0d6\\\",\\\"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!./sanji.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-66f0d0d6\"\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/views/duoji/sanji.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|
||||
2
dist/static/js/13.0c44804c4eff77f70797.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([13],{"h+4q":function(e,n){},w3dq:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 无限级菜单测试======二级页面\n")])},staticRenderFns:[]};var a=t("VU/8")({name:"erji"},r,!1,function(e){t("h+4q")},"data-v-640a51bc",null);n.default=a.exports}});
|
||||
//# sourceMappingURL=13.0c44804c4eff77f70797.js.map
|
||||
1
dist/static/js/13.0c44804c4eff77f70797.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///src/views/duoji/erji.vue","webpack:///./src/views/duoji/erji.vue?ee89","webpack:///./src/views/duoji/erji.vue"],"names":["duoji_erji","render","_h","this","$createElement","_self","_c","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"6HAOA,ICJAA,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAA/DC,KAA+DI,GAAA,8BAExEC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,OFRA,QEUAX,GATA,EAVA,SAAAY,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/13.0c44804c4eff77f70797.js","sourcesContent":["<template>\r\n <div>\r\n 无限级菜单测试======二级页面\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'erji'\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/duoji/erji.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n 无限级菜单测试======二级页面\\n\")])}\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-640a51bc\",\"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/views/duoji/erji.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-640a51bc\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./erji.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!./erji.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./erji.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-640a51bc\\\",\\\"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!./erji.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-640a51bc\"\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/views/duoji/erji.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|
||||
2
dist/static/js/14.47a9617f9343569a290b.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([14],{o9mD:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 无限级菜单测试======四级页面\n")])},staticRenderFns:[]};var i=t("VU/8")({name:"siji"},r,!1,function(e){t("r7bU")},"data-v-5c7290d1",null);n.default=i.exports},r7bU:function(e,n){}});
|
||||
//# sourceMappingURL=14.47a9617f9343569a290b.js.map
|
||||
1
dist/static/js/14.47a9617f9343569a290b.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///src/views/duoji/siji.vue","webpack:///./src/views/duoji/siji.vue?1eff","webpack:///./src/views/duoji/siji.vue"],"names":["duoji_siji","render","_h","this","$createElement","_self","_c","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"sGAOA,ICJAA,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAA/DC,KAA+DI,GAAA,8BAExEC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,OFRA,QEUAX,GATA,EAVA,SAAAY,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/14.47a9617f9343569a290b.js","sourcesContent":["<template>\r\n <div>\r\n 无限级菜单测试======四级页面\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'siji'\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/duoji/siji.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n 无限级菜单测试======四级页面\\n\")])}\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-5c7290d1\",\"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/views/duoji/siji.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-5c7290d1\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./siji.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!./siji.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./siji.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-5c7290d1\\\",\\\"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!./siji.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-5c7290d1\"\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/views/duoji/siji.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|
||||
2
dist/static/js/15.5da0581bd5c97c03d678.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([15],{"5SaS":function(e,a,i){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=i("woOf"),t=i.n(n),o=i("pFYg"),r=i.n(o),s={name:"navClassify",data:function(){return{dynamicValidateForm:{domains:[],indexName:"首页",indexHref:"/index"}}},methods:{submitForm:function(e){var a=this,i={name:this.dynamicValidateForm.indexName,href:this.dynamicValidateForm.indexHref};var n=this.dynamicValidateForm.domains.map(function(e){return"object"===(void 0===e?"undefined":r()(e))?t()({},e):e});n.unshift(i);var o=n,s=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;a.$axios.post("/api/setting/setNavClassify",{navClassifyData:o}).then(function(e){console.log(e),s.$message({showClose:!0,message:e.data.msg,type:"success"})}).catch(function(e){console.log(e),s.$message({showClose:!0,message:e,type:"error"})})})},resetForm:function(e){this.$refs[e].resetFields()},removeDomain:function(e){var a=this.dynamicValidateForm.domains.indexOf(e);-1!==a&&this.dynamicValidateForm.domains.splice(a,1)},addDomain:function(){this.dynamicValidateForm.domains.push({indexName:"",indexHref:"",key:Date.now()})}},mounted:function(){}},d={render:function(){var e=this,a=e.$createElement,i=e._self._c||a;return i("div",{staticClass:"wrap"},[i("el-form",{ref:"dynamicValidateForm",staticClass:"demo-dynamic",attrs:{model:e.dynamicValidateForm,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"indexName",label:"首页",rules:{required:!0,message:"分类不能为空",trigger:"blur"}}},[i("el-input",{attrs:{placeholder:"导航名称"},model:{value:e.dynamicValidateForm.indexName,callback:function(a){e.$set(e.dynamicValidateForm,"indexName",a)},expression:"dynamicValidateForm.indexName"}}),e._v(" "),i("el-input",{attrs:{placeholder:"path路径",disabled:""},model:{value:e.dynamicValidateForm.indexHref,callback:function(a){e.$set(e.dynamicValidateForm,"indexHref",a)},expression:"dynamicValidateForm.indexHref"}})],1),e._v(" "),e._l(e.dynamicValidateForm.domains,function(a,n){return i("el-form-item",{key:a.key,attrs:{label:"导航"+(n+1),prop:"domains."+n+".value"}},[i("el-input",{attrs:{placeholder:"导航名称"},model:{value:a.name,callback:function(i){e.$set(a,"name",i)},expression:"domain.name"}}),e._v(" "),i("el-input",{attrs:{placeholder:"path路径"},model:{value:a.href,callback:function(i){e.$set(a,"href",i)},expression:"domain.href"}}),e._v(" "),i("el-button",{on:{click:function(i){i.preventDefault(),e.removeDomain(a)}}},[e._v("删除")])],1)}),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(a){e.submitForm("dynamicValidateForm")}}},[e._v("提交")]),e._v(" "),i("el-button",{on:{click:e.addDomain}},[e._v("新增分类")])],1)],2)],1)},staticRenderFns:[]};var m=i("VU/8")(s,d,!1,function(e){i("HjeW")},"data-v-4f20bc30",null);a.default=m.exports},HjeW:function(e,a){}});
|
||||
//# sourceMappingURL=15.5da0581bd5c97c03d678.js.map
|
||||
1
dist/static/js/15.5da0581bd5c97c03d678.js.map
vendored
Normal file
2
dist/static/js/16.704e617262c7e393d786.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([16],{"9zHf":function(e,t){},eP8Y:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={name:"filterTable",data:function(){return{tableData5:[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄",tag:"家"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1517 弄",tag:"公司"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1519 弄",tag:"家"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1516 弄",tag:"公司"}]}},methods:{handleEdit:function(e,t){console.log(e,t),this.$message({showClose:!0,message:e,row:t,type:"success"})},handleDelete:function(e,t){console.log(e,t),this.$message({showClose:!0,message:e,row:t,type:"success"})},filterHandler:function(e,t,a){return t[a.property]===e},formatter:function(e,t){return e.address},filterTag:function(e,t){return t.tag===e}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h3",[e._v("筛选")]),e._v(" "),a("p",[e._v("对表格进行筛选,可快速查找到自己想看的数据。")]),e._v(" "),[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData5}},[a("el-table-column",{attrs:{prop:"date",label:"日期",sortable:"",width:"180",filters:[{text:"2016-05-01",value:"2016-05-01"},{text:"2016-05-02",value:"2016-05-02"},{text:"2016-05-03",value:"2016-05-03"},{text:"2016-05-04",value:"2016-05-04"}],"filter-method":e.filterHandler}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"姓名",width:"180"}}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"地址",formatter:e.formatter}}),e._v(" "),a("el-table-column",{attrs:{prop:"tag",label:"标签",width:"100",filters:[{text:"家",value:"家"},{text:"公司",value:"公司"}],"filter-method":e.filterTag,"filter-placement":"bottom-end"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",{attrs:{type:"家"===t.row.tag?"primary":"success","disable-transitions":""}},[e._v(e._s(t.row.tag))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.handleDelete(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)]],2)},staticRenderFns:[]};var r=a("VU/8")(l,n,!1,function(e){a("9zHf")},"data-v-44c9a8dc",null);t.default=r.exports}});
|
||||
//# sourceMappingURL=16.704e617262c7e393d786.js.map
|
||||
1
dist/static/js/16.704e617262c7e393d786.js.map
vendored
Normal file
2
dist/static/js/17.1fb492c4ab90282f9c79.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([17],{SLzd:function(e,t){},uHNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={name:"upload",data:function(){return{fileList:[{name:"food.jpeg",url:"https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100"},{name:"food2.jpeg",url:"https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100"}],imageUrl:"",dialogImageUrl:"",dialogVisible:!1}},methods:{handleRemove:function(e,t){console.log(e,t)},handlePreview:function(e){console.log(e)},handleExceed:function(e,t){this.$message.warning("当前限制选择 3 个文件,本次选择了 "+e.length+" 个文件,共选择了 "+(e.length+t.length)+" 个文件")},beforeRemove:function(e,t){return this.$confirm("确定移除 "+e.name+"?")},handleAvatarSuccess:function(e,t){this.imageUrl=URL.createObjectURL(t.raw)},beforeAvatarUpload:function(e){var t="image/jpeg"===e.type,a=e.size/1024/1024<2;return t||this.$message.error("上传头像图片只能是 JPG 格式!"),a||this.$message.error("上传头像图片大小不能超过 2MB!"),t&&a},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h3",[e._v("点击上传")]),e._v(" "),a("el-upload",{staticClass:"upload-demo",attrs:{action:"https://jsonplaceholder.typicode.com/posts/","on-preview":e.handlePreview,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,multiple:"",limit:3,"on-exceed":e.handleExceed,"file-list":e.fileList}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")]),e._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传jpg/png文件,且不超过500kb")])],1),e._v(" "),a("h3",[e._v("用户头像上传")]),e._v(" "),a("p",[e._v("使用 before-upload 限制用户上传的图片格式和大小。")]),e._v(" "),a("el-upload",{staticClass:"avatar-uploader",attrs:{action:"https://jsonplaceholder.typicode.com/posts/","show-file-list":!1,"on-success":e.handleAvatarSuccess,"before-upload":e.beforeAvatarUpload}},[e.imageUrl?a("img",{staticClass:"avatar",attrs:{src:e.imageUrl}}):a("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e._v(" "),a("h3",[e._v("照片墙")]),e._v(" "),a("p",[e._v("使用 list-type 属性来设置文件列表的样式。")]),e._v(" "),a("el-upload",{attrs:{action:"https://jsonplaceholder.typicode.com/posts/","list-type":"picture-card","on-preview":e.handlePictureCardPreview,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})]),e._v(" "),a("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{attrs:{width:"100%",src:e.dialogImageUrl,alt:""}})]),e._v(" "),a("h3",[e._v("拖拽上传")]),e._v(" "),a("el-upload",{staticClass:"upload-demo",attrs:{drag:"",action:"https://jsonplaceholder.typicode.com/posts/",multiple:""}},[a("i",{staticClass:"el-icon-upload"}),e._v(" "),a("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),a("em",[e._v("点击上传")])]),e._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传jpg/png文件,且不超过500kb")])])],1)},staticRenderFns:[]};var o=a("VU/8")(l,i,!1,function(e){a("SLzd")},null,null);t.default=o.exports}});
|
||||
//# sourceMappingURL=17.1fb492c4ab90282f9c79.js.map
|
||||
1
dist/static/js/17.1fb492c4ab90282f9c79.js.map
vendored
Normal file
2
dist/static/js/18.b071378670f4087d8b40.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([18],{jDkM:function(s,e){},voNb:function(s,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={render:function(){var s=this,e=s.$createElement,i=s._self._c||e;return i("div",[i("el-radio",{attrs:{label:"superAdmin",border:""},model:{value:s.permissions,callback:function(e){s.permissions=e},expression:"permissions"}},[s._v("超级管理员")]),s._v(" "),i("el-radio",{attrs:{label:"admin",border:""},model:{value:s.permissions,callback:function(e){s.permissions=e},expression:"permissions"}},[s._v("管理员")]),s._v(" "),i("el-radio",{attrs:{label:"ordinary",border:""},model:{value:s.permissions,callback:function(e){s.permissions=e},expression:"permissions"}},[s._v("普通用户")]),s._v(" "),i("div",{staticStyle:{margin:"50px 0px"}},[s._v('\n [权限: "'+s._s(s.options.permissions)+'", 角色: "'+s._s(s.options.role)+'"]\n ')]),s._v(" "),i("h3",[s._v("需要权限的目录:")]),s._v(" "),i("p",[s._v('“上传”:["超级管理员"]')]),s._v(" "),i("p",[s._v('“编辑器”:["超级管理员", “管理员”’]')]),s._v(" "),i("p",[s._v('“系统设置”:["超级管理员"]')])],1)},staticRenderFns:[]};var r=i("VU/8")({name:"pagePermissions",data:function(){return{permissions:this.$store.getters.info.role,options:{role:this.$store.getters.info.role,permissions:this.$store.getters.info.permissions}}},mounted:function(){this.$store.dispatch("setRole",this.options)},watch:{permissions:function(s,e){switch(s){case"superAdmin":this.options={role:"superAdmin",permissions:"超级管理员"};break;case"admin":this.options={role:"admin",permissions:"管理员"};break;case"ordinary":this.options={role:"ordinary",permissions:"普通用户"}}this.$store.dispatch("setRole",this.options),this.$store.dispatch("removeOtherTab",{tabItem:{title:"pageControl",path:"/pagePermissions"},router:this.$router})}}},o,!1,function(s){i("jDkM")},"data-v-1d5c512d",null);e.default=r.exports}});
|
||||
//# sourceMappingURL=18.b071378670f4087d8b40.js.map
|
||||
1
dist/static/js/18.b071378670f4087d8b40.js.map
vendored
Normal file
2
dist/static/js/19.68611539e52cac367bac.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([19],{EMb3:function(e,t){},"iav/":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h3",[e._v("多选")]),e._v(" "),a("p",[e._v("选择多行数据时使用 Checkbox。")]),e._v(" "),[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData4,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"日期",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"姓名",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"address",label:"地址","show-overflow-tooltip":""}})],1),e._v(" "),a("div",{staticStyle:{"margin-top":"20px"}},[a("el-button",{on:{click:function(t){e.toggleSelection([e.tableData4[1],e.tableData4[2]])}}},[e._v("切换第二、第三行的选中状态")]),e._v(" "),a("el-button",{on:{click:function(t){e.toggleSelection()}}},[e._v("取消选择")])],1)]],2)},staticRenderFns:[]};var n=a("VU/8")({name:"dataTables",data:function(){return{tableData4:[{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-08",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-06",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-07",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"}],multipleSelection:[]}},methods:{toggleSelection:function(e){var t=this;e?e.forEach(function(e){t.$refs.multipleTable.toggleRowSelection(e)}):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.multipleSelection=e}}},l,!1,function(e){a("EMb3")},"data-v-06a13b32",null);t.default=n.exports}});
|
||||
//# sourceMappingURL=19.68611539e52cac367bac.js.map
|
||||
1
dist/static/js/19.68611539e52cac367bac.js.map
vendored
Normal file
13
dist/static/js/2.9a8b27b93657af6decfe.js
vendored
Normal file
1
dist/static/js/2.9a8b27b93657af6decfe.js.map
vendored
Normal file
13
dist/static/js/3.59eacd122894bb735072.js
vendored
Normal file
1
dist/static/js/3.59eacd122894bb735072.js.map
vendored
Normal file
2
dist/static/js/4.d7e0897bdb9bbb2a27da.js
vendored
Normal file
1
dist/static/js/4.d7e0897bdb9bbb2a27da.js.map
vendored
Normal file
2
dist/static/js/5.74c336a88840142e3649.js
vendored
Normal file
1
dist/static/js/5.74c336a88840142e3649.js.map
vendored
Normal file
2
dist/static/js/6.251a41f91926e87ea774.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([6],{"1xf6":function(e,n){},"55b9":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 无限级菜单测试======二级2222页面\n")])},staticRenderFns:[]};var i=t("VU/8")({name:"erji"},r,!1,function(e){t("1xf6")},"data-v-efb315b4",null);n.default=i.exports}});
|
||||
//# sourceMappingURL=6.251a41f91926e87ea774.js.map
|
||||
1
dist/static/js/6.251a41f91926e87ea774.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///src/views/duoji/erji2.vue","webpack:///./src/views/duoji/erji2.vue?19a6","webpack:///./src/views/duoji/erji2.vue"],"names":["duoji_erji2","render","_h","this","$createElement","_self","_c","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"8HAOA,ICJAA,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAA/DC,KAA+DI,GAAA,kCAExEC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,OFRA,QEUAX,GATA,EAVA,SAAAY,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/6.251a41f91926e87ea774.js","sourcesContent":["<template>\r\n <div>\r\n 无限级菜单测试======二级2222页面\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'erji'\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/duoji/erji2.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n 无限级菜单测试======二级2222页面\\n\")])}\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-efb315b4\",\"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/views/duoji/erji2.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-efb315b4\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./erji2.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!./erji2.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./erji2.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-efb315b4\\\",\\\"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!./erji2.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-efb315b4\"\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/views/duoji/erji2.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|
||||
2
dist/static/js/7.82e8975c6e742db31d91.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([7],{LvfR:function(e,n){},WPqR:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 无限级菜单测试======五级页面\n")])},staticRenderFns:[]};var i=t("VU/8")({name:"wuji"},r,!1,function(e){t("LvfR")},"data-v-d3ee8e6c",null);n.default=i.exports}});
|
||||
//# sourceMappingURL=7.82e8975c6e742db31d91.js.map
|
||||
1
dist/static/js/7.82e8975c6e742db31d91.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["webpack:///src/views/duoji/wuji.vue","webpack:///./src/views/duoji/wuji.vue?6c18","webpack:///./src/views/duoji/wuji.vue"],"names":["duoji_wuji","render","_h","this","$createElement","_self","_c","_v","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"0HAOA,ICJAA,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,OAA/DC,KAA+DI,GAAA,8BAExEC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,OFRA,QEUAX,GATA,EAVA,SAAAY,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/7.82e8975c6e742db31d91.js","sourcesContent":["<template>\r\n <div>\r\n 无限级菜单测试======五级页面\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'wuji'\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/duoji/wuji.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_vm._v(\"\\n 无限级菜单测试======五级页面\\n\")])}\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-d3ee8e6c\",\"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/views/duoji/wuji.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-d3ee8e6c\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./wuji.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!./wuji.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./wuji.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-d3ee8e6c\\\",\\\"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!./wuji.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-d3ee8e6c\"\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/views/duoji/wuji.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|
||||
2
dist/static/js/8.b72111c921bd0f8908b3.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([8],{FzAc:function(e,t){},x1md:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{"margin-top":"50px"}},[n("h3",[e._v("下面按钮根据当前用户的权限来显示隐藏:")]),e._v(" "),n("p",[e._v('当前用户角色: "'+e._s(e.$store.getters.info.permissions)+'"')]),e._v(" "),n("p",[e._v("没权限按钮:"),n("el-button",{attrs:{type:"primary",plain:"",size:"medium"}},[e._v("查看")])],1),e._v(" "),n("p",[e._v('需要 ["管理员"]:'),n("el-button",{directives:[{name:"role-btn",rawName:"v-role-btn",value:["admin"],expression:"['admin']"}],attrs:{type:"primary",plain:"",size:"medium"}},[e._v("添加")])],1),e._v(" "),n("p",[e._v('需要 ["超级管理员"]:'),n("el-button",{directives:[{name:"role-btn",rawName:"v-role-btn",value:["superAdmin"],expression:"['superAdmin']"}],attrs:{type:"danger",plain:"",size:"medium"}},[e._v("删除")])],1),e._v(" "),n("p",[e._v('需要 ["超级管理员", "管理员"]:'),n("el-button",{directives:[{name:"role-btn",rawName:"v-role-btn",value:["superAdmin","admin"],expression:"['superAdmin','admin']"}],attrs:{type:"primary",plain:"",size:"medium"}},[e._v("修改")])],1)])},staticRenderFns:[]};var r=n("VU/8")({name:"btnPermissions"},i,!1,function(e){n("FzAc")},"data-v-8da87712",null);t.default=r.exports}});
|
||||
//# sourceMappingURL=8.b72111c921bd0f8908b3.js.map
|
||||
1
dist/static/js/8.b72111c921bd0f8908b3.js.map
vendored
Normal file
2
dist/static/js/9.72499b4877a7530b979a.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
webpackJsonp([9],{GMTV:function(a,s){},MGaV:function(a,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var a=this,s=a.$createElement,t=a._self._c||s;return t("div",[t("h3",[a._v("框架内置了element ui和Font Awesome两种图标库")]),a._v(" "),t("p",{staticClass:"text"},[t("span",{staticClass:"name"},[a._v("element ui图标")]),a._v("使用方法直接通过设置类名为 el-icon-iconName 来使用即可。例如:"),t("span",{staticClass:"code"},[a._v('<i class="el-icon-edit"></i>')])]),a._v(" "),t("ul",{staticClass:"ele-icoo"},[t("li",[t("span",[t("i",{staticClass:"el-icon-download"}),a._v(" "),t("span",{staticClass:"iconame"},[a._v("el-icon-download")])])]),a._v(" "),t("li",[t("span",[t("i",{staticClass:"el-icon-loading"}),a._v(" "),t("span",{staticClass:"iconame"},[a._v("el-icon-loading")])])]),a._v(" "),t("li",[t("span",[t("i",{staticClass:"el-icon-setting"}),a._v(" "),t("span",{staticClass:"iconame"},[a._v("el-icon-setting")])])]),a._v(" "),t("li",[t("span",[t("a",{attrs:{target:"_blank",href:"http://element-cn.eleme.io/#/zh-CN/component/icon"}},[a._v("更多element ui图标")])])])]),a._v(" "),t("div",{staticStyle:{clear:"both"}}),a._v(" "),t("p",{staticClass:"text"},[t("span",{staticClass:"name"},[a._v("Font Awesome图标")]),a._v("本框架已经内置该图标库675个图标,不需要另外引入安装,可以直接使用,使用方法直接通过设置类名为 'fa fa-iconName' 来使用即可。例如:"),t("span",{staticClass:"code"},[a._v('<i class="fa fa-camera-retro"></i>')])]),t("p",{staticClass:"text"},[a._v("使用 fa-lg (33%递增)、fa-2x、 fa-3x、fa-4x,或者 fa-5x 类 来放大图标,例如:"),t("span",{staticClass:"code"},[a._v('<i class="fa fa-camera-retro fa-2x"></i>')])]),a._v(" "),t("p",{staticClass:"text"},[a._v("更多功能及用法点击 "),t("a",{attrs:{target:"_blank",href:"http://fontawesome.dashgame.com/#basic"}},[t("strong",[a._v("此处")])])]),a._v(" "),t("div",[t("ul",{staticClass:"ele-icoo"},[t("li",[t("span",[t("i",{staticClass:"fa fa-power-off"}),a._v(" "),t("span",{staticClass:"iconame"},[a._v("power-off")])])]),a._v(" "),t("li",[t("span",[t("i",{staticClass:"fa fa-server"}),a._v(" "),t("span",{staticClass:"iconame"},[a._v("server")])])]),a._v(" "),t("li",[t("span",[t("i",{staticClass:"fa fa-tags"}),a._v(" "),t("span",{staticClass:"iconame"},[a._v("tags")])])]),a._v(" "),t("li",[t("span",[t("a",{attrs:{target:"_blank",href:"http://fontawesome.dashgame.com/"}},[a._v("更多Font Awesome图标")])])])])])])}]};var i=t("VU/8")({name:"index"},e,!1,function(a){t("GMTV")},null,null);s.default=i.exports}});
|
||||
//# sourceMappingURL=9.72499b4877a7530b979a.js.map
|
||||
1
dist/static/js/9.72499b4877a7530b979a.js.map
vendored
Normal file
2
dist/static/js/app.c18387d0c5ea119cfe04.js
vendored
Normal file
1
dist/static/js/app.c18387d0c5ea119cfe04.js.map
vendored
Normal file
2
dist/static/js/manifest.b14a6c36bb1f29714483.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,c){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,c);b.length;)b.shift()();if(c)for(u=0;u<c.length;u++)i=a(a.s=c[u]);return i};var r={},t={22:0};function a(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,a),t.l=!0,t.exports}a.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,a){n=t[e]=[r,a]});n[2]=r;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,a.nc&&c.setAttribute("nonce",a.nc),c.src=a.p+"static/js/"+e+"."+{0:"a0770adcec9fb1c7f373",1:"2228238d84d5236a8720",2:"9a8b27b93657af6decfe",3:"59eacd122894bb735072",4:"d7e0897bdb9bbb2a27da",5:"74c336a88840142e3649",6:"251a41f91926e87ea774",7:"82e8975c6e742db31d91",8:"b72111c921bd0f8908b3",9:"72499b4877a7530b979a",10:"90a682b9a86bf57c5e08",11:"f818f6bd6a44ad0a701d",12:"fae98b270aa8d49cc7b3",13:"0c44804c4eff77f70797",14:"47a9617f9343569a290b",15:"5da0581bd5c97c03d678",16:"704e617262c7e393d786",17:"1fb492c4ab90282f9c79",18:"b071378670f4087d8b40",19:"68611539e52cac367bac"}[e]+".js";var f=setTimeout(d,12e4);function d(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=d,o.appendChild(c),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
|
||||
//# sourceMappingURL=manifest.b14a6c36bb1f29714483.js.map
|
||||
1
dist/static/js/manifest.b14a6c36bb1f29714483.js.map
vendored
Normal file
44
dist/static/js/vendor.6c569533e81d92501246.js
vendored
Normal file
1
dist/static/js/vendor.6c569533e81d92501246.js.map
vendored
Normal file
6
dist/static/markdown/.idea/inspectionProfiles/Project_Default.xml
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="JSHint" enabled="true" level="ERROR" enabled_by_default="true" />
|
||||
</profile>
|
||||
</component>
|
||||
16
dist/static/markdown/.idea/jsLinters/jshint.xml
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JSHintConfiguration" version="2.9.5" use-config-file="true" use-custom-config-file="true" custom-config-file-path="$PROJECT_DIR$/.jshintrc">
|
||||
<option bitwise="true" />
|
||||
<option browser="true" />
|
||||
<option curly="true" />
|
||||
<option eqeqeq="true" />
|
||||
<option forin="true" />
|
||||
<option maxerr="50" />
|
||||
<option noarg="true" />
|
||||
<option noempty="true" />
|
||||
<option nonew="true" />
|
||||
<option strict="true" />
|
||||
<option undef="true" />
|
||||
</component>
|
||||
</project>
|
||||
12
dist/static/markdown/.idea/markdown.iml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
6
dist/static/markdown/.idea/misc.xml
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
||||
8
dist/static/markdown/.idea/modules.xml
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/markdown.iml" filepath="$PROJECT_DIR$/.idea/markdown.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
dist/static/markdown/.idea/vcs.xml
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
1631
dist/static/markdown/.idea/workspace.xml
generated
vendored
Normal file
22
dist/static/markdown/BUGS.md
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
#Bugs
|
||||
|
||||
> 说明:删除线表示已经解决。
|
||||
|
||||
####IE8
|
||||
|
||||
- ~~不能加载;~~
|
||||
- flowChart(流程图)、sequenceDiagram(序列图)不支持IE8;
|
||||
- ~~不支持Markdown转HTML页面解析预览;~~
|
||||
|
||||
####IE8 & IE9 & IE10
|
||||
|
||||
- KaTeX会出现解析错误,但不影响程序运行;
|
||||
|
||||
####Sea.js
|
||||
|
||||
- ~~Raphael.js无法加载;~~
|
||||
|
||||
####Require.js
|
||||
|
||||
- ~~CodeMirror编辑器的代码无法高亮;~~
|
||||
- ~~sequenceDiagram不支持: `Uncaught TypeError: Cannot call method 'isArray' of undefined.`~~
|
||||
534
dist/static/markdown/CHANGE.md
vendored
Normal file
@@ -0,0 +1,534 @@
|
||||
## 更新日志
|
||||
|
||||
### v1.0.x
|
||||
|
||||
##### v1.0.0 beta
|
||||
|
||||
预览版:基本功能完成;
|
||||
|
||||
##### v1.0.0 releases
|
||||
|
||||
发布 v1.0.0 正式版。
|
||||
|
||||
主要更新:
|
||||
|
||||
- 新建分支 `mathjax-version`,但不打算继续对此分支进行开发;
|
||||
|
||||
- 移除 MathJax,改用 KaTeX [#2](https://github.com/pandao/editor.md/issues/2),解析和预览响应速度大幅度提高 [#3](https://github.com/pandao/editor.md/issues/3);
|
||||
- 移除 `mathjax` 配置项;
|
||||
- 移除 `mathjaxURL` 属性;
|
||||
- 移除 `setMathJaxConfig()` 方法;
|
||||
- 移除 `loadMathJax()` 方法;
|
||||
- 移除MathJax的所有示例;
|
||||
- 新增 `tex` 配置项,表示是否开启支持科学公式 TeX ,基于 KaTeX;
|
||||
- 新增 `katexURL` 属性;
|
||||
- 新增 `loadKaTeX` 方法;
|
||||
- 新增 KaTeX 的示例;
|
||||
|
||||
- `setCodeEditor()` 方法更名为 `setCodeMirror()`;
|
||||
|
||||
- 合并 CodeMirror 使用到的多个 JS 模块文件,大幅减少 HTTP 请求,加快下载速度;
|
||||
- 新增合并后的两个模块文件:`./lib/codemirror/modes.min.js`、`./lib/codemirror/addons.min.js` ;
|
||||
- `Gulpfile.js` 新增合并 CodeMirror 模块文件的任务方法 `codemirror-mode` 和 `codemirror-addon` ;
|
||||
- 另外在使用 Require.js 时,因为 CodeMirror 的严格模块依赖的限制,不能使用上述合并的模块文件,仍然采用动态加载多个模块文件;
|
||||
|
||||
- 更新 `README.md` 等相关文档和示例;
|
||||
|
||||
- 解决 Sea.js 环境下 Raphael.js 无法运行导致不支持流程图和时序图的问题,即必须先加载 Raphael.js ,后加载 Sea.js ;
|
||||
|
||||
### v1.1.x
|
||||
|
||||
##### v1.1.0
|
||||
|
||||
主要更新:
|
||||
|
||||
- 设计并更换了 Logo;
|
||||
- 新增添加图片、链接、锚点链接、代码块、预格式文本等操作弹出对话框层及示例;
|
||||
- 新增支持图片(跨域)上传;
|
||||
- 改用 `<textarea>` 来存放 Markdown 源文档;
|
||||
- 新增支持自定义工具栏;
|
||||
- 新增支持多语言;
|
||||
- 新增支持 Zepto.js;
|
||||
- 新增支持多个 Editor.md 并存和动态加载 Editor.md 及示例;
|
||||
- 新增支持智能识别和解析 HTML 标签及示例;
|
||||
- 新增多个外部操作方法接口及示例;
|
||||
- 修复了一些大大小小的 Bug;
|
||||
|
||||
具体更新如下:
|
||||
|
||||
- 更换 Logo,建立基础 VI;
|
||||
- 创建了全系列 WebFont 字体 `dist/fonts/editormd-logo.*` ;
|
||||
- 新增样式类 `editormd-logo` 等;
|
||||
|
||||
- 改用 `<textarea>` 来存放 Markdown 源文档;
|
||||
- 原先使用 `<script type="text/markdown"></script>` 来存放 Markdown 源文档;
|
||||
- 创建 Editor.md 只需要写一个 `<div id="xxxx"></div>` ,如果没有添加 `class="editormd"` 属性会自动添加,另外如果不存在 `<textarea>` 标签,则也会自动添加 `<textarea>` ;
|
||||
|
||||
- 新增支持智能识别和解析 HTML 标签,增强了 Markdown 语法的扩展性,几乎无限,例如:插入视频等等;
|
||||
- 新增配置项 `htmlDecode` ,表示是否开启 HTML 标签识别和解析,但是为了安全性,默认不开启;
|
||||
- 新增识别和解析 HTML 标签的示例;
|
||||
|
||||
- 新增插入链接、锚点链接、预格式文本和代码块的弹出对话框层;
|
||||
- 弹出层改为使用固定定位;
|
||||
- 新增动态创建对话框的方法 `createDialog()`;
|
||||
- 新增静态属性 `editormd.codeLanguages` ,用于存放代码语言列表;
|
||||
|
||||
- 开始支持图片上传;
|
||||
- 新增添加图片(上传)弹出对话框层;
|
||||
- 支持基于 iframe 的跨域上传,并添加相应的示例( PHP 版);
|
||||
|
||||
- 开始支持自定义工具栏图标及操作处理;
|
||||
- 配置项 `toolbarIcons` 类型由数组更改为函数,返回一个图标按钮列表数组;
|
||||
- 新增配置项 `toolbarHandlers` 和 `toolbarIconsTexts` ,分别用于自定义按钮操作处理和按钮内容文本;
|
||||
- 新增方法 `getToolbarHandles()` ,用于可在外部使用默认的操作方法;
|
||||
- 新增成员属性 `activeIcon` ,可获取当前或上次点击的工具栏图标的 jQuery 实例对象;
|
||||
|
||||
- 新增表单取值、自定义工具栏、图片上传、多个 Editor.md 并存和动态加载 Editor.md 等多个示例;
|
||||
|
||||
- 新增插入锚点按钮和操作处理;
|
||||
|
||||
- 新增预览 HTML 内容窗口的关闭按钮,之前只能按 ESC 才能退出 HTML 全窗口预览;
|
||||
|
||||
- 新增多语言( l18n )及动态加载语言包支持;
|
||||
- 新增英语 `en` 和繁体中文 `zh-tw` 语言包模块;
|
||||
- 修改一些方法的内部实现以支持动态语言加载:
|
||||
- `toolbarHandler()` 更为 `setToolbarHandler()` ;
|
||||
- `setToolbar()` 方法包含 `setToolbarHandler()` ;
|
||||
- 新建 `createInfoDialog()` 方法;
|
||||
- 修改 `showInfoDialog()` 和 `hideInfoDialog()` 方法的内部实现等;
|
||||
|
||||
- 修改多次 Bug ,并优化触摸事件,改进对 iPad 的支持;
|
||||
|
||||
- 工具栏新增清空按钮和清空方法 `clear()` ,解决工具栏文本会被选中出现蓝底的问题;
|
||||
|
||||
- 配置项 `tocStartLevel` 的默认值由 2 改为 1,表示默认从 H1 开始生成 ToC;
|
||||
|
||||
- 解决 IE8 下加载出错的问题;
|
||||
- 新增两个静态成员属性 `isIE` 和 `isIE8` ,用于判断 IE8;
|
||||
- 由于 IE8 不支持 FlowChart 和 SequenceDiagram,默认在 IE8 下不加载这两个组件,无论是否开启;
|
||||
|
||||
- 新增 Zepto.js 的支持;
|
||||
- 为了兼容 Zepto.js ,某些元素在操作处理上不再使用 `outerWidth()` 、 `outerHeight()` 、`hover()` 、`is()` 等方法;
|
||||
- 为了避免修改 flowChart.js 和 sequence-diagram.js 的源码,所以想支持 flowChart 或 sequenceDiagram 得加上这一句: `var jQuery = Zepto;`;
|
||||
|
||||
- 新增 `editormd.$name` 属性,修改 `editormd.homePage` 属性的新地址;
|
||||
|
||||
- `editormd.markdownToHTML()` 新增方法返回一个 jQuery 实例对象;
|
||||
- 该实例对象定义了一个 `getMarkdown()`方法,用于获取 Markdown 源代码;
|
||||
- 该实例对象定义了一个 `tocContainer` 成员属性,即 ToC 列表的父层的 jQuery 实例对象;
|
||||
|
||||
- 新增只读模式;
|
||||
- 新增配置项 `readOnly` ,默认值为 `false` ,即可编辑模式;
|
||||
- 其他相关改动;
|
||||
|
||||
- 新增方法 `focus()` 、 `setCursor()` 、 `getCursor()` 、`setSelection()` 、`getSelection()` 、 `replaceSelection()` 和 `insertValue()` 方法,并增加对应的示例;
|
||||
|
||||
- 新增配置项 `saveHTMLToTextarea` ,用于将解析后的 HTML 保存到 Textarea,以供提交到后台程序;
|
||||
- `getHTML()` 方法必须在 `saveHTMLToTextarea == true` 的情况下才能使用;
|
||||
- 新增 `getHTML()` 方法的别名 `getTextareaSavedHTML()` 方法;
|
||||
- 新增方法 `getPreviewedHTML()` ,用于获取预览窗口的 HTML ;
|
||||
|
||||
- 修复了一些大大小小的 Bugs;
|
||||
|
||||
##### v1.1.1
|
||||
|
||||
- 接受一个 pull 请求,修复了 `getHTML ()` 和 `getPreviewedHTML()` 方法中的 3 处错误;
|
||||
|
||||
##### v1.1.2
|
||||
|
||||
- 修复 Bug [#10](https://github.com/pandao/editor.md/issues/10);
|
||||
- 修复 Bug [#12](https://github.com/pandao/editor.md/issues/12);
|
||||
|
||||
##### v1.1.3
|
||||
|
||||
- 修复 Bug [#14](https://github.com/pandao/editor.md/issues/14);
|
||||
- 修复 Bug [#15](https://github.com/pandao/editor.md/issues/15);
|
||||
|
||||
##### v1.1.4
|
||||
|
||||
- 修复 Bug [#17](https://github.com/pandao/editor.md/issues/17);
|
||||
- 修改了 `getToolbarHandles()` 和 `setToolbarHandler()` 方法;
|
||||
- 从 `editormd.scss` 中分离出 `editormd.logo.scss` ,并生成 `editormd.logo.css` ,以便单独使用;
|
||||
- 同时修改了 `Gulpfile.js` 的相应任务;
|
||||
|
||||
##### v1.1.5
|
||||
|
||||
- 修复 Bug [#18](https://github.com/pandao/editor.md/issues/18);
|
||||
- 修改了 `showInfoDialog()` 和 `createInfoDialog()` 方法;
|
||||
- 新增 `infoDialogPosition()` 方法;
|
||||
|
||||
- 修复 Bug [#20](https://github.com/pandao/editor.md/issues/20);
|
||||
- 修改了引用的处理函数;
|
||||
- 插入的 headers 的 `#` 号后面都加上了一个空格;
|
||||
|
||||
##### v1.1.6
|
||||
|
||||
修复多处 Bug,具体如下:
|
||||
|
||||
- 修复 Bug [#23](https://github.com/pandao/editor.md/issues/23),即 Headers 的 id 属性的重复及中文问题;
|
||||
- 修改了 `editormd.markedRenderer()` 方法;
|
||||
|
||||
- 修复 Bug [#24](https://github.com/pandao/editor.md/issues/24);
|
||||
- 修改了 `setMarkdown()` 、 `clear()` 和 `loadedDisplay()` 方法的内部实现;
|
||||
- 新增了 `katexRender()` 、 `flowChartAndSequenceDiagramRender()` 、 `previewCodeHighlight()` 方法;
|
||||
|
||||
- 修复有些情况下无法保存 Markdown 源文档到 textarea 的问题;
|
||||
- 修改了 `setCodeMirror()` 、 `recreateEditor()` 等方法;
|
||||
|
||||
- 修改了以上 Bug 及部分相关示例文件;
|
||||
|
||||
##### v1.1.7
|
||||
|
||||
修复多处 Bug,具体如下:
|
||||
|
||||
- 修复 Bug [#25](https://github.com/pandao/editor.md/issues/25);
|
||||
- 修改了 `loadedDisplay()` 方法,将 `settings.onload` 移动了 `CodeMirror.on("change")` 事件注册后再触发;
|
||||
|
||||
- 修复 Bug [#26](https://github.com/pandao/editor.md/issues/26);
|
||||
- 修改了 `saveToTextareas()` 方法;
|
||||
- 新增 `state.loaded` 和 `state.watching` 两个属性;
|
||||
|
||||
- 修改了以上 Bug 相关示例文件;
|
||||
|
||||
##### v1.1.8
|
||||
|
||||
改进功能,具体如下:
|
||||
|
||||
- 改进 [#27](https://github.com/pandao/editor.md/issues/27);
|
||||
- 新增配置项 `matchWordHighlight` ,可选值有: `true, false, "onselected"` ,默认值为 `true` ,即开启自动匹配和标示相同单词;
|
||||
|
||||
- 改进 [#28](https://github.com/pandao/editor.md/issues/28);
|
||||
- 将 `jquery.min.js` 、 `font-awesome.min.css` 、 `github-markdown.css` 移除(这是一个疏忽,它们不是动态加载的依赖模块或者不需要的,避免不必要的硬盘空间占用);
|
||||
|
||||
- 修改了所有相关的示例文件;
|
||||
|
||||
##### v1.1.9
|
||||
|
||||
- 修复无法解析 heading link 的 Bug [#29](https://github.com/pandao/editor.md/issues/29);
|
||||
|
||||
- 修改了 `editormd.markedRenderer()` 方法的内部实现;
|
||||
- 新增了 `editormd.trim()` ,用于清除字符串两边的空格;
|
||||
- 修改了所有相关的示例文件和测试用例 `marked-heading-link-test.html` ;
|
||||
|
||||
- 修改了 `README.md` ,添加了 `Shields.io` 图标;
|
||||
|
||||
### v1.2
|
||||
|
||||
##### v1.2.0
|
||||
|
||||
v1.2.0 主要更新:
|
||||
|
||||
- 新增代码折叠、搜索替换、自定义样式主题和自定义快捷键等功能;
|
||||
- 新增 Emoji 表情、@Link 、GFM Task Lists 支持;
|
||||
- 新增表格插入、Emoji 表情插入、HTML 实体字符插入、使用帮助等对话框;
|
||||
- 新增插件扩展机制;
|
||||
- 新增手动加载依赖模块方式;
|
||||
- 改用 `Prefixes.css` 作 CSS 前缀预处理;
|
||||
- 改进和增强工具栏自定义功能,完善事件监听和处理方法;
|
||||
- 部分功能改进(更加方便的预格式文本/代码插入、自动闭合标签等)、新增多个方法、改进 Require.js 支持和修复多个 Bug 等等;
|
||||
|
||||
**具体更新如下:**
|
||||
|
||||
- 新建 v1.1.x 分支;
|
||||
- v1.2 文件结构变动较大;
|
||||
|
||||
- 新增代码折叠、自动闭合标签和搜索替换功能;
|
||||
- 搜索快捷键 `Ctrl + F / Command + F` ;
|
||||
- 替换快捷键 `Ctrl + Shift + F / Command + Option + F` ;
|
||||
- 折叠快捷键 `Ctrl + Q / Command + Q` ;
|
||||
|
||||
- 新增自定义主题支持;
|
||||
- 新增 3 个成员方法 `setTheme()` 、 `setCodeMirrorOption()` 和 `getCodeMirrorOption()` ;
|
||||
|
||||
- 新增 @Link 支持;
|
||||
|
||||
- 新增 GFM Task Lists 支持;
|
||||
|
||||
- 新增 Emoji 表情支持;
|
||||
- 支持 Github emoji `:emoji-name:` 、FontAwesome icons(`:fa-xxx:`)、Twitter emoji (twemoji) ( `:tw-xxxx:` )、Editor.md logo icons( `:editormd-logo:` )形式的 Emoji;
|
||||
- 新增属性 `editormd.emoji` 、 `editormd.twemoji` 、 `editormd.urls` 和 `editormd.regex`;
|
||||
|
||||
- 新增 HTML 实体字符插入、插入表格和使用帮助对话框;
|
||||
- 修改了 `createDialog()` 等方法;
|
||||
- 新增 `mask` 成员属性和锁屏方法 `editormd.lockScreen()` 、 `editormd.fn.lockScreen()` ;
|
||||
|
||||
- 改进插入预格式文本和代码对话框;
|
||||
- 将 `<textarea>` 改为 `CodeMirror` ,输入更加方便和直观;
|
||||
|
||||
- 新增自定义键盘快捷键功能;
|
||||
- 新增 2 个方法: `addKeyMap()` 和 `removeKayMap()`;
|
||||
|
||||
- 改用 `Prefixes.css` 作CSS前缀预处理;
|
||||
- SCSS前缀预处理mixins改用 [Prefixes.scss](https://github.com/pandao/prefixes.scss "Prefixes.scss");
|
||||
|
||||
- 改进和增强工具栏自定义功能;
|
||||
- 新增配置项 `toolbarCustomIcons` ,用于增加自定义工具栏的功能,可以直接插入 HTML 标签,不使用默认的元素创建图标;
|
||||
- 新增工具栏列表预设值属性 `editormd.toolbarModes` ;
|
||||
- 移除成员属性 `toolbarIconHandlers` ;
|
||||
|
||||
- 完善和新增事件处理方法;
|
||||
- 新增事件回调注册方法 `on()` ;
|
||||
- 新增事件回调移除方法 `off()` ;
|
||||
- 新增事件回调处理配置项: `onresize` 、 `onscroll` 、`onpreviewscroll` 、 `onpreviewing` 、 `onpreviewed` 、`onwatch` 和 `onunwatch` ;
|
||||
|
||||
- 新增手动加载依赖模块方式,以便可同步使用成员方法;
|
||||
- 新增属性 `autoLoadModules` ,默认值为 `true` ;
|
||||
|
||||
- 新增插件及扩展机制;
|
||||
|
||||
- 新增插件自定义机制,改变整体结构(包括文件结构),以便更加方便地实现插件扩展;
|
||||
- 新增对象扩展方法 `extends()` 、 `set()` ;
|
||||
|
||||
- 新增成员方法和属性:
|
||||
|
||||
- 新增两个方法: `setValue()` 、`getValue()`;
|
||||
- 新增 `config()` 方法,用于加载后重新配置;
|
||||
- 增加两个属性 `cm` ,是 `codeEditor` 的简写, `cmElement` 是 `codeMirror` 的别名;
|
||||
|
||||
- 成员方法的改进:
|
||||
|
||||
- 改进: `showToolbar()` 和 `hideToolbar()` 方法增加一个 `callback` 函数,用于直接回调操作;
|
||||
- 改进:修改了 `previewCodeHighlight()` 方法;
|
||||
- 更名: `recreateEditor()` 更名为 `recreate()` ;
|
||||
- 移除 `setMarked()` 方法;
|
||||
|
||||
- 新增 HTML 标签解析过滤机制;
|
||||
- 通过设置 `settings.htmlDecode = "style,script,iframe"` 来实现过滤指定标签的解析;
|
||||
|
||||
- 改进 Require.js 支持;
|
||||
- 修复 Require.js 下 CodeMirror 编辑器的代码无法高亮的问题;
|
||||
- 更新 `underscore` 版本至 `1.8.2` ;
|
||||
- 移除 `editormd.requirejsInit()` 和 `editormd.requireModules()` 方法;
|
||||
- 新增 `Require.js/AMD` 专用版本文件 `editormd.amd.js` ;
|
||||
- 新建 Gulp 任务 `amd` ;
|
||||
|
||||
- 修改和新增以上改进等相关示例;
|
||||
|
||||
### v1.3
|
||||
|
||||
#### v1.3.0
|
||||
|
||||
主要更新:
|
||||
|
||||
- 预设键盘快捷键处理(粗体等),插入 Markdown 更加方便;
|
||||
- 更新 CodeMirror 版本为 `5.0` ;
|
||||
- 更新 Marked 版本为 `0.3.3`;
|
||||
- 新增自动高度和工具栏固定定位功能;
|
||||
- 改进表格插入对话框;
|
||||
- 工具栏新增三个按钮,分别是将所选文本首字母转成大写、转成小写、转成大写;
|
||||
- 修改使用帮助文档;
|
||||
- 修复多个 Bug;
|
||||
|
||||
具体更新如下:
|
||||
|
||||
- 新增常用键盘快捷键预设处理;
|
||||
- 新增属性 `editormd.keyMaps` ,预设一些常用操作,例如插入粗体等;
|
||||
- 新增成员方法 `registerKeyMaps()` ;
|
||||
- 退出HTML全屏预览快捷键更改为 `Shift + ESC`;
|
||||
- 新增配置项 `disabledKeyMaps` ,用于屏蔽一些快捷键操作;
|
||||
- 更新 CodeMirror 版本为 `5.0`;
|
||||
- 修改无法输入 `/` 的问题;
|
||||
- 更新 Marked 版本为 `0.3.3`;
|
||||
- 新增自动高度和工具栏固定定位(滚动条拖动时)模式;
|
||||
- 新增配置项 `settings.autoHeight` ;
|
||||
- 新增配置项 `settings.toolbarAutoFixed` ;
|
||||
- 新增方法 `setToolbarAutoFixed(true|false)` ;
|
||||
- 新增邮箱地址自动添加链接功能;
|
||||
- 新增配置项 `emailLink` ,默认为 `true` ;
|
||||
- 改进表格插入对话框;
|
||||
- 工具栏新增三个按钮,分别是将所选文本首字母转成大写、转成小写、转成大写;
|
||||
- 新增方法 `editormd.ucwords()` ,别名 `editormd.wordsFirstUpperCase()` ;
|
||||
- 新增方法 `editormd.ucfirst()` ,别名 `editormd.firstUpperCase()` ;
|
||||
- 新增两个成员方法 `getSelections()` 和 `getSelections()` ;
|
||||
|
||||
- 修复 Font awesome 图标 emoji 部分无法解析的 Bug,[#39](https://github.com/pandao/editor.md/issues/39)
|
||||
- 改进 @link 功能 [#40](https://github.com/pandao/editor.md/issues/40);
|
||||
- 新增配置项 `atLink` ,默认为 `true` ;
|
||||
- 修复无法输入 `/` 的问题 [#42](https://github.com/pandao/editor.md/issues/42);
|
||||
- 修改使用帮助说明的错误 [#43](https://github.com/pandao/editor.md/issues/43);
|
||||
- 新增配置项 `pluginPath`,默认为空时,等于 `settings.path + "../plugins/"` ;
|
||||
|
||||
### v1.4
|
||||
|
||||
#### v1.4.0
|
||||
|
||||
主要更新:
|
||||
|
||||
- 新增延迟解析机制,预览更即时;
|
||||
- 新增跳转到指定行的功能和对话框;
|
||||
- 新增 ToC 下拉菜单、自定义 ToC 容器的功能;
|
||||
- 新增跳转到行、搜索的工具栏按钮;
|
||||
- 新增支持插入和解析(打印)分页符;
|
||||
- 改进快捷键功能和自动高度模式等;
|
||||
- 改进:将锚点链接改名为引用链接;
|
||||
- 改进编辑器重建和重配置功能;
|
||||
- 修复多个 Bug;
|
||||
|
||||
具体更新:
|
||||
|
||||
- 新增延迟解析预览的机制,解决输入太多太快出现的 “延迟卡顿” 问题;
|
||||
- 新增配置项 `delay` ,默认值为 `300`;
|
||||
- 修复当输入速度太快时,解析Flowchart会抛出错误的问题;
|
||||
- 修改 iPad 等移动终端的浏览器无法上传图片的问题 [#48](https://github.com/pandao/editor.md/issues/48);
|
||||
- 修复单独引用 `editormd.preview.css` 时无法显示 Font Awesome 和 Editor.md logo 字体的问题;
|
||||
- 更新和修改 Gulp 构建;
|
||||
- 修改了 `Gulpfile.js` ,并且 `gulp-ruby-sass` 升级到最新版本 `1.0.0-alpha.3` ;
|
||||
- 编辑 SCSS 时,不再生成 CSS 的 Source map 文件;
|
||||
- 执行 jshint 和更正一些 JS 写法的不规范,精简了代码;
|
||||
- 新增配置项 `appendMarkdown` 和 `appendMarkdown()` 方法,用于(初始化前后)追加 Markdown 到 Textarea ;
|
||||
- 改进部分预设快捷键功能,包括 F9 (watch)、F10 (preview)、F11 (fullscreen)等;
|
||||
- 修复自动高度模式下出现的几个问题;
|
||||
- 全屏退出时高度不正确的问题:修改了 `fullscreenExit()` 方法的内部实现;
|
||||
- 当解析预览后的 HTML 内容高度高于 Markdown 源码编辑器高度时,无法正确预览的问题 [#49](https://github.com/pandao/editor.md/issues/49);
|
||||
- 修改 `onscroll` 和 `onpreviewscroll` 无法访问 `this` 的问题;
|
||||
- 修改 `init()` 方法,可以只设置一个参数;
|
||||
- 新增插入 TeX (KaTeX) 公式的快捷键 `Ctrl + Shift + K` 和插入方法 `tex()` ;
|
||||
- 将锚点链接改为引用链接,引用的链接改为插入到页尾;
|
||||
- 工具栏的名称 `anchor` 改为 `reference-link`;
|
||||
- 工具栏的名称 `htmlEntities` 改名为 `html-entities`;
|
||||
- 改进编辑器重建和重配置功能;
|
||||
- 修改了 `loadedDisplay()` 方法;
|
||||
- 修改了 `config()` 和 `recreate()` 方法;
|
||||
- 新增跳转到指定行的功能;
|
||||
- 新增方法 `gotoLine()` ;
|
||||
- 新增跳转到行对话框插件 `goto-line-dialog` ;
|
||||
- 新增快捷键 `Ctrl + Alt + G` ;
|
||||
- 改进 `executePlugin()` 方法;
|
||||
- 修改了 `help-dialog/help.md` ;
|
||||
- 新增搜索工具栏按钮;
|
||||
- 新增方法 `search()` 、`searchReplace()` 和 `searchReplaceAll()` ;
|
||||
- 原全屏预览 HTML 按钮的图标改为 `fa-desktop`;
|
||||
- 改为默认开启搜索替换功能;
|
||||
- 更换了关于 Editor.md 的标语( slogan );
|
||||
- 标题按钮 `h` 改为大写的 `H`;
|
||||
- `saveToTextareas()` 方法更名为 `save()`;
|
||||
- 新增 ToC 下拉菜单、自定义 ToC 容器的功能;
|
||||
- 新增 Markdown 扩展语法 `[TOCM]` ,自动生成 ToC 下拉菜单;
|
||||
- 新增配置项 `tocm` ,默认为 `true`,即可以使用 `[TOCM]` ;
|
||||
- 新增配置项 `tocDropdown` 和 `tocTitle` ;
|
||||
- 新增方法 `editormd.tocDropdownMenu()` ;
|
||||
- 新增配置项 `tocContainer` ,值为 jQuery 选择器,默认为空;
|
||||
- 修改了配置项 `placeholder` 的默认值;
|
||||
- 改进对 IE8 的兼容支持;
|
||||
- 修复 Firefox 下因为 `Object.watch()` 而出现的问题;
|
||||
- 新增支持插入和解析(打印)分页符;
|
||||
- 新增配置项 `pageBreak` ,默认值为 `true`;
|
||||
- 新增语法 `[========]` ,即括号内至少 8 个等号;
|
||||
- 新增插入分页符的工具栏图标和方法 `pagebreak()` ;
|
||||
- 新增插入分页符的快捷键 `Shift + Alt + P`;
|
||||
- 修复一些 Bug,包括 [#51](https://github.com/pandao/editor.md/issues/51) 等;
|
||||
- 新增和修改以上更新的相关示例;
|
||||
|
||||
#### v1.4.1
|
||||
|
||||
- 新增配置项 `syncScrolling`,即是否开启同步滚动预览,默认值为 `false` ;
|
||||
- 修复 Bug [#64](https://github.com/pandao/editor.md/issues/64);
|
||||
- 更新 `editormd.katexURL` 资源地址的默认值,即更新版本为 `0.3.0` ;
|
||||
- 新增测试用例`tests/katex-tests.html`;
|
||||
- 修改示例文件`examples/katex.html`;
|
||||
- 修复 Bug [#66](https://github.com/pandao/editor.md/issues/66);
|
||||
- 修复编辑器工具栏按钮 `:hover` CSS3 transition 无效的问题;
|
||||
- 修改了 `README.md`;
|
||||
|
||||
#### v1.4.2
|
||||
|
||||
- 改进和增强自定义工具栏功能,支持图标按钮右对齐 [#69](https://github.com/pandao/editor.md/issues/69);
|
||||
- 改进和增强 HTML 标签的解析过滤功能,支持过滤指定的属性等 [#70](https://github.com/pandao/editor.md/issues/70);
|
||||
- 删除分支 `mathjax-version` 和 `v1.1.9`;
|
||||
|
||||
#### v1.4.3
|
||||
|
||||
- 改进:可配置是否自动聚焦编辑器 [#74](https://github.com/pandao/editor.md/issues/74);
|
||||
- 新增配置项 `autoFocus`,默认值为 `true`;
|
||||
- 修复 Bug [#77](https://github.com/pandao/editor.md/issues/77);
|
||||
- 改进:帮助对话框里的链接改为新窗口打开,避免直接跳转到链接,导致编辑内容丢失的问题 [#79](https://github.com/pandao/editor.md/issues/79);
|
||||
- 改进和完善编辑器配置项;
|
||||
- 新增配置项 `tabSize`、`indentUnit` 和 `lineWrapping`;
|
||||
- 新增配置项 `autoCloseBrackets` 和 `showTrailingSpace` ;
|
||||
- 新增配置项 `matchBrackets`、`indentWithTabs` 和 `styleSelectedText`;
|
||||
- 改进:修改 CSS `font-family`,改进跨平台中英文字体显示;
|
||||
- 修改了 `README.md`;
|
||||
|
||||
#### v1.4.4
|
||||
|
||||
- 修复 Bug [#81](https://github.com/pandao/editor.md/issues/81),即不支持 `:+1:` 的问题;
|
||||
- 修复 Bug [#85](https://github.com/pandao/editor.md/issues/85),即图片上传返回结果不支持 `Content-Type=application/json` 的问题;
|
||||
- 修复图片上传无法显示 loading 的问题;
|
||||
|
||||
#### v1.4.5
|
||||
|
||||
- 规范项目的中英文混排;
|
||||
- 新增配置项 `name`,用于指定 Markdown textarea 的 `name="xxxx"` 属性;
|
||||
- 修复 Bug,即无法正确解析公式的 `<` 和 `>` 的问题 [#87](https://github.com/pandao/editor.md/issues/87);
|
||||
- 修复 Bug,即 `getHTML()` 无效的问题 [#95](https://github.com/pandao/editor.md/issues/95);
|
||||
- 修复 Bug,即火狐上传图片后无法返回值的问题 [#96](https://github.com/pandao/editor.md/issues/96);
|
||||
- 修改了图片上传插件;
|
||||
- 修改 PHP 上传类及示例;
|
||||
- 方法更名:`extends()` 更名为 `extend()`,以兼容 IE8;
|
||||
- 修复 IE8 下 Emoji 正则表达式字符集越界的问题;
|
||||
- 更新了 `README.md` 和 `CHANGE.md` 等相关文档文件;
|
||||
|
||||
|
||||
### v1.5
|
||||
|
||||
#### v1.5.0
|
||||
|
||||
主要更新:
|
||||
|
||||
- 新增:编辑器黑色主题 Dark,改进自定义主题功能(即工具栏、编辑区、预览区可分别设置主题样式);
|
||||
- 新增:多行公式支持;
|
||||
- 新增:支持非编辑状态下的 ToC 自定义容器;
|
||||
- 新增:支持设置为单向同步滚动;
|
||||
- 改进:编辑器样式美化,更换了滚动条样式;
|
||||
- 改进:提高同步滚动定位的精确度;
|
||||
- 改进:修复和改进 HTML 标签及属性过滤功能;
|
||||
- 改进:修复在 Bootstrap 下的兼容性问题;
|
||||
- 修复多处 Bug;
|
||||
|
||||
具体更新:
|
||||
|
||||
- 新增:解析后的代码块自动换行;
|
||||
|
||||
- 新增:支持多行公式;
|
||||
- 新增:新增语法:\`\`\`math | latex | katex;
|
||||
- 改进:美化 KaTeX 公式,即加大字号等;
|
||||
|
||||
- 新增:支持设置为单向同步滚动,即只是编辑区单向同步滚动,配置项 `syncScrolling : "single"`;
|
||||
- 新增:配置同步滚动示例文件 `sync-scrolling.html`;
|
||||
|
||||
- 新增:增加了编辑器样式主题 Dark,即工具栏和预览区各自有一个暗黑色主题;
|
||||
- 变更:自 `v1.5.0` 开始,配置项 `theme` 改为指定 Editor.md 本身的主题;
|
||||
- 新增配置项 `editorTheme` ,用于指定编辑区的主题,即 CodeMirror 的主题;
|
||||
- 新增配置项 `previewTheme` ,用于指定预览区的主题;
|
||||
- 新增方法 `setEditorTheme()`,别名: `setCodeMirror()`;
|
||||
- 新增方法 `setPreviewTheme()`;
|
||||
- 修改了方法 `setTheme()` ;
|
||||
- 更换了滚动条样式,Only Webkit;
|
||||
- 改进全屏状态下的样式显示,去掉 JS 操作的部分,改为通过 CSS 样式类 `.editormd-fullscreen` 控制;
|
||||
- 修改和增加相关的方法、SCSS 文件及示例文件 `themes.html`;
|
||||
|
||||
- 新增:非编辑状态下 ToC 自定义容器支持;
|
||||
- 新增配置项 `markdownSourceCode`,即解析后是否保留源码,默认为不保留 `false`;
|
||||
- 新增配置项 `tocContainer`,值为自定义 ToC 容器的 ID 选择器 `#xxxxx`,默认为空;
|
||||
- 新增和修改了相关示例文件;
|
||||
|
||||
- 新增:新增加了 CSS 样式类 `editormd-preview-active`,可以控制全屏HTML预览时的内容层样式;
|
||||
- 修改了 `previewing()` 和 `previewed()` 方法;
|
||||
- 相关 issues [#103](https://github.com/pandao/editor.md/issues/103);
|
||||
- 另外也调整了关闭按钮的位置;
|
||||
|
||||
- 改进:修复插入 Emoji `:moon:` 无法显示的问题,修改为其是 `:waxing_gibbous_moon:` 的别名 [#94](https://github.com/pandao/editor.md/pull/94);
|
||||
|
||||
- 改进:修改了 CodeMirror 代码行的左右内间距,使其不会挨着左边的行号层;
|
||||
- 相关 issues [#97](https://github.com/pandao/editor.md/issues/97);
|
||||
|
||||
- 改进:修改了同步滚动的定位算法,提高精确度;
|
||||
- 修正问题 [#99](https://github.com/pandao/editor.md/issues/99);
|
||||
- 修改了 `bindScrollEvent()` 方法;
|
||||
|
||||
- 改进:完善 HTML 标签过滤功能,即代码块、`<pre>` 预格式文本和行内代码里的标签及属性不会被过滤;
|
||||
- 修复 Bug [#105](https://github.com/pandao/editor.md/issues/105);
|
||||
- 改进:当不显示行号时 `settings.lineNumbers == false`,CodeMirror 行号层去掉右边框;
|
||||
- 改进:根据指针在当前行的位置更合理插入标题和水平线 [#104](https://github.com/pandao/editor.md/pull/104);
|
||||
- 改进:调整了字体,优先显示 `"YaHei Consolas Hybrid", Consolas`;
|
||||
- 改进:修复在 Bootstrap 下的兼容性问题,即因为 box-sizing 写错位置导致的弹出层宽度等错位问题 [#107](https://github.com/pandao/editor.md/issues/107);
|
||||
346
dist/static/markdown/Gulpfile.js
vendored
Normal file
@@ -0,0 +1,346 @@
|
||||
'use strict'
|
||||
|
||||
var os = require('os')
|
||||
var gulp = require('gulp')
|
||||
var gutil = require('gulp-util')
|
||||
var sass = require('gulp-ruby-sass')
|
||||
var jshint = require('gulp-jshint')
|
||||
var uglify = require('gulp-uglifyjs')
|
||||
var rename = require('gulp-rename')
|
||||
var concat = require('gulp-concat')
|
||||
var notify = require('gulp-notify')
|
||||
var header = require('gulp-header')
|
||||
var minifycss = require('gulp-minify-css')
|
||||
// var jsdoc = require("gulp-jsdoc");
|
||||
// var jsdoc2md = require("gulp-jsdoc-to-markdown");
|
||||
var pkg = require('./package.json')
|
||||
var dateFormat = require('dateformatter').format
|
||||
var replace = require('gulp-replace')
|
||||
|
||||
pkg.name = 'Editor.md'
|
||||
pkg.today = dateFormat
|
||||
|
||||
var headerComment = ['/*',
|
||||
' * <%= pkg.name %>',
|
||||
' *',
|
||||
' * @file <%= fileName(file) %> ',
|
||||
' * @version v<%= pkg.version %> ',
|
||||
' * @description <%= pkg.description %>',
|
||||
' * @license MIT License',
|
||||
' * @author <%= pkg.author %>',
|
||||
' * {@link <%= pkg.homepage %>}',
|
||||
" * @updateTime <%= pkg.today('Y-m-d') %>",
|
||||
' */',
|
||||
'\r\n'].join('\r\n')
|
||||
|
||||
var headerMiniComment = "/*! <%= pkg.name %> v<%= pkg.version %> | <%= fileName(file) %> | <%= pkg.description %> | MIT License | By: <%= pkg.author %> | <%= pkg.homepage %> | <%=pkg.today('Y-m-d') %> */\r\n"
|
||||
|
||||
var scssTask = function (fileName, path) {
|
||||
path = path || 'scss/'
|
||||
|
||||
var distPath = 'css'
|
||||
|
||||
return sass(path + fileName + '.scss', { style: 'expanded', sourcemap: false, noCache: true })
|
||||
.pipe(gulp.dest(distPath))
|
||||
.pipe(header(headerComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base)
|
||||
return name[1].replace('\\', '')
|
||||
}}))
|
||||
.pipe(gulp.dest(distPath))
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(gulp.dest(distPath))
|
||||
.pipe(minifycss())
|
||||
.pipe(gulp.dest(distPath))
|
||||
.pipe(header(headerMiniComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base)
|
||||
return name[1].replace('\\', '')
|
||||
}}))
|
||||
.pipe(gulp.dest(distPath))
|
||||
.pipe(notify({ message: fileName + '.scss task completed!' }))
|
||||
}
|
||||
|
||||
gulp.task('scss', function () {
|
||||
return scssTask('editormd')
|
||||
})
|
||||
|
||||
gulp.task('scss2', function () {
|
||||
return scssTask('editormd.preview')
|
||||
})
|
||||
|
||||
gulp.task('scss3', function () {
|
||||
return scssTask('editormd.logo')
|
||||
})
|
||||
|
||||
gulp.task('js', function () {
|
||||
return gulp.src('./src/editormd.js')
|
||||
.pipe(jshint('./.jshintrc'))
|
||||
.pipe(jshint.reporter('default'))
|
||||
.pipe(header(headerComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base)
|
||||
return name[1].replace(/[\\\/]?/, '')
|
||||
}}))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(uglify()) // {outSourceMap: true, sourceRoot: './'}
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(header(headerMiniComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base + ((os.platform() === 'win32') ? '\\' : '/'))
|
||||
return name[1].replace(/[\\\/]?/, '')
|
||||
}}))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(notify({ message: 'editormd.js task complete' }))
|
||||
})
|
||||
|
||||
gulp.task('amd', function () {
|
||||
var replaceText1 = [
|
||||
'var cmModePath = "codemirror/mode/";',
|
||||
' var cmAddonPath = "codemirror/addon/";',
|
||||
'',
|
||||
' var codeMirrorModules = [',
|
||||
' "jquery", "marked", "prettify",',
|
||||
' "katex", "raphael", "underscore", "flowchart", "jqueryflowchart", "sequenceDiagram",',
|
||||
'',
|
||||
' "codemirror/lib/codemirror",',
|
||||
' cmModePath + "css/css",',
|
||||
' cmModePath + "sass/sass",',
|
||||
' cmModePath + "shell/shell",',
|
||||
' cmModePath + "sql/sql",',
|
||||
' cmModePath + "clike/clike",',
|
||||
' cmModePath + "php/php",',
|
||||
' cmModePath + "xml/xml",',
|
||||
' cmModePath + "markdown/markdown",',
|
||||
' cmModePath + "javascript/javascript",',
|
||||
' cmModePath + "htmlmixed/htmlmixed",',
|
||||
' cmModePath + "gfm/gfm",',
|
||||
' cmModePath + "http/http",',
|
||||
' cmModePath + "go/go",',
|
||||
' cmModePath + "dart/dart",',
|
||||
' cmModePath + "coffeescript/coffeescript",',
|
||||
' cmModePath + "nginx/nginx",',
|
||||
' cmModePath + "python/python",',
|
||||
' cmModePath + "perl/perl",',
|
||||
' cmModePath + "lua/lua",',
|
||||
' cmModePath + "r/r", ',
|
||||
' cmModePath + "ruby/ruby", ',
|
||||
' cmModePath + "rst/rst",',
|
||||
' cmModePath + "smartymixed/smartymixed",',
|
||||
' cmModePath + "vb/vb",',
|
||||
' cmModePath + "vbscript/vbscript",',
|
||||
' cmModePath + "velocity/velocity",',
|
||||
' cmModePath + "xquery/xquery",',
|
||||
' cmModePath + "yaml/yaml",',
|
||||
' cmModePath + "erlang/erlang",',
|
||||
' cmModePath + "jade/jade",',
|
||||
'',
|
||||
' cmAddonPath + "edit/trailingspace", ',
|
||||
' cmAddonPath + "dialog/dialog", ',
|
||||
' cmAddonPath + "search/searchcursor", ',
|
||||
' cmAddonPath + "search/search", ',
|
||||
' cmAddonPath + "scroll/annotatescrollbar", ',
|
||||
' cmAddonPath + "search/matchesonscrollbar", ',
|
||||
' cmAddonPath + "display/placeholder", ',
|
||||
' cmAddonPath + "edit/closetag", ',
|
||||
' cmAddonPath + "fold/foldcode",',
|
||||
' cmAddonPath + "fold/foldgutter",',
|
||||
' cmAddonPath + "fold/indent-fold",',
|
||||
' cmAddonPath + "fold/brace-fold",',
|
||||
' cmAddonPath + "fold/xml-fold", ',
|
||||
' cmAddonPath + "fold/markdown-fold",',
|
||||
' cmAddonPath + "fold/comment-fold", ',
|
||||
' cmAddonPath + "mode/overlay", ',
|
||||
' cmAddonPath + "selection/active-line", ',
|
||||
' cmAddonPath + "edit/closebrackets", ',
|
||||
' cmAddonPath + "display/fullscreen",',
|
||||
' cmAddonPath + "search/match-highlighter"',
|
||||
' ];',
|
||||
'',
|
||||
' define(codeMirrorModules, factory);'
|
||||
].join('\r\n')
|
||||
|
||||
var replaceText2 = [
|
||||
'if (typeof define == "function" && define.amd) {',
|
||||
' $ = arguments[0];',
|
||||
' marked = arguments[1];',
|
||||
' prettify = arguments[2];',
|
||||
' katex = arguments[3];',
|
||||
' Raphael = arguments[4];',
|
||||
' _ = arguments[5];',
|
||||
' flowchart = arguments[6];',
|
||||
' CodeMirror = arguments[9];',
|
||||
' }'
|
||||
].join('\r\n')
|
||||
|
||||
gulp.src('src/editormd.js')
|
||||
.pipe(rename({ suffix: '.amd' }))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(header(headerComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base)
|
||||
return name[1].replace(/[\\\/]?/, '')
|
||||
}}))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(replace('/* Require.js define replace */', replaceText1))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(replace('/* Require.js assignment replace */', replaceText2))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(rename({ suffix: '.min' }))
|
||||
.pipe(uglify()) // {outSourceMap: true, sourceRoot: './'}
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(header(headerMiniComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base + ((os.platform() === 'win32') ? '\\' : '/'))
|
||||
return name[1].replace(/[\\\/]?/, '')
|
||||
}}))
|
||||
.pipe(gulp.dest('./'))
|
||||
.pipe(notify({ message: 'amd version task complete'}))
|
||||
})
|
||||
|
||||
var codeMirror = {
|
||||
path: {
|
||||
src: {
|
||||
mode: 'lib/codemirror/mode',
|
||||
addon: 'lib/codemirror/addon'
|
||||
},
|
||||
dist: 'lib/codemirror'
|
||||
},
|
||||
modes: [
|
||||
'css',
|
||||
'sass',
|
||||
'shell',
|
||||
'sql',
|
||||
'clike',
|
||||
'php',
|
||||
'xml',
|
||||
'markdown',
|
||||
'javascript',
|
||||
'htmlmixed',
|
||||
'gfm',
|
||||
'http',
|
||||
'go',
|
||||
'dart',
|
||||
'coffeescript',
|
||||
'nginx',
|
||||
'python',
|
||||
'perl',
|
||||
'lua',
|
||||
'r',
|
||||
'ruby',
|
||||
'rst',
|
||||
'smartymixed',
|
||||
'vb',
|
||||
'vbscript',
|
||||
'velocity',
|
||||
'xquery',
|
||||
'yaml',
|
||||
'erlang',
|
||||
'jade'
|
||||
],
|
||||
|
||||
addons: [
|
||||
'edit/trailingspace',
|
||||
'dialog/dialog',
|
||||
'search/searchcursor',
|
||||
'search/search',
|
||||
'scroll/annotatescrollbar',
|
||||
'search/matchesonscrollbar',
|
||||
'display/placeholder',
|
||||
'edit/closetag',
|
||||
'fold/foldcode',
|
||||
'fold/foldgutter',
|
||||
'fold/indent-fold',
|
||||
'fold/brace-fold',
|
||||
'fold/xml-fold',
|
||||
'fold/markdown-fold',
|
||||
'fold/comment-fold',
|
||||
'mode/overlay',
|
||||
'selection/active-line',
|
||||
'edit/closebrackets',
|
||||
'display/fullscreen',
|
||||
'search/match-highlighter'
|
||||
]
|
||||
}
|
||||
|
||||
gulp.task('cm-mode', function () {
|
||||
var modes = [
|
||||
codeMirror.path.src.mode + '/meta.js'
|
||||
]
|
||||
|
||||
for (var i in codeMirror.modes) {
|
||||
var mode = codeMirror.modes[i]
|
||||
modes.push(codeMirror.path.src.mode + '/' + mode + '/' + mode + '.js')
|
||||
}
|
||||
|
||||
return gulp.src(modes)
|
||||
.pipe(concat('modes.min.js'))
|
||||
.pipe(gulp.dest(codeMirror.path.dist))
|
||||
.pipe(uglify()) // {outSourceMap: true, sourceRoot: codeMirror.path.dist}
|
||||
.pipe(gulp.dest(codeMirror.path.dist))
|
||||
.pipe(header(headerMiniComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base + '\\')
|
||||
return (name[1] ? name[1] : name[0]).replace(/\\/g, '')
|
||||
}}))
|
||||
.pipe(gulp.dest(codeMirror.path.dist))
|
||||
.pipe(notify({ message: 'codemirror-mode task complete!' }))
|
||||
})
|
||||
|
||||
gulp.task('cm-addon', function () {
|
||||
var addons = []
|
||||
|
||||
for (var i in codeMirror.addons) {
|
||||
var addon = codeMirror.addons[i]
|
||||
addons.push(codeMirror.path.src.addon + '/' + addon + '.js')
|
||||
}
|
||||
|
||||
return gulp.src(addons)
|
||||
.pipe(concat('addons.min.js'))
|
||||
.pipe(gulp.dest(codeMirror.path.dist))
|
||||
.pipe(uglify()) // {outSourceMap: true, sourceRoot: codeMirror.path.dist}
|
||||
.pipe(gulp.dest(codeMirror.path.dist))
|
||||
.pipe(header(headerMiniComment, {pkg: pkg,
|
||||
fileName: function (file) {
|
||||
var name = file.path.split(file.base + '\\')
|
||||
return (name[1] ? name[1] : name[0]).replace(/\\/g, '')
|
||||
}}))
|
||||
.pipe(gulp.dest(codeMirror.path.dist))
|
||||
.pipe(notify({ message: 'codemirror-addon.js task complete' }))
|
||||
})
|
||||
/*
|
||||
gulp.task("jsdoc", function(){
|
||||
return gulp.src(["./src/editormd.js", "README.md"])
|
||||
.pipe(jsdoc.parser())
|
||||
.pipe(jsdoc.generator("./docs/html"));
|
||||
});
|
||||
|
||||
gulp.task("jsdoc2md", function() {
|
||||
return gulp.src("src/js/editormd.js")
|
||||
.pipe(jsdoc2md())
|
||||
.on("error", function(err){
|
||||
gutil.log(gutil.colors.red("jsdoc2md failed"), err.message);
|
||||
})
|
||||
.pipe(rename(function(path) {
|
||||
path.extname = ".md";
|
||||
}))
|
||||
.pipe(gulp.dest("docs/markdown"));
|
||||
});
|
||||
*/
|
||||
gulp.task('watch', function () {
|
||||
gulp.watch('scss/editormd.scss', ['scss'])
|
||||
gulp.watch('scss/editormd.preview.scss', ['scss', 'scss2'])
|
||||
gulp.watch('scss/editormd.logo.scss', ['scss', 'scss3'])
|
||||
gulp.watch('src/editormd.js', ['js', 'amd'])
|
||||
})
|
||||
|
||||
gulp.task('default', function () {
|
||||
gulp.run('scss')
|
||||
gulp.run('scss2')
|
||||
gulp.run('scss3')
|
||||
gulp.run('js')
|
||||
gulp.run('amd')
|
||||
gulp.run('cm-addon')
|
||||
gulp.run('cm-mode')
|
||||
})
|
||||
22
dist/static/markdown/LICENSE
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 pandao
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this routerData notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
119
dist/static/markdown/README.md
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
# Editor.md
|
||||
|
||||

|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
**Editor.md** : The open source embeddable online markdown editor (component), based on CodeMirror & jQuery & Marked.
|
||||
|
||||
### Features
|
||||
|
||||
- Support Standard Markdown / CommonMark and GFM (GitHub Flavored Markdown);
|
||||
- Full-featured: Real-time Preview, Image (cross-domain) upload, Preformatted text/Code blocks/Tables insert, Code fold, Search replace, Read only, Themes, Multi-languages, L18n, HTML entities, Code syntax highlighting...;
|
||||
- Markdown Extras : Support [ToC (Table of Contents)](https://pandao.github.io/editor.md/examples/toc.html), [Emoji](https://pandao.github.io/editor.md/examples/emoji.html), [Task lists](https://pandao.github.io/editor.md/examples/task-lists.html), [@Links](https://pandao.github.io/editor.md/examples/@links.html)...;
|
||||
- Compatible with all major browsers (IE8+), compatible Zepto.js and iPad;
|
||||
- Support [decode & fliter of the HTML tags & attributes](https://pandao.github.io/editor.md/examples/html-tags-decode.html);
|
||||
- Support [TeX (LaTeX expressions, Based on KaTeX)](https://pandao.github.io/editor.md/examples/katex.html), [Flowchart](https://pandao.github.io/editor.md/examples/flowchart.html) and [Sequence Diagram](https://pandao.github.io/editor.md/examples/sequence-diagram.html) of Markdown extended syntax;
|
||||
- Support AMD/CMD (Require.js & Sea.js) Module Loader, and Custom/define editor plugins;
|
||||
|
||||
[README & Examples (English)](https://pandao.github.io/editor.md/en.html)
|
||||
|
||||
|
||||
--------
|
||||
|
||||
**Editor.md** 是一款开源的、可嵌入的 Markdown 在线编辑器(组件),基于 CodeMirror、jQuery 和 Marked 构建。
|
||||
|
||||

|
||||
|
||||
#### 主要特性
|
||||
|
||||
- 支持通用 Markdown / CommonMark 和 GFM (GitHub Flavored Markdown) 风格的语法,也可[变身为代码编辑器](https://pandao.github.io/editor.md/examples/change-mode.html);
|
||||
- 支持实时预览、图片(跨域)上传、预格式文本/代码/表格插入、代码折叠、跳转到行、搜索替换、只读模式、自定义样式主题和多语言语法高亮等功能;
|
||||
- 支持 [ToC(Table of Contents)](https://pandao.github.io/editor.md/examples/toc.html)、[Emoji表情](https://pandao.github.io/editor.md/examples/emoji.html)、[Task lists](https://pandao.github.io/editor.md/examples/task-lists.html)、[@链接](https://pandao.github.io/editor.md/examples/@links.html)等 Markdown 扩展语法;
|
||||
- 支持 TeX 科学公式(基于 [KaTeX](https://pandao.github.io/editor.md/examples/katex.html))、流程图 [Flowchart](https://pandao.github.io/editor.md/examples/flowchart.html) 和 [时序图 Sequence Diagram](https://pandao.github.io/editor.md/examples/sequence-diagram.html);
|
||||
- 支持[识别和解析 HTML 标签,并且支持自定义过滤标签及属性解析](https://pandao.github.io/editor.md/examples/html-tags-decode.html),具有可靠的安全性和几乎无限的扩展性;
|
||||
- 支持 AMD / CMD 模块化加载(支持 [Require.js](https://pandao.github.io/editor.md/examples/use-requirejs.html) & [Sea.js](https://pandao.github.io/editor.md/examples/use-seajs.html)),并且支持[自定义扩展插件](https://pandao.github.io/editor.md/examples/define-plugin.html);
|
||||
- 兼容主流的浏览器(IE8+)和 [Zepto.js](https://pandao.github.io/editor.md/examples/use-zepto.html),且支持 iPad 等平板设备;
|
||||
|
||||
#### Examples
|
||||
|
||||
[https://pandao.github.io/editor.md/examples/index.html](https://pandao.github.io/editor.md/examples/index.html)
|
||||
|
||||
#### Download & install
|
||||
|
||||
[Github download](https://github.com/pandao/editor.md/archive/master.zip)
|
||||
|
||||
Bower install :
|
||||
|
||||
```shell
|
||||
bower install editor.md
|
||||
```
|
||||
|
||||
#### Usages
|
||||
|
||||
HTML:
|
||||
|
||||
```html
|
||||
<link rel="stylesheet" href="editormd.min.css" />
|
||||
<div id="editormd">
|
||||
<textarea style="display:none;">### Hello Editor.md !</textarea>
|
||||
</div>
|
||||
```
|
||||
|
||||
> Tip: Editor.md can auto append `<textarea>` tag;
|
||||
|
||||
javascript:
|
||||
|
||||
```html
|
||||
<script src="jquery.min.js"></script>
|
||||
<script src="editormd.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
var editor = editormd("editormd", {
|
||||
path : "../lib/" // Autoload modules mode, codemirror, marked... dependents libs path
|
||||
});
|
||||
|
||||
/*
|
||||
// or
|
||||
var editor = editormd({
|
||||
id : "editormd",
|
||||
path : "../lib/"
|
||||
});
|
||||
*/
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
Using modular script loader :
|
||||
|
||||
- [Using Require.js](https://github.com/pandao/editor.md/tree/master/examples/use-requirejs.html)
|
||||
- [Using Sea.js](https://github.com/pandao/editor.md/tree/master/examples/use-seajs.html)
|
||||
|
||||
#### Dependents
|
||||
|
||||
- [CodeMirror](http://codemirror.net/ "CodeMirror")
|
||||
- [marked](https://github.com/chjj/marked "marked")
|
||||
- [jQuery](http://jquery.com/ "jQuery")
|
||||
- [FontAwesome](http://fontawesome.io/ "FontAwesome")
|
||||
- [github-markdown.css](https://github.com/sindresorhus/github-markdown-css "github-markdown.css")
|
||||
- [KaTeX](http://khan.github.io/KaTeX/ "KaTeX")
|
||||
- [prettify.js](http://code.google.com/p/google-code-prettify/ "prettify.js")
|
||||
- [Rephael.js](http://raphaeljs.com/ "Rephael.js")
|
||||
- [flowchart.js](http://adrai.github.io/flowchart.js/ "flowchart.js")
|
||||
- [sequence-diagram.js](http://bramp.github.io/js-sequence-diagrams/ "sequence-diagram.js")
|
||||
- [Prefixes.scss](https://github.com/pandao/prefixes.scss "Prefixes.scss")
|
||||
|
||||
#### Changes
|
||||
|
||||
[Change logs](https://github.com/pandao/editor.md/blob/master/CHANGE.md)
|
||||
|
||||
#### License
|
||||
|
||||
The MIT License.
|
||||
|
||||
Copyright (c) 2015 Pandao
|
||||
24
dist/static/markdown/bower.json
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "editor.md",
|
||||
"version": "1.5.0",
|
||||
"homepage": "https://github.com/pandao/editor.md",
|
||||
"authors": [
|
||||
"Pandao <pandao@vip.qq.com>"
|
||||
],
|
||||
"description": "Open source online markdown editor.",
|
||||
"keywords": [
|
||||
"editor.md",
|
||||
"markdown",
|
||||
"editor"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"**/.*",
|
||||
"research",
|
||||
"docs",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"test",
|
||||
"tests"
|
||||
]
|
||||
}
|
||||
4450
dist/static/markdown/css/editormd.css
vendored
Normal file
98
dist/static/markdown/css/editormd.logo.css
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Editor.md
|
||||
*
|
||||
* @file editormd.logo.css
|
||||
* @version v1.5.0
|
||||
* @description Open source online markdown editor.
|
||||
* @license MIT License
|
||||
* @author Pandao
|
||||
* {@link https://github.com/pandao/editor.md}
|
||||
* @updateTime 2015-06-09
|
||||
*/
|
||||
|
||||
/*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT license | Copyright (c) 2015 */
|
||||
@font-face {
|
||||
font-family: 'editormd-logo';
|
||||
src: url("../fonts/editormd-logo.eot?-5y8q6h");
|
||||
src: url(".../fonts/editormd-logo.eot?#iefix-5y8q6h") format("embedded-opentype"), url("../fonts/editormd-logo.woff?-5y8q6h") format("woff"), url("../fonts/editormd-logo.ttf?-5y8q6h") format("truetype"), url("../fonts/editormd-logo.svg?-5y8q6h#icomoon") format("svg");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
.editormd-logo,
|
||||
.editormd-logo-1x,
|
||||
.editormd-logo-2x,
|
||||
.editormd-logo-3x,
|
||||
.editormd-logo-4x,
|
||||
.editormd-logo-5x,
|
||||
.editormd-logo-6x,
|
||||
.editormd-logo-7x,
|
||||
.editormd-logo-8x {
|
||||
font-family: 'editormd-logo';
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
font-size: inherit;
|
||||
line-height: 1;
|
||||
display: inline-block;
|
||||
text-rendering: auto;
|
||||
vertical-align: inherit;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.editormd-logo:before,
|
||||
.editormd-logo-1x:before,
|
||||
.editormd-logo-2x:before,
|
||||
.editormd-logo-3x:before,
|
||||
.editormd-logo-4x:before,
|
||||
.editormd-logo-5x:before,
|
||||
.editormd-logo-6x:before,
|
||||
.editormd-logo-7x:before,
|
||||
.editormd-logo-8x:before {
|
||||
content: "\e1987";
|
||||
/*
|
||||
HTML Entity 󡦇
|
||||
example: <span class="editormd-logo">󡦇</span>
|
||||
*/
|
||||
}
|
||||
|
||||
.editormd-logo-1x {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.editormd-logo-lg {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.editormd-logo-2x {
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.editormd-logo-3x {
|
||||
font-size: 3em;
|
||||
}
|
||||
|
||||
.editormd-logo-4x {
|
||||
font-size: 4em;
|
||||
}
|
||||
|
||||
.editormd-logo-5x {
|
||||
font-size: 5em;
|
||||
}
|
||||
|
||||
.editormd-logo-6x {
|
||||
font-size: 6em;
|
||||
}
|
||||
|
||||
.editormd-logo-7x {
|
||||
font-size: 7em;
|
||||
}
|
||||
|
||||
.editormd-logo-8x {
|
||||
font-size: 8em;
|
||||
}
|
||||
|
||||
.editormd-logo-color {
|
||||
color: #2196F3;
|
||||
}
|
||||
2
dist/static/markdown/css/editormd.logo.min.css
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/*! Editor.md v1.5.0 | editormd.logo.min.css | Open source online markdown editor. | MIT License | By: Pandao | https://github.com/pandao/editor.md | 2015-06-09 */
|
||||
/*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT license | Copyright (c) 2015 */@font-face{font-family:editormd-logo;src:url(../fonts/editormd-logo.eot?-5y8q6h);src:url(.../fonts/editormd-logo.eot?#iefix-5y8q6h)format("embedded-opentype"),url(../fonts/editormd-logo.woff?-5y8q6h)format("woff"),url(../fonts/editormd-logo.ttf?-5y8q6h)format("truetype"),url(../fonts/editormd-logo.svg?-5y8q6h#icomoon)format("svg");font-weight:400;font-style:normal}.editormd-logo,.editormd-logo-1x,.editormd-logo-2x,.editormd-logo-3x,.editormd-logo-4x,.editormd-logo-5x,.editormd-logo-6x,.editormd-logo-7x,.editormd-logo-8x{font-family:editormd-logo;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;font-size:inherit;line-height:1;display:inline-block;text-rendering:auto;vertical-align:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.editormd-logo-1x:before,.editormd-logo-2x:before,.editormd-logo-3x:before,.editormd-logo-4x:before,.editormd-logo-5x:before,.editormd-logo-6x:before,.editormd-logo-7x:before,.editormd-logo-8x:before,.editormd-logo:before{content:"\e1987"}.editormd-logo-1x{font-size:1em}.editormd-logo-lg{font-size:1.2em}.editormd-logo-2x{font-size:2em}.editormd-logo-3x{font-size:3em}.editormd-logo-4x{font-size:4em}.editormd-logo-5x{font-size:5em}.editormd-logo-6x{font-size:6em}.editormd-logo-7x{font-size:7em}.editormd-logo-8x{font-size:8em}.editormd-logo-color{color:#2196F3}
|
||||
5
dist/static/markdown/css/editormd.min.css
vendored
Normal file
3554
dist/static/markdown/css/editormd.preview.css
vendored
Normal file
5
dist/static/markdown/css/editormd.preview.min.css
vendored
Normal file
122
dist/static/markdown/css/googleCodePrettifyThemes/previewTheme-xu.css
vendored
Normal file
@@ -0,0 +1,122 @@
|
||||
.prettyprint {
|
||||
background: #2f3640;
|
||||
font-family: Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace;
|
||||
border: 0 !important;
|
||||
}
|
||||
|
||||
.pln {
|
||||
color: #e6e9ed;
|
||||
}
|
||||
.pln {
|
||||
color: #7abbff;
|
||||
}
|
||||
ol.linenums {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
color: #656d78;
|
||||
}
|
||||
|
||||
li.L0,
|
||||
li.L1,
|
||||
li.L2,
|
||||
li.L3,
|
||||
li.L4,
|
||||
li.L5,
|
||||
li.L6,
|
||||
li.L7,
|
||||
li.L8,
|
||||
li.L9 {
|
||||
padding-left: 1em;
|
||||
background-color: #2f3640;
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
@media screen {
|
||||
|
||||
/* string content */
|
||||
|
||||
.str {
|
||||
color: #ffce54;
|
||||
}
|
||||
|
||||
/* keyword */
|
||||
|
||||
.kwd {
|
||||
color: #4fc1e9;
|
||||
}
|
||||
.kwd {
|
||||
color: #e697ff;
|
||||
}
|
||||
|
||||
/* comment */
|
||||
|
||||
.com {
|
||||
color: #656d78;
|
||||
}
|
||||
|
||||
/* type name */
|
||||
|
||||
.typ {
|
||||
color: #4fc1e9;
|
||||
}
|
||||
|
||||
/* literal value */
|
||||
|
||||
.lit {
|
||||
color: #ac92ec;
|
||||
}
|
||||
|
||||
/* punctuation */
|
||||
|
||||
.pun {
|
||||
color: #e6e9ed;
|
||||
}
|
||||
|
||||
/* lisp open bracket */
|
||||
|
||||
.opn {
|
||||
color: #e6e9ed;
|
||||
}
|
||||
|
||||
/* lisp close bracket */
|
||||
|
||||
.clo {
|
||||
color: #e6e9ed;
|
||||
}
|
||||
|
||||
/* markup tag name */
|
||||
|
||||
.tag {
|
||||
color: #ed5565;
|
||||
}
|
||||
|
||||
/* markup attribute name */
|
||||
|
||||
.atn {
|
||||
color: #a0d468;
|
||||
}
|
||||
|
||||
/* markup attribute value */
|
||||
|
||||
.atv {
|
||||
color: #ffce54;
|
||||
}
|
||||
|
||||
/* declaration */
|
||||
|
||||
.dec {
|
||||
color: #ac92ec;
|
||||
}
|
||||
|
||||
/* variable name */
|
||||
|
||||
.var {
|
||||
color: #e6e9ed;
|
||||
}
|
||||
|
||||
/* function name */
|
||||
|
||||
.fun {
|
||||
color: #e6e9ed;
|
||||
}
|
||||
}
|
||||
4407
dist/static/markdown/docs/editormd.js.html
vendored
Normal file
BIN
dist/static/markdown/docs/fonts/OpenSans-Bold-webfont.eot
vendored
Normal file
1830
dist/static/markdown/docs/fonts/OpenSans-Bold-webfont.svg
vendored
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
dist/static/markdown/docs/fonts/OpenSans-Bold-webfont.woff
vendored
Normal file
BIN
dist/static/markdown/docs/fonts/OpenSans-BoldItalic-webfont.eot
vendored
Normal file
1830
dist/static/markdown/docs/fonts/OpenSans-BoldItalic-webfont.svg
vendored
Normal file
|
After Width: | Height: | Size: 118 KiB |
BIN
dist/static/markdown/docs/fonts/OpenSans-BoldItalic-webfont.woff
vendored
Normal file
BIN
dist/static/markdown/docs/fonts/OpenSans-Italic-webfont.eot
vendored
Normal file
1830
dist/static/markdown/docs/fonts/OpenSans-Italic-webfont.svg
vendored
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
dist/static/markdown/docs/fonts/OpenSans-Italic-webfont.woff
vendored
Normal file
BIN
dist/static/markdown/docs/fonts/OpenSans-Light-webfont.eot
vendored
Normal file
1831
dist/static/markdown/docs/fonts/OpenSans-Light-webfont.svg
vendored
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
dist/static/markdown/docs/fonts/OpenSans-Light-webfont.woff
vendored
Normal file
BIN
dist/static/markdown/docs/fonts/OpenSans-LightItalic-webfont.eot
vendored
Normal file
1835
dist/static/markdown/docs/fonts/OpenSans-LightItalic-webfont.svg
vendored
Normal file
|
After Width: | Height: | Size: 120 KiB |
BIN
dist/static/markdown/docs/fonts/OpenSans-LightItalic-webfont.woff
vendored
Normal file
BIN
dist/static/markdown/docs/fonts/OpenSans-Regular-webfont.eot
vendored
Normal file
1831
dist/static/markdown/docs/fonts/OpenSans-Regular-webfont.svg
vendored
Normal file
|
After Width: | Height: | Size: 117 KiB |
BIN
dist/static/markdown/docs/fonts/OpenSans-Regular-webfont.woff
vendored
Normal file
65
dist/static/markdown/docs/index.html
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>JSDoc: Home</title>
|
||||
|
||||
<script src="scripts/prettify/prettify.js"> </script>
|
||||
<script src="scripts/prettify/lang-css.js"> </script>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
||||
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="main">
|
||||
|
||||
<h1 class="page-title">Home</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h3> </h3>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<nav>
|
||||
<h2><a href="index.html">Home</a></h2>
|
||||
</nav>
|
||||
|
||||
<br class="clear">
|
||||
|
||||
<footer>
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0</a> on Mon Jun 08 2015 01:07:40 GMT+0800 (中国标准时间)
|
||||
</footer>
|
||||
|
||||
<script> prettyPrint(); </script>
|
||||
<script src="scripts/linenumber.js"> </script>
|
||||
</body>
|
||||
</html>
|
||||