pleroma/priv/static/packs/features/list_editor.js

2 lines
5.2 KiB
JavaScript
Raw Normal View History

Bring mastofe up to date Commit https://git.pleroma.social/tyge/mastofe/commit/5edce2030238293463c041537da4aaeea5cb3875 summary: ``` * 5edce203 - (4 minutes ago) Merge branch 'master' of github.com:tootsuite/mastodon - Morgan Bazalgette (HEAD -> master, origin/master, origin/HEAD) |\ | * 2c51bc0c - (4 hours ago) Add missing rejection handling for Promises (#7008) - unarist (upstream/master) | * e7a17167 - (5 hours ago) Implement the ability for an Administrator or Moderator to remove an account avatar (#6998) - Emelia Smith | * 4fd71acc - (5 hours ago) Fix issues with sending direct messages from user profile (#6999) - Emelia Smith | * 3f51c6ef - (5 hours ago) Weblate translations (2018-04-02) (#7007) - Yamagishi Kazutoshi | * b04f73ce - (6 hours ago) Russian language updated (#7005) - Evgeny Petrov | * 24611d8d - (6 hours ago) i18n: update zh-HK translation (#7004) - luzi82 | * f890d2a7 - (16 hours ago) Support all ActivityPub actor types (#6997) - Eugen Rochko | * 33513753 - (16 hours ago) Fix unpermitted parameters warning when generating pagination URLs (#6995) - Eugen Rochko | * 123a343d - (19 hours ago) [WIP] Enable custom emoji on account pages and in the sidebar (#6124) - David Underwood | * f464f98f - (19 hours ago) Update Ruby to version 2.4.4 (#6964) - Yamagishi Kazutoshi | * 6a895e1a - (20 hours ago) Fix: Prevent submission using same logic as submit button disabling. (#6993) - Emelia Smith * | 011eda08 - (7 minutes ago) Properly cache requests using service workers - Morgan Bazalgette * | 8dd77f17 - (5 hours ago) Fix build - Morgan Bazalgette * | 99373236 - (19 hours ago) Add build status - Morgan Bazalgette * | b448a3a5 - (19 hours ago) Update README - Morgan Bazalgette * | 68fd7ee6 - (20 hours ago) Fix statuses embedded in like/boost notifs being white - Morgan Bazalgette * | 7a9212df - (21 hours ago) Temporary workaround to only show related statuses - Morgan Bazalgette * | 00bd10fa - (26 hours ago) Merge branch 'master' of github.com:tootsuite/mastodon - Morgan Bazalgette |\ \ | |/ | * 993ce0e5 - (28 hours ago) improve zh-HK localization by referring zh-TW and zh-CN (#6988) - luzi82 * | 05832497 - (30 hours ago) Merge branch 'master' of github.com:tootsuite/mastodon - Morgan Bazalgette \ \ |/ * 929f58f1 - (32 hours ago) i18n: Update Polish translation (#6985) - Marcin Mikołajczak ```
2018-04-02 16:31:57 +00:00
webpackJsonp([24],{824:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),t.d(n,"default",function(){return x});var a,i,o,r,c=t(2),s=t.n(c),u=t(1),d=t.n(u),l=t(3),p=t.n(l),f=t(4),v=t.n(f),h=t(0),m=(t.n(h),t(5)),b=t.n(m),g=t(13),_=t.n(g),y=t(9),I=t(12),j=t.n(I),R=t(6),C=t(300),O=t(970),N=t(971),q=t(28),M=t(27),w=t.n(M),k=function(e){return{title:e.getIn(["listEditor","title"]),accountIds:e.getIn(["listEditor","accounts","items"]),searchAccountIds:e.getIn(["listEditor","suggestions","items"])}},A=function(e){return{onInitialize:function(n){return e(Object(C.z)(n))},onClear:function(){return e(Object(C.t)())},onReset:function(){return e(Object(C.y)())}}},x=(a=Object(y.connect)(k,A))(i=Object(R.g)((r=o=function(e){function n(){return d()(this,n),p()(this,e.apply(this,arguments))}return v()(n,e),n.prototype.componentDidMount=function(){var e=this.props;(0,e.onInitialize)(e.listId)},n.prototype.componentWillUnmount=function(){(0,this.props.onReset)()},n.prototype.render=function(){var e=this.props,n=e.title,t=e.accountIds,a=e.searchAccountIds,i=e.onClear,o=a.size>0;return s()("div",{className:"modal-root__modal list-editor"},void 0,s()("h4",{},void 0,n),s()(N.a,{}),s()("div",{className:"drawer__pager"},void 0,s()("div",{className:"drawer__inner list-editor__accounts"},void 0,t.map(function(e){return s()(O.a,{accountId:e,added:!0},e)})),o&&s()("div",{role:"button",tabIndex:"-1",className:"drawer__backdrop",onClick:i}),s()(q.a,{defaultStyle:{x:-100},style:{x:w()(o?0:-100,{stiffness:210,damping:20})}},void 0,function(e){var n=e.x;return s()("div",{className:"drawer__inner backdrop",style:{transform:0===n?null:"translateX("+n+"%)",visibility:-100===n?"hidden":"visible"}},void 0,a.map(function(e){return s()(O.a,{accountId:e},e)}))})))},n}(j.a),o.propTypes={listId:b.a.string.isRequired,onClose:b.a.func.isRequired,intl:b.a.object.isRequired,onInitialize:b.a.func.isRequired,onClear:b.a.func.isRequired,onReset:b.a.func.isRequired,title:b.a.string.isRequired,accountIds:_.a.list.isRequired,searchAccountIds:_.a.list.isRequired},i=r))||i)||i},970:function(e,n,t){"use strict";t.d(n,"a",function(){return x});var a,i,o,r,c=t(2),s=t.n(c),u=t(1),d=t.n(u),l=t(3),p=t.n(l),f=t(4),v=t.n(f),h=t(0),m=(t.n(h),t(5)),b=t.n(m),g=t(9),_=t(67),y=t(12),I=t.n(y),j=t(13),R=t.n(j),C=t(57),O=t(56),N=t(23),q=t(6),M=t(300),w=Object(q.f)({remove:{id:"lists.account.remove",defaultMessage:"Remove from list"},add:{id:"lists.account.add",defaultMessage:"Add to list"}}),k=function(){var e=Object(_.c)();return function(n,t){var a=t.accountId,i=t.added;return{account:e(n,a),added:void 0===i?n.getIn(["listEditor","accounts","items"]).includes(a):i}}},A=function(e,n){var t=n.accountId;return{onRemove:function(){return e(Object(M.x)(t))},onAdd:function(){return e(Object(M.r)(t))}}},x=(a=Object(g.connect)(k,A))(i=Object(q.g)((r=o=function(e){function n(){return d()(this,n),p()(this,e.apply(this,arguments))}return v()(n,e),n.prototype.render=function(){var e=this.props,n=e.account,t=e.intl,a=e.onRemove,i=e.onAdd,o=e.added,r=void 0;return r=o?s()(N.a,{icon:"times",title:t.formatMessage(w.remove),onClick:a}):s()(N.a,{icon:"plus",title:t.formatMessage(w.add),onClick:i}),s()("div",{className:"account"},void 0,s()("div",{className:"account__wrapper"},void 0,s()("div",{className:"account__display-name"},void 0,s()("div",{className:"account__avatar-wrapper"},void 0,s()(C.a,{account:n,size:36})),s()(O.a,{account:n})),s()("div",{className:"account__relationship"},void 0,r)))},n}(I.a),o.propTypes={account:R.a.map.isRequired,intl:b.a.object.isRequired,onRemove:b.a.func.isRequired,onAdd:b.a.func.isRequired,added:b.a.bool},o.defaultProps={added:!1},i=r))||i)||i},971:function(e,n,t){"use strict";t.d(n,"a",function(){return R});var a,i,o=t(2),r=t.n(o),c=t(1),s=t.n(c),u=t(3),d=t.n(u),l=t(4),p=t.n(l),f=t(0),v=t.n(f),h=t(9),m=t(6),b=t(300),g=t(10),_=t.n(g),y=Object(m.f)({search:{id:"lists.search",defaultMessage:"Search among people you follow"}}),I=function(e){return{value:e.getIn(["listEditor","suggestions","value"])}},j=function(e){return{onSubmit:function(n){retu
//# sourceMappingURL=list_editor.js.map