honkoma/priv/static/packs/features/getting_started.js

2 lines
7.0 KiB
JavaScript
Raw Normal View History

(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{686:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return P});var s,i,o,b=a(1),n=a(7),r=a(0),c=a(2),f=(a(3),a(642)),m=a(976),h=a(977),_=a(6),l=a(20),u=a(5),d=a.n(u),g=a(26),p=a.n(g),v=a(24),j=a(22),O=a(27),M=a(160),w=a(4),y=a(391),k=a(981),x=a(33),q=Object(_.f)({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"},settings_subheading:{id:"column_subheading.settings",defaultMessage:"Settings"},community_timeline:{id:"navigation_bar.community_timeline",defaultMessage:"Local timeline"},direct:{id:"navigation_bar.direct",defaultMessage:"Direct messages"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},favourites:{id:"navigation_bar.favourites",defaultMessage:"Favourites"},blocks:{id:"navigation_bar.blocks",defaultMessage:"Blocked users"},domain_blocks:{id:"navigation_bar.domain_blocks",defaultMessage:"Hidden domains"},mutes:{id:"navigation_bar.mutes",defaultMessage:"Muted users"},pins:{id:"navigation_bar.pins",defaultMessage:"Pinned toots"},lists:{id:"navigation_bar.lists",defaultMessage:"Lists"},discover:{id:"navigation_bar.discover",defaultMessage:"Discover"},personal:{id:"navigation_bar.personal",defaultMessage:"Personal"},security:{id:"navigation_bar.security",defaultMessage:"Security"},menu:{id:"getting_started.heading",defaultMessage:"Getting started"},profile_directory:{id:"getting_started.directory",defaultMessage:"Profile directory"},switch_to_glitch:{id:"navigation_bar.switch_to_glitch",defaultMessage:"Switch to Glitch Flavour"}}),P=Object(l.connect)(function(e){return{myAccount:e.getIn(["accounts",j.k]),unreadFollowRequests:e.getIn(["user_lists","follow_requests","items"],Object(w.List)()).size,customPanelEnabled:e.getIn(["custom_panel","enabled"]),customPanel:e.getIn(["custom_panel","panel"])}},function(e){return{fetchFollowRequests:function(){return e(Object(O.B)())},fetchPanel:function(){return e(Object(M.c)())},fetchPleromaConfig:function(){return e(Object(M.d)())},switchFlavour:function(){return e(Object(M.e)())}}})(s=Object(_.g)((o=i=function(i){function e(){for(var t,e=arguments.length,a=new Array(e),s=0;s<e;s++)a[s]=arguments[s];return t=i.call.apply(i,[this].concat(a))||this,Object(c.a)(Object(r.a)(Object(r.a)(t)),"switch_flavour_glitch",function(e){t.props.switchFlavour("glitch")}),t}Object(n.a)(e,i);var t=e.prototype;return t.componentDidMount=function(){var e=this.props,t=e.myAccount,a=e.fetchFollowRequests,s=e.fetchPleromaConfig,i=e.fetchPanel;t.get("locked")&&a(),s(),i()},t.render=function(){var e,t,a=this.props,s=a.intl,i=a.myAccount,o=a.multiColumn,n=a.unreadFollowRequests,r=a.customPanelEnabled,c=a.customPanel,l=[],u=1,d=o?0:60;o?(l.push(Object(b.a)(h.a,{text:s.formatMessage(q.discover)},u++),Object(b.a)(m.a,{icon:"users",text:s.formatMessage(q.community_timeline),to:"/timelines/public/local"},u++),Object(b.a)(m.a,{icon:"globe",text:s.formatMessage(q.public_timeline),to:"/timelines/public"},u++)),d+=130,j.l&&(l.push(Object(b.a)(m.a,{icon:"address-book",text:s.formatMessage(q.profile_directory),href:"/explore"},u++)),d+=48),l.push(Object(b.a)(h.a,{text:s.formatMessage(q.personal)},u++)),d+=34):j.l&&(l.push(Object(b.a)(m.a,{icon:"address-book",text:s.formatMessage(q.profile_directory),href:"/explore"},u++)),d+=48),l.push(Object(b.a)(m.a,{icon:"envelope",text:s.formatMessage(q.direct),to:"/timelines/direct"},u++),Object(b.a)(m.a,{icon:"star",text:s.formatMessage(q.favourites),to:"/favourites"},u++),Object(b.a)(m.a,{icon:"list-ul",text:s.formatMessage(q.lists),to:"/lists"},u++),Object(b.a)("a",{href:"#",onClick:this.switch_flavour_glitch,className:"column-link",tabIndex:"0"},u++,Object(b.a)("i",{className:"fa fa-fw fa-exchange column-link__icon"}),s.formatMessage(q.switch_to_glitch))),d+=144,i.get("locked")&&(l.push(Object(b.a)(m.a,{icon:"users",text
//# sourceMappingURL=getting_started.js.map