mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-12 05:54:54 +00:00
2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[65],{797:function(a,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return A}));var o,e,n,s=c(0),r=c(2),i=(c(9),c(6),c(8)),p=c(1),u=c(65),l=c.n(u),d=c(3),h=c.n(d),b=c(15),m=c(5),f=c.n(m),j=c(16),O=c.n(j),I=c(305),w=c(24),g=c(7),v=c(471),M=c(756),y=c(1079),C=c(1083),T=c(21),k=c(1056),R=c(1048);var A=Object(b.connect)((function(a,t){return{isAccount:!!a.getIn(["accounts",t.params.accountId]),accountIds:a.getIn(["user_lists","following",t.params.accountId,"items"]),hasMore:!!a.getIn(["user_lists","following",t.params.accountId,"next"])}}))((n=e=function(a){Object(i.a)(c,a);var t;t=c;function c(){for(var t,c=arguments.length,o=new Array(c),e=0;e<c;e++)o[e]=arguments[e];return t=a.call.apply(a,[this].concat(o))||this,Object(p.a)(Object(r.a)(t),"handleHeaderClick",(function(){t.column.scrollTop()})),Object(p.a)(Object(r.a)(t),"handleScroll",(function(a){var c=a.target;c.scrollTop===c.scrollHeight-c.clientHeight&&t.props.hasMore&&t.props.dispatch(Object(w.E)(t.props.params.accountId))})),Object(p.a)(Object(r.a)(t),"handleLoadMore",l()((function(){t.props.dispatch(Object(w.E)(t.props.params.accountId))}),300,{leading:!0})),Object(p.a)(Object(r.a)(t),"setRef",(function(a){t.column=a})),t}var o=c.prototype;return o.componentWillMount=function(){this.props.accountIds||(this.props.dispatch(Object(w.F)(this.props.params.accountId)),this.props.dispatch(Object(w.I)(this.props.params.accountId)))},o.componentWillReceiveProps=function(a){a.params.accountId!==this.props.params.accountId&&a.params.accountId&&(this.props.dispatch(Object(w.F)(a.params.accountId)),this.props.dispatch(Object(w.I)(a.params.accountId)))},o.render=function(){var a=this.props,t=a.accountIds,c=a.hasMore,o=a.isAccount,e=a.multiColumn;if(!o)return Object(s.a)(M.a,{},void 0,Object(s.a)(k.a,{}));if(!t)return Object(s.a)(M.a,{},void 0,Object(s.a)(I.a,{}));var n=Object(s.a)(g.b,{id:"account.follows.empty",defaultMessage:"This user doesn't follow anyone yet."});return(h.a.createElement(M.a,{ref:this.setRef},Object(s.a)(y.a,{onClick:this.handleHeaderClick,multiColumn:e}),Object(s.a)(R.a,{scrollKey:"following",hasMore:c,onLoadMore:this.handleLoadMore,prepend:Object(s.a)(C.a,{accountId:this.props.params.accountId,hideTabs:!0}),alwaysPrepend:!0,emptyMessage:n,bindToDocument:!e},void 0,t.map((function(a){return Object(s.a)(v.a,{id:a,withNote:!1},a)})))))},c}(T.a),Object(p.a)(e,"propTypes",{params:f.a.object.isRequired,dispatch:f.a.func.isRequired,accountIds:O.a.list,hasMore:f.a.bool,isAccount:f.a.bool,multiColumn:f.a.bool}),o=n))||o}}]);
|
|
//# sourceMappingURL=following.js.map
|