spc-pleroma/priv/static/packs/features/getting_started.js

2 lines
7.1 KiB
JavaScript
Raw Normal View History

webpackJsonp([21],{150:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(2),o=n.n(i),a=n(1),s=n.n(a),r=n(3),u=n.n(r),l=n(4),c=n.n(l),d=n(0),f=n.n(d),g=n(10),m=n.n(g),h=function(e){function t(){var n,i,o;s()(this,t);for(var a=arguments.length,r=Array(a),l=0;l<a;l++)r[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(r))),i.handleClick=function(){i.props.onClick()},o=n,u()(i,o)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.type,i=e.active,a=e.columnHeaderId,s="";return t&&(s=o()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),o()("h1",{className:m()("column-header",{active:i}),id:a||null},void 0,o()("button",{onClick:this.handleClick},void 0,s,n))},t}(f.a.PureComponent)},284:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(2),o=n.n(i),a=n(1),s=n.n(a),r=n(3),u=n.n(r),l=n(4),c=n.n(l),d=n(34),f=n.n(d),g=n(0),m=n.n(g),h=n(150),b=n(91),p=n(35),v=function(e){function t(){var n,i,o;s()(this,t);for(var a=arguments.length,r=Array(a),l=0;l<a;l++)r[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(r))),i.handleHeaderClick=function(){var e=i.node.querySelector(".scrollable");e&&(i._interruptScrollAnimation=Object(b.b)(e))},i.handleScroll=f()(function(){void 0!==i._interruptScrollAnimation&&i._interruptScrollAnimation()},200),i.setRef=function(e){i.node=e},o=n,u()(i,o)}return c()(t,e),t.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(b.b)(e))},t.prototype.render=function(){var e=this.props,t=e.heading,n=e.icon,i=e.children,a=e.active,s=e.hideHeadingOnMobile,r=t&&(!s||s&&!Object(p.b)(window.innerWidth)),u=r&&t.replace(/ /g,"-"),l=r&&o()(h.a,{icon:n,active:a,type:t,onClick:this.handleHeaderClick,columnHeaderId:u});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":u,className:"column",onScroll:this.handleScroll},l,i)},t}(m.a.PureComponent)},811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return j});var i,o,a,s,r=n(2),u=n.n(r),l=n(1),c=n.n(l),d=n(3),f=n.n(d),g=n(4),m=n.n(g),h=n(0),b=(n.n(h),n(284)),p=n(965),v=n(966),_=n(6),M=n(9),y=n(5),k=n.n(y),q=n(13),w=n.n(q),N=n(11),A=n.n(N),O=n(12),x=n(22),C=n(8),F=(n.n(C),Object(_.f)({heading:{id:"getting_started.heading",defaultMessage:"Getting started"},home_timeline:{id:"tabs_bar.home",defaultMessage:"Home"},notifications:{id:"tabs_bar.notifications",defaultMessage:"Notifications"},public_timeline:{id:"navigation_bar.public_timeline",defaultMessage:"Federated timeline"},navigation_subheading:{id:"column_subheading.navigation",defaultMessage:"Navigation"},settings_subheading:{id:"column_subheading.settings",defaultMessage:"Settings"},community_timeline:{id:"navigation_bar.community_timeline",defaultMessage:"Local timeline"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},sign_out:{id:"navigation_bar.logout",defaultMessage:"Logout"},favourites:{id:"navigation_bar.favourites",defaultMessage:"Favourites"},blocks:{id:"navigation_bar.blocks",defaultMessage:"Blocked users"},keyboard_shortcuts:{id:"navigation_bar.keyboard_shortcuts",defaultMessage:"Keyboard shortcuts"}})),I=function(e){return{myAccount:e.getIn(["accounts",O.g]),columns:e.getIn(["settings","columns"]),unreadFollowRequests:e.getIn(["user_lists","follow_requests","items"],Object(C.List)()).size,unreadNotifications:e.getIn(["notifications","unread"])}},R=function(e){return{fetchFollowRequests:function(){return e(Object(x.v)())}}},S=function(e,t){return 0===e?void 0:t&&e>=t?t+"+":e},j=(i=Object(M.connect)(I,R))(o=Object(_.g)((s=a=function(e){function t(){return c()(this,t),f()(this,e.apply(this,arguments))}return m()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.myAccount,n=e.fetchFollowRequests;t.get("locked")&&n()},t.prototype.render=function(){var e=this.props,t=e.intl,n=e.myAccount,i=e.columns,o=e.multiColumn,a=e.unreadFollowRequests,s=e.unr
//# sourceMappingURL=getting_started.js.map