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

web-interface.assets.325e2d4b-3060.c64385ba326662b8dc31.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["325e2d4b-3060"],{KiVlXDxo:(t,e,s)=>{s.r(e),s.d(e,{default:()=>x});var i=s("Z7aTuO5B"),n=s("J6y4/h8P"),r=s("b/6pmtOr"),a=s("0zTRKSqx"),o=s("F9olzlTR"),l=s("ii0bleBb"),d=s.n(l),m=s("pjsNBHWI"),u=s.n(m),g=s("/2jz2K4G");function c(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}const h=n.default.div.withConfig({displayName:"GettingStarted__Container",componentId:"sc-1a1lb38-0"})(["height:100%;display:grid;display:-ms-grid;grid-template-rows:max-content 1fr;-ms-grid-rows:max-content 1fr;grid-template-columns:1fr;-ms-grid-columns:1fr;"]),p=n.default.div.withConfig({displayName:"GettingStarted__DismissButtonSection",componentId:"sc-1a1lb38-1"})(["grid-column:1;-ms-grid-column:1;grid-row:1;-ms-grid-row:1;"]),S=(0,n.default)(o.zx).withConfig({displayName:"GettingStarted__DismissButton",componentId:"sc-1a1lb38-2"})(["margin-right:5px;top:-4px;position:relative;"]),f=n.default.div.withConfig({displayName:"GettingStarted__ContentSection",componentId:"sc-1a1lb38-3"})(["grid-row:2;-ms-grid-row:2;grid-column:1;-ms-grid-column:1;"]),w=n.default.iframe.withConfig({displayName:"GettingStarted__GettingStartedIframe",componentId:"sc-1a1lb38-4"})((t=>{let{hidden:e}=t;return(0,n.css)(["display:",";width:100%;height:100%;"],e?"none":"block")}));class y extends i.Component{constructor(t){super(t),c(this,"timeoutId",null),c(this,"_onMessage",(t=>{const{gettingStartedUrl:e}=this.props;0===e.indexOf(t.origin)&&(null!==this.timeoutId&&(window.clearTimeout(Number(this.timeoutId)),this.timeoutId=null),this.setState({guideLoaded:t.data.guideLoaded,guideUrl:t.data.guideUrl}))})),c(this,"_displayFallbackContent",(()=>{this.setState({showStaticContent:!0})})),c(this,"_dismissGuide",(()=>{const{onDismiss:t}=this.props;g.m.dismiss.triggerPromise().then((()=>{t&&t()}))})),this.state={guideLoaded:!1,guideUrl:"",showStaticContent:!1}}componentDidMount(){window.addEventListener&&window.addEventListener("message",this._onMessage),this.timeoutId=window.setTimeout(this._displayFallbackContent,3e3)}componentWillUnmount(){window.removeEventListener&&window.removeEventListener("message",this._onMessage),null!==this.timeoutId&&(window.clearTimeout(Number(this.timeoutId)),this.timeoutId=null)}render(){const{noDismissButton:t,clusterId:e,masterOs:s,masterVersion:n,gettingStartedUrl:r}=this.props,{showStaticContent:l,guideLoaded:d,guideUrl:m}=this.state;let g=null;t||(g=i.createElement(S,{bsStyle:"default",bsSize:"small",onClick:this._dismissGuide},i.createElement(a.JO,{name:"times"})," Dismiss guide"));let c=null;if(l)c=i.createElement(o.rj,null,i.createElement(a._g,{className:"content"},i.createElement(o.JX,{mdPush:3,md:6,className:"text-center",style:{paddingBottom:"15px"}},i.createElement("span",null,"We could not load the"," ",i.createElement("a",{target:"_blank",rel:"noopener noreferrer",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{const l=u().stringify({c:e,o:s,v:n,m:t}),g=""===m?`${r}?${l}`:m;let h=null;d||(h=i.createElement(o.rj,null,i.createElement(a._g,{className:"content"},i.createElement(o.JX,{mdPush:3,md:6,className:"text-center",style:{paddingBottom:"15px"}},i.createElement(a.$j,{text:"Loading Graylog Getting started guide ..."}))))),c=i.createElement(i.Fragment,null,h,i.createElement(w,{src:g,hidden:!d,id:"getting-started-frame",frameBorder:"0",scrolling:"yes",title:"getting-started-content"},i.createElement("p",null,"Sorry, no iframes")))}return i.createElement(h,null,i.createElement(p,null,i.createElement("div",{className:"pull-right"},g)),i.createElement(f,null,c))}}c(y,"propTypes",{clusterId:d().string.isRequired,masterOs:d().string.isRequired,masterVersion:d().string.isRequired,gettingStartedUrl:d().string.isRequired,noDismissButton:d().bool,onDismiss:d().func}),c(y,"defaultProps",{noDismissButton:!1,onDismiss:()=>{}});const b=y;var E=s("DeVaSktS"),_=s("BSHS2nUH"),G=s("2Ob2iJ3u"),I=s("0iEZcHgl");const C=(0,n.default)(o.X2).withConfig({displayName:"GettingStartedPage__StyledRow",componentId:"sc-4gz875-0"})(["height:100%;"]),v=t=>{let{system:e,location:s}=t;if(!e)return i.createElement(a.$j,null);const{cluster_id:n,operating_system:r,version:o}=e;return i.createElement(a.$4,{title:"Getting started"},i.createElement(C,null,i.createElement(b,{clusterId:n,masterOs:r,masterVersion:o,gettingStartedUrl:"https://gettingstarted.graylog.org/",noDismissButton:Boolean(s.query.menu),onDismiss:()=>_.Z.push(E.ZP.STARTPAGE)})))};v.displayName="GettingStartedPage";const x=(0,r.Z)((0,G.Z)(v),{systemStore:I.B},(t=>{let{systemStore:e}=t;return{system:e.system}}))},"/2jz2K4G":(t,e,s)=>{s.d(e,{I:()=>m,m:()=>d});var i=s("JnTtTRmZ"),n=s.n(i),r=s("OqsMdpSm"),a=s("4af3+9mh"),o=s("0wQfx7YJ"),l=s("xc00RsLr");const d=(0,l.ei)("core.GettingStarted",(()=>n().createActions({getStatus:{asyncResult:!0},dismiss:{asyncResult:!0}}))),m=(0,l.dS)("core.GettingStarted",(()=>n().createStore({listenables:[d],sourceUrl:"/system/gettingstarted",status:void 0,init(){this.getStatus()},getInitialState(){return{status:this.status}},get(){return this.status},getStatus(){const t=(0,r.ZP)("GET",o.DC(this.sourceUrl));t.then((t=>(this.status=t,this.trigger({status:this.status}),t)),(t=>console.error(t))),d.getStatus.promise(t)},dismiss(){const t=(0,r.ZP)("POST",o.DC(`${this.sourceUrl}/dismiss`),"{}");t.then((t=>(this.getStatus(),t)),(t=>{a.Z.error(`Dismissing Getting Started Guide failed with status: ${t}`,"Could not dismiss guide")})),d.dismiss.promise(t)}})))}}]);
//# sourceMappingURL=325e2d4b-3060.c64385ba326662b8dc31.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy