pixelfed/public/js/components.js

1 line
415 KiB
JavaScript
Raw Normal View History

2018-11-27 08:58:39 +00:00
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},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=2)}({"+d1y":function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[n("section",{staticClass:"mb-5 section-people"},[n("p",{staticClass:"lead text-muted font-weight-bold mb-0"},[t._v("Discover People")]),t._v(" "),t._m(0),t._v(" "),n("div",{staticClass:"row d-none"},t._l(t.people,function(e){return n("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3"},[n("div",{staticClass:"card card-md-border-0"},[n("div",{staticClass:"card-body p-4 text-center"},[n("div",{staticClass:"avatar pb-3"},[n("a",{attrs:{href:e.url}},[n("img",{staticClass:"img-thumbnail rounded-circle",attrs:{src:e.avatar,width:"64px"}})])]),t._v(" "),n("p",{staticClass:"lead font-weight-bold mb-0 text-truncate"},[n("a",{staticClass:"text-dark",attrs:{href:e.url}},[t._v(t._s(e.username))])]),t._v(" "),n("p",{staticClass:"text-muted text-truncate"},[t._v(t._s(e.name))]),t._v(" "),n("button",{staticClass:"btn btn-primary font-weight-bold px-4 py-0",on:{click:function(n){t.followUser(e.id,n)}}},[t._v("Follow")])])])])}))]),t._v(" "),n("section",{staticClass:"mb-5 section-explore"},[n("p",{staticClass:"lead text-muted font-weight-bold mb-0"},[t._v("Explore")]),t._v(" "),n("div",{staticClass:"profile-timeline"},[t._m(1),t._v(" "),n("div",{staticClass:"row d-none"},t._l(t.posts,function(t){return n("div",{staticClass:"col-4 p-0 p-sm-2 p-md-3"},[n("a",{staticClass:"card info-overlay card-md-border-0",attrs:{href:t.url}},[n("div",{staticClass:"square filter_class"},[n("div",{staticClass:"square-content",style:{"background-image":"url("+t.thumb+")"}})])])])}))])]),t._v(" "),t._m(2)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loader text-center"},[e("div",{staticClass:"lds-ring"},[e("div"),e("div"),e("div"),e("div")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loader text-center"},[e("div",{staticClass:"lds-ring"},[e("div"),e("div"),e("div"),e("div")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("section",{staticClass:"mb-5"},[e("p",{staticClass:"lead text-center"},[this._v("To view more posts, check the "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/"}},[this._v("home")]),this._v(" or "),e("a",{staticClass:"font-weight-bold",attrs:{href:"/timeline/public"}},[this._v("local")]),this._v(" timelines.")])])}]}},"/7en":function(t,e,n){var i,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(i=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.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 i=n.indexOf(e);return-1!=i&&n.splice(i,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 i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var o=n[r];i&&i[o]&&(this.off(t,o),delete i[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?i.call(e,n,e,t):i)||(t.exports=r)},"/WdB":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{people:{},posts:{},trending:{}}},mounted:function(){this.slowTimeout(),this.fetchData()},methods:{followUser:function(t,e){axios.post("/i/follow",{item:t}).then(function(t){var n=$(e.target);n.addClass("btn-outline-secondary").removeCl