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

web-interface.assets.bb8c8232-4041.50520bc45008d8aa8149.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"bb8c8232-4041.50520bc45008d8aa8149.js","mappings":"qWAmFA,QArDkC,IAAM,CACtC,MAAMA,KAAc,KAAe,EAC7BC,KAAW,eAAY,EAEvB,CAACC,EAAsBC,CAAuB,KAAI,YAAS,EAC3D,CAAE,KAAAC,CAAK,KAAI,KAAS,EAEpBC,KAA8B,eAAaC,GAAoB,CAC/DA,EAAgB,QAAUJ,GAC5BC,EAAwBG,EAAgB,KAAK,CAEjD,EAAG,CAACJ,CAAoB,CAAC,EAEnBK,KAAY,WAAQ,IAAOL,EAAuB,yBAAyBA,CAAoB,IAAM,uBAAyB,CAACA,CAAoB,CAAC,EAEpJM,KAAe,eAAY,IAAM,CACrCP,EAAS,KAAO,OAAO,YAAY,IAAI,CACzC,EAAG,CAACA,CAAQ,CAAC,EAEb,sBAAU,IAAM,IACT,MAAYD,EAAY,YAAa,yBAAyB,GACjEC,EAAS,KAAO,QAAQ,CAE5B,EAAG,CAACD,EAAY,YAAaC,CAAQ,CAAC,EAGpC,gBAAC,KAAa,CAAC,MAAOM,CAAA,EACpB,gBAAC,IAAoB,IAAC,EAEtB,gBAAC,MAAW,MAAOA,EACP,kBAAmB,CACjB,MAAO,uBACP,KAAM,IAAW,MAAM,MACzB,GACV,gBAAC,YAAK,2FAEN,CACF,EAEA,gBAAC,MAAG,CAAC,UAAU,WACb,gBAAC,MAAG,CAAC,GAAI,IACP,gBAAC,KAA6B,OAAO,SACP,wBAAyBF,EACzB,YAAaD,EACb,SAAUI,EACV,SAAUA,CAAA,CAAc,CACxD,CACF,CAEF,CAEJ,C","sources":["webpack://graylog-web-interface/./src/pages/CreateEventDefinitionPage.tsx"],"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, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { useNavigate } from 'react-router-dom';\n\nimport { Col, Row } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader } from 'components/common';\nimport EventDefinitionFormContainer\n  from 'components/event-definitions/event-definition-form/EventDefinitionFormContainer';\nimport Routes from 'routing/Routes';\nimport DocsHelper from 'util/DocsHelper';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport EventsPageNavigation from 'components/events/EventsPageNavigation';\nimport useCurrentUser from 'hooks/useCurrentUser';\nimport useQuery from 'routing/useQuery';\n\nconst CreateEventDefinitionPage = () => {\n  const currentUser = useCurrentUser();\n  const navigate = useNavigate();\n\n  const [eventDefinitionTitle, setEventDefinitionTitle] = useState();\n  const { step } = useQuery();\n\n  const handleEventDefinitionChange = useCallback((eventDefinition) => {\n    if (eventDefinition.title !== eventDefinitionTitle) {\n      setEventDefinitionTitle(eventDefinition.title);\n    }\n  }, [eventDefinitionTitle]);\n\n  const pageTitle = useMemo(() => (eventDefinitionTitle ? `New Event Definition \"${eventDefinitionTitle}\"` : 'New Event Definition'), [eventDefinitionTitle]);\n\n  const goToOverview = useCallback(() => {\n    navigate(Routes.ALERTS.DEFINITIONS.LIST);\n  }, [navigate]);\n\n  useEffect(() => {\n    if (!isPermitted(currentUser.permissions, 'eventdefinitions:create')) {\n      navigate(Routes.NOTFOUND);\n    }\n  }, [currentUser.permissions, navigate]);\n\n  return (\n    \n      \n\n      \n        \n          Event Definitions allow you to create Alerts from different Conditions and alert on them.\n        \n      \n\n      \n        \n          \n        \n      \n\n    \n  );\n};\n\nexport default CreateEventDefinitionPage;\n"],"names":["currentUser","navigate","eventDefinitionTitle","setEventDefinitionTitle","step","handleEventDefinitionChange","eventDefinition","pageTitle","goToOverview"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy