All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.45.7274e9222d07ea893176.js Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
webpackJsonp([45],{1467:function(t,exports,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=e(5),s=n(a),i=e(2),l=n(i),o=e(1),u=n(o),d=e(49),r=e(1468),c=n(r),m=e(1469),f=n(m),h=e(76),g=n(h),p=e(23),S=n(p),y=S.default.getStore("System"),E=l.default.createClass({displayName:"GettingStartedPage",propTypes:{location:s.default.object.isRequired,history:s.default.object.isRequired},mixins:[u.default.connect(y)],_isLoading:function(){return!this.state.system},_onDismiss:function(){this.props.history.pushState(null,g.default.STARTPAGE)},render:function(){return this._isLoading()?l.default.createElement(d.Spinner,null):l.default.createElement(d.DocumentTitle,{title:"Getting started"},l.default.createElement("div",null,l.default.createElement(d.IfPermitted,{permissions:"clusterconfigentry:edit:org.graylog.plugins.usagestatistics.UsageStatsOptOutState"},l.default.createElement(f.default,null)),l.default.createElement(c.default,{clusterId:this.state.system.cluster_id,masterOs:this.state.system.operating_system,masterVersion:this.state.system.version,gettingStartedUrl:"https://gettingstarted.graylog.org/",noDismissButton:Boolean(this.props.location.query.menu),onDismiss:this._onDismiss})))}});exports.default=E,t.exports=exports.default},1468:function(t,exports,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=e(2),s=n(a),i=e(16),l=e(5),o=n(l),u=e(91),d=n(u),r=e(49),c=e(8),m=n(c),f=m.default.getActions("GettingStarted"),h=s.default.createClass({displayName:"GettingStarted",propTypes:function(){return{clusterId:o.default.string.isRequired,masterOs:o.default.string.isRequired,masterVersion:o.default.string.isRequired,gettingStartedUrl:o.default.string.isRequired,noDismissButton:o.default.bool,onDismiss:o.default.func}},getInitialState:function(){return{guideLoaded:!1,guideUrl:"",showStaticContent:!1,frameHeight:"500px"}},componentDidMount:function(){window.addEventListener&&window.addEventListener("message",this._onMessage),this.timeoutId=window.setTimeout(this._displayFallbackContent,3e3)},componentWillUnmount:function(){window.removeEventListener&&window.removeEventListener("message",this._onMessage),null!==this.timeoutId&&(window.clearTimeout(Number(this.timeoutId)),this.timeoutId=null)},timeoutId:null,_onMessage:function(t){0===this.props.gettingStartedUrl.indexOf(t.origin)&&(null!==this.timeoutId&&(window.clearTimeout(Number(this.timeoutId)),this.timeoutId=null),this.setState({guideLoaded:t.data.guideLoaded,guideUrl:t.data.guideUrl,minHeight:0===t.data.height?this.state.minHeight:t.data.height}))},_displayFallbackContent:function(){this.setState({showStaticContent:!0})},_dismissGuide:function(){var t=this;f.dismiss.triggerPromise().then(function(){t.props.onDismiss&&t.props.onDismiss()})},render:function(){var t=null;this.props.noDismissButton||(t=s.default.createElement(i.Button,{bsStyle:"default",bsSize:"small",onClick:this._dismissGuide},s.default.createElement("i",{className:"fa fa-times"})," Dismiss guide"));var e=null;if(this.state.showStaticContent)e=s.default.createElement(i.Grid,null,s.default.createElement(i.Row,null,s.default.createElement(i.Col,{mdPush:3,md:6,className:"content content-head text-center",style:{paddingBottom:"15px"}},s.default.createElement("span",null,"We could not load the"," ",s.default.createElement("a",{target:"_blank",href:"https://gettingstarted.graylog.org/assets/index.html"},"Graylog Getting Started Guide"),". Please open it directly with a browser that can access the public internet."))));else{var n=d.default.stringify({c:this.props.clusterId,o:this.props.masterOs,v:this.props.masterVersion,m:this.props.noDismissButton}),a={minHeight:this.state.minHeight,height:this.state.minHeight,width:"100%"};this.state.guideLoaded||(a.display="none");var l=""===this.state.guideUrl?this.props.gettingStartedUrl+"?"+n:this.state.guideUrl,o=null;this.state.guideLoaded||(o=s.default.createElement(i.Grid,null,s.default.createElement(i.Row,null,s.default.createElement(i.Col,{mdPush:3,md:6,className:"content content-head text-center",style:{paddingBottom:"15px"}},s.default.createElement(r.Spinner,{text:"Loading Graylog Getting started guide ..."}))))),e=s.default.createElement("div",null,o,s.default.createElement("iframe",{src:l,style:a,id:"getting-started-frame",frameBorder:"0",scrolling:"yes"},s.default.createElement("p",null,"Sorry, no iframes")))}return s.default.createElement("div",{id:"react-gettingstarted"},s.default.createElement("div",{className:"pull-right"},t),e)}});exports.default=h,t.exports=exports.default},1469:function(t,exports,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var a=e(2),s=n(a),i=e(39),l=n(i),o=e(16),u=e(23),d=n(u),r=d.default.getStore("UsageStatsOptOut"),c=s.default.createClass({displayName:"UsageStatsOptOut",getInitialState:function(){return{optOutStateLoaded:!1,optOutState:null,pluginEnabled:!1,buttonWidth:80}},componentDidMount:function(){var t=this;r.pluginEnabled().done(function(e){t.setState({pluginEnabled:e},t._updateOkButtonWidth)}),r.getOptOutState().done(function(e){t.setState({optOutStateLoaded:!0,optOutState:e},t._updateOkButtonWidth)})},_updateOkButtonWidth:function(){this.refs.dontSendButton&&this.setState({buttonWidth:l.default.findDOMNode(this.refs.dontSendButton).clientWidth})},_handleClickEnable:function(){r.setOptIn(!0),this.setState({optOutStateLoaded:!0,optOutState:{opt_out:!1}})},_handleClickDisable:function(){r.setOptOut(!0),this.setState({optOutStateLoaded:!0,optOutState:{opt_out:!0}})},render:function(){var t=null;return this.state.optOutStateLoaded&&!0===this.state.pluginEnabled&&null===this.state.optOutState&&(t=s.default.createElement(o.Row,{className:"content"},s.default.createElement(o.Col,{md:12},s.default.createElement(o.Row,{className:"row-sm"},s.default.createElement(o.Col,{md:10},s.default.createElement("div",{style:{marginTop:8}},s.default.createElement("i",{className:"fa fa-info-circle"}),"  Graylog collects completely anonymous usage data to help us improve the product for you. Continuing means you are cool with sending us anonymous data. If this makes you unhappy, click ",s.default.createElement("em",null,"Don't send")," to disable.")),s.default.createElement(o.Col,{md:2},s.default.createElement("div",{className:"text-right"},s.default.createElement(o.Button,{bsSize:"small",bsStyle:"success",onClick:this._handleClickEnable,style:{width:this.state.buttonWidth}},"Ok")," ",s.default.createElement(o.Button,{ref:"dontSendButton",bsSize:"small",onClick:this._handleClickDisable},"Don't send"))))))),t}});exports.default=c,t.exports=exports.default}});
//# sourceMappingURL=45.7274e9222d07ea893176.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy