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

web-interface.assets.b6fe2bb5-3060.e5322c723266511069cc.js.map Maven / Gradle / Ivy

{"version":3,"file":"b6fe2bb5-3060.e5322c723266511069cc.js","mappings":"uvDAyBA,IAAMA,EAAYC,EAAAA,QAAAA,IAAAA,WAAH,qEAAGA,CAAH,gKAUTC,EAAuBD,EAAAA,QAAAA,IAAAA,WAAH,gFAAGA,CAAH,gEAOpBE,GAAgBF,EAAAA,EAAAA,SAAOG,EAAAA,IAAV,oFAAGH,CAAH,kDAMbI,EAAiBJ,EAAAA,QAAAA,IAAAA,WAAH,0EAAGA,CAAH,gEAOdK,EAAuBL,EAAAA,QAAAA,OAAAA,WAAH,gFAAGA,EAAc,gBAAGM,EAAH,EAAGA,OAAH,OAAgBC,EAAAA,EAAAA,KAAf,CAAD,uCAC9BD,EAAS,OAAS,YAKzBE,EAAAA,SAAAA,I,4SAiBJ,WAAYC,GAAO,a,4FAAA,aACjB,cAAMA,IADW,YAhBP,MAgBO,qBA6BN,SAACC,GAI2C,IAHzB,EAAKD,MAA3BE,kBAGcC,QAAQF,EAAaG,UAClB,OAAnB,EAAKC,YACPC,OAAOC,aAAaC,OAAO,EAAKH,YAChC,EAAKA,UAAY,MAGnB,EAAKI,SAAS,CACZC,YAAaT,EAAaU,KAAKD,YAC/BE,SAAUX,EAAaU,KAAKC,eAzCf,kCA8CO,WACxB,EAAKH,SAAS,CAAEI,mBAAmB,OA/ClB,wBAkDH,WACd,IAAQC,EAAc,EAAKd,MAAnBc,UAERC,EAAAA,EAAAA,QAAAA,iBAA+CC,MAAK,WAC9CF,GACFA,UApDJ,EAAKG,MAAQ,CACXP,aAAa,EACbE,SAAU,GACVC,mBAAmB,GANJ,E,8CAUnB,WACMP,OAAOY,kBACTZ,OAAOY,iBAAiB,UAAWC,KAAKC,YAG1CD,KAAKd,UAAYC,OAAOe,WAAWF,KAAKG,wBAAyB,O,kCAGnE,WACMhB,OAAOiB,qBACTjB,OAAOiB,oB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BAAML,IAAAA,YAAmB,CACvBM,YAAa,CAACrE,GACdsE,UAAW,yBACXC,YAAQC,EAERC,KALuB,WAMrBrE,KAAK4D,aAGPU,gBATuB,WAUrB,MAAO,CAAEH,OAAQnE,KAAKmE,SAGxBI,IAbuB,WAcrB,OAAOvE,KAAKmE,QAGdP,UAjBuB,WAiBX,WACJY,GAAUC,EAAAA,EAAAA,IAAM,MAAOC,EAAAA,GAAoB1E,KAAKkE,YAEtDM,EACG3E,MACC,SAAC8E,GAIC,OAHA,EAAKR,OAASQ,EACd,EAAKC,QAAQ,CAAET,OAAQ,EAAKA,SAErBQ,KAET,SAACE,GAAD,OAAWC,QAAQD,MAAMA,MAG7BjF,EAAsBgE,UAAUY,QAAQA,IAG1CV,QAlCuB,WAkCb,WACFU,GAAUC,EAAAA,EAAAA,IAAM,OAAQC,EAAAA,GAAA,UAAuB1E,KAAKkE,UAA5B,aAAkD,MAEhFM,EACG3E,MACC,SAAC8E,GAGC,OAFA,EAAKf,YAEEe,KAET,SAACE,GACCE,EAAAA,EAAAA,MAAA,+DAA+EF,GAC7E,8BAIRjF,EAAsBkE,QAAQU,QAAQA","sources":["webpack://graylog-web-interface/./src/components/gettingstarted/GettingStarted.jsx","webpack://graylog-web-interface/./src/pages/GettingStartedPage.tsx","webpack://graylog-web-interface/./src/stores/gettingstarted/GettingStartedStore.js"],"sourcesContent":["/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport Qs from 'qs';\nimport styled, { css } from 'styled-components';\n\nimport { Grid, Col, Button } from 'components/bootstrap';\nimport { ContentHeadRow, Spinner, Icon } from 'components/common';\nimport { GettingStartedActions } from 'stores/gettingstarted/GettingStartedStore';\n\nconst Container = styled.div`\n  height: 100%;\n  display: grid;\n  display: -ms-grid;\n  grid-template-rows: max-content 1fr;\n  -ms-grid-rows: max-content 1fr;\n  grid-template-columns: 1fr;\n  -ms-grid-columns: 1fr;\n`;\n\nconst DismissButtonSection = styled.div`\n  grid-column: 1;\n  -ms-grid-column: 1;\n  grid-row: 1;\n  -ms-grid-row: 1;\n`;\n\nconst DismissButton = styled(Button)`\n  margin-right: 5px;\n  top: -4px;\n  position: relative;\n`;\n\nconst ContentSection = styled.div`\n  grid-row: 2;\n  -ms-grid-row: 2;\n  grid-column: 1;\n  -ms-grid-column: 1;\n`;\n\nconst GettingStartedIframe = styled.iframe(({ hidden }) => css`\n  display: ${hidden ? 'none' : 'block'};\n  width: 100%;\n  height: 100%;\n`);\n\nclass GettingStarted extends React.Component {\n  timeoutId = null;\n\n  static propTypes = {\n    clusterId: PropTypes.string.isRequired,\n    masterOs: PropTypes.string.isRequired,\n    masterVersion: PropTypes.string.isRequired,\n    gettingStartedUrl: PropTypes.string.isRequired,\n    noDismissButton: PropTypes.bool,\n    onDismiss: PropTypes.func,\n  };\n\n  static defaultProps = {\n    noDismissButton: false,\n    onDismiss: () => {},\n  };\n\n  constructor(props) {\n    super(props);\n\n    this.state = {\n      guideLoaded: false,\n      guideUrl: '',\n      showStaticContent: false,\n    };\n  }\n\n  componentDidMount() {\n    if (window.addEventListener) {\n      window.addEventListener('message', this._onMessage);\n    }\n\n    this.timeoutId = window.setTimeout(this._displayFallbackContent, 3000);\n  }\n\n  componentWillUnmount() {\n    if (window.removeEventListener) {\n      window.removeEventListener('message', this._onMessage);\n    }\n\n    if (this.timeoutId !== null) {\n      window.clearTimeout(Number(this.timeoutId));\n      this.timeoutId = null;\n    }\n  }\n\n  _onMessage = (messageEvent) => {\n    const { gettingStartedUrl } = this.props;\n\n    // make sure we only process messages from the getting started url, otherwise this can interfere with other messages being posted\n    if (gettingStartedUrl.indexOf(messageEvent.origin) === 0) {\n      if (this.timeoutId !== null) {\n        window.clearTimeout(Number(this.timeoutId));\n        this.timeoutId = null;\n      }\n\n      this.setState({\n        guideLoaded: messageEvent.data.guideLoaded,\n        guideUrl: messageEvent.data.guideUrl,\n      });\n    }\n  };\n\n  _displayFallbackContent = () => {\n    this.setState({ showStaticContent: true });\n  };\n\n  _dismissGuide = () => {\n    const { onDismiss } = this.props;\n\n    GettingStartedActions.dismiss.triggerPromise().then(() => {\n      if (onDismiss) {\n        onDismiss();\n      }\n    });\n  };\n\n  render() {\n    const { noDismissButton, clusterId, masterOs, masterVersion, gettingStartedUrl } = this.props;\n    const { showStaticContent, guideLoaded, guideUrl } = this.state;\n\n    let dismissButton = null;\n\n    if (!noDismissButton) {\n      dismissButton = (\n        \n           Dismiss guide\n        \n      );\n    }\n\n    let gettingStartedContent = null;\n\n    if (showStaticContent) {\n      gettingStartedContent = (\n        \n          \n            \n              \n                We could not load the{' '}\n                Graylog Getting Started Guide.\n                Please open it directly with a browser that can access the public internet.\n              \n            \n          \n        \n      );\n    } else {\n      const query = Qs.stringify({\n        c: clusterId,\n        o: masterOs,\n        v: masterVersion,\n        m: noDismissButton,\n      });\n\n      const url = guideUrl === '' ? (`${gettingStartedUrl}?${query}`) : guideUrl;\n      let spinner = null;\n\n      if (!guideLoaded) {\n        spinner = (\n          \n            \n              \n                \n              \n            \n          \n        );\n      }\n\n      gettingStartedContent = (\n        <>\n          {spinner}\n          \n        \n      );\n    }\n\n    return (\n      \n        \n          
{dismissButton}
\n
\n \n {gettingStartedContent}\n \n
\n );\n }\n}\n\nexport default GettingStarted;\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport * as React from 'react';\nimport styled from 'styled-components';\n\nimport connect from 'stores/connect';\nimport { DocumentTitle, Spinner } from 'components/common';\nimport { Row } from 'components/bootstrap';\nimport GettingStarted from 'components/gettingstarted/GettingStarted';\nimport Routes from 'routing/Routes';\nimport history from 'util/History';\nimport withLocation from 'routing/withLocation';\nimport type { Location } from 'routing/withLocation';\nimport { SystemStore } from 'stores/system/SystemStore';\n\nconst GETTING_STARTED_URL = 'https://gettingstarted.graylog.org/';\n\nconst StyledRow = styled(Row)`\n height: 100%;\n`;\n\ntype Props = {\n system: {\n cluster_id: string,\n operating_system: string,\n version: string,\n },\n location: Location,\n};\n\nconst GettingStartedPage = ({ system, location }: Props) => {\n if (!system) {\n return ;\n }\n\n const { cluster_id: clusterId, operating_system: operatingSystem, version } = system;\n const _onDismiss = () => history.push(Routes.STARTPAGE);\n\n return (\n \n \n \n \n \n );\n};\n\nGettingStartedPage.displayName = 'GettingStartedPage';\n\nexport default connect(\n withLocation(GettingStartedPage),\n { systemStore: SystemStore },\n ({ systemStore }: { systemStore: { system: unknown }}) => ({\n system: systemStore.system,\n }),\n);\n","/*\n * Copyright (C) 2020 Graylog, Inc.\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the Server Side Public License, version 1,\n * as published by MongoDB, Inc.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * Server Side Public License for more details.\n *\n * You should have received a copy of the Server Side Public License\n * along with this program. If not, see\n * .\n */\nimport Reflux from 'reflux';\n\nimport fetch from 'logic/rest/FetchProvider';\nimport UserNotification from 'util/UserNotification';\nimport * as URLUtils from 'util/URLUtils';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const GettingStartedActions = singletonActions(\n 'core.GettingStarted',\n () => Reflux.createActions({\n getStatus: { asyncResult: true },\n dismiss: { asyncResult: true },\n }),\n);\n\nexport const GettingStartedStore = singletonStore(\n 'core.GettingStarted',\n () => Reflux.createStore({\n listenables: [GettingStartedActions],\n sourceUrl: '/system/gettingstarted',\n status: undefined,\n\n init() {\n this.getStatus();\n },\n\n getInitialState() {\n return { status: this.status };\n },\n\n get() {\n return this.status;\n },\n\n getStatus() {\n const promise = fetch('GET', URLUtils.qualifyUrl(this.sourceUrl));\n\n promise\n .then(\n (response) => {\n this.status = response;\n this.trigger({ status: this.status });\n\n return response;\n },\n (error) => console.error(error),\n );\n\n GettingStartedActions.getStatus.promise(promise);\n },\n\n dismiss() {\n const promise = fetch('POST', URLUtils.qualifyUrl(`${this.sourceUrl}/dismiss`), '{}');\n\n promise\n .then(\n (response) => {\n this.getStatus();\n\n return response;\n },\n (error) => {\n UserNotification.error(`Dismissing Getting Started Guide failed with status: ${error}`,\n 'Could not dismiss guide');\n },\n );\n\n GettingStartedActions.dismiss.promise(promise);\n },\n }),\n);\n"],"names":["Container","styled","DismissButtonSection","DismissButton","Button","ContentSection","GettingStartedIframe","hidden","css","GettingStarted","props","messageEvent","gettingStartedUrl","indexOf","origin","timeoutId","window","clearTimeout","Number","setState","guideLoaded","data","guideUrl","showStaticContent","onDismiss","GettingStartedActions","then","state","addEventListener","this","_onMessage","setTimeout","_displayFallbackContent","removeEventListener","noDismissButton","clusterId","masterOs","masterVersion","dismissButton","bsStyle","bsSize","onClick","_dismissGuide","name","gettingStartedContent","className","mdPush","md","style","paddingBottom","target","rel","href","query","Qs","c","o","v","m","url","spinner","text","src","id","frameBorder","scrolling","title","React","PropTypes","StyledRow","Row","GettingStartedPage","system","location","cluster_id","operatingSystem","operating_system","version","Boolean","menu","history","Routes","displayName","connect","withLocation","systemStore","SystemStore","singletonActions","Reflux","getStatus","asyncResult","dismiss","GettingStartedStore","singletonStore","listenables","sourceUrl","status","undefined","init","getInitialState","get","promise","fetch","URLUtils","response","trigger","error","console","UserNotification"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy