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

web-interface.assets.35.6c38283a5ef64e1a3573.js.map Maven / Gradle / Ivy

{"version":3,"sources":["webpack:///35.6c38283a5ef64e1a3573.js","webpack:///./src/pages/NewAlertNotificationPage.jsx","webpack:///./src/components/alertnotifications/index.jsx","webpack:///./src/components/alertnotifications/AlertNotification.jsx","webpack:///./src/components/alertnotifications/AlertNotificationsComponent.jsx","webpack:///./src/components/alertnotifications/AlertNotificationsList.jsx","webpack:///./src/components/alertnotifications/CreateAlertNotificationInput.jsx","webpack:///./src/components/alertnotifications/UnknownAlertNotification.jsx"],"names":["webpackJsonp","1349","module","exports","__webpack_require__","_interopRequireDefault","obj","__esModule","default","Object","defineProperty","value","_react","_react2","_reflux","_reflux2","_reactBootstrap","_reactRouterBootstrap","_common","_alertnotifications","_Routes","_Routes2","_StoreProvider","_StoreProvider2","CurrentUserStore","getStore","NewAlertNotificationPage","createClass","displayName","mixins","connect","render","createElement","DocumentTitle","title","PageHeader","LinkContainer","to","ALERTS","NOTIFICATIONS","Button","bsStyle","href","target","className","Row","Col","md","CreateAlertNotificationInput","923","_AlertNotification","enumerable","get","_AlertNotificationsComponent","_AlertNotificationsList","_CreateAlertNotificationInput","_UnknownAlertNotification","938","_propTypes","_propTypes2","_PermissionsMixin","_PermissionsMixin2","_CombinedProvider","_CombinedProvider2","_configurationforms","_CombinedProvider$get","AlertNotificationsStore","_CombinedProvider$get2","AlarmCallbacksActions","_CombinedProvider$get3","AlertNotification","propTypes","alertNotification","object","isRequired","stream","onNotificationUpdate","func","onNotificationDelete","getInitialState","isTestingAlert","_onTestNotification","_this","this","setState","testAlert","props","id","finally","_onEdit","refs","configurationForm","open","_onSubmit","data","_this2","update","stream_id","then","_onDelete","_this3","window","confirm","delete","state","availableNotifications","Spinner","notification","typeDefinition","type","UnknownAlertNotification","onDelete","description","actions","isPermitted","currentUser","permissions","key","disabled","onClick","DropdownButton","pullRight","MenuItem","onSelect","divider","content","ConfigurationForm","ref","configFields","requested_configuration","typeName","titleValue","submitAction","values","configuration","ConfigurationWell","EntityListItem","titleSuffix","name","contentRow","939","_javascriptNaturalSort","_javascriptNaturalSort2","AlertNotificationsActions","StreamsStore","AlertNotificationsComponent","streams","undefined","componentDidMount","_loadData","listStreams","available","listAll","_isLoading","allNotifications","notifications","sort","a1","a2","t1","t2","toLowerCase","NEW_NOTIFICATION","AlertNotificationsList","alertNotifications","940","array","currentPage","PAGE_SIZE","_onChangePaginatedList","_paginatedNotifications","slice","_formatNotification","find","s","PaginatedList","totalItems","length","onChange","showPageSizeSelect","pageSize","EntityList","bsNoItemsStyle","noItemsText","items","map","941","_bootstrap","_UserNotification","_UserNotification2","_History","_History2","selectedStream","PLACEHOLDER","_onChange","evt","_onStreamChange","nextStream","error","save","pushState","_openForm","_resetForm","_formatNotificationForm","cancelAction","_formatOption","label","notificationForm","availableTypes","keys","formattedStreams","s1","s2","ExternalLinkButton","Input","help","Select","placeholder","options","942","Alert"],"mappings":"AAAAA,cAAc,KAERC,KACA,SAAUC,EAAQC,QAASC,GAEjC,YA+BA,SAASC,GAAuBC,GAAO,MAAOA,IAAOA,EAAIC,WAAaD,GAAQE,QAASF,GA5BvFG,OAAOC,eAAeP,QAAS,cAC7BQ,OAAO,GCTT,IAAAC,GAAAR,EAAA,GDcIS,EAAUR,EAAuBO,GCbrCE,EAAAV,EAAA,GDiBIW,EAAWV,EAAuBS,GChBtCE,EAAAZ,EAAA,IACAa,EAAAb,EAAA,KAEAc,EAAAd,EAAA,IACAe,EAAAf,EAAA,KAEAgB,EAAAhB,EAAA,IDsBIiB,EAAWhB,EAAuBe,GCpBtCE,EAAAlB,EAAA,IDwBImB,EAAkBlB,EAAuBiB,GCvBvCE,EAAmBD,EAAAf,QAAciB,SAAS,eAE1CC,EAA2Bb,EAAAL,QAAMmB,aAAYC,YAAA,2BACjDC,QAASd,EAAAP,QAAOsB,QAAQN,IACxBO,OAFiD,WAG/C,MACElB,GAAAL,QAAAwB,cAAAd,EAAA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A2BjG,EAAAL,QAAMmB,aAAYC,YAAA,2BACjD2C,WACEC,kBAAmBb,EAAAnD,QAAUiE,OAAOC,WACpCqC,SAAUpD,EAAAnD,QAAUqE,KAAKH,YAG3B3C,OANiD,WAO/C,GAAM4E,GAAexB,KAAKG,MAAMd,kBAE1ByC,GACJpG,EAAAL,QAAAwB,cAAAhB,EAAAwG,gBAAgBH,IAAI,iBAAiBnF,MAAM,UAAUuF,WAAA,EAAUlC,GAAA,yBAA6BoB,EAAapB,IACvG1E,EAAAL,QAAAwB,cAAAhB,EAAA0G,UAAUC,SAAUxC,KAAKG,MAAMyB,UAA/B,YAIEc,EACJhH,EAAAL,QAAAwB,cAAAhB,EAAA8B,KAAKC,GAAI,IACPlC,EAAAL,QAAAwB,cAAAhB,EAAA4M,OAAOnL,QAAQ,WAAf,8GAKJ,OACE5B,GAAAL,QAAAwB,cAAAd,EAAAsH,gBAAgBnB,IAAA,cAAmBV,EAAapB,GAChCrD,MAAM,uBACNuG,YAAA,IAAiB9B,EAAaE,KAA9B,IACAG,YAAY,4DACZC,QAASA,EACT0B,WAAYd,MPwwBlC1H,SAAQK,QOnwBOsG,EPowBf5G,EAAOC,QAAUA,QAAiB","file":"35.6c38283a5ef64e1a3573.js","sourcesContent":["webpackJsonp([35],{\n\n/***/ 1349:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react = __webpack_require__(2);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reflux = __webpack_require__(1);\n\nvar _reflux2 = _interopRequireDefault(_reflux);\n\nvar _reactBootstrap = __webpack_require__(16);\n\nvar _reactRouterBootstrap = __webpack_require__(915);\n\nvar _common = __webpack_require__(46);\n\nvar _alertnotifications = __webpack_require__(923);\n\nvar _Routes = __webpack_require__(76);\n\nvar _Routes2 = _interopRequireDefault(_Routes);\n\nvar _StoreProvider = __webpack_require__(23);\n\nvar _StoreProvider2 = _interopRequireDefault(_StoreProvider);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar CurrentUserStore = _StoreProvider2.default.getStore('CurrentUser');\n\nvar NewAlertNotificationPage = _react2.default.createClass({\n  displayName: 'NewAlertNotificationPage',\n\n  mixins: [_reflux2.default.connect(CurrentUserStore)],\n  render: function render() {\n    return _react2.default.createElement(\n      _common.DocumentTitle,\n      { title: 'New alert notification' },\n      _react2.default.createElement(\n        'div',\n        null,\n        _react2.default.createElement(\n          _common.PageHeader,\n          { title: 'New alert notification' },\n          _react2.default.createElement(\n            'span',\n            null,\n            'Create a new notification that you can use to not miss any of your alerts.'\n          ),\n          _react2.default.createElement(\n            'span',\n            null,\n            'Remember to assign the notifications to use in the alert conditions page.'\n          ),\n          _react2.default.createElement(\n            'span',\n            null,\n            _react2.default.createElement(\n              _reactRouterBootstrap.LinkContainer,\n              { to: _Routes2.default.ALERTS.NOTIFICATIONS },\n              _react2.default.createElement(\n                _reactBootstrap.Button,\n                { bsStyle: 'info' },\n                'Manage notifications'\n              )\n            ),\n            '\\xA0',\n            _react2.default.createElement(\n              _reactBootstrap.Button,\n              { bsStyle: 'info', href: 'https://marketplace.graylog.org/', target: '_blank' },\n              _react2.default.createElement('i', { className: 'fa fa-external-link' }),\n              '\\xA0 Find more notifications'\n            )\n          )\n        ),\n        _react2.default.createElement(\n          _reactBootstrap.Row,\n          { className: 'content' },\n          _react2.default.createElement(\n            _reactBootstrap.Col,\n            { md: 12 },\n            _react2.default.createElement(_alertnotifications.CreateAlertNotificationInput, null)\n          )\n        )\n      )\n    );\n  }\n});\n\nexports.default = NewAlertNotificationPage;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ 923:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _AlertNotification = __webpack_require__(938);\n\nObject.defineProperty(exports, 'AlertNotification', {\n  enumerable: true,\n  get: function get() {\n    return _interopRequireDefault(_AlertNotification).default;\n  }\n});\n\nvar _AlertNotificationsComponent = __webpack_require__(939);\n\nObject.defineProperty(exports, 'AlertNotificationsComponent', {\n  enumerable: true,\n  get: function get() {\n    return _interopRequireDefault(_AlertNotificationsComponent).default;\n  }\n});\n\nvar _AlertNotificationsList = __webpack_require__(940);\n\nObject.defineProperty(exports, 'AlertNotificationsList', {\n  enumerable: true,\n  get: function get() {\n    return _interopRequireDefault(_AlertNotificationsList).default;\n  }\n});\n\nvar _CreateAlertNotificationInput = __webpack_require__(941);\n\nObject.defineProperty(exports, 'CreateAlertNotificationInput', {\n  enumerable: true,\n  get: function get() {\n    return _interopRequireDefault(_CreateAlertNotificationInput).default;\n  }\n});\n\nvar _UnknownAlertNotification = __webpack_require__(942);\n\nObject.defineProperty(exports, 'UnknownAlertNotification', {\n  enumerable: true,\n  get: function get() {\n    return _interopRequireDefault(_UnknownAlertNotification).default;\n  }\n});\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/***/ }),\n\n/***/ 938:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _propTypes = __webpack_require__(5);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = __webpack_require__(2);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reflux = __webpack_require__(1);\n\nvar _reflux2 = _interopRequireDefault(_reflux);\n\nvar _reactBootstrap = __webpack_require__(16);\n\nvar _PermissionsMixin = __webpack_require__(167);\n\nvar _PermissionsMixin2 = _interopRequireDefault(_PermissionsMixin);\n\nvar _CombinedProvider = __webpack_require__(68);\n\nvar _CombinedProvider2 = _interopRequireDefault(_CombinedProvider);\n\nvar _common = __webpack_require__(46);\n\nvar _alertnotifications = __webpack_require__(923);\n\nvar _configurationforms = __webpack_require__(919);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _CombinedProvider$get = _CombinedProvider2.default.get('AlertNotifications'),\n    AlertNotificationsStore = _CombinedProvider$get.AlertNotificationsStore;\n\nvar _CombinedProvider$get2 = _CombinedProvider2.default.get('AlarmCallbacks'),\n    AlarmCallbacksActions = _CombinedProvider$get2.AlarmCallbacksActions;\n\nvar _CombinedProvider$get3 = _CombinedProvider2.default.get('CurrentUser'),\n    CurrentUserStore = _CombinedProvider$get3.CurrentUserStore;\n\nvar AlertNotification = _react2.default.createClass({\n  displayName: 'AlertNotification',\n\n  propTypes: {\n    alertNotification: _propTypes2.default.object.isRequired,\n    stream: _propTypes2.default.object,\n    onNotificationUpdate: _propTypes2.default.func,\n    onNotificationDelete: _propTypes2.default.func\n  },\n  mixins: [_reflux2.default.connect(AlertNotificationsStore), _reflux2.default.connect(CurrentUserStore), _PermissionsMixin2.default],\n\n  getInitialState: function getInitialState() {\n    return {\n      isTestingAlert: false\n    };\n  },\n  _onTestNotification: function _onTestNotification() {\n    var _this = this;\n\n    this.setState({ isTestingAlert: true });\n    AlertNotificationsStore.testAlert(this.props.alertNotification.id).finally(function () {\n      return _this.setState({ isTestingAlert: false });\n    });\n  },\n  _onEdit: function _onEdit() {\n    this.refs.configurationForm.open();\n  },\n  _onSubmit: function _onSubmit(data) {\n    var _this2 = this;\n\n    AlarmCallbacksActions.update(this.props.alertNotification.stream_id, this.props.alertNotification.id, data).then(function () {\n      if (typeof _this2.props.onNotificationUpdate === 'function') {\n        _this2.props.onNotificationUpdate();\n      }\n    });\n  },\n  _onDelete: function _onDelete() {\n    var _this3 = this;\n\n    if (window.confirm('Really delete alert notification?')) {\n      AlarmCallbacksActions.delete(this.props.alertNotification.stream_id, this.props.alertNotification.id).then(function () {\n        if (typeof _this3.props.onNotificationUpdate === 'function') {\n          _this3.props.onNotificationUpdate();\n        }\n      });\n    }\n  },\n  render: function render() {\n    if (!this.state.availableNotifications) {\n      return _react2.default.createElement(_common.Spinner, null);\n    }\n\n    var notification = this.props.alertNotification;\n    var stream = this.props.stream;\n    var typeDefinition = this.state.availableNotifications[notification.type];\n\n    if (!typeDefinition) {\n      return _react2.default.createElement(_alertnotifications.UnknownAlertNotification, { alertNotification: notification, onDelete: this._onDelete });\n    }\n\n    var description = stream ? _react2.default.createElement(\n      'span',\n      null,\n      'Executed once per triggered alert condition in stream ',\n      _react2.default.createElement(\n        'em',\n        null,\n        stream.title\n      )\n    ) : 'Not executed, as it is not connected to a stream';\n\n    var actions = this.isPermitted(this.state.currentUser.permissions, ['streams:edit:' + stream.id]) && [_react2.default.createElement(\n      _reactBootstrap.Button,\n      { key: 'test-button', bsStyle: 'info', disabled: this.state.isTestingAlert, onClick: this._onTestNotification },\n      this.state.isTestingAlert ? 'Testing...' : 'Test'\n    ), _react2.default.createElement(\n      _reactBootstrap.DropdownButton,\n      { key: 'more-actions-button', title: 'More actions', pullRight: true,\n        id: 'more-actions-dropdown-' + notification.id },\n      _react2.default.createElement(\n        _reactBootstrap.MenuItem,\n        { onSelect: this._onEdit },\n        'Edit'\n      ),\n      _react2.default.createElement(_reactBootstrap.MenuItem, { divider: true }),\n      _react2.default.createElement(\n        _reactBootstrap.MenuItem,\n        { onSelect: this._onDelete },\n        'Delete'\n      )\n    )];\n\n    var content = _react2.default.createElement(\n      _reactBootstrap.Col,\n      { md: 12 },\n      _react2.default.createElement(\n        'div',\n        { className: 'alert-callback alarm-callbacks' },\n        _react2.default.createElement(_configurationforms.ConfigurationForm, { ref: 'configurationForm',\n          key: 'configuration-form-notification-' + notification.id,\n          configFields: typeDefinition.requested_configuration,\n          title: 'Editing alert configuration ',\n          typeName: notification.type,\n          titleValue: notification.title,\n          submitAction: this._onSubmit,\n          values: notification.configuration }),\n        _react2.default.createElement(_configurationforms.ConfigurationWell, { configuration: notification.configuration, typeDefinition: typeDefinition })\n      )\n    );\n\n    return _react2.default.createElement(_common.EntityListItem, { key: 'entry-list-' + notification.id,\n      title: notification.title ? notification.title : 'Untitled',\n      titleSuffix: '(' + typeDefinition.name + ')',\n      description: description,\n      actions: actions,\n      contentRow: content });\n  }\n});\n\nexports.default = AlertNotification;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ 939:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react = __webpack_require__(2);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reflux = __webpack_require__(1);\n\nvar _reflux2 = _interopRequireDefault(_reflux);\n\nvar _reactBootstrap = __webpack_require__(16);\n\nvar _reactRouterBootstrap = __webpack_require__(915);\n\nvar _javascriptNaturalSort = __webpack_require__(917);\n\nvar _javascriptNaturalSort2 = _interopRequireDefault(_javascriptNaturalSort);\n\nvar _common = __webpack_require__(46);\n\nvar _alertnotifications = __webpack_require__(923);\n\nvar _Routes = __webpack_require__(76);\n\nvar _Routes2 = _interopRequireDefault(_Routes);\n\nvar _CombinedProvider = __webpack_require__(68);\n\nvar _CombinedProvider2 = _interopRequireDefault(_CombinedProvider);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _CombinedProvider$get = _CombinedProvider2.default.get('AlertNotifications'),\n    AlertNotificationsStore = _CombinedProvider$get.AlertNotificationsStore,\n    AlertNotificationsActions = _CombinedProvider$get.AlertNotificationsActions;\n\nvar _CombinedProvider$get2 = _CombinedProvider2.default.get('Streams'),\n    StreamsStore = _CombinedProvider$get2.StreamsStore;\n\nvar AlertNotificationsComponent = _react2.default.createClass({\n  displayName: 'AlertNotificationsComponent',\n\n  mixins: [_reflux2.default.connect(AlertNotificationsStore)],\n\n  getInitialState: function getInitialState() {\n    return {\n      streams: undefined\n    };\n  },\n  componentDidMount: function componentDidMount() {\n    this._loadData();\n  },\n  _loadData: function _loadData() {\n    var _this = this;\n\n    StreamsStore.listStreams().then(function (streams) {\n      _this.setState({ streams: streams });\n    });\n\n    AlertNotificationsActions.available();\n    AlertNotificationsActions.listAll();\n  },\n  _isLoading: function _isLoading() {\n    return !this.state.streams || !this.state.availableNotifications || !this.state.allNotifications;\n  },\n  render: function render() {\n    if (this._isLoading()) {\n      return _react2.default.createElement(_common.Spinner, null);\n    }\n\n    var notifications = this.state.allNotifications.sort(function (a1, a2) {\n      var t1 = a1.title || 'Untitled';\n      var t2 = a2.title || 'Untitled';\n      return (0, _javascriptNaturalSort2.default)(t1.toLowerCase(), t2.toLowerCase());\n    });\n\n    return _react2.default.createElement(\n      'div',\n      null,\n      _react2.default.createElement(\n        'div',\n        { className: 'pull-right' },\n        _react2.default.createElement(\n          _reactRouterBootstrap.LinkContainer,\n          { to: _Routes2.default.ALERTS.NEW_NOTIFICATION },\n          _react2.default.createElement(\n            _reactBootstrap.Button,\n            { bsStyle: 'success' },\n            'Add new notification'\n          )\n        )\n      ),\n      _react2.default.createElement(\n        'h2',\n        null,\n        'Notifications'\n      ),\n      _react2.default.createElement(\n        'p',\n        null,\n        'These are all configured alert notifications.'\n      ),\n      _react2.default.createElement(_alertnotifications.AlertNotificationsList, { alertNotifications: notifications, streams: this.state.streams,\n        onNotificationUpdate: this._loadData, onNotificationDelete: this._loadData })\n    );\n  }\n});\n\nexports.default = AlertNotificationsComponent;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ 940:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _propTypes = __webpack_require__(5);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = __webpack_require__(2);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _alertnotifications = __webpack_require__(923);\n\nvar _common = __webpack_require__(46);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar AlertNotificationsList = _react2.default.createClass({\n  displayName: 'AlertNotificationsList',\n\n  propTypes: {\n    alertNotifications: _propTypes2.default.array.isRequired,\n    streams: _propTypes2.default.array.isRequired,\n    onNotificationUpdate: _propTypes2.default.func,\n    onNotificationDelete: _propTypes2.default.func\n  },\n\n  getInitialState: function getInitialState() {\n    return {\n      currentPage: 0\n    };\n  },\n\n\n  PAGE_SIZE: 10,\n\n  _onChangePaginatedList: function _onChangePaginatedList(currentPage) {\n    this.setState({ currentPage: currentPage - 1 });\n  },\n  _paginatedNotifications: function _paginatedNotifications() {\n    return this.props.alertNotifications.slice(this.state.currentPage * this.PAGE_SIZE, (this.state.currentPage + 1) * this.PAGE_SIZE);\n  },\n  _formatNotification: function _formatNotification(notification) {\n    var stream = this.props.streams.find(function (s) {\n      return s.id === notification.stream_id;\n    });\n    return _react2.default.createElement(_alertnotifications.AlertNotification, { key: notification.id, alertNotification: notification, stream: stream,\n      onNotificationUpdate: this.props.onNotificationUpdate,\n      onNotificationDelete: this.props.onNotificationDelete });\n  },\n  render: function render() {\n    var _this = this;\n\n    var notifications = this.props.alertNotifications;\n\n    return _react2.default.createElement(\n      _common.PaginatedList,\n      { totalItems: notifications.length, onChange: this._onChangePaginatedList,\n        showPageSizeSelect: false, pageSize: this.PAGE_SIZE },\n      _react2.default.createElement(_common.EntityList, { bsNoItemsStyle: 'info',\n        noItemsText: 'There are no configured notifications.',\n        items: this._paginatedNotifications().map(function (notification) {\n          return _this._formatNotification(notification);\n        }) })\n    );\n  }\n});\n\nexports.default = AlertNotificationsList;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ 941:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _react = __webpack_require__(2);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reflux = __webpack_require__(1);\n\nvar _reflux2 = _interopRequireDefault(_reflux);\n\nvar _javascriptNaturalSort = __webpack_require__(917);\n\nvar _javascriptNaturalSort2 = _interopRequireDefault(_javascriptNaturalSort);\n\nvar _reactBootstrap = __webpack_require__(16);\n\nvar _bootstrap = __webpack_require__(47);\n\nvar _common = __webpack_require__(46);\n\nvar _configurationforms = __webpack_require__(919);\n\nvar _Routes = __webpack_require__(76);\n\nvar _Routes2 = _interopRequireDefault(_Routes);\n\nvar _UserNotification = __webpack_require__(6);\n\nvar _UserNotification2 = _interopRequireDefault(_UserNotification);\n\nvar _History = __webpack_require__(168);\n\nvar _History2 = _interopRequireDefault(_History);\n\nvar _CombinedProvider = __webpack_require__(68);\n\nvar _CombinedProvider2 = _interopRequireDefault(_CombinedProvider);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar _CombinedProvider$get = _CombinedProvider2.default.get('AlertNotifications'),\n    AlertNotificationsStore = _CombinedProvider$get.AlertNotificationsStore,\n    AlertNotificationsActions = _CombinedProvider$get.AlertNotificationsActions;\n\nvar _CombinedProvider$get2 = _CombinedProvider2.default.get('AlarmCallbacks'),\n    AlarmCallbacksActions = _CombinedProvider$get2.AlarmCallbacksActions;\n\nvar _CombinedProvider$get3 = _CombinedProvider2.default.get('Streams'),\n    StreamsStore = _CombinedProvider$get3.StreamsStore;\n\nvar CreateAlertNotificationInput = _react2.default.createClass({\n  displayName: 'CreateAlertNotificationInput',\n\n  mixins: [_reflux2.default.connect(AlertNotificationsStore)],\n  getInitialState: function getInitialState() {\n    return {\n      streams: undefined,\n      selectedStream: undefined,\n      type: this.PLACEHOLDER\n    };\n  },\n  componentDidMount: function componentDidMount() {\n    var _this = this;\n\n    StreamsStore.listStreams().then(function (streams) {\n      _this.setState({ streams: streams });\n    });\n    AlertNotificationsActions.available();\n  },\n\n\n  PLACEHOLDER: 'placeholder',\n\n  _onChange: function _onChange(evt) {\n    this.setState({ type: evt.target.value });\n  },\n  _onStreamChange: function _onStreamChange(nextStream) {\n    this.setState({ selectedStream: this.state.streams.find(function (s) {\n        return s.id === nextStream;\n      }) });\n  },\n  _onSubmit: function _onSubmit(data) {\n    var _this2 = this;\n\n    if (!this.state.selectedStream) {\n      _UserNotification2.default.error('Please select the stream that the condition should check.', 'Could not save condition');\n    }\n\n    AlarmCallbacksActions.save(this.state.selectedStream.id, data).then(function () {\n      _History2.default.pushState(null, _Routes2.default.ALERTS.NOTIFICATIONS);\n    }, function () {\n      return _this2.refs.configurationForm.open();\n    });\n  },\n  _openForm: function _openForm() {\n    this.refs.configurationForm.open();\n  },\n  _resetForm: function _resetForm() {\n    this.setState({ type: this.PLACEHOLDER });\n  },\n  _formatNotificationForm: function _formatNotificationForm(type) {\n    var typeDefinition = this.state.availableNotifications[type];\n    return _react2.default.createElement(_configurationforms.ConfigurationForm, { ref: 'configurationForm',\n      key: 'configuration-form-output',\n      configFields: typeDefinition.requested_configuration,\n      title: 'Create new ' + typeDefinition.name,\n      typeName: type,\n      submitAction: this._onSubmit,\n      cancelAction: this._resetForm });\n  },\n  _formatOption: function _formatOption(key, value) {\n    return { value: value, label: key };\n  },\n  _isLoading: function _isLoading() {\n    return !this.state.availableNotifications || !this.state.streams;\n  },\n  render: function render() {\n    var _this3 = this;\n\n    if (this._isLoading()) {\n      return _react2.default.createElement(_common.Spinner, null);\n    }\n\n    var notificationForm = this.state.type !== this.PLACEHOLDER ? this._formatNotificationForm(this.state.type) : null;\n    var availableTypes = Object.keys(this.state.availableNotifications).map(function (value) {\n      return _react2.default.createElement(\n        'option',\n        { key: 'type-option-' + value, value: value },\n        _this3.state.availableNotifications[value].name\n      );\n    });\n    var formattedStreams = this.state.streams.map(function (stream) {\n      return _this3._formatOption(stream.title, stream.id);\n    }).sort(function (s1, s2) {\n      return (0, _javascriptNaturalSort2.default)(s1.label.toLowerCase(), s2.label.toLowerCase());\n    });\n    return _react2.default.createElement(\n      'div',\n      null,\n      _react2.default.createElement(\n        _common.ExternalLinkButton,\n        { href: 'https://marketplace.graylog.org/',\n          bsStyle: 'info',\n          className: 'pull-right' },\n        'Find more notifications'\n      ),\n      _react2.default.createElement(\n        'h2',\n        null,\n        'Notification'\n      ),\n      _react2.default.createElement(\n        'p',\n        { className: 'description' },\n        'Define the notification that will be triggered from the alert conditions in a stream.'\n      ),\n      _react2.default.createElement(\n        _reactBootstrap.Row,\n        null,\n        _react2.default.createElement(\n          _reactBootstrap.Col,\n          { md: 6 },\n          _react2.default.createElement(\n            'form',\n            null,\n            _react2.default.createElement(\n              _bootstrap.Input,\n              { label: 'Notify on stream',\n                help: 'Select the stream that should use this notification when its alert conditions are triggered.' },\n              _react2.default.createElement(_common.Select, { placeholder: 'Select a stream', options: formattedStreams, onChange: this._onStreamChange })\n            ),\n            _react2.default.createElement(\n              _bootstrap.Input,\n              { type: 'select', value: this.state.type, onChange: this._onChange,\n                disabled: !this.state.selectedStream,\n                label: 'Notification type', help: 'Select the notification type that will be used.' },\n              _react2.default.createElement(\n                'option',\n                { value: this.PLACEHOLDER, disabled: true },\n                'Select a notification type'\n              ),\n              availableTypes\n            ),\n            notificationForm,\n            ' ',\n            _react2.default.createElement(\n              _reactBootstrap.Button,\n              { onClick: this._openForm, disabled: this.state.type === this.PLACEHOLDER, bsStyle: 'success' },\n              'Add alert notification'\n            )\n          )\n        )\n      )\n    );\n  }\n});\n\nexports.default = CreateAlertNotificationInput;\nmodule.exports = exports['default'];\n\n/***/ }),\n\n/***/ 942:\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar _propTypes = __webpack_require__(5);\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _react = __webpack_require__(2);\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactBootstrap = __webpack_require__(16);\n\nvar _common = __webpack_require__(46);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar UnknownAlertNotification = _react2.default.createClass({\n  displayName: 'UnknownAlertNotification',\n\n  propTypes: {\n    alertNotification: _propTypes2.default.object.isRequired,\n    onDelete: _propTypes2.default.func.isRequired\n  },\n\n  render: function render() {\n    var notification = this.props.alertNotification;\n\n    var actions = [_react2.default.createElement(\n      _reactBootstrap.DropdownButton,\n      { key: 'actions-button', title: 'Actions', pullRight: true, id: 'more-actions-dropdown-' + notification.id },\n      _react2.default.createElement(\n        _reactBootstrap.MenuItem,\n        { onSelect: this.props.onDelete },\n        'Delete'\n      )\n    )];\n\n    var content = _react2.default.createElement(\n      _reactBootstrap.Col,\n      { md: 12 },\n      _react2.default.createElement(\n        _reactBootstrap.Alert,\n        { bsStyle: 'warning' },\n        'Could not resolve notification type. This is most likely caused by a missing plugin in your Graylog setup.'\n      )\n    );\n    return _react2.default.createElement(_common.EntityListItem, { key: 'entry-list-' + notification.id,\n      title: 'Unknown notification',\n      titleSuffix: '(' + notification.type + ')',\n      description: 'Cannot be executed while the notification type is unknown',\n      actions: actions,\n      contentRow: content });\n  }\n});\n\nexports.default = UnknownAlertNotification;\nmodule.exports = exports['default'];\n\n/***/ })\n\n});\n\n\n// WEBPACK FOOTER //\n// 35.6c38283a5ef64e1a3573.js","import React from 'react';\nimport Reflux from 'reflux';\nimport { Button, Col, Row } from 'react-bootstrap';\nimport { LinkContainer } from 'react-router-bootstrap';\n\nimport { DocumentTitle, PageHeader } from 'components/common';\nimport { CreateAlertNotificationInput } from 'components/alertnotifications';\n\nimport Routes from 'routing/Routes';\n\nimport StoreProvider from 'injection/StoreProvider';\nconst CurrentUserStore = StoreProvider.getStore('CurrentUser');\n\nconst NewAlertNotificationPage = React.createClass({\n  mixins: [Reflux.connect(CurrentUserStore)],\n  render() {\n    return (\n      \n        
\n \n \n Create a new notification that you can use to not miss any of your alerts.\n \n\n \n Remember to assign the notifications to use in the alert conditions page.\n \n\n \n \n \n \n  \n \n \n \n\n \n \n \n \n \n
\n
\n );\n },\n});\n\nexport default NewAlertNotificationPage;\n\n\n\n// WEBPACK FOOTER //\n// ./src/pages/NewAlertNotificationPage.jsx","export { default as AlertNotification } from './AlertNotification';\nexport { default as AlertNotificationsComponent } from './AlertNotificationsComponent';\nexport { default as AlertNotificationsList } from './AlertNotificationsList';\nexport { default as CreateAlertNotificationInput } from './CreateAlertNotificationInput';\nexport { default as UnknownAlertNotification } from './UnknownAlertNotification';\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/alertnotifications/index.jsx","import PropTypes from 'prop-types';\nimport React from 'react';\nimport Reflux from 'reflux';\nimport { Button, Col, DropdownButton, MenuItem } from 'react-bootstrap';\n\nimport PermissionsMixin from 'util/PermissionsMixin';\n\nimport CombinedProvider from 'injection/CombinedProvider';\nconst { AlertNotificationsStore } = CombinedProvider.get('AlertNotifications');\nconst { AlarmCallbacksActions } = CombinedProvider.get('AlarmCallbacks');\nconst { CurrentUserStore } = CombinedProvider.get('CurrentUser');\n\nimport { EntityListItem, Spinner } from 'components/common';\nimport { UnknownAlertNotification } from 'components/alertnotifications';\nimport { ConfigurationForm, ConfigurationWell } from 'components/configurationforms';\n\nconst AlertNotification = React.createClass({\n propTypes: {\n alertNotification: PropTypes.object.isRequired,\n stream: PropTypes.object,\n onNotificationUpdate: PropTypes.func,\n onNotificationDelete: PropTypes.func,\n },\n mixins: [Reflux.connect(AlertNotificationsStore), Reflux.connect(CurrentUserStore), PermissionsMixin],\n\n getInitialState() {\n return {\n isTestingAlert: false,\n };\n },\n\n _onTestNotification() {\n this.setState({ isTestingAlert: true });\n AlertNotificationsStore.testAlert(this.props.alertNotification.id)\n .finally(() => this.setState({ isTestingAlert: false }));\n },\n\n _onEdit() {\n this.refs.configurationForm.open();\n },\n\n _onSubmit(data) {\n AlarmCallbacksActions.update(this.props.alertNotification.stream_id, this.props.alertNotification.id, data)\n .then(() => {\n if (typeof this.props.onNotificationUpdate === 'function') {\n this.props.onNotificationUpdate();\n }\n });\n },\n\n _onDelete() {\n if (window.confirm('Really delete alert notification?')) {\n AlarmCallbacksActions.delete(this.props.alertNotification.stream_id, this.props.alertNotification.id)\n .then(() => {\n if (typeof this.props.onNotificationUpdate === 'function') {\n this.props.onNotificationUpdate();\n }\n });\n }\n },\n\n render() {\n if (!this.state.availableNotifications) {\n return ;\n }\n\n const notification = this.props.alertNotification;\n const stream = this.props.stream;\n const typeDefinition = this.state.availableNotifications[notification.type];\n\n if (!typeDefinition) {\n return ;\n }\n\n const description = (stream ?\n Executed once per triggered alert condition in stream {stream.title}\n : 'Not executed, as it is not connected to a stream');\n\n const actions = this.isPermitted(this.state.currentUser.permissions, [`streams:edit:${stream.id}`]) && [\n ,\n \n Edit\n \n Delete\n ,\n ];\n\n const content = (\n \n
\n \n \n
\n \n );\n\n return (\n \n );\n },\n});\n\nexport default AlertNotification;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/alertnotifications/AlertNotification.jsx","import React from 'react';\nimport Reflux from 'reflux';\nimport { Button } from 'react-bootstrap';\nimport { LinkContainer } from 'react-router-bootstrap';\nimport naturalSort from 'javascript-natural-sort';\n\nimport { Spinner } from 'components/common';\nimport { AlertNotificationsList } from 'components/alertnotifications';\n\nimport Routes from 'routing/Routes';\n\nimport CombinedProvider from 'injection/CombinedProvider';\nconst { AlertNotificationsStore, AlertNotificationsActions } = CombinedProvider.get('AlertNotifications');\nconst { StreamsStore } = CombinedProvider.get('Streams');\n\nconst AlertNotificationsComponent = React.createClass({\n mixins: [Reflux.connect(AlertNotificationsStore)],\n\n getInitialState() {\n return {\n streams: undefined,\n };\n },\n\n componentDidMount() {\n this._loadData();\n },\n\n _loadData() {\n StreamsStore.listStreams().then((streams) => {\n this.setState({ streams: streams });\n });\n\n AlertNotificationsActions.available();\n AlertNotificationsActions.listAll();\n },\n\n _isLoading() {\n return !this.state.streams || !this.state.availableNotifications || !this.state.allNotifications;\n },\n\n render() {\n if (this._isLoading()) {\n return ;\n }\n\n const notifications = this.state.allNotifications.sort((a1, a2) => {\n const t1 = a1.title || 'Untitled';\n const t2 = a2.title || 'Untitled';\n return naturalSort(t1.toLowerCase(), t2.toLowerCase());\n });\n\n return (\n
\n
\n \n \n \n
\n

Notifications

\n

These are all configured alert notifications.

\n \n
\n );\n },\n});\n\nexport default AlertNotificationsComponent;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/alertnotifications/AlertNotificationsComponent.jsx","import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport { AlertNotification } from 'components/alertnotifications';\nimport { EntityList, PaginatedList } from 'components/common';\n\nconst AlertNotificationsList = React.createClass({\n propTypes: {\n alertNotifications: PropTypes.array.isRequired,\n streams: PropTypes.array.isRequired,\n onNotificationUpdate: PropTypes.func,\n onNotificationDelete: PropTypes.func,\n },\n\n getInitialState() {\n return {\n currentPage: 0,\n };\n },\n\n PAGE_SIZE: 10,\n\n _onChangePaginatedList(currentPage) {\n this.setState({ currentPage: currentPage - 1 });\n },\n\n _paginatedNotifications() {\n return this.props.alertNotifications.slice(this.state.currentPage * this.PAGE_SIZE, (this.state.currentPage + 1) * this.PAGE_SIZE);\n },\n\n _formatNotification(notification) {\n const stream = this.props.streams.find(s => s.id === notification.stream_id);\n return (\n \n );\n },\n\n render() {\n const notifications = this.props.alertNotifications;\n\n return (\n \n this._formatNotification(notification))} />\n \n );\n },\n});\n\nexport default AlertNotificationsList;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/alertnotifications/AlertNotificationsList.jsx","import React from 'react';\nimport Reflux from 'reflux';\nimport naturalSort from 'javascript-natural-sort';\nimport { Button, Col, Row } from 'react-bootstrap';\n\nimport { Input } from 'components/bootstrap';\nimport { ExternalLinkButton, Select, Spinner } from 'components/common';\nimport { ConfigurationForm } from 'components/configurationforms';\nimport Routes from 'routing/Routes';\nimport UserNotification from 'util/UserNotification';\nimport history from 'util/History';\n\nimport CombinedProvider from 'injection/CombinedProvider';\nconst { AlertNotificationsStore, AlertNotificationsActions } = CombinedProvider.get('AlertNotifications');\nconst { AlarmCallbacksActions } = CombinedProvider.get('AlarmCallbacks');\nconst { StreamsStore } = CombinedProvider.get('Streams');\n\nconst CreateAlertNotificationInput = React.createClass({\n mixins: [Reflux.connect(AlertNotificationsStore)],\n getInitialState() {\n return {\n streams: undefined,\n selectedStream: undefined,\n type: this.PLACEHOLDER,\n };\n },\n\n componentDidMount() {\n StreamsStore.listStreams().then((streams) => {\n this.setState({ streams: streams });\n });\n AlertNotificationsActions.available();\n },\n\n PLACEHOLDER: 'placeholder',\n\n _onChange(evt) {\n this.setState({ type: evt.target.value });\n },\n\n _onStreamChange(nextStream) {\n this.setState({ selectedStream: this.state.streams.find(s => s.id === nextStream) });\n },\n\n _onSubmit(data) {\n if (!this.state.selectedStream) {\n UserNotification.error('Please select the stream that the condition should check.', 'Could not save condition');\n }\n\n AlarmCallbacksActions.save(this.state.selectedStream.id, data).then(\n () => {\n history.pushState(null, Routes.ALERTS.NOTIFICATIONS);\n },\n () => this.refs.configurationForm.open(),\n );\n },\n _openForm() {\n this.refs.configurationForm.open();\n },\n _resetForm() {\n this.setState({ type: this.PLACEHOLDER });\n },\n _formatNotificationForm(type) {\n const typeDefinition = this.state.availableNotifications[type];\n return (\n \n );\n },\n\n _formatOption(key, value) {\n return { value: value, label: key };\n },\n\n _isLoading() {\n return !this.state.availableNotifications || !this.state.streams;\n },\n\n render() {\n if (this._isLoading()) {\n return ;\n }\n\n const notificationForm = (this.state.type !== this.PLACEHOLDER ? this._formatNotificationForm(this.state.type) : null);\n const availableTypes = Object.keys(this.state.availableNotifications).map((value) => {\n return (\n \n );\n });\n const formattedStreams = this.state.streams\n .map(stream => this._formatOption(stream.title, stream.id))\n .sort((s1, s2) => naturalSort(s1.label.toLowerCase(), s2.label.toLowerCase()));\n return (\n
\n \n Find more notifications\n \n\n

Notification

\n

\n Define the notification that will be triggered from the alert conditions in a stream.\n

\n\n \n \n
\n \n \n \n {availableTypes}\n \n {notificationForm}\n {' '}\n \n
\n \n
\n
\n );\n },\n});\n\nexport default CreateAlertNotificationInput;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/alertnotifications/CreateAlertNotificationInput.jsx","import PropTypes from 'prop-types';\nimport React from 'react';\nimport { Alert, Col, DropdownButton, MenuItem } from 'react-bootstrap';\n\nimport { EntityListItem } from 'components/common';\n\nconst UnknownAlertNotification = React.createClass({\n propTypes: {\n alertNotification: PropTypes.object.isRequired,\n onDelete: PropTypes.func.isRequired,\n },\n\n render() {\n const notification = this.props.alertNotification;\n\n const actions = [\n \n Delete\n ,\n ];\n\n const content = (\n \n \n Could not resolve notification type. This is most likely caused by a missing plugin in your Graylog setup.\n \n \n );\n return (\n \n );\n },\n});\n\nexport default UnknownAlertNotification;\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/alertnotifications/UnknownAlertNotification.jsx"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy