提交 8aff7cd9 编写于 作者: DCloud_JSON's avatar DCloud_JSON

支持 代码高亮

上级 ccbae262
......@@ -305,8 +305,11 @@
view,
textarea,
button,
.page,
.page * {
.page,
/* #ifdef H5 */
.page *
/* #endif */
{
display: flex;
box-sizing: border-box;
}
......@@ -321,7 +324,12 @@
background-color: #efefef;
width: 750rpx;
flex: 1;
height: calc(100vh - 44px);
/* #ifdef H5 */
height: calc(100vh - 44px);
/* #endif */
/* #ifndef H5 */
height: 100vh;
/* #endif */
flex-direction: column;
align-items: center;
}
......@@ -440,7 +448,11 @@
padding: 5px;
padding-top: 0;
color: #aaa;
justify-content: center;
justify-content: center;
width:750rpx;
/* #ifdef MP */
display: flex;
/* #endif */
}
.content {
......@@ -508,10 +520,10 @@
.set-stream{
position: fixed;
right: 0px;
left: 0px;
top: 0;
z-index: 999;
padding: 5px;
padding:0 5px;
justify-content: center;
align-items: center;
}
......
{"version":3,"sources":["uni-app:///main.js",null,"webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/App.vue?9b13","uni-app:///App.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","config","productionTip","App","mpType","app","$mount","onLaunch","console","onShow","onHide"],"mappings":";;;;;;;;;;;;;;AAAA;AAE2D;AAAuE;AAGlI;AACA;AAAgC;AAAA;AALhC;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAK1DC,YAAG,CAACC,MAAM,CAACC,aAAa,GAAG,KAAK;AAChCC,YAAG,CAACC,MAAM,GAAG,KAAK;AAClB,IAAMC,GAAG,GAAG,IAAIL,YAAG,mBACdG,YAAG,EACN;AACF,UAAAE,GAAG,EAACC,MAAM,EAAE,C;;;;;;;;;;;;;ACZZ;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;;;AAGlD;AACgN;AAChN,gBAAgB,uNAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAi0B,CAAgB,+zBAAG,EAAC,C;;;;;;;;;;;;;;;;;;eCCr1B;EACAC;IACAC;EACA;EACAC;IACAD;EACA;EACAE;IACAF;EACA;AACA;AAAA,2B","file":"common/main.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js';import App from './App'\n\n\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/App.vue?e305","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/App.vue?9b13","uni-app:///App.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","Vue","config","productionTip","App","mpType","app","$mount","onLaunch","console","onShow","onHide"],"mappings":";;;;;;;;;;;;;;AAAA;AAE2D;AAAuE;AAGlI;AACA;AAAgC;AAAA;AALhC;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAK1DC,YAAG,CAACC,MAAM,CAACC,aAAa,GAAG,KAAK;AAChCC,YAAG,CAACC,MAAM,GAAG,KAAK;AAClB,IAAMC,GAAG,GAAG,IAAIL,YAAG,mBACdG,YAAG,EACN;AACF,UAAAE,GAAG,EAACC,MAAM,EAAE,C;;;;;;;;;;;;;ACZZ;AAAA;AAAA;AAAA;AAAA;AACA;AACuD;AACL;;;AAGlD;AACgN;AAChN,gBAAgB,uNAAU;AAC1B,EAAE,yEAAM;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAi0B,CAAgB,+zBAAG,EAAC,C;;;;;;;;;;;;;;;;;;eCCr1B;EACAC;IACAC;EACA;EACAC;IACAD;EACA;EACAE;IACAF;EACA;AACA;AAAA,2B","file":"common/main.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;import '@dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js';import App from './App'\n\n\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()","var render, staticRenderFns, recyclableRender, components\nvar renderjs\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"App.vue\"\nexport default component.exports","import mod from \"-!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./App.vue?vue&type=script&lang=js&\"","<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n</style>\n"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":[null,"webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?04fd","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?0d64","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?ff80","uni-app:///components/uni-ai-msg/uni-ai-msg.vue"],"names":["html","highlight","hljs","name","data","props","md","type","default","computed","nodes"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;;;AAGzD;AACsN;AACtN,gBAAgB,uNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAs2B,CAAgB,s0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACO13B;AACA;;;;;;;;AACA;AACA;AACA;EACAA;EACAC;IACA;MACA;QACA,oCACAC,wCACA;MACA;IACA;IAEA;EACA;AACA;AAAA,gBACA;EACAC;EACAC;IACA,QAEA;EACA;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;EACA;EACAC;IACAT;MACA;MACA;IACA;IACAU;MACA;IACA;EACA;AACA;AAAA,4B","file":"components/uni-ai-msg/uni-ai-msg.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./uni-ai-msg.vue?vue&type=template&id=29081224&\"\nvar renderjs\nimport script from \"./uni-ai-msg.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-ai-msg.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-ai-msg/uni-ai-msg.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=template&id=29081224&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.nodes.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<rich-text v-if=\"nodes.length\" space=\"nbsp\" :nodes=\"nodes\" class=\"text-box\"></rich-text>\n\t</view>\n</template>\n\n<script>\n\timport 'highlight.js/styles/agate.css'\n\timport parseHtml from './html-parser.js';\n\tconst MarkdownIt = require('markdown-it')\n\tconst hljs = require('highlight.js')\n\tconst md = new MarkdownIt({\n\t\thtml: false,\n\t\t highlight: function (str, lang) {\n\t\t if (lang && hljs.getLanguage(lang)) {\n\t\t try {\n\t\t return '<pre class=\"hljs\"><code>' +\n\t\t hljs.highlight(lang, str, true).value +\n\t\t '</code></pre>';\n\t\t } catch (__) {}\n\t\t }\n\t\t\n\t\t return '<pre class=\"hljs\"><code>' + md.utils.escapeHtml(str) + '</code></pre>';\n\t\t }\n\t})\n\texport default {\n\t\tname:\"msg\",\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\t\n\t\t\t};\n\t\t},\n\t\tprops: {\n\t\t\tmd: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault(){\n\t\t\t\t\treturn '# H1 \\r ```js'+'\\r alert(1); \\r```'\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\tcomputed: {\n\t\t\thtml() {\n\t\t\t\t// req.body.content 代表md代码\n\t\t\t\treturn md.render(this.md)\n\t\t\t},\n\t\t\tnodes(){\n\t\t\t\treturn parseHtml(this.html)\n\t\t\t}\n\t\t},\n\t}\n</script>\n\n<style>\n\n</style>"],"sourceRoot":""}
\ No newline at end of file
{"version":3,"sources":["webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?bb0e","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?c924","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?5787","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?04fd","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?0d64","webpack:////Users/dcloud_linju/Desktop/appCode/uni-ai-chat/components/uni-ai-msg/uni-ai-msg.vue?ff80","uni-app:///components/uni-ai-msg/uni-ai-msg.vue"],"names":["html","highlight","name","data","props","md","type","default","computed","nodes"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAA6lD,CAAgB,69CAAG,EAAC,C;;;;;;;;;;;ACAjnD;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;AACc;;;AAGvE;AACsN;AACtN,gBAAgB,uNAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAs2B,CAAgB,s0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACO13B;;;;;;;;AACA;AACA;AACA;EACAA;EACAC;IACA;MACA;QACA;MACA;IACA;IACA;EACA;AACA;AAAA,gBACA;EACAC;EACAC;IACA,QAEA;EACA;EACAC;IACAC;MACAC;MACAC;QACA;MACA;IACA;EACA;EACAC;IACAR;MACA;MACA;IACA;IACAS;MACA;IACA;EACA;AACA;AAAA,4B","file":"components/uni-ai-msg/uni-ai-msg.js","sourcesContent":["import mod from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1682235723333\n var cssReload = require(\"/Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import { render, staticRenderFns, recyclableRender, components } from \"./uni-ai-msg.vue?vue&type=template&id=29081224&\"\nvar renderjs\nimport script from \"./uni-ai-msg.vue?vue&type=script&lang=js&\"\nexport * from \"./uni-ai-msg.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uni-ai-msg.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/uni-ai-msg/uni-ai-msg.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=template&id=29081224&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.nodes && _vm.nodes.length\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./uni-ai-msg.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"rich-text-box\">\r\n\t\t<rich-text v-if=\"nodes&&nodes.length\" space=\"nbsp\" :nodes=\"nodes\"></rich-text>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport parseHtml from './html-parser.js';\r\n\tconst MarkdownIt = require('markdown-it')\r\n\tconst hljs = require('highlight.js')\r\n\tconst md = new MarkdownIt({\r\n\t\thtml: false,\r\n\t\thighlight: function(str, lang) {\r\n\t\t\tif (lang && hljs.getLanguage(lang)) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\treturn `<pre class=\"hljs\"><code>${hljs.highlight(lang, str, true).value}</code></pre>`\r\n\t\t\t\t} catch (__) {}\r\n\t\t\t}\r\n\t\t\treturn '<pre class=\"hljs\"><code>' + md.utils.escapeHtml(str) + '</code></pre>';\r\n\t\t}\r\n\t})\r\n\texport default {\r\n\t\tname: \"msg\",\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\r\n\t\t\t};\r\n\t\t},\r\n\t\tprops: {\r\n\t\t\tmd: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn '# H1 \\r ```js' + '\\r alert(1); \\r```'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\thtml() {\r\n\t\t\t\t// req.body.content 代表md代码\r\n\t\t\t\treturn md.render(this.md)\r\n\t\t\t},\r\n\t\t\tnodes() {\r\n\t\t\t\treturn parseHtml(this.html)\r\n\t\t\t}\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t@import \"highlight.js/styles/agate.css\";\r\n\r\n\t/* #ifndef APP-NVUE */\r\n\t.hljs code {\r\n\t\tpadding: 5px;\r\n\t\tmargin: 5px 0;\r\n\t\tdisplay: flex;\r\n\t}\r\n\r\n\t/* #endif */\r\n</style>"],"sourceRoot":""}
\ No newline at end of file
......@@ -790,7 +790,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _App
/***/ (function(module, exports, __webpack_require__) {
"use strict";
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 1);\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _htmlParser = _interopRequireDefault(__webpack_require__(/*! ./html-parser.js */ 22));\n//\n//\n//\n//\n//\n//\n\nvar MarkdownIt = __webpack_require__(/*! markdown-it */ 24);\nvar hljs = __webpack_require__(/*! highlight.js */ 95);\nvar md = new MarkdownIt({\n html: false,\n highlight: function highlight(str, lang) {\n if (lang && hljs.getLanguage(lang)) {\n try {\n return \"<pre class=\\\"hljs\\\"><code>\".concat(hljs.highlight(lang, str, true).value, \"</code></pre>\");\n } catch (__) {}\n }\n return '<pre class=\"hljs\"><code>' + md.utils.escapeHtml(str) + '</code></pre>';\n }\n});\nvar _default2 = {\n name: \"msg\",\n data: function data() {\n return {};\n },\n props: {\n md: {\n type: String,\n default: function _default() {\n return '# H1 \\r ```js' + '\\r alert(1); \\r```';\n }\n }\n },\n computed: {\n html: function html() {\n // req.body.content 代表md代码\n return md.render(this.md);\n },\n nodes: function nodes() {\n return (0, _htmlParser.default)(this.html);\n }\n }\n};\nexports.default = _default2;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vY29tcG9uZW50cy91bmktYWktbXNnL3VuaS1haS1tc2cudnVlIl0sIm5hbWVzIjpbImh0bWwiLCJoaWdobGlnaHQiLCJuYW1lIiwiZGF0YSIsInByb3BzIiwibWQiLCJ0eXBlIiwiZGVmYXVsdCIsImNvbXB1dGVkIiwibm9kZXMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFPQTs7Ozs7Ozs7QUFDQTtBQUNBO0FBQ0E7RUFDQUE7RUFDQUM7SUFDQTtNQUNBO1FBQ0E7TUFDQTtJQUNBO0lBRUE7RUFDQTtBQUNBO0FBQUEsZ0JBQ0E7RUFDQUM7RUFDQUM7SUFDQSxRQUVBO0VBQ0E7RUFDQUM7SUFDQUM7TUFDQUM7TUFDQUM7UUFDQTtNQUNBO0lBQ0E7RUFDQTtFQUNBQztJQUNBUjtNQUNBO01BQ0E7SUFDQTtJQUNBUztNQUNBO0lBQ0E7RUFDQTtBQUNBO0FBQUEiLCJmaWxlIjoiMjEuanMiLCJzb3VyY2VzQ29udGVudCI6WyI8dGVtcGxhdGU+XG5cdDx2aWV3IGNsYXNzPVwicmljaC10ZXh0LWJveFwiPlxuXHRcdDxyaWNoLXRleHQgdi1pZj1cIm5vZGVzJiZub2Rlcy5sZW5ndGhcIiBzcGFjZT1cIm5ic3BcIiA6bm9kZXM9XCJub2Rlc1wiPjwvcmljaC10ZXh0PlxuXHQ8L3ZpZXc+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0PlxuXHRpbXBvcnQgcGFyc2VIdG1sIGZyb20gJy4vaHRtbC1wYXJzZXIuanMnO1xuXHRjb25zdCBNYXJrZG93bkl0ID0gcmVxdWlyZSgnbWFya2Rvd24taXQnKVxuXHRjb25zdCBobGpzID0gcmVxdWlyZSgnaGlnaGxpZ2h0LmpzJylcblx0Y29uc3QgbWQgPSBuZXcgTWFya2Rvd25JdCh7XG5cdFx0aHRtbDogZmFsc2UsXG5cdFx0IGhpZ2hsaWdodDogZnVuY3Rpb24gKHN0ciwgbGFuZykge1xuXHRcdCAgICBpZiAobGFuZyAmJiBobGpzLmdldExhbmd1YWdlKGxhbmcpKSB7XG5cdFx0ICAgICAgdHJ5IHtcblx0XHQgICAgICAgIHJldHVybiBgPHByZSBjbGFzcz1cImhsanNcIj48Y29kZT4ke2hsanMuaGlnaGxpZ2h0KGxhbmcsIHN0ciwgdHJ1ZSkudmFsdWV9PC9jb2RlPjwvcHJlPmAgXG5cdFx0ICAgICAgfSBjYXRjaCAoX18pIHt9XG5cdFx0ICAgIH1cblx0XHRcblx0XHQgICAgcmV0dXJuICc8cHJlIGNsYXNzPVwiaGxqc1wiPjxjb2RlPicgKyBtZC51dGlscy5lc2NhcGVIdG1sKHN0cikgKyAnPC9jb2RlPjwvcHJlPic7XG5cdFx0ICB9XG5cdH0pXG5cdGV4cG9ydCBkZWZhdWx0IHtcblx0XHRuYW1lOlwibXNnXCIsXG5cdFx0ZGF0YSgpIHtcblx0XHRcdHJldHVybiB7XG5cdFx0XHRcdFxuXHRcdFx0fTtcblx0XHR9LFxuXHRcdHByb3BzOiB7XG5cdFx0XHRtZDoge1xuXHRcdFx0XHR0eXBlOiBTdHJpbmcsXG5cdFx0XHRcdGRlZmF1bHQoKXtcblx0XHRcdFx0XHRyZXR1cm4gJyMgSDEgXFxyIGBgYGpzJysnXFxyIGFsZXJ0KDEpOyBcXHJgYGAnXG5cdFx0XHRcdH1cblx0XHRcdH0sXG5cdFx0fSxcblx0XHRjb21wdXRlZDoge1xuXHRcdFx0aHRtbCgpIHtcblx0XHRcdFx0Ly8gcmVxLmJvZHkuY29udGVudCDku6PooahtZOS7o+eggVxuXHRcdFx0XHRyZXR1cm4gbWQucmVuZGVyKHRoaXMubWQpXG5cdFx0XHR9LFxuXHRcdFx0bm9kZXMoKXtcblx0XHRcdFx0cmV0dXJuIHBhcnNlSHRtbCh0aGlzLmh0bWwpXG5cdFx0XHR9XG5cdFx0fSxcblx0fVxuPC9zY3JpcHQ+XG5cbjxzdHlsZSBsYW5nPVwic2Nzc1wiPlxuQGltcG9ydCBcImhpZ2hsaWdodC5qcy9zdHlsZXMvYWdhdGUuY3NzXCI7XG5cbi8qICNpZm5kZWYgQVBQLU5WVUUgKi9cbi5obGpzIGNvZGV7XG5cdHBhZGRpbmc6IDVweDtcblx0bWFyZ2luOiA1cHggMDtcblx0ZGlzcGxheTogZmxleDtcbn1cbi8qICNlbmRpZiAqL1xuPC9zdHlsZT4iXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///21\n");
eval("\n\nvar _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 1);\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _htmlParser = _interopRequireDefault(__webpack_require__(/*! ./html-parser.js */ 22));\n//\n//\n//\n//\n//\n//\n\nvar MarkdownIt = __webpack_require__(/*! markdown-it */ 24);\nvar hljs = __webpack_require__(/*! highlight.js */ 95);\nvar md = new MarkdownIt({\n html: false,\n highlight: function highlight(str, lang) {\n if (lang && hljs.getLanguage(lang)) {\n try {\n return \"<pre class=\\\"hljs\\\"><code>\".concat(hljs.highlight(lang, str, true).value, \"</code></pre>\");\n } catch (__) {}\n }\n return '<pre class=\"hljs\"><code>' + md.utils.escapeHtml(str) + '</code></pre>';\n }\n});\nvar _default2 = {\n name: \"msg\",\n data: function data() {\n return {};\n },\n props: {\n md: {\n type: String,\n default: function _default() {\n return '# H1 \\r ```js' + '\\r alert(1); \\r```';\n }\n }\n },\n computed: {\n html: function html() {\n // req.body.content 代表md代码\n return md.render(this.md);\n },\n nodes: function nodes() {\n return (0, _htmlParser.default)(this.html);\n }\n }\n};\nexports.default = _default2;//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInVuaS1hcHA6Ly8vY29tcG9uZW50cy91bmktYWktbXNnL3VuaS1haS1tc2cudnVlIl0sIm5hbWVzIjpbImh0bWwiLCJoaWdobGlnaHQiLCJuYW1lIiwiZGF0YSIsInByb3BzIiwibWQiLCJ0eXBlIiwiZGVmYXVsdCIsImNvbXB1dGVkIiwibm9kZXMiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFPQTs7Ozs7Ozs7QUFDQTtBQUNBO0FBQ0E7RUFDQUE7RUFDQUM7SUFDQTtNQUNBO1FBQ0E7TUFDQTtJQUNBO0lBQ0E7RUFDQTtBQUNBO0FBQUEsZ0JBQ0E7RUFDQUM7RUFDQUM7SUFDQSxRQUVBO0VBQ0E7RUFDQUM7SUFDQUM7TUFDQUM7TUFDQUM7UUFDQTtNQUNBO0lBQ0E7RUFDQTtFQUNBQztJQUNBUjtNQUNBO01BQ0E7SUFDQTtJQUNBUztNQUNBO0lBQ0E7RUFDQTtBQUNBO0FBQUEiLCJmaWxlIjoiMjEuanMiLCJzb3VyY2VzQ29udGVudCI6WyI8dGVtcGxhdGU+XHJcblx0PHZpZXcgY2xhc3M9XCJyaWNoLXRleHQtYm94XCI+XHJcblx0XHQ8cmljaC10ZXh0IHYtaWY9XCJub2RlcyYmbm9kZXMubGVuZ3RoXCIgc3BhY2U9XCJuYnNwXCIgOm5vZGVzPVwibm9kZXNcIj48L3JpY2gtdGV4dD5cclxuXHQ8L3ZpZXc+XHJcbjwvdGVtcGxhdGU+XHJcblxyXG48c2NyaXB0PlxyXG5cdGltcG9ydCBwYXJzZUh0bWwgZnJvbSAnLi9odG1sLXBhcnNlci5qcyc7XHJcblx0Y29uc3QgTWFya2Rvd25JdCA9IHJlcXVpcmUoJ21hcmtkb3duLWl0JylcclxuXHRjb25zdCBobGpzID0gcmVxdWlyZSgnaGlnaGxpZ2h0LmpzJylcclxuXHRjb25zdCBtZCA9IG5ldyBNYXJrZG93bkl0KHtcclxuXHRcdGh0bWw6IGZhbHNlLFxyXG5cdFx0aGlnaGxpZ2h0OiBmdW5jdGlvbihzdHIsIGxhbmcpIHtcclxuXHRcdFx0aWYgKGxhbmcgJiYgaGxqcy5nZXRMYW5ndWFnZShsYW5nKSkge1xyXG5cdFx0XHRcdHRyeSB7XHJcblx0XHRcdFx0XHRyZXR1cm4gYDxwcmUgY2xhc3M9XCJobGpzXCI+PGNvZGU+JHtobGpzLmhpZ2hsaWdodChsYW5nLCBzdHIsIHRydWUpLnZhbHVlfTwvY29kZT48L3ByZT5gXHJcblx0XHRcdFx0fSBjYXRjaCAoX18pIHt9XHJcblx0XHRcdH1cclxuXHRcdFx0cmV0dXJuICc8cHJlIGNsYXNzPVwiaGxqc1wiPjxjb2RlPicgKyBtZC51dGlscy5lc2NhcGVIdG1sKHN0cikgKyAnPC9jb2RlPjwvcHJlPic7XHJcblx0XHR9XHJcblx0fSlcclxuXHRleHBvcnQgZGVmYXVsdCB7XHJcblx0XHRuYW1lOiBcIm1zZ1wiLFxyXG5cdFx0ZGF0YSgpIHtcclxuXHRcdFx0cmV0dXJuIHtcclxuXHJcblx0XHRcdH07XHJcblx0XHR9LFxyXG5cdFx0cHJvcHM6IHtcclxuXHRcdFx0bWQ6IHtcclxuXHRcdFx0XHR0eXBlOiBTdHJpbmcsXHJcblx0XHRcdFx0ZGVmYXVsdCAoKSB7XHJcblx0XHRcdFx0XHRyZXR1cm4gJyMgSDEgXFxyIGBgYGpzJyArICdcXHIgYWxlcnQoMSk7IFxccmBgYCdcclxuXHRcdFx0XHR9XHJcblx0XHRcdH0sXHJcblx0XHR9LFxyXG5cdFx0Y29tcHV0ZWQ6IHtcclxuXHRcdFx0aHRtbCgpIHtcclxuXHRcdFx0XHQvLyByZXEuYm9keS5jb250ZW50IOS7o+ihqG1k5Luj56CBXHJcblx0XHRcdFx0cmV0dXJuIG1kLnJlbmRlcih0aGlzLm1kKVxyXG5cdFx0XHR9LFxyXG5cdFx0XHRub2RlcygpIHtcclxuXHRcdFx0XHRyZXR1cm4gcGFyc2VIdG1sKHRoaXMuaHRtbClcclxuXHRcdFx0fVxyXG5cdFx0fSxcclxuXHR9XHJcbjwvc2NyaXB0PlxyXG5cclxuPHN0eWxlIGxhbmc9XCJzY3NzXCI+XHJcblx0QGltcG9ydCBcImhpZ2hsaWdodC5qcy9zdHlsZXMvYWdhdGUuY3NzXCI7XHJcblxyXG5cdC8qICNpZm5kZWYgQVBQLU5WVUUgKi9cclxuXHQuaGxqcyBjb2RlIHtcclxuXHRcdHBhZGRpbmc6IDVweDtcclxuXHRcdG1hcmdpbjogNXB4IDA7XHJcblx0XHRkaXNwbGF5OiBmbGV4O1xyXG5cdH1cclxuXHJcblx0LyogI2VuZGlmICovXHJcbjwvc3R5bGU+Il0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///21\n");
/***/ }),
/* 22 */
......@@ -16,7 +16,7 @@ __webpack_require__(/*! uni-pages */ 26);
__webpack_require__(/*! @dcloudio/vue-cli-plugin-uni/packages/uni-cloud/dist/index.js */ 27);
var _App = _interopRequireDefault(__webpack_require__(/*! ./App */ 39));
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
__webpack_require__(/*! ./uni.promisify.adaptor */ 45);
__webpack_require__(/*! ./uni.promisify.adaptor */ 43);
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
// @ts-ignore
......@@ -40,7 +40,7 @@ createApp(app).$mount();
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./App.vue?vue&type=script&lang=js& */ 40);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _App_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 44);
/* harmony import */ var _Applications_HBuilderX_Alpha_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../Applications/HBuilderX-Alpha.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 42);
var render, staticRenderFns, recyclableRender, components
var renderjs
......
<view><block wx:if="{{$root.g0}}"><rich-text class="text-box" space="nbsp" nodes="{{nodes}}"></rich-text></block></view>
\ No newline at end of file
<view class="rich-text-box"><block wx:if="{{$root.g0}}"><rich-text space="nbsp" nodes="{{nodes}}"></rich-text></block></view>
\ No newline at end of file
/*!
* Agate by Taufik Nurrohman <https://github.com/taufik-nurrohman>
* ---------------------------------------------------------------
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* #ade5fc
* #a2fca2
* #c6b4f0
* #d36363
* #fcc28c
* #fc9b9b
* #ffa
* #fff
* #333
* #62c8f3
* #888
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
.hljs {
display: block;
overflow-x: auto;
padding: 0.5em;
background: #333;
color: white;
}
.hljs-name,
.hljs-strong {
font-weight: bold;
}
.hljs-code,
.hljs-emphasis {
font-style: italic;
}
.hljs-tag {
color: #62c8f3;
}
.hljs-variable,
.hljs-template-variable,
.hljs-selector-id,
.hljs-selector-class {
color: #ade5fc;
}
.hljs-string,
.hljs-bullet {
color: #a2fca2;
}
.hljs-type,
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-quote,
.hljs-built_in,
.hljs-builtin-name {
color: #ffa;
}
.hljs-number,
.hljs-symbol,
.hljs-bullet {
color: #d36363;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
color: #fcc28c;
}
.hljs-comment,
.hljs-deletion,
.hljs-code {
color: #888;
}
.hljs-regexp,
.hljs-link {
color: #c6b4f0;
}
.hljs-meta {
color: #fc9b9b;
}
.hljs-deletion {
background-color: #fc9b9b;
color: #333;
}
.hljs-addition {
background-color: #a2fca2;
color: #333;
}
.hljs ._a {
color: inherit;
}
.hljs ._a:focus,
.hljs ._a:hover {
color: inherit;
text-decoration: underline;
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
._pre ._code.hljs{display:block;overflow-x:auto;padding:1em}
._code.hljs{padding:3px 5px}
/*!
Theme: Agate
Author: (c) Taufik Nurrohman <hi@taufik-nurrohman.com>
Maintainer: @taufik-nurrohman
Updated: 2021-04-24
#333
#62c8f3
#7bd694
#888
#a2fca2
#ade5fc
#b8d8a2
#c6b4f0
#d36363
#fc9b9b
#fcc28c
#ffa
#fff
*/
.hljs{background:#333;color:#fff}
.hljs-doctag,.hljs-meta-keyword,.hljs-name,.hljs-strong{font-weight:700}
.hljs-code,.hljs-emphasis{font-style:italic}
.hljs-section,.hljs-tag{color:#62c8f3}
.hljs-selector-class,.hljs-selector-id,.hljs-template-variable,.hljs-variable{color:#ade5fc}
.hljs-meta-string,.hljs-string{color:#a2fca2}
.hljs-attr,.hljs-quote,.hljs-selector-attr{color:#7bd694}
.hljs-tag .hljs-attr{color:inherit}
.hljs-attribute,.hljs-title,.hljs-type{color:#ffa}
.hljs-number,.hljs-symbol{color:#d36363}
.hljs-bullet,.hljs-template-tag{color:#b8d8a2}
.hljs-built_in,.hljs-keyword,.hljs-literal,.hljs-selector-tag{color:#fcc28c}
.hljs-code,.hljs-comment,.hljs-formula{color:#888}
.hljs-link,.hljs-regexp,.hljs-selector-pseudo{color:#c6b4f0}
.hljs-meta{color:#fc9b9b}
.hljs-deletion{background:#fc9b9b;color:#333}
.hljs-addition{background:#a2fca2;color:#333}
.hljs-subst{color:#fff}
.hljs ._a{color:inherit}
.hljs ._a:focus,.hljs ._a:hover{color:inherit;text-decoration:underline}
.hljs ._mark{background:#555;color:inherit}
.hljs ._code {
padding: 5px;
margin: 5px 0;
display: flex;
}
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
view,
textarea,
button {
button,
.page {
display: flex;
box-sizing: border-box;
}
......@@ -11,7 +37,7 @@ page,
background-color: #efefef;
width: 750rpx;
flex: 1;
height: calc(100vh - 44px);
height: 100vh;
flex-direction: column;
align-items: center;
}
......@@ -104,6 +130,8 @@ page,
padding-top: 0;
color: #aaa;
justify-content: center;
width: 750rpx;
display: flex;
}
.content {
max-width: 500rpx;
......@@ -163,10 +191,10 @@ to {
}
.set-stream {
position: fixed;
right: 0px;
left: 0px;
top: 0;
z-index: 999;
padding: 5px;
padding: 0 5px;
justify-content: center;
align-items: center;
}
......
@charset "UTF-8";
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.uniui-color:before {
content: "\e6cf";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册