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

2 lines
No EOL
7.5 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[58],{664:function(e,t,a){"use strict";a.r(t),a.d(t,"default",function(){return I});var i,s,n,o,b=a(1),r=a(6),c=a(2),m=(a(3),a(640)),p=a(917),h=a(918),_=a(7),u=a(20),l=a(45),d=a(5),g=a.n(d),f=a(26),M=a.n(f),O=a(24),j=a(31),v=a(14),k=a(4),q=a(58),w=a(29),R=a(139),x=a(159),y=Object(_.f)(((i={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"},i.lists_subheading={id:"column_subheading.lists",defaultMessage:"Lists"},i.misc={id:"navigation_bar.misc",defaultMessage:"Misc"},i.menu={id:"getting_started.heading",defaultMessage:"Getting started"},i)),P=function(e,t){return 0===e?void 0:t&&t<=e?t+"+":e},I=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.H)())},fetchLists:function(){return e(Object(w.I)())},openSettings:function(){return e(Object(l.d)("SETTINGS",{}))},fetchPanel:function(){return e(Object(x.c)())},fetchPleromaConfig:function(){return e(Object(x.d)())}}})(s=Object(_.g)((o=n=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var a=t.prototype;return a.componentWillMount=function(){this.props.fetchLists()},a.componentDidMount=function(){var e=this.props,t=e.myAccount,a=e.fetchFollowRequests,i=e.fetchPleromaConfig,s=e.fetchPanel;t.get("locked")&&a(),i(),s()},a.render=function(){var e=this.props,t=e.intl,a=e.myAccount,i=e.columns,s=e.multiColumn,n=e.unreadFollowRequests,o=e.unreadNotifications,r=e.lists,c=e.openSettings,u=e.customPanelEnabled,l=e.customPanel,d=[],g=[];s&&(i.find(function(e){return"HOME"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"home",text:t.formatMessage(y.home_timeline),to:"/timelines/home"},"0")),i.find(function(e){return"NOTIFICATIONS"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"bell",text:t.formatMessage(y.notifications),badge:P(o),to:"/notifications"},"1")),i.find(function(e){return"COMMUNITY"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"users",text:t.formatMessage(y.community_timeline),to:"/timelines/public/local"},"2")),i.find(function(e){return"PUBLIC"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"globe",text:t.formatMessage(y.public_timeline),to:"/timelines/public"},"3"))),s&&i.find(function(e){return"DIRECT"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"envelope",text:t.formatMessage(y.direct),to:"/timelines/direct"},"4")),s&&i.find(function(e){return"BOOKMARKS"===e.get("id")})||d.push(Object(b.a)(p.a,{icon:"bookmark",text:t.formatMessage(y.bookmarks),to:"/bookmarks"},"5")),a.get("locked")&&d.push(Object(b.a)(p.a,{icon:"users",text:t.formatMessage(y.follow_requests),badge:P(n,40),to:"/follow_requests"},"6")),d.push(Object(b.a)(p.a,{icon:"ellipsis-h",text:t.formatMessage(y.misc),to:"/getting-started-misc"},"7")),g=g.concat([Object(b.a)("div",{},"8",Object(b.a)(p.a,{icon:"bars",text:t.formatMessage(y.lists),to:"/lists"},"9"),r.map(function(e){return Object(b.a)(p.a,{to:"/timelines/list/"+e.get("id"),icon:"list-ul",text:e.get("title")},(9+Number(e.get("id"))).toString())}))]);var f=u?Object(b.a)("div",{dangerouslySetInnerHTML:{__html:l},style:{marginLeft:-12,marginRight:-12}}):Object(b.a)("p",{},void 0,Object(b.a)("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/FAQ.md",rel:"noopener",target:"_blank"},void 0,Object(b.a)(_.b,{id:"getting_started.faq",defaultMessage:"FAQ"}))," • ",Object(b.a)("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/User-guide.md",rel:"noopener",target:"_blank"},void 0,Object(b.a)(_.b,{id:"getting_started.userguide",defaultMessage:"User Guide"}))," • ",Object(b.a)("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md",rel:"noopener",target:"_blank"},void 0,Object(b.a)(_.b,{id:"getting_started.appsshort",defaultMessage:"Apps"}))," • ",Object(b.a)("a",{href:"https://pleroma.social"},void 0,Object(b.a)(_.b,{id:"getting_started.pleroma",defaultMessage:"Pleroma"})));return Object(b.a)(m.a,{name:"getting-started",icon:"asterisk",heading:t.formatMessage(y.heading),label:t.formatMessage(y.menu),hideHeadingOnMobile:!0},void 0,Object(b.a)("div",{className:"getting-started__wrapper scrollable"},void 0,Object(b.a)(h.a,{text:t.formatMessage(y.navigation_subheading)}),d,Object(b.a)(h.a,{text:t.formatMessage(y.lists_subheading)}),g,Object(b.a)(h.a,{text:t.formatMessage(y.settings_subheading)}),void 0!==R.b&&Object(b.a)(p.a,{icon:"cog",text:t.formatMessage(y.preferences),href:R.b}),Object(b.a)(p.a,{icon:"cogs",text:t.formatMessage(y.settings),onClick:c}),Object(b.a)(p.a,{icon:"sign-out",text:t.formatMessage(y.sign_out),href:R.d,method:"delete"})),Object(b.a)("div",{className:"getting-started getting-started__panel scrollable"},void 0,f),Object(b.a)("div",{className:"getting-started__footer scrollable"},void 0,Object(b.a)("p",{},void 0,Object(b.a)(_.b,{id:"getting_started.mastofe_notice",defaultMessage:"Mastofe is a libre distribution of the frontend from {glitchsoc}, a friendly fork of {mastodon}. You can contribute or report issues at {mastofe}.",values:{mastofe:Object(b.a)("a",{href:"https://git.pleroma.social/pleroma/mastofe",rel:"noopener",target:"_blank"},void 0,"Mastofe"),glitchsoc:Object(b.a)("a",{href:"https://github.com/glitch-soc/mastodon",rel:"noopener",target:"_blank"},void 0,"glitch-soc"),mastodon:Object(b.a)("a",{href:"https://github.com/tootsuite/mastodon",rel:"noopener",target:"_blank"},void 0,"Mastodon"),pleroma:Object(b.a)("a",{href:"https://pleroma.social",rel:"noopener",target:"_blank"},void 0,"Pleroma")}}))))},t}(O.a),Object(c.a)(n,"propTypes",{intl:g.a.object.isRequired,myAccount:M.a.map.isRequired,columns:M.a.list,multiColumn:g.a.bool,fetchFollowRequests:g.a.func.isRequired,unreadFollowRequests:g.a.number,unreadNotifications:g.a.number,lists:M.a.list,fetchLists:g.a.func.isRequired,openSettings:g.a.func.isRequired,fetchPanel:g.a.func.isRequired,fetchPleromaConfig:g.a.func.isRequired,customPanelEnabled:g.a.bool,customPanel:g.a.string.isRequired}),s=o))||s)||s}}]);
//# sourceMappingURL=getting_started.js.map