Initial commit to Gitea

This commit is contained in:
root
2026-05-04 00:43:20 +08:00
parent 1e0b2b125b
commit d76c7d5eac
422 changed files with 5233 additions and 1514 deletions
@@ -1,10 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-parse/node/node"],{1099:function(t,e,n){"use strict";n.r(e);var r=n(1100),i=n(1102);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(1104);var s,a=n(46),u=n(1106),c=Object(a["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],s);"function"===typeof u["default"]&&Object(u["default"])(c),c.options.__file="uni_modules/uview-ui/components/u-parse/node/node.vue",e["default"]=c.exports},1100:function(t,e,n){"use strict";n.r(e);var r=n(1101);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},1101:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return r}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=!1,s=[];i._withStripped=!0},1102:function(t,e,n){"use strict";n.r(e);var r=n(1103),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},1103:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){Promise.resolve().then(function(){return resolve(n(1099))}.bind(null,n)).catch(n.oe)},i={name:"node",options:{virtualHost:!0},data:function(){return{ctrl:{}}},props:{name:String,attrs:{type:Object,default:function(){return{}}},childs:Array,opts:Array},components:{node:r},mounted:function(){for(this.root=this.$parent;"mp-html"!=this.root.$options.name;this.root=this.root.$parent);},beforeDestroy:function(){},methods:{toJSON:function(){},play:function(e){if(this.root.pauseVideo){for(var n=!1,r=e.target.id,i=this.root._videos.length;i--;)this.root._videos[i].id==r?n=!0:this.root._videos[i].pause();if(!n){var o=t.createVideoContext(r,this);o.id=r,this.root._videos.push(o)}}},imgTap:function(e){var n=this.childs[e.currentTarget.dataset.i];if(n.a)return this.linkTap(n.a);n.attrs.ignore||(this.root.$emit("imgTap",n.attrs),this.root.previewImg&&t.previewImage({current:parseInt(n.attrs.i),urls:this.root.imgList}))},imgLongTap:function(t){},imgLoad:function(t){var e=t.currentTarget.dataset.i;this.childs[e].w?(this.opts[1]&&!this.ctrl[e]||-1==this.ctrl[e])&&this.$set(this.ctrl,e,1):this.$set(this.ctrl,e,t.detail.width)},linkTap:function(e){var n=e.currentTarget?this.childs[e.currentTarget.dataset.i].attrs:e,r=n.href;this.root.$emit("linkTap",n),r&&("#"==r[0]?this.root.navigateTo(r.substring(1)).catch((function(){})):r.includes("://")?this.root.copyLink&&t.setClipboardData({data:r,success:function(){return t.showToast({title:"链接已复制"})}}):t.navigateTo({url:r,fail:function(){t.switchTab({url:r,fail:function(){}})}}))},mediaError:function(t){var e=t.currentTarget.dataset.i,n=this.childs[e];if("video"==n.name||"audio"==n.name){var r=(this.ctrl[e]||0)+1;if(r>n.src.length&&(r=0),r<n.src.length)return this.$set(this.ctrl,e,r)}else"img"==n.name&&this.opts[2]&&this.$set(this.ctrl,e,-1);this.root&&this.root.$emit("error",{source:n.name,attrs:n.attrs,errMsg:t.detail.errMsg})}}};e.default=i}).call(this,n(2)["default"])},1104:function(t,e,n){"use strict";n.r(e);var r=n(1105),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},1105:function(t,e,n){},1106:function(t,e,n){"use strict";n.r(e);var r=n(1107);e["default"]=r["default"]},1107:function(t,e,n){"use strict";n.r(e),e["default"]=function(t){t.options.wxsCallMethods||(t.options.wxsCallMethods=[])}}}]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-parse/node/node"],{1068:function(t,e,n){"use strict";n.r(e);var r=n(1069),i=n(1071);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(1073);var s,a=n(46),u=n(1075),c=Object(a["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],s);"function"===typeof u["default"]&&Object(u["default"])(c),c.options.__file="uni_modules/uview-ui/components/u-parse/node/node.vue",e["default"]=c.exports},1069:function(t,e,n){"use strict";n.r(e);var r=n(1070);n.d(e,"render",(function(){return r["render"]})),n.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(e,"components",(function(){return r["components"]}))},1070:function(t,e,n){"use strict";var r;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return s})),n.d(e,"recyclableRender",(function(){return o})),n.d(e,"components",(function(){return r}));var i=function(){var t=this,e=t.$createElement;t._self._c},o=!1,s=[];i._withStripped=!0},1071:function(t,e,n){"use strict";n.r(e);var r=n(1072),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},1072:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){Promise.resolve().then(function(){return resolve(n(1068))}.bind(null,n)).catch(n.oe)},i={name:"node",options:{virtualHost:!0},data:function(){return{ctrl:{}}},props:{name:String,attrs:{type:Object,default:function(){return{}}},childs:Array,opts:Array},components:{node:r},mounted:function(){for(this.root=this.$parent;"mp-html"!=this.root.$options.name;this.root=this.root.$parent);},beforeDestroy:function(){},methods:{toJSON:function(){},play:function(e){if(this.root.pauseVideo){for(var n=!1,r=e.target.id,i=this.root._videos.length;i--;)this.root._videos[i].id==r?n=!0:this.root._videos[i].pause();if(!n){var o=t.createVideoContext(r,this);o.id=r,this.root._videos.push(o)}}},imgTap:function(e){var n=this.childs[e.currentTarget.dataset.i];if(n.a)return this.linkTap(n.a);n.attrs.ignore||(this.root.$emit("imgTap",n.attrs),this.root.previewImg&&t.previewImage({current:parseInt(n.attrs.i),urls:this.root.imgList}))},imgLongTap:function(t){},imgLoad:function(t){var e=t.currentTarget.dataset.i;this.childs[e].w?(this.opts[1]&&!this.ctrl[e]||-1==this.ctrl[e])&&this.$set(this.ctrl,e,1):this.$set(this.ctrl,e,t.detail.width)},linkTap:function(e){var n=e.currentTarget?this.childs[e.currentTarget.dataset.i].attrs:e,r=n.href;this.root.$emit("linkTap",n),r&&("#"==r[0]?this.root.navigateTo(r.substring(1)).catch((function(){})):r.includes("://")?this.root.copyLink&&t.setClipboardData({data:r,success:function(){return t.showToast({title:"链接已复制"})}}):t.navigateTo({url:r,fail:function(){t.switchTab({url:r,fail:function(){}})}}))},mediaError:function(t){var e=t.currentTarget.dataset.i,n=this.childs[e];if("video"==n.name||"audio"==n.name){var r=(this.ctrl[e]||0)+1;if(r>n.src.length&&(r=0),r<n.src.length)return this.$set(this.ctrl,e,r)}else"img"==n.name&&this.opts[2]&&this.$set(this.ctrl,e,-1);this.root&&this.root.$emit("error",{source:n.name,attrs:n.attrs,errMsg:t.detail.errMsg})}}};e.default=i}).call(this,n(2)["default"])},1073:function(t,e,n){"use strict";n.r(e);var r=n(1074),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},1074:function(t,e,n){},1075:function(t,e,n){"use strict";n.r(e);var r=n(1076);e["default"]=r["default"]},1076:function(t,e,n){"use strict";n.r(e),e["default"]=function(t){t.options.wxsCallMethods||(t.options.wxsCallMethods=[])}}}]);
//# sourceMappingURL=../../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-parse/node/node.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uni_modules/uview-ui/components/u-parse/node/node-create-component',
{
'uni_modules/uview-ui/components/u-parse/node/node-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('2')['createComponent'](__webpack_require__(1099))
__webpack_require__('2')['createComponent'](__webpack_require__(1068))
})
},
[['uni_modules/uview-ui/components/u-parse/node/node-create-component']]
@@ -1,10 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-parse/u-parse"],{719:function(n,e,t){"use strict";t.r(e);var i=t(720),r=t(722);for(var o in r)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(o);t(726);var c,u=t(46),s=Object(u["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);s.options.__file="uni_modules/uview-ui/components/u-parse/u-parse.vue",e["default"]=s.exports},720:function(n,e,t){"use strict";t.r(e);var i=t(721);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},721:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return o})),t.d(e,"components",(function(){return i}));var r=function(){var n=this,e=n.$createElement;n._self._c},o=!1,c=[];r._withStripped=!0},722:function(n,e,t){"use strict";t.r(e);var i=t(723),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(o);e["default"]=r.a},723:function(n,e,t){"use strict";(function(n){var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(t(724)),o=[],c=t(725),u=function(){t.e("uni_modules/uview-ui/components/u-parse/node/node").then(function(){return resolve(t(1099))}.bind(null,t)).catch(t.oe)},s={name:"mp-html",data:function(){return{nodes:[]}},mixins:[r.default],components:{node:u},watch:{content:function(n){this.setContent(n)}},created:function(){this.plugins=[];for(var n=o.length;n--;)this.plugins.push(new o[n](this))},mounted:function(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy:function(){this._hook("onDetached"),clearInterval(this._timer)},methods:{in:function(n,e,t){n&&e&&t&&(this._in={page:n,selector:e,scrollTop:t})},navigateTo:function(e,t){var i=this;return new Promise((function(r,o){if(!i.useAnchor)return o("Anchor is disabled");t=t||parseInt(i.useAnchor)||0;var c=" ";c=">>>";var u=n.createSelectorQuery().in(i._in?i._in.page:i).select((i._in?i._in.selector:"._root")+(e?"".concat(c,"#").concat(e):"")).boundingClientRect();i._in?u.select(i._in.selector).scrollOffset().select(i._in.selector).boundingClientRect():u.selectViewport().scrollOffset(),u.exec((function(e){if(!e[0])return o("Label not found");var c=e[1].scrollTop+e[0].top-(e[2]?e[2].top:0)+t;i._in?i._in.page[i._in.scrollTop]=c:n.pageScrollTo({scrollTop:c,duration:300}),r()}))}))},getText:function(){var n="";return function e(t){for(var i=0;i<t.length;i++){var r=t[i];if("text"==r.type)n+=r.text.replace(/&amp;/g,"&");else if("br"==r.name)n+="\n";else{var o="p"==r.name||"div"==r.name||"tr"==r.name||"li"==r.name||"h"==r.name[0]&&r.name[1]>"0"&&r.name[1]<"7";o&&n&&"\n"!=n[n.length-1]&&(n+="\n"),r.children&&e(r.children),o&&"\n"!=n[n.length-1]?n+="\n":"td"!=r.name&&"th"!=r.name||(n+="\t")}}}(this.nodes),n},getRect:function(){var e=this;return new Promise((function(t,i){n.createSelectorQuery().in(e).select("#_root").boundingClientRect().exec((function(n){return n[0]?t(n[0]):i("Root label not found")}))}))},setContent:function(n,e){var t=this;e&&this.imgList||(this.imgList=[]);var i,r=new c(this).parse(n);this.$set(this,"nodes",e?(this.nodes||[]).concat(r):r),this._videos=[],this.$nextTick((function(){t._hook("onLoad"),t.$emit("load")})),clearInterval(this._timer),this._timer=setInterval((function(){t.getRect().then((function(n){n.height==i&&(t.$emit("ready",n),clearInterval(t._timer)),i=n.height})).catch((function(){}))}),350)},_hook:function(n){for(var e=o.length;e--;)this.plugins[e][n]&&this.plugins[e][n]()}}};e.default=s}).call(this,t(2)["default"])},726:function(n,e,t){"use strict";t.r(e);var i=t(727),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(o);e["default"]=r.a},727:function(n,e,t){}}]);
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uview-ui/components/u-parse/u-parse"],{698:function(n,e,t){"use strict";t.r(e);var i=t(699),r=t(701);for(var o in r)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(o);t(705);var c,u=t(46),s=Object(u["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);s.options.__file="uni_modules/uview-ui/components/u-parse/u-parse.vue",e["default"]=s.exports},699:function(n,e,t){"use strict";t.r(e);var i=t(700);t.d(e,"render",(function(){return i["render"]})),t.d(e,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(e,"components",(function(){return i["components"]}))},700:function(n,e,t){"use strict";var i;t.r(e),t.d(e,"render",(function(){return r})),t.d(e,"staticRenderFns",(function(){return c})),t.d(e,"recyclableRender",(function(){return o})),t.d(e,"components",(function(){return i}));var r=function(){var n=this,e=n.$createElement;n._self._c},o=!1,c=[];r._withStripped=!0},701:function(n,e,t){"use strict";t.r(e);var i=t(702),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(o);e["default"]=r.a},702:function(n,e,t){"use strict";(function(n){var i=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(t(703)),o=[],c=t(704),u=function(){t.e("uni_modules/uview-ui/components/u-parse/node/node").then(function(){return resolve(t(1068))}.bind(null,t)).catch(t.oe)},s={name:"mp-html",data:function(){return{nodes:[]}},mixins:[r.default],components:{node:u},watch:{content:function(n){this.setContent(n)}},created:function(){this.plugins=[];for(var n=o.length;n--;)this.plugins.push(new o[n](this))},mounted:function(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy:function(){this._hook("onDetached"),clearInterval(this._timer)},methods:{in:function(n,e,t){n&&e&&t&&(this._in={page:n,selector:e,scrollTop:t})},navigateTo:function(e,t){var i=this;return new Promise((function(r,o){if(!i.useAnchor)return o("Anchor is disabled");t=t||parseInt(i.useAnchor)||0;var c=" ";c=">>>";var u=n.createSelectorQuery().in(i._in?i._in.page:i).select((i._in?i._in.selector:"._root")+(e?"".concat(c,"#").concat(e):"")).boundingClientRect();i._in?u.select(i._in.selector).scrollOffset().select(i._in.selector).boundingClientRect():u.selectViewport().scrollOffset(),u.exec((function(e){if(!e[0])return o("Label not found");var c=e[1].scrollTop+e[0].top-(e[2]?e[2].top:0)+t;i._in?i._in.page[i._in.scrollTop]=c:n.pageScrollTo({scrollTop:c,duration:300}),r()}))}))},getText:function(){var n="";return function e(t){for(var i=0;i<t.length;i++){var r=t[i];if("text"==r.type)n+=r.text.replace(/&amp;/g,"&");else if("br"==r.name)n+="\n";else{var o="p"==r.name||"div"==r.name||"tr"==r.name||"li"==r.name||"h"==r.name[0]&&r.name[1]>"0"&&r.name[1]<"7";o&&n&&"\n"!=n[n.length-1]&&(n+="\n"),r.children&&e(r.children),o&&"\n"!=n[n.length-1]?n+="\n":"td"!=r.name&&"th"!=r.name||(n+="\t")}}}(this.nodes),n},getRect:function(){var e=this;return new Promise((function(t,i){n.createSelectorQuery().in(e).select("#_root").boundingClientRect().exec((function(n){return n[0]?t(n[0]):i("Root label not found")}))}))},setContent:function(n,e){var t=this;e&&this.imgList||(this.imgList=[]);var i,r=new c(this).parse(n);this.$set(this,"nodes",e?(this.nodes||[]).concat(r):r),this._videos=[],this.$nextTick((function(){t._hook("onLoad"),t.$emit("load")})),clearInterval(this._timer),this._timer=setInterval((function(){t.getRect().then((function(n){n.height==i&&(t.$emit("ready",n),clearInterval(t._timer)),i=n.height})).catch((function(){}))}),350)},_hook:function(n){for(var e=o.length;e--;)this.plugins[e][n]&&this.plugins[e][n]()}}};e.default=s}).call(this,t(2)["default"])},705:function(n,e,t){"use strict";t.r(e);var i=t(706),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(o);e["default"]=r.a},706:function(n,e,t){}}]);
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uview-ui/components/u-parse/u-parse.js.map
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uni_modules/uview-ui/components/u-parse/u-parse-create-component',
{
'uni_modules/uview-ui/components/u-parse/u-parse-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('2')['createComponent'](__webpack_require__(719))
__webpack_require__('2')['createComponent'](__webpack_require__(698))
})
},
[['uni_modules/uview-ui/components/u-parse/u-parse-create-component']]