pleroma/priv/static/packs/flavours/glitch/async/getting_started.js

2 lines
6.7 KiB
JavaScript
Raw Normal View History

2019-06-26 12:06:28 -07:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[59],{655:function(e,t,i){"use strict";i.r(t),i.d(t,"default",function(){return P});var a,s,n,o,m=i(0),r=i(6),c=i(1),b=(i(3),i(625)),h=i(931),p=i(932),_=i(7),u=i(21),l=i(50),g=i(5),d=i.n(g),f=i(26),M=i.n(f),O=i(25),j=i(29),v=i(23),k=i(4),q=i(61),w=i(31),x=i(364),R=i(183),y=Object(_.f)(((a={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"},direct:{id:"navigation_bar.direct",defaultMessage:"Direct messages"},bookmarks:{id:"navigation_bar.bookmarks",defaultMessage:"Bookmarks"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},settings:{id:"navigation_bar.app_settings",defaultMessage:"App settings"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},sign_out:{id:"navigation_bar.logout",defaultMessage:"Logout"},lists:{id:"navigation_bar.lists",defaultMessage:"Lists"},keyboard_shortcuts:{id:"navigation_bar.keyboard_shortcuts",defaultMessage:"Keyboard shortcuts"}}).lists={id:"navigation_bar.lists",defaultMessage:"Lists"},a.lists_subheading={id:"column_subheading.lists",defaultMessage:"Lists"},a.misc={id:"navigation_bar.misc",defaultMessage:"Misc"},a.menu={id:"getting_started.heading",defaultMessage:"Getting started"},a)),I=function(e,t){return 0===e?void 0:t&&t<=e?t+"+":e},P=Object(u.connect)(function(){var t=Object(q.a)([function(e){return e.get("lists")}],function(e){return e?e.toList().filter(function(e){return!!e}).sort(function(e,t){return e.get("title").localeCompare(t.get("title"))}):e});return function(e){return{lists:t(e),myAccount:e.getIn(["accounts",j.k]),columns:e.getIn(["settings","columns"]),unreadFollowRequests:e.getIn(["user_lists","follow_requests","items"],Object(k.List)()).size,unreadNotifications:e.getIn(["notifications","unread"]),customPanelEnabled:e.getIn(["custom_panel","enabled"]),customPanel:e.getIn(["custom_panel","panel"])}}},function(e){return{fetchFollowRequests:function(){return e(Object(v.G)())},fetchLists:function(){return e(Object(w.I)())},openSettings:function(){return e(Object(l.d)("SETTINGS",{}))},fetchPanel:function(){return e(Object(R.c)())},fetchPleromaConfig:function(){return e(Object(R.d)())}}})(s=Object(_.g)((o=n=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var i=t.prototype;return i.componentWillMount=function(){this.props.fetchLists()},i.componentDidMount=function(){var e=this.props,t=e.myAccount,i=e.fetchFollowRequests,a=e.fetchPleromaConfig,s=e.fetchPanel;t.get("locked")&&i(),a(),s()},i.render=function(){var e=this.props,t=e.intl,i=e.myAccount,a=e.columns,s=e.multiColumn,n=e.unreadFollowRequests,o=e.unreadNotifications,r=e.lists,c=e.openSettings,u=e.customPanelEnabled,l=e.customPanel,g=[],d=[];s&&(a.find(function(e){return"HOME"===e.get("id")})||g.push(Object(m.a)(h.a,{icon:"home",text:t.formatMessage(y.home_timeline),to:"/timelines/home"},"0")),a.find(function(e){return"NOTIFICATIONS"===e.get("id")})||g.push(Object(m.a)(h.a,{icon:"bell",text:t.formatMessage(y.notifications),badge:I(o),to:"/notifications"},"1")),a.find(function(e){return"COMMUNITY"===e.get("id")})||g.push(Object(m.a)(h.a,{icon:"users",text:t.formatMessage(y.community_timeline),to:"/timelines/public/local"},"2")),a.find(function(e){return"PUBLIC"===e.get("id")})||g.push(Object(m.a)(h.a,{icon:"globe",text:t.formatMessage(y.public_timeline),to:"/timelines/public"},"3"))),s&&a.find(function(e){return"DIRECT"===e.get("id")})||g.push(Object(m.a)(h.a,{icon:"envelope",text:t.formatMessage(y.direct),to:"/timelines/direct"},"4")),s&&a.find(function(e){return"BOOKMARKS"===e.get("id")})||g
2018-09-16 14:17:34 -07:00
//# sourceMappingURL=getting_started.js.map