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

2 lines
7.0 KiB
JavaScript

webpackJsonp([23],{150:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var i=n(2),o=n.n(i),a=n(1),s=n.n(a),r=n(3),u=n.n(r),l=n(4),c=n.n(l),d=n(0),f=n.n(d),g=function(e){function t(){var n,i,o;s()(this,t);for(var a=arguments.length,r=Array(a),l=0;l<a;l++)r[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(r))),i.handleClick=function(){i.props.onClick()},o=n,u()(i,o)}return c()(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.active,i=e.columnHeaderId,a="";return this.props.icon&&(a=o()("i",{className:"fa fa-fw fa-"+this.props.icon+" column-header__icon"})),o()("div",{role:"heading",tabIndex:"0",className:"column-header "+(n?"active":""),onClick:this.handleClick,id:i||null},void 0,a,t)},t}(f.a.PureComponent)},259:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(2),o=n.n(i),a=n(1),s=n.n(a),r=n(3),u=n.n(r),l=n(4),c=n.n(l),d=n(42),f=n.n(d),g=n(0),m=n.n(g),p=n(150),h=n(91),b=n(33),v=function(e){function t(){var n,i,o;s()(this,t);for(var a=arguments.length,r=Array(a),l=0;l<a;l++)r[l]=arguments[l];return n=i=u()(this,e.call.apply(e,[this].concat(r))),i.handleHeaderClick=function(){var e=i.node.querySelector(".scrollable");e&&(i._interruptScrollAnimation=Object(h.b)(e))},i.handleScroll=f()(function(){void 0!==i._interruptScrollAnimation&&i._interruptScrollAnimation()},200),i.setRef=function(e){i.node=e},o=n,u()(i,o)}return c()(t,e),t.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(h.b)(e))},t.prototype.render=function(){var e=this.props,t=e.heading,n=e.icon,i=e.children,a=e.active,s=e.hideHeadingOnMobile,r=t&&(!s||s&&!Object(b.b)(window.innerWidth)),u=r&&t.replace(/ /g,"-"),l=r&&o()(p.a,{icon:n,active:a,type:t,onClick:this.handleHeaderClick,columnHeaderId:u});return m.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":u,className:"column",onScroll:this.handleScroll},l,i)},t}(m.a.PureComponent)},759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return q});var i,o,a,s,r=n(2),u=n.n(r),l=n(1),c=n.n(l),d=n(3),f=n.n(d),g=n(4),m=n.n(g),p=n(0),h=(n.n(p),n(259)),b=n(896),v=n(897),_=n(6),M=n(9),k=n(5),y=n.n(k),x=n(12),N=n.n(x),A=n(11),C=n.n(A),w=n(18),O=Object(_.f)({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"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},sign_out:{id:"navigation_bar.logout",defaultMessage:"Logout"},favourites:{id:"navigation_bar.favourites",defaultMessage:"Favourites"},blocks:{id:"navigation_bar.blocks",defaultMessage:"Blocked users"},mutes:{id:"navigation_bar.mutes",defaultMessage:"Muted users"},info:{id:"navigation_bar.info",defaultMessage:"Extended information"},pins:{id:"navigation_bar.pins",defaultMessage:"Pinned toots"}}),S=function(e){return{myAccount:e.getIn(["accounts",w.e]),columns:e.getIn(["settings","columns"])}},q=(i=Object(M.connect)(S))(o=Object(_.g)((s=a=function(e){function t(){return c()(this,t),f()(this,e.apply(this,arguments))}return m()(t,e),t.prototype.render=function(){var e=this.props,t=e.intl,n=e.myAccount,i=e.columns,o=e.multiColumn,a=[];return o&&(i.find(function(e){return"HOME"===e.get("id")})||a.push(u()(b.a,{icon:"home",text:t.formatMessage(O.home_timeline),to:"/timelines/home"},"0")),i.find(function(e){return"NOTIFICATIONS"===e.get("id")})||a.push(u()(b.a,{icon:"bell",text:t.formatMessage(O.notifications),to:"/notifications"},"1")),i.find(function(e){return"COMMUNITY"===e.get("id")})||a.push(u()(b.a,{icon:"users",text:t.formatMessage(O.community_timeline),to:"/timelines/public/local"},"2")),i.find(function(e){return"PUBLIC"===e.get("id")})||a.push(u()(b.a,{icon:"globe",text:t.formatMessage(O.public_timeline),to:"/timelines/public"},"3"))),a=a.concat([u()(b.a,{icon:"star",text:t.formatMessage(O.favourites),to:"/favourites"},"4"),u()(b.a,{icon:"thumb-tack",text:t.formatMessage(O.pins),to:"/pinned"},"5")]),n.get("locked")&&a.push(u()(b.a,{icon:"users",text:t.formatMessage(O.follow_requests),to:"/follow_requests"},"6")),a=a.concat([u()(b.a,{icon:"volume-off",text:t.formatMessage(O.mutes),to:"/mutes"},"7"),u()(b.a,{icon:"ban",text:t.formatMessage(O.blocks),to:"/blocks"},"8")]),u()(h.a,{icon:"asterisk",heading:t.formatMessage(O.heading),hideHeadingOnMobile:!0},void 0,u()("div",{className:"getting-started__wrapper"},void 0,u()(v.a,{text:t.formatMessage(O.navigation_subheading)}),a,u()(v.a,{text:t.formatMessage(O.settings_subheading)}),u()(b.a,{icon:"book",text:t.formatMessage(O.info),href:"/about/more"}),u()(b.a,{icon:"cog",text:t.formatMessage(O.preferences),href:"/settings/preferences"}),u()(b.a,{icon:"sign-out",text:t.formatMessage(O.sign_out),href:"/auth/sign_out",method:"delete"})),u()("div",{className:"getting-started__footer scrollable optionally-scrollable"},void 0,u()("div",{className:"static-content getting-started"},void 0,u()("p",{},void 0,u()("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/FAQ.md",rel:"noopener",target:"_blank"},void 0,u()(_.b,{id:"getting_started.faq",defaultMessage:"FAQ"}))," • ",u()("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/User-guide.md",rel:"noopener",target:"_blank"},void 0,u()(_.b,{id:"getting_started.userguide",defaultMessage:"User Guide"}))," • ",u()("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md",rel:"noopener",target:"_blank"},void 0,u()(_.b,{id:"getting_started.appsshort",defaultMessage:"Apps"}))),u()("p",{},void 0,u()(_.b,{id:"getting_started.open_source_notice",defaultMessage:"Mastodon is open source software. You can contribute or report issues on GitHub at {github}.",values:{github:u()("a",{href:"https://github.com/tootsuite/mastodon",rel:"noopener",target:"_blank"},void 0,"tootsuite/mastodon")}})))))},t}(C.a),a.propTypes={intl:y.a.object.isRequired,myAccount:N.a.map.isRequired,columns:N.a.list,multiColumn:y.a.bool},o=s))||o)||o},896:function(e,t,n){"use strict";var i=n(2),o=n.n(i),a=n(0),s=(n.n(a),n(58)),r=function(e){var t=e.icon,n=e.text,i=e.to,a=e.href,r=e.method;return a?o()("a",{href:a,className:"column-link","data-method":r},void 0,o()("i",{className:"fa fa-fw fa-"+t+" column-link__icon"}),n):o()(s.b,{to:i,className:"column-link"},void 0,o()("i",{className:"fa fa-fw fa-"+t+" column-link__icon"}),n)};t.a=r},897:function(e,t,n){"use strict";var i=n(2),o=n.n(i),a=n(0),s=(n.n(a),function(e){var t=e.text;return o()("div",{className:"column-subheading"},void 0,t)});t.a=s}});
//# sourceMappingURL=getting_started-b65f1e917d66a972f2bf.js.map