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

web-interface.assets.1255d548-8617.7388ac4c5ecab44644f1.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-8617.7388ac4c5ecab44644f1.js","mappings":"iRAwBA,MAAMA,EAA+B,CAAC,CAAE,eAAAC,CAAe,IACrD,gBAAC,gBAAa,KACZ,gBAAC,KAAW,CAAC,YAAa,2BAA2BA,CAAc,IACjE,gBAAC,IAAa,CAAC,GAAI,KAAO,OAAO,cAAc,KAAKA,CAAc,GAChE,gBAAC,SAAM,CAAC,QAAQ,WAAU,cAAY,CACxC,CACF,EACA,gBAAC,KAAW,CAAC,YAAa,2BAA2BA,CAAc,IACjE,gBAAC,IAAa,CAAC,GAAI,KAAO,OAAO,cAAc,KAAKA,CAAc,GAChE,gBAAC,SAAM,CAAC,QAAQ,WAAU,mBAAiB,CAC7C,CACF,CACF,EAGFD,EAA6B,UAAY,CACvC,eAAgB,WAAiB,UACnC,EAEA,QAAeA,C,gRCnBf,MAAME,EAA0BC,GAC1BA,IAAS,OACJ,CAAC,EAGH,IAAY,QAAQ,wBAAwB,EAAE,KAAMC,GAAMA,EAAE,OAASD,CAAI,GAAK,CAAC,EAGlFE,EAA2B,CAAC,CAAE,aAAAC,CAAa,IAAM,CACrD,MAAMC,EAAqBL,EAAuBI,EAAa,OAAO,IAAI,EACpEE,EAAmBD,GAAA,YAAAA,EAAoB,iBAE7C,OACE,gBAACE,EAAA,EAAgB,CAAC,MAAM,WACtB,gBAAC,KAAiB,CAAC,MAAM,QAAQ,MAAOH,EAAa,MAAO,EAC5D,gBAAC,KAAiB,CAAC,MAAM,cAAc,MAAOA,EAAa,YAAa,EACxE,gBAAC,KAAiB,CAAC,MAAM,oBAAoB,MAAOA,EAAa,OAAO,KAAM,EAC7EE,EAAmB,gBAACA,EAAA,CAAiB,aAAAF,CAAA,CAA4B,EAAK,gBAAC,QAAK,CAAC,QAAQ,UAAS,iCAA+B,CAChI,CAEJ,EAEAD,EAAyB,UAAY,CACnC,aAAc,WAAiB,UACjC,EAEA,QAAeA,E,oFCuCf,QArDgC,IAAM,CACpC,MAAMK,KAAcC,EAAA,GAAe,EAC7B,CAACL,EAAcM,CAAe,KAAI,YAAwC,EAC1E,CAAE,eAAAX,CAAe,KAAI,aAAU,EAC/BY,KAAUC,EAAA,GAAW,EAiB3B,SAfA,aAAU,IAAM,CACd,IAA0B,IAAIb,CAAc,EAAE,KAC3Cc,GAAWH,EAAgBG,CAAM,EACjCC,GAAU,CACLA,EAAM,SAAW,KACnBC,EAAA,EAAc,UAAO,MAAqBD,CAAK,CAAC,CAEpD,CACF,CACF,EAAG,CAACf,CAAc,CAAC,KAEd,MAAYS,EAAY,YAAa,2BAA2BT,CAAc,EAAE,GACnFY,EAAQ,KAAKK,EAAA,GAAO,QAAQ,EAGzBZ,EAaH,gBAAC,KAAa,CAAC,MAAO,SAASA,EAAa,KAAK,kBAC/C,gBAACa,EAAA,EAAoB,IAAC,EACtB,gBAAC,MAAW,MAAO,SAASb,EAAa,KAAK,iBAClC,QAASA,GAAgB,gBAACN,EAAA,EAA4B,CAAC,eAAgBM,EAAa,GAAI,EACxF,kBAAmB,CACjB,MAAO,uBACP,KAAMc,EAAA,EAAW,MAAM,MACzB,GACV,gBAAC,YAAK,+JAGN,CACF,EAEA,gBAAC,EAAwB,CAAC,aAAAd,CAAA,CAA4B,CACxD,EA1BE,gBAAC,KAAa,CAAC,MAAM,wBACnB,gBAAC,YACC,gBAAC,KAAU,CAAC,MAAM,wBAChB,gBAAC,KAAO,CAAC,KAAK,qCAAsC,EACtD,CACF,CACF,CAsBN,C","sources":["webpack://graylog-web-interface/./src/components/event-notifications/event-notification-details/EventNotificationActionLinks.jsx","webpack://graylog-web-interface/./src/components/event-notifications/event-notification-details/EventNotificationDetails.jsx","webpack://graylog-web-interface/./src/pages/ShowEventNotificationPage.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 * as React from 'react';\nimport PropTypes from 'prop-types';\n\nimport { LinkContainer } from 'components/common/router';\nimport { Button, ButtonToolbar } from 'components/bootstrap';\nimport { IfPermitted } from 'components/common';\nimport Routes from 'routing/Routes';\n\nconst EventNotificationActionLinks = ({ notificationId }) => (\n  \n    \n      \n        \n      \n    \n    \n      \n        \n      \n    \n  \n);\n\nEventNotificationActionLinks.propTypes = {\n  notificationId: PropTypes.string.isRequired,\n};\n\nexport default EventNotificationActionLinks;\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 { PluginStore } from 'graylog-web-plugin/plugin';\nimport PropTypes from 'prop-types';\n\nimport { ReadOnlyFormGroup } from 'components/common';\nimport { Alert } from 'components/bootstrap';\nimport SectionComponent from 'components/common/Section/SectionComponent';\n\nconst _getNotificationPlugin = (type) => {\n  if (type === undefined) {\n    return {};\n  }\n\n  return PluginStore.exports('eventNotificationTypes').find((n) => n.type === type) || {};\n};\n\nconst EventNotificationDetails = ({ notification }) => {\n  const notificationPlugin = _getNotificationPlugin(notification.config.type);\n  const DetailsComponent = notificationPlugin?.detailsComponent;\n\n  return (\n    \n      \n      \n      \n      {DetailsComponent ?  : Notification type not supported}\n    \n  );\n};\n\nEventNotificationDetails.propTypes = {\n  notification: PropTypes.object.isRequired,\n};\n\nexport default EventNotificationDetails;\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 { useState, useEffect } from 'react';\nimport { useParams } from 'react-router-dom';\n\nimport ErrorsActions from 'actions/errors/ErrorsActions';\nimport useCurrentUser from 'hooks/useCurrentUser';\nimport { createFromFetchError } from 'logic/errors/ReportedErrors';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport Routes from 'routing/Routes';\nimport DocsHelper from 'util/DocsHelper';\nimport { isPermitted } from 'util/PermissionsMixin';\nimport EventNotificationDetails from 'components/event-notifications/event-notification-details/EventNotificationDetails';\nimport EventNotificationActionLinks from 'components/event-notifications/event-notification-details/EventNotificationActionLinks';\nimport type { EventNotification } from 'stores/event-notifications/EventNotificationsStore';\nimport { EventNotificationsActions } from 'stores/event-notifications/EventNotificationsStore';\nimport 'components/event-notifications/event-notification-types';\nimport EventsPageNavigation from 'components/events/EventsPageNavigation';\n\nimport useHistory from '../routing/useHistory';\n\nconst ShowEventDefinitionPage = () => {\n  const currentUser = useCurrentUser();\n  const [notification, setNotification] = useState();\n  const { notificationId } = useParams();\n  const history = useHistory();\n\n  useEffect(() => {\n    EventNotificationsActions.get(notificationId).then(\n      (result) => setNotification(result),\n      (error) => {\n        if (error.status === 404) {\n          ErrorsActions.report(createFromFetchError(error));\n        }\n      },\n    );\n  }, [notificationId]);\n\n  if (!isPermitted(currentUser.permissions, `eventnotifications:read:${notificationId}`)) {\n    history.push(Routes.NOTFOUND);\n  }\n\n  if (!notification) {\n    return (\n      \n        \n          \n            \n          \n        \n      \n    );\n  }\n\n  return (\n    \n      \n      }\n                  documentationLink={{\n                    title: 'Alerts documentation',\n                    path: DocsHelper.PAGES.ALERTS,\n                  }}>\n        \n          Notifications alert you of any configured Event when they occur. Graylog can send Notifications directly\n          to you or to other systems you use for that purpose.\n        \n      \n\n      \n    \n  );\n};\n\nexport default ShowEventDefinitionPage;\n"],"names":["EventNotificationActionLinks","notificationId","_getNotificationPlugin","type","n","EventNotificationDetails","notification","notificationPlugin","DetailsComponent","SectionComponent","currentUser","useCurrentUser","setNotification","history","useHistory","result","error","ErrorsActions","Routes","EventsPageNavigation","DocsHelper"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy