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

web-interface.assets.46.746b58959a350aa1ebcf.js Maven / Gradle / Ivy

There is a newer version: 6.0.6
Show newest version
webpackJsonp([46],{1463:function(t,exports,e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var s=e(5),n=i(s),a=e(2),l=i(a),r=e(1),d=i(r),o=e(46),u=e(1464),m=i(u),c=e(76),g=i(c),f=e(23),h=i(f),p=h.default.getStore("System"),y=l.default.createClass({displayName:"GettingStartedPage",propTypes:{location:n.default.object.isRequired,history:n.default.object.isRequired},mixins:[d.default.connect(p)],_isLoading:function(){return!this.state.system},_onDismiss:function(){this.props.history.pushState(null,g.default.STARTPAGE)},render:function(){return this._isLoading()?l.default.createElement(o.Spinner,null):l.default.createElement(o.DocumentTitle,{title:"Getting started"},l.default.createElement("div",null,l.default.createElement(m.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=y,t.exports=exports.default},1464:function(t,exports,e){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(exports,"__esModule",{value:!0});var s=e(2),n=i(s),a=e(16),l=e(5),r=i(l),d=e(90),o=i(d),u=e(46),m=e(8),c=i(m),g=c.default.getActions("GettingStarted"),f=n.default.createClass({displayName:"GettingStarted",propTypes:function(){return{clusterId:r.default.string.isRequired,masterOs:r.default.string.isRequired,masterVersion:r.default.string.isRequired,gettingStartedUrl:r.default.string.isRequired,noDismissButton:r.default.bool,onDismiss:r.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;g.dismiss.triggerPromise().then(function(){t.props.onDismiss&&t.props.onDismiss()})},render:function(){var t=null;this.props.noDismissButton||(t=n.default.createElement(a.Button,{bsStyle:"default",bsSize:"small",onClick:this._dismissGuide},n.default.createElement("i",{className:"fa fa-times"})," Dismiss guide"));var e=null;if(this.state.showStaticContent)e=n.default.createElement(a.Grid,null,n.default.createElement(a.Row,null,n.default.createElement(a.Col,{mdPush:3,md:6,className:"content content-head text-center",style:{paddingBottom:"15px"}},n.default.createElement("span",null,"We could not load the"," ",n.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 i=o.default.stringify({c:this.props.clusterId,o:this.props.masterOs,v:this.props.masterVersion,m:this.props.noDismissButton}),s={minHeight:this.state.minHeight,height:this.state.minHeight,width:"100%"};this.state.guideLoaded||(s.display="none");var l=""===this.state.guideUrl?this.props.gettingStartedUrl+"?"+i:this.state.guideUrl,r=null;this.state.guideLoaded||(r=n.default.createElement(a.Grid,null,n.default.createElement(a.Row,null,n.default.createElement(a.Col,{mdPush:3,md:6,className:"content content-head text-center",style:{paddingBottom:"15px"}},n.default.createElement(u.Spinner,{text:"Loading Graylog Getting started guide ..."}))))),e=n.default.createElement("div",null,r,n.default.createElement("iframe",{src:l,style:s,id:"getting-started-frame",frameBorder:"0",scrolling:"yes"},n.default.createElement("p",null,"Sorry, no iframes")))}return n.default.createElement("div",{id:"react-gettingstarted"},n.default.createElement("div",{className:"pull-right"},t),e)}});exports.default=f,t.exports=exports.default}});
//# sourceMappingURL=46.746b58959a350aa1ebcf.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy