Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
web-interface.assets.0c1a66a2-75.1ec71fc30880f2142b45.js.map Maven / Gradle / Ivy
{"version":3,"sources":["webpack:///./src/pages/CreateEventDefinitionPage.jsx"],"names":["CurrentUserStore","CombinedProvider","get","CreateEventDefinitionPage","eventDefinitionTitle","undefined","eventDefinition","state","title","setState","this","pageTitle","props","currentUser","route","PermissionsMixin","isPermitted","permissions","history","push","Routes","NOTFOUND","page","DocsHelper","PAGES","ALERTS","text","to","LIST","bsStyle","DEFINITIONS","NOTIFICATIONS","className","md","action","onEventDefinitionChange","handleEventDefinitionChange","React","Component","PropTypes","object","isRequired","connect"],"mappings":"41CAiBQA,EAAqBC,IAAiBC,IAAI,eAA1CF,iBAEFG,E,4zBAMI,CACNC,0BAAsBC,I,sCAGM,SAACC,GAAoB,IACzCF,EAAyB,EAAKG,MAA9BH,qBACJE,EAAgBE,QAAUJ,GAC5B,EAAKK,SAAS,CAAEL,qBAAsBE,EAAgBE,W,gDAIjD,IACCJ,EAAyBM,KAAKH,MAA9BH,qBACFO,EAAYP,EAAuB,yBAAH,OAA4BA,EAA5B,KAAsD,uBAFrF,EAIwBM,KAAKE,MAA5BC,EAJD,EAICA,YAAaC,EAJd,EAIcA,MAMrB,OAJKC,IAAiBC,YAAYH,EAAYI,YAAa,4BACzDC,IAAQC,KAAKC,IAAOC,UAIpB,kBAAC,IAAD,CAAeb,MAAOG,GACpB,8BACE,kBAAC,IAAD,CAAYH,MAAOG,GACjB,2HAIA,iIACwG,IACtG,kBAAC,IAAD,CAAmBW,KAAMC,IAAWC,MAAMC,OACvBC,KAAK,mBAG1B,kBAAC,IAAD,KACE,kBAAC,gBAAD,CAAeC,GAAIP,IAAOK,OAAOG,MAC/B,kBAAC,IAAD,CAAQC,QAAQ,QAAhB,oBAEF,kBAAC,IAAD,CAAaZ,YAAY,yBACvB,kBAAC,gBAAD,CAAeU,GAAIP,IAAOK,OAAOK,YAAYF,MAC3C,kBAAC,IAAD,CAAQC,QAAQ,QAAhB,uBAGJ,kBAAC,IAAD,CAAaZ,YAAY,2BACvB,kBAAC,gBAAD,CAAeU,GAAIP,IAAOK,OAAOM,cAAcH,MAC7C,kBAAC,IAAD,CAAQC,QAAQ,QAAhB,qBAMR,kBAAC,IAAD,CAAKG,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAA8BC,OAAO,SACPC,wBAAyBzB,KAAK0B,4BAC9BtB,MAAOA,a,8BA9DXuB,IAAMC,W,EAAxCnC,E,YACe,CACjBU,YAAa0B,IAAUC,OAAOC,WAC9B3B,MAAOyB,IAAUC,OAAOC,aAoEbC,sBAAQvC,EAA2B,CAChDU,YAAab,IAEf,kBAAsB,CAAEa,YAAxB,EAAGA,YAA8CA","file":"0c1a66a2-75.1ec71fc30880f2142b45.js","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { LinkContainer } from 'react-router-bootstrap';\n\nimport { ButtonToolbar, Col, Row, Button } from 'components/graylog';\nimport { DocumentTitle, IfPermitted, PageHeader } from 'components/common';\nimport EventDefinitionFormContainer\n from 'components/event-definitions/event-definition-form/EventDefinitionFormContainer';\nimport DocumentationLink from 'components/support/DocumentationLink';\n\nimport Routes from 'routing/Routes';\nimport DocsHelper from 'util/DocsHelper';\nimport CombinedProvider from 'injection/CombinedProvider';\nimport connect from 'stores/connect';\nimport PermissionsMixin from 'util/PermissionsMixin';\nimport history from 'util/History';\n\nconst { CurrentUserStore } = CombinedProvider.get('CurrentUser');\n\nclass CreateEventDefinitionPage extends React.Component {\n static propTypes = {\n currentUser: PropTypes.object.isRequired,\n route: PropTypes.object.isRequired,\n };\n\n state = {\n eventDefinitionTitle: undefined,\n };\n\n handleEventDefinitionChange = (eventDefinition) => {\n const { eventDefinitionTitle } = this.state;\n if (eventDefinition.title !== eventDefinitionTitle) {\n this.setState({ eventDefinitionTitle: eventDefinition.title });\n }\n };\n\n render() {\n const { eventDefinitionTitle } = this.state;\n const pageTitle = eventDefinitionTitle ? `New Event Definition \"${eventDefinitionTitle}\"` : 'New Event Definition';\n\n const { currentUser, route } = this.props;\n\n if (!PermissionsMixin.isPermitted(currentUser.permissions, 'eventdefinitions:create')) {\n history.push(Routes.NOTFOUND);\n }\n\n return (\n \n \n \n \n Event Definitions allow you to create Alerts from different Conditions and alert on them.\n \n\n \n Graylog's new Alerting system let you define more flexible and powerful rules. Learn more in the{' '}\n \n \n\n \n \n Alerts & Events \n \n \n \n Event Definitions \n \n \n \n \n Notifications \n \n \n \n \n\n \n \n \n \n
\n \n \n );\n }\n}\n\nexport default connect(CreateEventDefinitionPage, {\n currentUser: CurrentUserStore,\n},\n({ currentUser }) => ({ currentUser: currentUser.currentUser }));\n"],"sourceRoot":""}