Pleroma/priv/static/packs/flavours/glitch/async/lists.js
Haelwenn (lanodan) Monnier 2a850abbeb
MastoFE: Bundle 2020-01-20
2020-02-29 06:41:13 +01:00

2 lines
1.7 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{765:function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return T}));var n,s,a,o=i(0),u=i(7),c=i(1),r=(i(3),i(13)),l=i(5),d=i.n(l),b=i(14),p=i.n(b),f=i(299),g=i(730),j=i(735),h=i(28),m=i(6),O=i(18),y=i(1075),v=i(1076),w=i(1118),M=i(54),q=i(1022),C=Object(m.f)({heading:{id:"column.lists",defaultMessage:"Lists"},subheading:{id:"lists.subheading",defaultMessage:"Your lists"}}),R=Object(M.a)([function(t){return t.get("lists")}],(function(t){return t?t.toList().filter((function(t){return!!t})).sort((function(t,e){return t.get("title").localeCompare(e.get("title"))})):t})),T=Object(r.connect)((function(t){return{lists:R(t)}}))(n=Object(m.g)((a=s=function(t){function e(){return t.apply(this,arguments)||this}Object(u.a)(e,t);var i=e.prototype;return i.componentWillMount=function(){this.props.dispatch(Object(h.I)())},i.render=function(){var t=this.props,e=t.intl,i=t.lists,n=t.multiColumn;if(!i)return Object(o.a)(g.a,{},void 0,Object(o.a)(f.a,{}));var s=Object(o.a)(m.b,{id:"empty_column.lists",defaultMessage:"You don't have any lists yet. When you create one, it will show up here."});return Object(o.a)(g.a,{bindToDocument:!n,icon:"bars",heading:e.formatMessage(C.heading)},void 0,Object(o.a)(j.a,{}),Object(o.a)(w.a,{}),Object(o.a)(v.a,{text:e.formatMessage(C.subheading)}),Object(o.a)(q.a,{scrollKey:"lists",emptyMessage:s,bindToDocument:!n},void 0,i.map((function(t){return Object(o.a)(y.a,{to:"/timelines/list/"+t.get("id"),icon:"list-ul",text:t.get("title")},t.get("id"))}))))},e}(O.a),Object(c.a)(s,"propTypes",{params:d.a.object.isRequired,dispatch:d.a.func.isRequired,lists:p.a.list,intl:d.a.object.isRequired,multiColumn:d.a.bool}),n=a))||n)||n}}]);
//# sourceMappingURL=lists.js.map