X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Fstatic%2Fpacks%2Ffeatures%2Faccount_gallery.js;h=ab6adec936716fc021778d6a84e188c7c529b085;hb=726b131b0a675a1116e579e0c1adbed8e5a1a856;hp=08176bb53644c106c0a0fe68a0454488f1a5a99f;hpb=62a2287bba87932339321dae944408781387fa2c;p=akkoma diff --git a/priv/static/packs/features/account_gallery.js b/priv/static/packs/features/account_gallery.js index 08176bb53..ab6adec93 100644 --- a/priv/static/packs/features/account_gallery.js +++ b/priv/static/packs/features/account_gallery.js @@ -1,2 +1,2 @@ -webpackJsonp([16],{149:function(e,t,o){"use strict";o.d(t,"a",function(){return m});var n,a,i=o(2),s=o.n(i),c=o(1),r=o.n(c),l=o(3),u=o.n(l),d=o(4),p=o.n(d),f=o(0),g=o.n(f),h=o(6),m=(a=n=function(e){function t(){return r()(this,t),u()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,o=e.visible;return s()("button",{className:"load-more",disabled:t||!o,style:{visibility:o?"visible":"hidden"},onClick:this.props.onClick},void 0,s()(h.b,{id:"status.load_more",defaultMessage:"Load more"}))},t}(g.a.PureComponent),n.defaultProps={visible:!0},a)},150:function(e,t,o){"use strict";o.d(t,"a",function(){return h});var n=o(2),a=o.n(n),i=o(1),s=o.n(i),c=o(3),r=o.n(c),l=o(4),u=o.n(l),d=o(0),p=o.n(d),f=o(10),g=o.n(f),h=function(e){function t(){var o,n,a;s()(this,t);for(var i=arguments.length,c=Array(i),l=0;lt.scrollHeight-o-t.clientHeight&&!n.props.isLoading&&n.handleScrollToBottom()},n.handleLoadMore=function(e){n.props.dispatch(Object(I.k)(n.props.params.accountId,{maxId:e}))},n.handleLoadOlder=function(e){e.preventDefault(),n.handleScrollToBottom()},a=o,g()(n,a)}return m()(t,e),t.prototype.componentDidMount=function(){this.props.dispatch(Object(w.u)(this.props.params.accountId)),this.props.dispatch(Object(I.k)(this.props.params.accountId))},t.prototype.componentWillReceiveProps=function(e){e.params.accountId!==this.props.params.accountId&&e.params.accountId&&(this.props.dispatch(Object(w.u)(e.params.accountId)),this.props.dispatch(Object(I.k)(this.props.params.accountId)))},t.prototype.render=function(){var e=this.props,t=e.medias,o=e.isLoading,n=e.hasMore,a=null;return!t&&o?u()(O.a,{},void 0,u()(N.a,{})):(!o&&t.size>0&&n&&(a=u()(B.a,{onClick:this.handleLoadOlder})),u()(O.a,{},void 0,u()(j.a,{}),u()(x.a,{scrollKey:"account_gallery"},void 0,u()("div",{className:"scrollable",onScroll:this.handleScroll},void 0,u()(S.a,{accountId:this.props.params.accountId}),u()("div",{className:"account-gallery__container"},void 0,t.map(function(e,o){return null===e?u()(L,{maxId:o>0?t.getIn(o-1,"id"):null},"more:"+t.getIn(o+1,"id")):u()(q.a,{media:e},e.get("id"))}),a)))))},t}(R.a),c.propTypes={params:k.a.object.isRequired,dispatch:k.a.func.isRequired,medias:M.a.list.isRequired,isLoading:k.a.bool,hasMore:k.a.bool},s=r))||s},843:function(e,t,o){"use strict";var n=o(2),a=o.n(n),i=o(0),s=(o.n(i),o(6)),c=function(){return a()("div",{className:"regeneration-indicator missing-indicator"},void 0,a()("div",{},void 0,a()("div",{className:"regeneration-indicator__label"},void 0,a()(s.b,{id:"missing_indicator.label",tagName:"strong",defaultMessage:"Not found"}),a()(s.b,{id:"missing_indicator.sublabel",defaultMessage:"This resource could not be found"}))))};t.a=c},844:function(e,t,o){"use strict";var n=o(2),a=o.n(n),i=o(0),s=(o.n(i),o(9)),c=o(67),r=o(845),l=o(22),u=o(18),d=o(283),p=o(26),f=o(6),g=o(12),h=Object(f.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"}}),m=function(){var e=Object(c.c)();return function(t,o){var n=o.accountId;return{account:e(t,n)}}},v=function(e,t){var o=t.intl;return{onFollow:function(t){e(t.getIn(["relationship","following"])||t.getIn(["relationship","requested"])?g.j?Object(p.d)("CONFIRM",{message:a()(f.b,{id:"confirmations.unfollow.message",defaultMessage:"Are you sure you want to unfollow {name}?",values:{name:a()("strong",{},void 0,"@",t.get("acct"))}}),confirm:o.formatMessage(h.unfollowConfirm),onConfirm:function(){return e(Object(l.D)(t.get("id")))}}):Object(l.D)(t.get("id")):Object(l.z)(t.get("id")))},onBlock:function(t){e(t.getIn(["relationship","blocking"])?Object(l.C)(t.get("id")):Object(p.d)("CONFIRM",{message:a()(f.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:a()("strong",{},void 0,"@",t.get("acct"))}}),confirm:o.formatMessage(h.blockConfirm),onConfirm:function(){return e(Object(l.q)(t.get("id")))}}))},onMention:function(t,o){e(Object(u.R)(t,o))},onDirect:function(t,o){e(Object(u.N)(t,o))},onReblogToggle:function(t){e(t.getIn(["relationship","showing_reblogs"])?Object(l.z)(t.get("id"),!1):Object(l.z)(t.get("id"),!0))},onMute:function(t){e(t.getIn(["relationship","muting"])?Object(l.E)(t.get("id")):Object(d.a)(t))}}};t.a=Object(f.g)(Object(s.connect)(m,v)(r.a))},845:function(e,t,o){"use strict";o.d(t,"a",function(){return O});var n,a,i=o(2),s=o.n(i),c=o(1),r=o.n(c),l=o(3),u=o.n(l),d=o(4),p=o.n(d),f=o(0),g=(o.n(f),o(13)),h=o.n(g),m=o(5),v=o.n(m),b=o(846),_=o(847),M=o(843),y=o(11),k=o.n(y),w=o(848),I=o(6),N=o(45),O=(a=n=function(e){function t(){var o,n,a;r()(this,t);for(var i=arguments.length,s=Array(i),c=0;co.scrollHeight-t-o.clientHeight&&!n.props.isLoading&&n.handleScrollToBottom()},n.handleLoadMore=function(e){n.props.dispatch(Object(I.k)(n.props.params.accountId,{maxId:e}))},n.handleLoadOlder=function(e){e.preventDefault(),n.handleScrollToBottom()},a=t,m()(n,a)}return h()(o,e),o.prototype.componentDidMount=function(){this.props.dispatch(Object(w.u)(this.props.params.accountId)),this.props.dispatch(Object(I.k)(this.props.params.accountId))},o.prototype.componentWillReceiveProps=function(e){e.params.accountId!==this.props.params.accountId&&e.params.accountId&&(this.props.dispatch(Object(w.u)(e.params.accountId)),this.props.dispatch(Object(I.k)(this.props.params.accountId)))},o.prototype.render=function(){var e=this.props,o=e.medias,t=e.isLoading,n=e.hasMore,a=null;return!o&&t?u()(O.a,{},void 0,u()(N.a,{})):(!t&&o.size>0&&n&&(a=u()(B.a,{onClick:this.handleLoadOlder})),u()(O.a,{},void 0,u()(R.a,{}),u()(q.a,{scrollKey:"account_gallery"},void 0,u()("div",{className:"scrollable",onScroll:this.handleScroll},void 0,u()(x.a,{accountId:this.props.params.accountId}),u()("div",{className:"account-gallery__container"},void 0,o.map(function(e,t){return null===e?u()(H,{maxId:t>0?o.getIn(t-1,"id"):null},"more:"+o.getIn(t+1,"id")):u()(T.a,{media:e},e.get("id"))}),a)))))},o}(C.a),c.propTypes={params:y.a.object.isRequired,dispatch:y.a.func.isRequired,medias:M.a.list.isRequired,isLoading:y.a.bool,hasMore:y.a.bool},s=r))||s},881:function(e,o,t){"use strict";var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(7)),c=function(){return a()("div",{className:"regeneration-indicator missing-indicator"},void 0,a()("div",{},void 0,a()("div",{className:"regeneration-indicator__figure"}),a()("div",{className:"regeneration-indicator__label"},void 0,a()(s.b,{id:"missing_indicator.label",tagName:"strong",defaultMessage:"Not found"}),a()(s.b,{id:"missing_indicator.sublabel",defaultMessage:"This resource could not be found"}))))};o.a=c},887:function(e,o,t){"use strict";var n=t(2),a=t.n(n),i=t(0),s=(t.n(i),t(9)),c=t(68),r=t(888),l=t(22),u=t(17),d=t(89),p=t(155),f=t(26),m=t(158),g=t(7),h=t(13),v=Object(g.f)({unfollowConfirm:{id:"confirmations.unfollow.confirm",defaultMessage:"Unfollow"},blockConfirm:{id:"confirmations.block.confirm",defaultMessage:"Block"},blockDomainConfirm:{id:"confirmations.domain_block.confirm",defaultMessage:"Hide entire domain"}}),b=function(){var e=Object(c.c)();return function(o,t){var n=t.accountId;return{account:e(o,n)}}},_=function(e,o){var t=o.intl;return{onFollow:function(o){e(o.getIn(["relationship","following"])||o.getIn(["relationship","requested"])?h.j?Object(f.d)("CONFIRM",{message:a()(g.b,{id:"confirmations.unfollow.message",defaultMessage:"Are you sure you want to unfollow {name}?",values:{name:a()("strong",{},void 0,"@",o.get("acct"))}}),confirm:t.formatMessage(v.unfollowConfirm),onConfirm:function(){return e(Object(l.D)(o.get("id")))}}):Object(l.D)(o.get("id")):Object(l.z)(o.get("id")))},onBlock:function(o){e(o.getIn(["relationship","blocking"])?Object(l.C)(o.get("id")):Object(f.d)("CONFIRM",{message:a()(g.b,{id:"confirmations.block.message",defaultMessage:"Are you sure you want to block {name}?",values:{name:a()("strong",{},void 0,"@",o.get("acct"))}}),confirm:t.formatMessage(v.blockConfirm),onConfirm:function(){return e(Object(l.q)(o.get("id")))}}))},onMention:function(o,t){e(Object(u.R)(o,t))},onDirect:function(o,t){e(Object(u.N)(o,t))},onReblogToggle:function(o){e(o.getIn(["relationship","showing_reblogs"])?Object(l.z)(o.get("id"),!1):Object(l.z)(o.get("id"),!0))},onReport:function(o){e(Object(p.k)(o))},onMute:function(o){e(o.getIn(["relationship","muting"])?Object(l.E)(o.get("id")):Object(d.g)(o))},onBlockDomain:function(o){e(Object(f.d)("CONFIRM",{message:a()(g.b,{id:"confirmations.domain_block.message",defaultMessage:"Are you really, really sure you want to block the entire {domain}? In most cases a few targeted blocks or mutes are sufficient and preferable.",values:{domain:a()("strong",{},void 0,o)}}),confirm:t.formatMessage(v.blockDomainConfirm),onConfirm:function(){return e(Object(m.e)(o))}}))},onUnblockDomain:function(o){e(Object(m.h)(o))}}};o.a=Object(g.g)(Object(s.connect)(b,_)(r.a))},888:function(e,o,t){"use strict";t.d(o,"a",function(){return O});var n,a,i=t(2),s=t.n(i),c=t(1),r=t.n(c),l=t(3),u=t.n(l),d=t(4),p=t.n(d),f=t(0),m=(t.n(f),t(14)),g=t.n(m),h=t(5),v=t.n(h),b=t(889),_=t(890),M=t(881),k=t(12),y=t.n(k),w=t(891),I=t(7),N=t(44),O=(a=n=function(e){function o(){var t,n,a;r()(this,o);for(var i=arguments.length,s=Array(i),c=0;c0&&l()("div",{className:"account__header__fields"},void 0,u.map(function(e,o){return l()("dl",{},o,l()("dt",{dangerouslySetInnerHTML:{__html:e.get("name_emojified")},title:e.get("name")}),l()("dd",{dangerouslySetInnerHTML:{__html:e.get("value_emojified")},title:e.get("value_plain")}))})),n,a,i))},o}(R.a),s.propTypes={account:b.a.map,onFollow:M.a.func.isRequired,onBlock:M.a.func.isRequired,intl:M.a.object.isRequired},i=c))||i},890:function(e,o,t){"use strict";t.d(o,"a",function(){return _});var n,a=t(2),i=t.n(a),s=t(1),c=t.n(s),r=t(3),l=t.n(r),u=t(4),d=t.n(u),p=t(0),f=t.n(p),m=t(300),g=t(44),h=t(7),v=t(13),b=Object(h.f)({mention:{id:"account.mention",defaultMessage:"Mention @{name}"},direct:{id:"account.direct",defaultMessage:"Direct message @{name}"},edit_profile:{id:"account.edit_profile",defaultMessage:"Edit profile"},unblock:{id:"account.unblock",defaultMessage:"Unblock @{name}"},unfollow:{id:"account.unfollow",defaultMessage:"Unfollow"},unmute:{id:"account.unmute",defaultMessage:"Unmute @{name}"},block:{id:"account.block",defaultMessage:"Block @{name}"},mute:{id:"account.mute",defaultMessage:"Mute @{name}"},follow:{id:"account.follow",defaultMessage:"Follow"},report:{id:"account.report",defaultMessage:"Report @{name}"},share:{id:"account.share",defaultMessage:"Share @{name}'s profile"},media:{id:"account.media",defaultMessage:"Media"},blockDomain:{id:"account.block_domain",defaultMessage:"Hide everything from {domain}"},unblockDomain:{id:"account.unblock_domain",defaultMessage:"Unhide {domain}"},hideReblogs:{id:"account.hide_reblogs",defaultMessage:"Hide boosts from @{name}"},showReblogs:{id:"account.show_reblogs",defaultMessage:"Show boosts from @{name}"}}),_=Object(h.g)(n=function(e){function o(){var t,n,a;c()(this,o);for(var i=arguments.length,s=Array(i),r=0;r