spc-pleroma/priv/static/packs/features/getting_started.js

2 lines
7.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{685: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(6),r=a(0),c=a(2),f=(a(3),a(641)),m=a(968),h=a(969),p=a(7),l=a(20),d=a(5),u=a.n(d),g=a(26),_=a.n(g),v=a(24),j=a(23),O=a(27),M=a(159),w=a(4),k=a(388),y=a(973),q=a(33),x=Object(p.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(p.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=[],d=1,u=o?0:60;o?(l.push(Object(b.a)(h.a,{text:s.formatMessage(x.discover)},d++),Object(b.a)(m.a,{icon:"users",text:s.formatMessage(x.community_timeline),to:"/timelines/public/local"},d++),Object(b.a)(m.a,{icon:"globe",text:s.formatMessage(x.public_timeline),to:"/timelines/public"},d++)),u+=130,j.l&&(l.push(Object(b.a)(m.a,{icon:"address-book",text:s.formatMessage(x.profile_directory),href:"/explore"},d++)),u+=48),l.push(Object(b.a)(h.a,{text:s.formatMessage(x.personal)},d++)),u+=34):j.l&&(l.push(Object(b.a)(m.a,{icon:"address-book",text:s.formatMessage(x.profile_directory),href:"/explore"},d++)),u+=48),l.push(Object(b.a)(m.a,{icon:"envelope",text:s.formatMessage(x.direct),to:"/timelines/direct"},d++),Object(b.a)(m.a,{icon:"star",text:s.formatMessage(x.favourites),to:"/favourites"},d++),Object(b.a)(m.a,{icon:"list-ul",text:s.formatMessage(x.lists),to:"/lists"},d++),Object(b.a)("a",{href:"#",onClick:this.switch_flavour_glitch,className:"column-link",tabIndex:"0"},d++,Object(b.a)("i",{className:"fa fa-fw fa-exchange column-link__icon"}),s.formatMessage(x.switch_to_glitch))),u+=144,i.get("locked")&&(l.push(Object(b.a)(m.a,{icon:"users",text:s.formatMessage(x.follow_requests),badge:(e=n,t=40,0===e?void 0:t&&t<=e?t+"+":e),to:"/follow_requests"},d++)),u+=48),o||(l.push(Object(b.a)(h.a,{text:s.formatMessage(x.settings_subheading)},d++),Object(b.a)(m.a,{icon:"gears",text:s.formatMessage(x.preferences),href:"/user-settings"},d++)),u+=82);var g=r?Object(b.a)("div",{dangerouslySetInnerHTML:{__html:c},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)(p.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)(p.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)(p.b,{id:"getting_started.appsshort",defaultMessage:"Apps"}))," • ",Object(b.a)("a",{href:"https://pleroma.social"},void 0,Object(b.a)(p.b,{id:"getting_started.pleroma",defaultMessage:"Pleroma"})));return Object(b.a)(f.a,{label:s.formatMessage(x.menu)},void 0,o&&Object(b.a)("div",{className:"column-header__wrapper"},void 0,Object(b.a)("h1",{className:"column-header"},void 0,Object(b.a)("button",{},void 0,Object(b.a)(q.a,{id:"bars",className:"column-header__icon",fixedWidth:!0}),Object(b.a)(p.b,{id:"getting_started.heading",defaultMessage:"Getting started"})))),Object(b.a)("div",{className:"getting-started"},void 0,Object(b.a)("div",{className:"getting-started__wrapper scrollable",style:{height:u}},void 0,!o&&Object(b.a)(y.a,{account:i}),l),!o&&Object(b.a)("div",{className:"flex-spacer"}),Object(b.a)("div",{className:"getting-started getting-started__panel scrollable"},void 0,g),!o&&Object(b.a)("div",{className:"flex-spacer"}),Object(b.a)("div",{className:"getting-started__footer scrollable"},void 0,Object(b.a)("ul",{},void 0,j.h&&Object(b.a)("li",{},void 0,Object(b.a)("a",{href:"/invites",target:"_blank"},void 0,Object(b.a)(p.b,{id:"getting_started.invite",defaultMessage:"Invite people"}))," · "),o&&Object(b.a)("li",{},void 0,Object(b.a)(k.a,{to:"/keyboard-shortcuts"},void 0,Object(b.a)(p.b,{id:"navigation_bar.keyboard_shortcuts",defaultMessage:"Hotkeys"}))," · "),Object(b.a)("li",{},void 0,Object(b.a)("a",{href:"/auth/sign_out","data-method":"delete"},void 0,Object(b.a)(p.b,{id:"navigation_bar.logout",defaultMessage:"Logout"})))),Object(b.a)("p",{},void 0,Object(b.a)(p.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")}}),Object(b.a)(p.b,{id:"getting_started.vanilla_support_warning",defaultMessage:"Please be warned that the vanilla flavour isnt as supported as the glitch one, expect bugs related to the API"})))))},e}(v.a),Object(c.a)(i,"propTypes",{intl:u.a.object.isRequired,myAccount:_.a.map.isRequired,columns:_.a.list,multiColumn:u.a.bool,fetchFollowRequests:u.a.func.isRequired,fetchPanel:u.a.func.isRequired,fetchPleromaConfig:u.a.func.isRequired,switchFlavour:u.a.func.isRequired,unreadFollowRequests:u.a.number,unreadNotifications:u.a.number,customPanelEnabled:u.a.bool,customPanel:u.a.string.isRequired}),s=o))||s)||s}}]);
//# sourceMappingURL=getting_started.js.map