2018-09-16 15:17:34 -06:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{684:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return q});var s,o,i,g=a(1),n=a(6),r=a(2),f=(a(3),a(640)),m=a(967),p=a(968),_=a(7),l=a(20),c=a(5),d=a.n(c),u=a(26),b=a.n(u),v=a(24),h=a(23),j=a(27),O=a(389),M=a(4),y=a(386),k=a(972),w=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"}}),q=Object(l.connect)(function(e){return{myAccount:e.getIn(["accounts",h.k]),unreadFollowRequests:e.getIn(["user_lists","follow_requests","items"],Object(M.List)()).size,customPanelEnabled:e.getIn(["custom_panel","enabled"]),customPanel:e.getIn(["custom_panel","panel"])}},function(e){return{fetchFollowRequests:function(){return e(Object(j.B)())},fetchPanel:function(){return e(Object(O.c)())},fetchPleromaConfig:function(){return e(Object(O.d)())}}})(s=Object(_.g)((i=o=function(e){function t(){return e.apply(this,arguments)||this}Object(n.a)(t,e);var a=t.prototype;return a.componentDidMount=function(){var e=this.props,t=e.myAccount,a=e.fetchFollowRequests,s=e.fetchPleromaConfig,o=e.fetchPanel;t.get("locked")&&a(),s(),o()},a.render=function(){var e,t,a=this.props,s=a.intl,o=a.myAccount,i=a.multiColumn,n=a.unreadFollowRequests,r=a.customPanelEnabled,l=a.customPanel,c=[],d=1,u=i?0:60;i?(c.push(Object(g.a)(p.a,{text:s.formatMessage(w.discover)},d++),Object(g.a)(m.a,{icon:"users",text:s.formatMessage(w.community_timeline),to:"/timelines/public/local"},d++),Object(g.a)(m.a,{icon:"globe",text:s.formatMessage(w.public_timeline),to:"/timelines/public"},d++)),u+=130,h.l&&(c.push(Object(g.a)(m.a,{icon:"address-book",text:s.formatMessage(w.profile_directory),href:"/explore"},d++)),u+=48),c.push(Object(g.a)(p.a,{text:s.formatMessage(w.personal)},d++)),u+=34):h.l&&(c.push(Object(g.a)(m.a,{icon:"address-book",text:s.formatMessage(w.profile_directory),href:"/explore"},d++)),u+=48),c.push(Object(g.a)(m.a,{icon:"envelope",text:s.formatMessage(w.direct),to:"/timelines/direct"},d++),Object(g.a)(m.a,{icon:"star",text:s.formatMessage(w.favourites),to:"/favourites"},d++),Object(g.a)(m.a,{icon:"list-ul",text:s.formatMessage(w.lists),to:"/lists"},d++)),u+=144,o.get("locked")&&(c.push(Object(g.a)(m.a,{icon:"users",text:s.formatMessage(w.follow_requests),badge:(e=n,t=40,0===e?void 0:t&&t<=e?t+"+":e),to:"/follow_requests"},d++)),u+=48),i||(c.push(Object(g.a)(p.a,{text:s.formatMessage(w.settings_subheading)},d++),Object(g.a)(m.a,{icon:"gears",text:s.formatMessage(w.preferences),href:"/user-settings"},d++)),u+=82);var b=r?Object(g.a)("div",{dangerouslySetInnerHTML:{__html:l},style:{marginLeft:-12,marginRight:-12}}):Object(g.a)("p",{},void 0,Object(g.a)("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/FAQ.md",rel:"noopener",target:"_blank"},void 0,Obj
|