X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=priv%2Fstatic%2Fpacks%2Ffeatures%2Fnotifications.js;h=419aeeaac1f1ceb3272a67797c5f59aafaf39528;hb=c3cfe87c60c1edf046cc4656e7a7704db65a9c85;hp=49f8289018e749c21fc76e8cd5231abe0b793b36;hpb=38f796a5c6f526c84c8e0cc2e838c453dd70802b;p=akkoma diff --git a/priv/static/packs/features/notifications.js b/priv/static/packs/features/notifications.js index 49f828901..419aeeaac 100644 --- a/priv/static/packs/features/notifications.js +++ b/priv/static/packs/features/notifications.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{808:function(t,e,i){"use strict";i.r(e);var o,a,n,s,c,l,r,d,u,f,b=i(0),h=i(2),g=i(7),p=i(1),O=i(62),j=i.n(O),v=i(3),m=i.n(v),_=i(13),M=i(736),w=i(733),C=i(53),y=i(250),P=i(206),k=i(14),N=i.n(k),x=i(6),I=i(295),q=i(5),S=i.n(q),F=i(18),R=i(20),W=i(1053),H=i(1026),T=i(111),D=i(118),L=i(294),B=i(50),U=Object(x.f)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}}),A=Object(x.g)((n=a=function(t){function e(){return t.apply(this,arguments)||this}return Object(g.a)(e,t),e.prototype.render=function(){var t=this.props,e=t.intl,i=t.hidden,o=t.account,a=t.onAuthorize,n=t.onReject;return o?i?Object(b.a)(v.Fragment,{},void 0,o.get("display_name"),o.get("username")):Object(b.a)("div",{className:"account"},void 0,Object(b.a)("div",{className:"account__wrapper"},void 0,Object(b.a)(L.a,{className:"account__display-name",title:o.get("acct"),href:o.get("url"),to:"/accounts/"+o.get("id")},o.get("id"),Object(b.a)("div",{className:"account__avatar-wrapper"},void 0,Object(b.a)(T.a,{account:o,size:36})),Object(b.a)(D.a,{account:o})),Object(b.a)("div",{className:"account__relationship"},void 0,Object(b.a)(B.a,{title:e.formatMessage(U.authorize),icon:"check",onClick:a}),Object(b.a)(B.a,{title:e.formatMessage(U.reject),icon:"times",onClick:n})))):Object(b.a)("div",{})},e}(F.a),Object(p.a)(a,"propTypes",{account:N.a.map.isRequired,onAuthorize:S.a.func.isRequired,onReject:S.a.func.isRequired,intl:S.a.object.isRequired}),o=n))||o,z=i(25),K=Object(_.connect)((function(){var t=Object(P.d)();return function(e,i){return{account:t(e,i.id)}}}),(function(t,e){var i=e.id;return{onAuthorize:function(){t(Object(z.v)(i))},onReject:function(){t(Object(z.I)(i))}}}))(A),Y=i(26),G=Object(x.f)({favourite:{id:"notification.favourite",defaultMessage:"{name} favourited your status"},follow:{id:"notification.follow",defaultMessage:"{name} followed you"},ownPoll:{id:"notification.own_poll",defaultMessage:"Your poll has ended"},poll:{id:"notification.poll",defaultMessage:"A poll you have voted in has ended"},reblog:{id:"notification.reblog",defaultMessage:"{name} boosted your status"}}),J=function(t,e,i){var o=[e];return o.push(t.formatDate(i,{hour:"2-digit",minute:"2-digit",month:"short",day:"numeric"})),o.join(", ")},V=Object(x.g)((l=c=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;a0||t.getIn(["notifications","pendingItems"]).size>0,hasMore:t.getIn(["notifications","hasMore"]),numPending:t.getIn(["notifications","pendingItems"],Object(ut.List)()).size}}))(d=Object(x.g)((f=u=function(t){function e(){for(var e,i=arguments.length,o=new Array(i),a=0;ao.offsetTop?o.scrollIntoView(!0):!e&&i.scrollTop+i.clientHeight0||r?o.map((function(e,i){return null===e?Object(b.a)(bt.a,{disabled:n,maxId:i>0?o.getIn([i-1,"id"]):null,onClick:t.handleLoadGap},"gap:"+o.getIn([i+1,"id"])):Object(b.a)($,{notification:e,accountId:e.get("account"),onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e.get("id"))})):null,this.scrollableContent=g;var O=Object(b.a)(ft.a,{scrollKey:"notifications-"+c,trackScroll:!f,isLoading:n,showLoading:n&&0===o.size,hasMore:r,numPending:d,emptyMessage:h,onLoadMore:this.handleLoadOlder,onLoadPending:this.handleLoadPending,onScrollToTop:this.handleScrollToTop,onScroll:this.handleScroll,shouldUpdateScroll:a,bindToDocument:!l},void 0,g);return m.a.createElement(M.a,{bindToDocument:!l,ref:this.setColumnRef,label:i.formatMessage(ht.title)},Object(b.a)(w.a,{icon:"bell",active:s,title:i.formatMessage(ht.title),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:f,multiColumn:l},void 0,Object(b.a)(st,{})),p,O)},e}(m.a.PureComponent),Object(p.a)(u,"defaultProps",{trackScroll:!0}),d=f))||d)||d}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[42],{834:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return pt}));var o,a,n,s=i(0),c=i(2),l=(i(9),i(6),i(8)),r=i(1),d=i(65),u=i.n(d),f=i(3),b=i.n(f),h=i(15),g=i(762),p=i(759),O=i(55),j=i(253),v=i(210),m=i(16),_=i.n(m),M=i(7),w=i(301),C=i(5),y=i.n(C),P=i(21),k=i(22),N=i(1080),x=i(1053),I=i(115),q=i(122),S=i(300),F=i(53);var R,W,H,T=Object(M.f)({authorize:{id:"follow_request.authorize",defaultMessage:"Authorize"},reject:{id:"follow_request.reject",defaultMessage:"Reject"}}),D=Object(M.g)((n=a=function(t){Object(l.a)(i,t);var e;e=i;function i(){return t.apply(this,arguments)||this}return i.prototype.render=function(){var t=this.props,e=t.intl,i=t.hidden,o=t.account,a=t.onAuthorize,n=t.onReject;return o?i?Object(s.a)(f.Fragment,{},void 0,o.get("display_name"),o.get("username")):Object(s.a)("div",{className:"account"},void 0,Object(s.a)("div",{className:"account__wrapper"},void 0,Object(s.a)(S.a,{className:"account__display-name",title:o.get("acct"),href:o.get("url"),to:"/accounts/"+o.get("id")},o.get("id"),Object(s.a)("div",{className:"account__avatar-wrapper"},void 0,Object(s.a)(I.a,{account:o,size:36})),Object(s.a)(q.a,{account:o})),Object(s.a)("div",{className:"account__relationship"},void 0,Object(s.a)(F.a,{title:e.formatMessage(T.authorize),icon:"check",onClick:a}),Object(s.a)(F.a,{title:e.formatMessage(T.reject),icon:"times",onClick:n})))):Object(s.a)("div",{})},i}(P.a),Object(r.a)(a,"propTypes",{account:_.a.map.isRequired,onAuthorize:y.a.func.isRequired,onReject:y.a.func.isRequired,intl:y.a.object.isRequired}),o=n))||o,L=i(26),B=Object(h.connect)((function(){var t=Object(v.d)();return function(e,i){return{account:t(e,i.id)}}}),(function(t,e){var i=e.id;return{onAuthorize:function(){t(Object(L.v)(i))},onReject:function(){t(Object(L.I)(i))}}}))(D),U=i(27);var A=Object(M.f)({favourite:{id:"notification.favourite",defaultMessage:"{name} favourited your status"},follow:{id:"notification.follow",defaultMessage:"{name} followed you"},ownPoll:{id:"notification.own_poll",defaultMessage:"Your poll has ended"},poll:{id:"notification.poll",defaultMessage:"A poll you have voted in has ended"},reblog:{id:"notification.reblog",defaultMessage:"{name} boosted your status"}}),z=function(t,e,i){var o=[e];return o.push(t.formatDate(i,{hour:"2-digit",minute:"2-digit",month:"short",day:"numeric"})),o.join(", ")},K=Object(M.g)((H=W=function(t){Object(l.a)(i,t);var e;e=i;function i(){for(var e,i=arguments.length,o=new Array(i),a=0;a0||t.getIn(["notifications","pendingItems"]).size>0,hasMore:t.getIn(["notifications","hasMore"]),numPending:t.getIn(["notifications","pendingItems"],Object(ut.List)()).size}}))(at=Object(M.g)((st=nt=function(t){Object(l.a)(i,t);var e;e=i;function i(){for(var e,i=arguments.length,o=new Array(i),a=0;ao.offsetTop?o.scrollIntoView(!0):!e&&i.scrollTop+i.clientHeight0||d?o.map((function(e,i){return null===e?Object(s.a)(bt.a,{disabled:n,maxId:i>0?o.getIn([i-1,"id"]):null,onClick:t.handleLoadGap},"gap:"+o.getIn([i+1,"id"])):Object(s.a)(E,{notification:e,accountId:e.get("account"),onMoveUp:t.handleMoveUp,onMoveDown:t.handleMoveDown},e.get("id"))})):null,this.scrollableContent=j;var m=Object(s.a)(ft.a,{scrollKey:"notifications-"+l,trackScroll:!h,isLoading:n,showLoading:n&&0===o.size,hasMore:d,numPending:u,emptyMessage:O,onLoadMore:this.handleLoadOlder,onLoadPending:this.handleLoadPending,onScrollToTop:this.handleScrollToTop,onScroll:this.handleScroll,shouldUpdateScroll:a,bindToDocument:!r},void 0,j);return(b.a.createElement(g.a,{bindToDocument:!r,ref:this.setColumnRef,label:i.formatMessage(ht.title)},Object(s.a)(p.a,{icon:"bell",active:c,title:i.formatMessage(ht.title),onPin:this.handlePin,onMove:this.handleMove,onClick:this.handleHeaderClick,pinned:h,multiColumn:r},void 0,Object(s.a)(ot,{})),v,m))},i}(b.a.PureComponent),Object(r.a)(nt,"defaultProps",{trackScroll:!0}),at=st))||at)||at}}]); //# sourceMappingURL=notifications.js.map \ No newline at end of file