pixelfed/public/js/app.js

1 line
646 KiB
JavaScript
Raw Normal View History

2018-10-22 01:50:40 +00:00
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get: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=0)}({"/7en":function(t,e,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},r=n[t]=n[t]||[];return-1==r.indexOf(e)&&r.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var r=n.indexOf(e);return-1!=r&&n.splice(r,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var r=this._onceEvents&&this._onceEvents[t],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(t,o),delete r[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?r.call(e,n,e,t):r)||(t.exports=i)},0:function(t,e,n){n("sV/x"),t.exports=n("xZZD")},"1/oy":function(t,e,n){var r=n("eAYY");"string"==typeof r&&(r=[[t.i,r,""]]);var i={transform:void 0};n("MTIv")(r,i);r.locals&&(t.exports=r.locals)},"162o":function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n("mypn"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n("DuR2"))},"1FoU":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._m(0),t._v(" "),n("div",{staticClass:"cwrapper d-none"},[n("p",{staticClass:"mb-1 text-center load-more-link"},[n("a",{staticClass:"text-muted",attrs:{href:"#"},on:{click:t.loadMore}},[t._v("Load more comments")])]),t._v(" "),n("div",{staticClass:"comments",attrs:{"data-min-id":"0","data-max-id":"0"}},t._l(t.results,function(e,r){return n("p",{key:e.id,staticClass:"mb-0 d-flex justify-content-between align-items-center",attrs:{"data-id":e.id}},[n("span",{staticClass:"pr-3"},[n("span",{staticClass:"font-weight-bold pr-1"},[n("bdi",[n("a",{staticClass:"text-dark",attrs:{href:e.account.url}},[t._v(t._s(e.account.username))])])]),t._v(" "),n("span",{staticClass:"comment-text",domProps:{innerHTML:t._s(e.content)}})]),t._v(" "),n("b-dropdown",{staticClass:"float-right",attrs:{id:e.uri,variant:"link","no-caret":""}},[n("template",{slot:"button-content"},[n("i",{staticClass:"fas fa-ellipsis-v text-muted"}),n("span",{staticClass:"sr-only"},[t._v("Options")])]),t._v(" "),n("b-dropdown-item",{staticClass:"font-weight-bold",on:{click:function(n){t.reply(e)}}},[t._v("Reply")]),t._v(" "),n("b-dropdown-item",{staticClass:"font-weight-bold",attrs:{href:e.url}},[t._v("Permalink")]),t._v(" "),n("b-dropdown-item",{staticClass:"font-weight-bold",on:{click:function(n){t.embed(e)}}},[t._v("Embed")]),t._v(" "),n("b-dropdown-item",{staticClass:"font-weight-bold",attrs