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

web-interface.assets.35.35.a37bd6c43e2b13149f99.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"sources":["webpack:///35.35.a37bd6c43e2b13149f99.js","webpack:///./src/components/gettingstarted/GettingStarted.jsx","webpack:///./src/components/usagestats/UsageStatsOptOut.jsx","webpack:///./src/pages/GettingStartedPage.jsx"],"names":["webpackJsonp","704","module","exports","__webpack_require__","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","_react","_react2","_reactBootstrap","_qs","_qs2","_common","_ActionsProvider","_ActionsProvider2","GettingStartedActions","getActions","GettingStarted","createClass","displayName","propTypes","clusterId","PropTypes","string","isRequired","masterOs","masterVersion","gettingStartedUrl","noDismissButton","bool","onDismiss","func","getInitialState","guideLoaded","guideUrl","showStaticContent","frameHeight","componentDidMount","window","addEventListener","this","_onMessage","timeoutId","setTimeout","_displayFallbackContent","componentWillUnmount","removeEventListener","clearTimeout","Number","messageEvent","props","indexOf","origin","setState","data","minHeight","height","state","_dismissGuide","_this","dismiss","triggerPromise","then","render","dismissButton","createElement","Button","bsStyle","bsSize","onClick","className","gettingStartedContent","Grid","Row","Col","mdPush","md","style","paddingBottom","target","href","query","stringify","c","o","v","m","iframeStyles","width","display","url","spinner","Spinner","text","src","id","frameBorder","scrolling","809","_reactDom","_reactDom2","_StoreProvider","_StoreProvider2","UsageStatsOptOutStore","getStore","UsageStatsOptOut","optOutStateLoaded","optOutState","pluginEnabled","buttonWidth","done","isEnabled","_updateOkButtonWidth","getOptOutState","refs","dontSendButton","findDOMNode","clientWidth","_handleClickEnable","setOptIn","opt_out","_handleClickDisable","setOptOut","content","marginTop","ref","858","_reflux","_reflux2","_GettingStarted","_GettingStarted2","_UsageStatsOptOut","_UsageStatsOptOut2","_Routes","_Routes2","SystemStore","GETTING_STARTED_URL","GettingStartedPage","location","object","history","mixins","connect","_isLoading","system","_onDismiss","pushState","STARTPAGE","IfPermitted","permissions","cluster_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AuBO,GGjVtCwH,EAAAhI,EAAA,GHqVKiI,EAAWhI,EAAuB+H,GGnVvCnH,EAAAb,EAAA,GACAkI,EAAAlI,EAAA,KHwVKmI,EAAmBlI,EAAuBiI,GGvV/CE,EAAApI,EAAA,KH2VKqI,EAAqBpI,EAAuBmI,GGzVjDE,EAAAtI,EAAA,IH6VKuI,EAAWtI,EAAuBqI,GG3VvChC,EAAAtG,EAAA,GH+VKuG,EAAkBtG,EAAuBqG,GG9VxCkC,EAAcjC,aAAcE,SAAS,UAErCgC,EAAsB,sCACtBC,EAAqBjI,aAAMU,aAAYC,YAAA,qBAC3CC,WACEsH,SAAUnI,EAAAe,UAAUqH,OAAOnH,WAC3BoH,QAASrI,EAAAe,UAAUqH,OAAOnH,YAE5BqH,QAASb,aAAOc,QAAQP,IACxBQ,WAN2C,WAOzC,OAAQvG,KAAKiB,MAAMuF,QAErBC,WAT2C,WAUzCzG,KAAKU,MAAM0F,QAAQM,UAAU,KAAMZ,aAAOa,YAE5CpF,OAZ2C,WAazC,MAAIvB,MAAKuG,aACAvI,aAAAyD,cAAArD,EAAAgF,QAAA,MAIPpF,aAAAyD,cAAA,WACEzD,aAAAyD,cAAArD,EAAAwI,aAAaC,YAAY,qFACvB7I,aAAAyD,cAAAmE,aAAA,OAEF5H,aAAAyD,cAAAiE,cAAgB7G,UAAWmB,KAAKiB,MAAMuF,OAAOM,WAC7B7H,SAAUe,KAAKiB,MAAMuF,OAAOO,iBAC5B7H,cAAec,KAAKiB,MAAMuF,OAAOQ,QACjC7H,kBAAmB6G,EACnB5G,gBAAiB6H,QAAQjH,KAAKU,MAAMwF,SAASzD,MAAMyE,MACnD5H,UAAWU,KAAKyG,gBH4WvCnJ,cGtWc2I,EHuWd5I,EAAOC,QAAUA,EAAQ","file":"35.35.a37bd6c43e2b13149f99.js","sourcesContent":["webpackJsonp([35],{\n\n/***/ 704:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t  value: true\n\t});\n\t\n\tvar _react = __webpack_require__(1);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _reactBootstrap = __webpack_require__(2);\n\t\n\tvar _qs = __webpack_require__(139);\n\t\n\tvar _qs2 = _interopRequireDefault(_qs);\n\t\n\tvar _common = __webpack_require__(5);\n\t\n\tvar _ActionsProvider = __webpack_require__(6);\n\t\n\tvar _ActionsProvider2 = _interopRequireDefault(_ActionsProvider);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar GettingStartedActions = _ActionsProvider2.default.getActions('GettingStarted');\n\t\n\tvar GettingStarted = _react2.default.createClass({\n\t  displayName: 'GettingStarted',\n\t  propTypes: function propTypes() {\n\t    return {\n\t      clusterId: _react.PropTypes.string.isRequired,\n\t      masterOs: _react.PropTypes.string.isRequired,\n\t      masterVersion: _react.PropTypes.string.isRequired,\n\t      gettingStartedUrl: _react.PropTypes.string.isRequired,\n\t      noDismissButton: _react.PropTypes.bool,\n\t      onDismiss: _react.PropTypes.func\n\t    };\n\t  },\n\t  getInitialState: function getInitialState() {\n\t    return {\n\t      guideLoaded: false,\n\t      guideUrl: '',\n\t      showStaticContent: false,\n\t      frameHeight: '500px'\n\t    };\n\t  },\n\t  componentDidMount: function componentDidMount() {\n\t    if (window.addEventListener) {\n\t      window.addEventListener('message', this._onMessage);\n\t    }\n\t    this.timeoutId = window.setTimeout(this._displayFallbackContent, 3000);\n\t  },\n\t  componentWillUnmount: function componentWillUnmount() {\n\t    if (window.removeEventListener) {\n\t      window.removeEventListener('message', this._onMessage);\n\t    }\n\t    if (this.timeoutId !== null) {\n\t      window.clearTimeout(Number(this.timeoutId));\n\t      this.timeoutId = null;\n\t    }\n\t  },\n\t\n\t\n\t  timeoutId: null,\n\t  _onMessage: function _onMessage(messageEvent) {\n\t    // make sure we only process messages from the getting started url, otherwise this can interfere with other messages being posted\n\t    if (this.props.gettingStartedUrl.indexOf(messageEvent.origin) === 0) {\n\t      if (this.timeoutId !== null) {\n\t        window.clearTimeout(Number(this.timeoutId));\n\t        this.timeoutId = null;\n\t      }\n\t      this.setState({\n\t        guideLoaded: messageEvent.data.guideLoaded,\n\t        guideUrl: messageEvent.data.guideUrl,\n\t        minHeight: messageEvent.data.height === 0 ? this.state.minHeight : messageEvent.data.height\n\t      });\n\t    }\n\t  },\n\t  _displayFallbackContent: function _displayFallbackContent() {\n\t    this.setState({ showStaticContent: true });\n\t  },\n\t  _dismissGuide: function _dismissGuide() {\n\t    var _this = this;\n\t\n\t    GettingStartedActions.dismiss.triggerPromise().then(function () {\n\t      if (_this.props.onDismiss) {\n\t        _this.props.onDismiss();\n\t      }\n\t    });\n\t  },\n\t  render: function render() {\n\t    var dismissButton = null;\n\t    if (!this.props.noDismissButton) {\n\t      dismissButton = _react2.default.createElement(\n\t        _reactBootstrap.Button,\n\t        { bsStyle: 'default', bsSize: 'small', onClick: this._dismissGuide },\n\t        _react2.default.createElement('i', { className: 'fa fa-times' }),\n\t        ' Dismiss guide'\n\t      );\n\t    }\n\t    var gettingStartedContent = null;\n\t    if (this.state.showStaticContent) {\n\t      gettingStartedContent = _react2.default.createElement(\n\t        _reactBootstrap.Grid,\n\t        null,\n\t        _react2.default.createElement(\n\t          _reactBootstrap.Row,\n\t          null,\n\t          _react2.default.createElement(\n\t            _reactBootstrap.Col,\n\t            { mdPush: 3, md: 6, className: 'content content-head text-center', style: { paddingBottom: '15px' } },\n\t            _react2.default.createElement(\n\t              'span',\n\t              null,\n\t              'We could not load the',\n\t              ' ',\n\t              _react2.default.createElement(\n\t                'a',\n\t                { target: '_blank', href: 'https://gettingstarted.graylog.org/assets/index.html' },\n\t                'Graylog Getting Started Guide'\n\t              ),\n\t              '. Please open it directly with a browser that can access the public internet.'\n\t            )\n\t          )\n\t        )\n\t      );\n\t    } else {\n\t      var query = _qs2.default.stringify({\n\t        c: this.props.clusterId,\n\t        o: this.props.masterOs,\n\t        v: this.props.masterVersion,\n\t        m: this.props.noDismissButton\n\t      });\n\t\n\t      var iframeStyles = {\n\t        minHeight: this.state.minHeight,\n\t        height: this.state.minHeight,\n\t        width: '100%'\n\t      };\n\t      // hide iframe if there's no content loaded yet\n\t      if (!this.state.guideLoaded) {\n\t        iframeStyles.display = 'none';\n\t      }\n\t\n\t      var url = this.state.guideUrl === '' ? this.props.gettingStartedUrl + '?' + query : this.state.guideUrl;\n\t      var spinner = null;\n\t      if (!this.state.guideLoaded) {\n\t        spinner = _react2.default.createElement(\n\t          _reactBootstrap.Grid,\n\t          null,\n\t          _react2.default.createElement(\n\t            _reactBootstrap.Row,\n\t            null,\n\t            _react2.default.createElement(\n\t              _reactBootstrap.Col,\n\t              { mdPush: 3, md: 6, className: 'content content-head text-center', style: { paddingBottom: '15px' } },\n\t              _react2.default.createElement(_common.Spinner, { text: 'Loading Graylog Getting started guide ...' })\n\t            )\n\t          )\n\t        );\n\t      }\n\t\n\t      gettingStartedContent = _react2.default.createElement(\n\t        'div',\n\t        null,\n\t        spinner,\n\t        _react2.default.createElement(\n\t          'iframe',\n\t          { src: url,\n\t            style: iframeStyles,\n\t            id: 'getting-started-frame',\n\t            frameBorder: '0',\n\t            scrolling: 'yes' },\n\t          _react2.default.createElement(\n\t            'p',\n\t            null,\n\t            'Sorry, no iframes'\n\t          )\n\t        )\n\t      );\n\t    }\n\t    return _react2.default.createElement(\n\t      'div',\n\t      { id: 'react-gettingstarted' },\n\t      _react2.default.createElement(\n\t        'div',\n\t        { className: 'pull-right' },\n\t        dismissButton\n\t      ),\n\t      gettingStartedContent\n\t    );\n\t  }\n\t});\n\t\n\texports.default = GettingStarted;\n\tmodule.exports = exports['default'];\n\n/***/ },\n\n/***/ 809:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tvar _react = __webpack_require__(1);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _reactDom = __webpack_require__(27);\n\t\n\tvar _reactDom2 = _interopRequireDefault(_reactDom);\n\t\n\tvar _reactBootstrap = __webpack_require__(2);\n\t\n\tvar _StoreProvider = __webpack_require__(3);\n\t\n\tvar _StoreProvider2 = _interopRequireDefault(_StoreProvider);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar UsageStatsOptOutStore = _StoreProvider2.default.getStore('UsageStatsOptOut');\n\t\n\tvar UsageStatsOptOut = _react2.default.createClass({\n\t  displayName: 'UsageStatsOptOut',\n\t  getInitialState: function getInitialState() {\n\t    return {\n\t      optOutStateLoaded: false,\n\t      optOutState: null,\n\t      pluginEnabled: false,\n\t      buttonWidth: 80\n\t    };\n\t  },\n\t  componentDidMount: function componentDidMount() {\n\t    var _this = this;\n\t\n\t    UsageStatsOptOutStore.pluginEnabled().done(function (isEnabled) {\n\t      _this.setState({ pluginEnabled: isEnabled }, _this._updateOkButtonWidth);\n\t    });\n\t\n\t    UsageStatsOptOutStore.getOptOutState().done(function (optOutState) {\n\t      _this.setState({ optOutStateLoaded: true, optOutState: optOutState }, _this._updateOkButtonWidth);\n\t    });\n\t  },\n\t  _updateOkButtonWidth: function _updateOkButtonWidth() {\n\t    if (this.refs.dontSendButton) {\n\t      this.setState({ buttonWidth: _reactDom2.default.findDOMNode(this.refs.dontSendButton).clientWidth });\n\t    }\n\t  },\n\t  _handleClickEnable: function _handleClickEnable() {\n\t    UsageStatsOptOutStore.setOptIn(true);\n\t    this.setState({ optOutStateLoaded: true, optOutState: { opt_out: false } });\n\t  },\n\t  _handleClickDisable: function _handleClickDisable() {\n\t    UsageStatsOptOutStore.setOptOut(true);\n\t    this.setState({ optOutStateLoaded: true, optOutState: { opt_out: true } });\n\t  },\n\t  render: function render() {\n\t    var content = null;\n\t\n\t    if (this.state.optOutStateLoaded) {\n\t      // We only show the opt-out form if there is no opt-out state!\n\t      if (this.state.pluginEnabled === true && this.state.optOutState === null) {\n\t        content = _react2.default.createElement(\n\t          _reactBootstrap.Row,\n\t          { className: 'content' },\n\t          _react2.default.createElement(\n\t            _reactBootstrap.Col,\n\t            { md: 12 },\n\t            _react2.default.createElement(\n\t              _reactBootstrap.Row,\n\t              { className: 'row-sm' },\n\t              _react2.default.createElement(\n\t                _reactBootstrap.Col,\n\t                { md: 10 },\n\t                _react2.default.createElement(\n\t                  'div',\n\t                  { style: { marginTop: 8 } },\n\t                  _react2.default.createElement('i', { className: 'fa fa-info-circle' }),\n\t                  '\\xA0 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 ',\n\t                  _react2.default.createElement(\n\t                    'em',\n\t                    null,\n\t                    'Don\\'t send'\n\t                  ),\n\t                  ' to disable.'\n\t                )\n\t              ),\n\t              _react2.default.createElement(\n\t                _reactBootstrap.Col,\n\t                { md: 2 },\n\t                _react2.default.createElement(\n\t                  'div',\n\t                  { className: 'text-right' },\n\t                  _react2.default.createElement(\n\t                    _reactBootstrap.Button,\n\t                    { bsSize: 'small', bsStyle: 'success',\n\t                      onClick: this._handleClickEnable,\n\t                      style: { width: this.state.buttonWidth } },\n\t                    'Ok'\n\t                  ),\n\t                  '\\xA0',\n\t                  _react2.default.createElement(\n\t                    _reactBootstrap.Button,\n\t                    { ref: 'dontSendButton', bsSize: 'small', onClick: this._handleClickDisable },\n\t                    'Don\\'t send'\n\t                  )\n\t                )\n\t              )\n\t            )\n\t          )\n\t        );\n\t      }\n\t    }\n\t\n\t    return content;\n\t  }\n\t});\n\t\n\tmodule.exports = UsageStatsOptOut;\n\n/***/ },\n\n/***/ 858:\n/***/ function(module, exports, __webpack_require__) {\n\n\t'use strict';\n\t\n\tObject.defineProperty(exports, \"__esModule\", {\n\t  value: true\n\t});\n\t\n\tvar _react = __webpack_require__(1);\n\t\n\tvar _react2 = _interopRequireDefault(_react);\n\t\n\tvar _reflux = __webpack_require__(4);\n\t\n\tvar _reflux2 = _interopRequireDefault(_reflux);\n\t\n\tvar _common = __webpack_require__(5);\n\t\n\tvar _GettingStarted = __webpack_require__(704);\n\t\n\tvar _GettingStarted2 = _interopRequireDefault(_GettingStarted);\n\t\n\tvar _UsageStatsOptOut = __webpack_require__(809);\n\t\n\tvar _UsageStatsOptOut2 = _interopRequireDefault(_UsageStatsOptOut);\n\t\n\tvar _Routes = __webpack_require__(11);\n\t\n\tvar _Routes2 = _interopRequireDefault(_Routes);\n\t\n\tvar _StoreProvider = __webpack_require__(3);\n\t\n\tvar _StoreProvider2 = _interopRequireDefault(_StoreProvider);\n\t\n\tfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\t\n\tvar SystemStore = _StoreProvider2.default.getStore('System');\n\t\n\tvar GETTING_STARTED_URL = 'https://gettingstarted.graylog.org/';\n\tvar GettingStartedPage = _react2.default.createClass({\n\t  displayName: 'GettingStartedPage',\n\t\n\t  propTypes: {\n\t    location: _react.PropTypes.object.isRequired,\n\t    history: _react.PropTypes.object.isRequired\n\t  },\n\t  mixins: [_reflux2.default.connect(SystemStore)],\n\t  _isLoading: function _isLoading() {\n\t    return !this.state.system;\n\t  },\n\t  _onDismiss: function _onDismiss() {\n\t    this.props.history.pushState(null, _Routes2.default.STARTPAGE);\n\t  },\n\t  render: function render() {\n\t    if (this._isLoading()) {\n\t      return _react2.default.createElement(_common.Spinner, null);\n\t    }\n\t\n\t    return _react2.default.createElement(\n\t      'div',\n\t      null,\n\t      _react2.default.createElement(\n\t        _common.IfPermitted,\n\t        { permissions: 'clusterconfigentry:edit:org.graylog.plugins.usagestatistics.UsageStatsOptOutState' },\n\t        _react2.default.createElement(_UsageStatsOptOut2.default, null)\n\t      ),\n\t      _react2.default.createElement(_GettingStarted2.default, { clusterId: this.state.system.cluster_id,\n\t        masterOs: this.state.system.operating_system,\n\t        masterVersion: this.state.system.version,\n\t        gettingStartedUrl: GETTING_STARTED_URL,\n\t        noDismissButton: Boolean(this.props.location.query.menu),\n\t        onDismiss: this._onDismiss })\n\t    );\n\t  }\n\t});\n\t\n\texports.default = GettingStartedPage;\n\tmodule.exports = exports['default'];\n\n/***/ }\n\n});\n\n\n/** WEBPACK FOOTER **\n ** 35.35.a37bd6c43e2b13149f99.js\n **/","import React, { PropTypes } from 'react';\nimport { Button, Grid, Row, Col } from 'react-bootstrap';\nimport Qs from 'qs';\n\nimport {Spinner} from 'components/common';\n\nimport ActionsProvider from 'injection/ActionsProvider';\nconst GettingStartedActions = ActionsProvider.getActions('GettingStarted');\n\nconst GettingStarted = React.createClass({\n  propTypes() {\n    return {\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  getInitialState() {\n    return {\n      guideLoaded: false,\n      guideUrl: '',\n      showStaticContent: false,\n      frameHeight: '500px',\n    };\n  },\n  componentDidMount() {\n    if (window.addEventListener) {\n      window.addEventListener('message', this._onMessage);\n    }\n    this.timeoutId = window.setTimeout(this._displayFallbackContent, 3000);\n  },\n  componentWillUnmount() {\n    if (window.removeEventListener) {\n      window.removeEventListener('message', this._onMessage);\n    }\n    if (this.timeoutId !== null) {\n      window.clearTimeout(Number(this.timeoutId));\n      this.timeoutId = null;\n    }\n  },\n\n  timeoutId: null,\n  _onMessage(messageEvent) {\n    // make sure we only process messages from the getting started url, otherwise this can interfere with other messages being posted\n    if (this.props.gettingStartedUrl.indexOf(messageEvent.origin) === 0) {\n      if (this.timeoutId !== null) {\n        window.clearTimeout(Number(this.timeoutId));\n        this.timeoutId = null;\n      }\n      this.setState({\n        guideLoaded: messageEvent.data.guideLoaded,\n        guideUrl: messageEvent.data.guideUrl,\n        minHeight: messageEvent.data.height === 0 ? this.state.minHeight : messageEvent.data.height,\n      });\n    }\n  },\n  _displayFallbackContent() {\n    this.setState({showStaticContent: true});\n  },\n  _dismissGuide() {\n    GettingStartedActions.dismiss.triggerPromise().then(() => {\n      if (this.props.onDismiss) {\n        this.props.onDismiss();\n      }\n    });\n  },\n  render() {\n    let dismissButton = null;\n    if (!this.props.noDismissButton) {\n      dismissButton = (\n        \n      );\n    }\n    let gettingStartedContent = null;\n    if (this.state.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: this.props.clusterId,\n        o: this.props.masterOs,\n        v: this.props.masterVersion,\n        m: this.props.noDismissButton,\n      });\n\n      const iframeStyles = {\n        minHeight: this.state.minHeight,\n        height: this.state.minHeight,\n        width: '100%',\n      };\n      // hide iframe if there's no content loaded yet\n      if (!this.state.guideLoaded) {\n        iframeStyles.display = 'none';\n      }\n\n      const url = this.state.guideUrl === '' ? (this.props.gettingStartedUrl + '?' + query) : this.state.guideUrl;\n      let spinner = null;\n      if (!this.state.guideLoaded) {\n        spinner = (\n          \n            \n              \n                \n              \n            \n          \n        );\n      }\n\n      gettingStartedContent = (
\n {spinner}\n \n
);\n }\n return (\n
\n
{dismissButton}
\n {gettingStartedContent}\n
\n );\n },\n});\n\nexport default GettingStarted;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/components/gettingstarted/GettingStarted.jsx\n **/","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Button, Row, Col } from 'react-bootstrap';\n\nimport StoreProvider from 'injection/StoreProvider';\nconst UsageStatsOptOutStore = StoreProvider.getStore('UsageStatsOptOut');\n\nconst UsageStatsOptOut = React.createClass({\n getInitialState() {\n return {\n optOutStateLoaded: false,\n optOutState: null,\n pluginEnabled: false,\n buttonWidth: 80,\n };\n },\n componentDidMount() {\n UsageStatsOptOutStore.pluginEnabled().done((isEnabled) => {\n this.setState({pluginEnabled: isEnabled}, this._updateOkButtonWidth);\n });\n\n UsageStatsOptOutStore.getOptOutState().done((optOutState) => {\n this.setState({optOutStateLoaded: true, optOutState: optOutState}, this._updateOkButtonWidth);\n });\n },\n _updateOkButtonWidth() {\n if (this.refs.dontSendButton) {\n this.setState({buttonWidth: ReactDOM.findDOMNode(this.refs.dontSendButton).clientWidth});\n }\n },\n _handleClickEnable() {\n UsageStatsOptOutStore.setOptIn(true);\n this.setState({optOutStateLoaded: true, optOutState: {opt_out: false}});\n },\n _handleClickDisable() {\n UsageStatsOptOutStore.setOptOut(true);\n this.setState({optOutStateLoaded: true, optOutState: {opt_out: true}});\n },\n render() {\n let content = null;\n\n if (this.state.optOutStateLoaded) {\n // We only show the opt-out form if there is no opt-out state!\n if (this.state.pluginEnabled === true && this.state.optOutState === null) {\n content = (\n \n \n \n \n
\n \n  \n Graylog collects completely anonymous usage data to help us improve the product\n for you.\n Continuing means you are cool with sending us anonymous data. If this makes you\n unhappy, click Don't send to disable.\n
\n \n \n
\n \n  \n \n
\n \n
\n \n
\n );\n }\n }\n\n return content;\n }\n});\n\nmodule.exports = UsageStatsOptOut;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/components/usagestats/UsageStatsOptOut.jsx\n **/","import React, {PropTypes} from 'react';\nimport Reflux from 'reflux';\n\nimport { IfPermitted, Spinner } from 'components/common';\nimport GettingStarted from 'components/gettingstarted/GettingStarted';\nimport UsageStatsOptOut from 'components/usagestats/UsageStatsOptOut';\n\nimport Routes from 'routing/Routes';\n\nimport StoreProvider from 'injection/StoreProvider';\nconst SystemStore = StoreProvider.getStore('System');\n\nconst GETTING_STARTED_URL = 'https://gettingstarted.graylog.org/';\nconst GettingStartedPage = React.createClass({\n propTypes: {\n location: PropTypes.object.isRequired,\n history: PropTypes.object.isRequired,\n },\n mixins: [Reflux.connect(SystemStore)],\n _isLoading() {\n return !this.state.system;\n },\n _onDismiss() {\n this.props.history.pushState(null, Routes.STARTPAGE);\n },\n render() {\n if (this._isLoading()) {\n return ;\n }\n\n return (\n
\n \n \n \n \n
\n );\n },\n});\n\nexport default GettingStartedPage;\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/pages/GettingStartedPage.jsx\n **/"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy