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

2 lines
11 KiB
JavaScript

webpackJsonp([22],{155:function(e,t,a){"use strict";a.d(t,"a",function(){return m});var n=a(2),o=a.n(n),s=a(1),i=a.n(s),r=a(3),l=a.n(r),c=a(4),u=a.n(c),d=a(0),f=a.n(d),g=a(10),p=a.n(g),m=function(e){function t(){var a,n,o;i()(this,t);for(var s=arguments.length,r=Array(s),c=0;c<s;c++)r[c]=arguments[c];return a=n=l()(this,e.call.apply(e,[this].concat(r))),n.handleClick=function(){n.props.onClick()},o=a,l()(n,o)}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,a=e.type,n=e.active,s=e.columnHeaderId,i="";return t&&(i=o()("i",{className:"fa fa-fw fa-"+t+" column-header__icon"})),o()("h1",{className:p()("column-header",{active:n}),id:s||null},void 0,o()("button",{onClick:this.handleClick},void 0,i,a))},t}(f.a.PureComponent)},274:function(e,t,a){"use strict";a.d(t,"a",function(){return h});var n=a(2),o=a.n(n),s=a(1),i=a.n(s),r=a(3),l=a.n(r),c=a(4),u=a.n(c),d=a(32),f=a.n(d),g=a(0),p=a.n(g),m=a(155),b=a(91),v=a(43),h=function(e){function t(){var a,n,o;i()(this,t);for(var s=arguments.length,r=Array(s),c=0;c<s;c++)r[c]=arguments[c];return a=n=l()(this,e.call.apply(e,[this].concat(r))),n.handleHeaderClick=function(){var e=n.node.querySelector(".scrollable");e&&(n._interruptScrollAnimation=Object(b.b)(e))},n.handleScroll=f()(function(){void 0!==n._interruptScrollAnimation&&n._interruptScrollAnimation()},200),n.setRef=function(e){n.node=e},o=a,l()(n,o)}return u()(t,e),t.prototype.scrollTop=function(){var e=this.node.querySelector(".scrollable");e&&(this._interruptScrollAnimation=Object(b.b)(e))},t.prototype.render=function(){var e=this.props,t=e.heading,a=e.icon,n=e.children,s=e.active,i=e.hideHeadingOnMobile,r=t&&(!i||i&&!Object(v.b)(window.innerWidth)),l=r&&t.replace(/ /g,"-"),c=r&&o()(m.a,{icon:a,active:s,type:t,onClick:this.handleHeaderClick,columnHeaderId:l});return p.a.createElement("div",{ref:this.setRef,role:"region","aria-labelledby":l,className:"column",onScroll:this.handleScroll},c,n)},t}(p.a.PureComponent)},819:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),a.d(t,"default",function(){return L});var n,o,s,i,r=a(2),l=a.n(r),c=a(1),u=a.n(c),d=a(3),f=a.n(d),g=a(4),p=a.n(g),m=a(0),b=(a.n(m),a(274)),v=a(897),h=a(898),_=a(7),M=a(9),k=a(5),y=a.n(k),w=a(14),q=a.n(w),N=a(12),P=a.n(N),x=a(13),C=a(22),R=a(325),j=a(8),A=(a.n(j),a(44)),O=a(886),F=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"}}),S=function(e){return{myAccount:e.getIn(["accounts",x.i]),unreadFollowRequests:e.getIn(["user_lists","follow_requests","items"],Object(j.List)()).size,customPanelEnabled:e.getIn(["custom_panel","enabled"]),customPanel:e.getIn(["custom_panel","panel"])}},H=function(e){return{fetchFollowRequests:function(){return e(Object(C.v)())},fetchPanel:function(){return e(Object(R.c)())},fetchPleromaConfig:function(){return e(Object(R.d)())}}},I=function(e,t){return 0===e?void 0:t&&e>=t?t+"+":e},L=(n=Object(M.connect)(S,H))(o=Object(_.g)((i=s=function(e){function t(){return u()(this,t),f()(this,e.apply(this,arguments))}return p()(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.myAccount,a=e.fetchFollowRequests,n=e.fetchPleromaConfig,o=e.fetchPanel;t.get("locked")&&a(),n(),o()},t.prototype.render=function(){var e=this.props,t=e.intl,a=e.myAccount,n=e.multiColumn,o=e.unreadFollowRequests,s=e.customPanelEnabled,i=e.customPanel,r=[],c=1,u=0;n&&(r.push(l()(h.a,{text:t.formatMessage(F.discover)},c++),l()(v.a,{icon:"users",text:t.formatMessage(F.community_timeline),to:"/timelines/public/local"},c++),l()(v.a,{icon:"globe",text:t.formatMessage(F.public_timeline),to:"/timelines/public"},c++),l()(h.a,{text:t.formatMessage(F.personal)},c++)),u+=164),r.push(l()(v.a,{icon:"envelope",text:t.formatMessage(F.direct),to:"/timelines/direct"},c++),l()(v.a,{icon:"star",text:t.formatMessage(F.favourites),to:"/favourites"},c++),l()(v.a,{icon:"list-ul",text:t.formatMessage(F.lists),to:"/lists"},c++)),u+=144,a.get("locked")&&(r.push(l()(v.a,{icon:"users",text:t.formatMessage(F.follow_requests),badge:I(o,40),to:"/follow_requests"},c++)),u+=48),n||(r.push(l()(h.a,{text:t.formatMessage(F.settings_subheading)},c++),l()(v.a,{icon:"gears",text:t.formatMessage(F.preferences),href:"/user-settings"},c++)),u+=130);var d=s?l()("div",{dangerouslySetInnerHTML:{__html:i},style:{marginLeft:-12,marginRight:-12}}):l()("p",{},void 0,l()("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/FAQ.md",rel:"noopener",target:"_blank"},void 0,l()(_.b,{id:"getting_started.faq",defaultMessage:"FAQ"}))," • ",l()("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/User-guide.md",rel:"noopener",target:"_blank"},void 0,l()(_.b,{id:"getting_started.userguide",defaultMessage:"User Guide"}))," • ",l()("a",{href:"https://github.com/tootsuite/documentation/blob/master/Using-Mastodon/Apps.md",rel:"noopener",target:"_blank"},void 0,l()(_.b,{id:"getting_started.appsshort",defaultMessage:"Apps"}))," • ",l()("a",{href:"https://pleroma.social"},void 0,l()(_.b,{id:"getting_started.pleroma",defaultMessage:"Pleroma"})));return l()(b.a,{},void 0,n&&l()("div",{className:"column-header__wrapper"},void 0,l()("h1",{className:"column-header"},void 0,l()("button",{},void 0,l()("i",{className:"fa fa-bars fa-fw column-header__icon"}),l()(_.b,{id:"getting_started.heading",defaultMessage:"Getting started"})))),l()("div",{className:"getting-started getting-started__wrapper scrollable"},void 0,!n&&l()(O.a,{account:a}),r),l()("div",{className:"getting-started getting-started__panel scrollable"},void 0,d),l()("div",{className:"getting-started getting-started__footer scrollable"},void 0,(x.g||n)&&l()("ul",{},void 0,x.g&&l()("li",{},void 0,l()("a",{href:"/invites",target:"_blank"},void 0,l()(_.b,{id:"getting_started.invite",defaultMessage:"Invite people"}))),n&&l()("li",{},void 0,l()(A.b,{to:"/keyboard-shortcuts"},void 0,l()(_.b,{id:"navigation_bar.keyboard_shortcuts",defaultMessage:"Hotkeys"})))),l()("p",{},void 0,l()(_.b,{id:"getting_started.mastofe_notice",defaultMessage:"{mastofe} is libre software based on {mastodon} frontend adapted for {pleroma}.",values:{mastofe:l()("a",{href:"https://git.pleroma.social/pleroma/mastofe",rel:"noopener",target:"_blank"},void 0,"Mastofe"),mastodon:l()("a",{href:"https://github.com/tootsuite/mastodon",rel:"noopener",target:"_blank"},void 0,"Mastodon"),pleroma:l()("a",{href:"https://pleroma.social",rel:"noopener",target:"_blank"},void 0,"Pleroma")}}))))},t}(P.a),s.propTypes={intl:y.a.object.isRequired,myAccount:q.a.map.isRequired,columns:q.a.list,multiColumn:y.a.bool,fetchFollowRequests:y.a.func.isRequired,fetchPanel:y.a.func.isRequired,fetchPleromaConfig:y.a.func.isRequired,unreadFollowRequests:y.a.number,unreadNotifications:y.a.number,customPanelEnabled:y.a.bool,customPanel:y.a.string.isRequired},o=i))||o)||o},886:function(e,t,a){"use strict";a.d(t,"a",function(){return q});var n,o,s=a(2),i=a.n(s),r=a(1),l=a.n(r),c=a(3),u=a.n(c),d=a(4),f=a.n(d),g=a(0),p=(a.n(g),a(5)),m=a.n(p),b=a(14),v=a.n(b),h=a(887),_=a(54),M=a(287),k=a(23),y=(a(7),a(12)),w=a.n(y),q=(o=n=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.render=function(){return i()("div",{className:"navigation-bar"},void 0,i()(M.a,{href:this.props.account.get("url"),to:"/accounts/"+this.props.account.get("id")},void 0,i()("span",{style:{display:"none"}},void 0,this.props.account.get("acct")),i()(_.a,{account:this.props.account,size:40})),i()("div",{className:"navigation-bar__profile"},void 0,i()(M.a,{href:this.props.account.get("url"),to:"/accounts/"+this.props.account.get("id")},void 0,i()("strong",{className:"navigation-bar__profile-account"},void 0,"@",this.props.account.get("acct")))),i()("div",{className:"navigation-bar__actions"},void 0,i()(k.a,{className:"close",title:"",icon:"close",onClick:this.props.onClose}),i()(h.a,{account:this.props.account})))},t}(w.a),n.propTypes={account:v.a.map.isRequired,onClose:m.a.func},o)},887:function(e,t,a){"use strict";a.d(t,"a",function(){return v});var n,o=a(2),s=a.n(o),i=a(1),r=a.n(i),l=a(3),c=a.n(l),u=a(4),d=a.n(u),f=a(0),g=a.n(f),p=a(291),m=a(7),b=Object(m.f)({edit_profile:{id:"account.edit_profile",defaultMessage:"Edit profile"},pins:{id:"navigation_bar.pins",defaultMessage:"Pinned toots"},preferences:{id:"navigation_bar.preferences",defaultMessage:"Preferences"},follow_requests:{id:"navigation_bar.follow_requests",defaultMessage:"Follow requests"},favourites:{id:"navigation_bar.favourites",defaultMessage:"Favourites"},lists:{id:"navigation_bar.lists",defaultMessage:"Lists"},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"}}),v=Object(m.g)(n=function(e){function t(){return r()(this,t),c()(this,e.apply(this,arguments))}return d()(t,e),t.prototype.render=function(){var e=this.props.intl,t=[];return t.push({text:e.formatMessage(b.preferences),href:"/user-settings"}),t.push({text:e.formatMessage(b.pins),to:"/pinned"}),t.push(null),t.push({text:e.formatMessage(b.follow_requests),to:"/follow_requests"}),t.push({text:e.formatMessage(b.favourites),to:"/favourites"}),t.push({text:e.formatMessage(b.lists),to:"/lists"}),t.push(null),t.push({text:e.formatMessage(b.mutes),to:"/mutes"}),t.push({text:e.formatMessage(b.blocks),to:"/blocks"}),t.push({text:e.formatMessage(b.domain_blocks),to:"/domain_blocks"}),s()("div",{className:"compose__action-bar"},void 0,s()("div",{className:"compose__action-bar-dropdown"},void 0,s()(p.a,{items:t,icon:"ellipsis-v",size:24,direction:"right"})))},t}(g.a.PureComponent))||n},897:function(e,t,a){"use strict";var n=a(2),o=a.n(n),s=a(0),i=(a.n(s),a(44)),r=function(e){var t=e.icon,a=e.text,n=e.to,s=e.href,r=e.method,l=e.badge,c=void 0!==l?o()("span",{className:"column-link__badge"},void 0,l):null;return s?o()("a",{href:s,className:"column-link","data-method":r},void 0,o()("i",{className:"fa fa-fw fa-"+t+" column-link__icon"}),a,c):o()(i.b,{to:n,className:"column-link"},void 0,o()("i",{className:"fa fa-fw fa-"+t+" column-link__icon"}),a,c)};t.a=r},898:function(e,t,a){"use strict";var n=a(2),o=a.n(n),s=a(0),i=(a.n(s),function(e){var t=e.text;return o()("div",{className:"column-subheading"},void 0,t)});t.a=i}});
//# sourceMappingURL=getting_started.js.map