mirror of
https://github.com/Monibuca/plugin-ts.git
synced 2025-10-29 09:52:59 +08:00
2 lines
3.5 KiB
JavaScript
2 lines
3.5 KiB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["plugin-ts"]=e():t["plugin-ts"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({b3d5:function(t,e,n){"use strict";var r=n("ccbd"),o=n.n(r);o.a},ccbd:function(t,e,n){},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"layout"},[t._l(t.Streams,(function(e){return n("Badge",{key:e.StreamPath,staticClass:"room",attrs:{count:e.TsCount},nativeOn:{click:function(n){return t.publish(e)}}},[n("Icon",{attrs:{type:"ios-folder-open-outline",size:"100"}}),n("div",{staticClass:"size"},[t._v(t._s(t.unitFormat(e.TotalSize)))]),n("div",[t._v(t._s(e.StreamPath))])],1)})),0==t.Streams.length?n("div",{staticClass:"empty"},[n("Icon",{attrs:{type:"md-wine",size:"50"}}),t._v("没有任何文件夹 ")],1):t._e()],2)},i=[],s={data(){return{Streams:[]}},methods:{fetchlist(){this.ajax.getJSON(this.apiHost+"/ts/list").then(t=>{this.Streams=t})},publish(t){this.$confirm("是否发布该目录","提示").then(({result:e})=>{e&&this.ajax.getJSON(this.apiHost+"/ts/publish?streamPath="+t.StreamPath).then(()=>{this.$toast.success("已发布"+t.StreamPath)})})}},mounted(){this.fetchlist()}},a=s;n("b3d5");function u(t,e,n,r,o,i,s,a){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(c.functional){c._injectStyles=u;var f=c.render;c.render=function(t,e){return u.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:c}}var c=u(a,o,i,!1,null,"478276ba",null),f=c.exports;e["default"]=f}})["default"]}));
|
|
//# sourceMappingURL=plugin-ts.umd.min.js.map
|