forked from mirrors/akkoma
2 lines
No EOL
6.9 KiB
JavaScript
2 lines
No EOL
6.9 KiB
JavaScript
(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,Object(g.a)(_.b,{id:"getting_started.faq",defaultMessage:"FAQ"}))," • ",Object(g.a)("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/User-guide.md",rel:"noopener",target:"_blank"},void 0,Object(g.a)(_.b,{id:"getting_started.userguide",defaultMessage:"User Guide"}))," • ",Object(g.a)("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md",rel:"noopener",target:"_blank"},void 0,Object(g.a)(_.b,{id:"getting_started.appsshort",defaultMessage:"Apps"}))," • ",Object(g.a)("a",{href:"https://pleroma.social"},void 0,Object(g.a)(_.b,{id:"getting_started.pleroma",defaultMessage:"Pleroma"})));return Object(g.a)(f.a,{label:s.formatMessage(w.menu)},void 0,i&&Object(g.a)("div",{className:"column-header__wrapper"},void 0,Object(g.a)("h1",{className:"column-header"},void 0,Object(g.a)("button",{},void 0,Object(g.a)("i",{className:"fa fa-bars fa-fw column-header__icon"}),Object(g.a)(_.b,{id:"getting_started.heading",defaultMessage:"Getting started"})))),Object(g.a)("div",{className:"getting-started"},void 0,Object(g.a)("div",{className:"getting-started__wrapper scrollable",style:{height:u}},void 0,!i&&Object(g.a)(k.a,{account:o}),c),!i&&Object(g.a)("div",{className:"flex-spacer"}),Object(g.a)("div",{className:"getting-started getting-started__panel scrollable"},void 0,b),!i&&Object(g.a)("div",{className:"flex-spacer"}),Object(g.a)("div",{className:"getting-started__footer scrollable"},void 0,Object(g.a)("ul",{},void 0,h.h&&Object(g.a)("li",{},void 0,Object(g.a)("a",{href:"/invites",target:"_blank"},void 0,Object(g.a)(_.b,{id:"getting_started.invite",defaultMessage:"Invite people"}))," · "),i&&Object(g.a)("li",{},void 0,Object(g.a)(y.a,{to:"/keyboard-shortcuts"},void 0,Object(g.a)(_.b,{id:"navigation_bar.keyboard_shortcuts",defaultMessage:"Hotkeys"}))," · "),Object(g.a)("li",{},void 0,Object(g.a)("a",{href:"/auth/sign_out","data-method":"delete"},void 0,Object(g.a)(_.b,{id:"navigation_bar.logout",defaultMessage:"Logout"})))),Object(g.a)("p",{},void 0,Object(g.a)(_.b,{id:"getting_started.mastofe_notice",defaultMessage:"{mastofe} is libre software based on {mastodon} frontend adapted for {pleroma}.",values:{mastofe:Object(g.a)("a",{href:"https://git.pleroma.social/pleroma/mastofe",rel:"noopener",target:"_blank"},void 0,"Mastofe"),mastodon:Object(g.a)("a",{href:"https://github.com/tootsuite/mastodon",rel:"noopener",target:"_blank"},void 0,"Mastodon"),pleroma:Object(g.a)("a",{href:"https://pleroma.social",rel:"noopener",target:"_blank"},void 0,"Pleroma")}})))))},t}(v.a),Object(r.a)(o,"propTypes",{intl:d.a.object.isRequired,myAccount:b.a.map.isRequired,columns:b.a.list,multiColumn:d.a.bool,fetchFollowRequests:d.a.func.isRequired,fetchPanel:d.a.func.isRequired,fetchPleromaConfig:d.a.func.isRequired,unreadFollowRequests:d.a.number,unreadNotifications:d.a.number,customPanelEnabled:d.a.bool,customPanel:d.a.string.isRequired}),s=i))||s)||s}}]);
|
|
//# sourceMappingURL=getting_started.js.map
|