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

web-interface.assets.bb8c8232-2666.10ea609c963fa1eec83b.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"bb8c8232-2666.10ea609c963fa1eec83b.js","mappings":"wQA2BA,MAAMA,KAAY,WAAO,eAAa;AAAA;AAAA,EAIhCC,KAAe,WAAO,QAAM,EAAE,CAAC,CAAE,MAAAC,CAAM,OAAM;AAAA,iBAClCA,EAAM,MAAM,OAAO,UAAU;AAAA,eAC/BA,EAAM,MAAM,KAAK,UAAU;AAAA,WAC/BA,EAAM,OAAO,QAAQ,OAAO,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAUxC,MAAqBA,CAAK,CAAC;AAAA;AAAA;AAAA;AAAA,aAIpBA,EAAM,OAAO,OAAO,WAAW;AAAA;AAAA,SAEtC,MAAsBA,CAAK,CAAC;AAAA;AAAA;AAAA;AAAA,WAI1B,MAAsBA,CAAK,CAAC;AAAA;AAAA,CAEnC,EAEDD,EAAa,YAAc,SAyC3B,QAtBuB,CAAC,CAAE,MAAAE,CAAM,IAC9B,gBAACH,EAAA,KACEG,EAAM,IAAI,CAAC,CAAE,KAAAC,EAAM,MAAAC,EAAO,YAAAC,EAAa,eAAAC,CAAe,IAChDH,EAKH,gBAAC,KAAW,CAAC,YAAaE,GAAA,KAAAA,EAAe,CAAC,EAAG,IAAKF,CAAA,EAChD,gBAAC,IAAa,CAAC,GAAIA,EAAM,eAAgB,CAACG,CAAA,EACxC,gBAACN,EAAA,CAAa,QAAQ,QACpB,gBAAC,KAAqB,KACnBI,CACH,CACF,CACF,CACF,EAZO,IAcV,CACH,C,mJCxEF,MAAMG,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,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ACjC,EAEA,QAAeA,E,oECsCf,QArDgC,IAAM,CACpC,MAAMK,KAAcC,EAAA,GAAe,EAC7B,CAACL,EAAcM,CAAe,KAAI,YAAwC,EAC1E,CAAE,eAAAZ,CAAe,KAAI,aAAU,EAC/Ba,KAAUC,EAAA,GAAW,EAiB3B,SAfA,aAAU,IAAM,CACd,IAA0B,IAAId,CAAc,EAAE,KAC3Ce,GAAWH,EAAgBG,CAAM,EACjCC,GAAU,CACLA,EAAM,SAAW,KACnBC,EAAA,EAAc,UAAO,MAAqBD,CAAK,CAAC,CAEpD,CACF,CACF,EAAG,CAAChB,CAAc,CAAC,KAEd,MAAYU,EAAY,YAAa,2BAA2BV,CAAc,EAAE,GACnFa,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,gBAACP,EAAA,EAA4B,CAAC,eAAgBO,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/common/PageNavigation.tsx","webpack://graylog-web-interface/./src/components/event-notifications/event-notification-details/EventNotificationActionLinks.jsx","webpack://graylog-web-interface/./src/components/events/EventsPageNavigation.tsx","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 styled, { css } from 'styled-components';\n\nimport { Button, ButtonToolbar } from 'components/bootstrap';\nimport { LinkContainer } from 'components/common/router';\nimport { IfPermitted } from 'components/common';\nimport NavItemStateIndicator, {\n  hoverIndicatorStyles,\n  activeIndicatorStyles,\n} from 'components/common/NavItemStateIndicator';\n\nconst Container = styled(ButtonToolbar)`\n  margin-bottom: 10px;\n`;\n\nconst StyledButton = styled(Button)(({ theme }) => css`\n  font-family: ${theme.fonts.family.navigation};\n  font-size: ${theme.fonts.size.navigation};\n  color: ${theme.colors.variant.darker.default};\n  \n  &:hover,\n  &:focus {\n    background: inherit;\n    text-decoration: none;\n  }\n\n  &:hover {\n    color: inherit;\n    ${hoverIndicatorStyles(theme)}\n  }\n\n  &.active {\n    color: ${theme.colors.global.textDefault};\n\n    ${activeIndicatorStyles(theme)}\n\n    &:hover,\n    &:focus {\n      ${activeIndicatorStyles(theme)}\n    }\n`);\n\nStyledButton.displayName = 'Button';\n\ntype Props = {\n  /**\n   * List of nav items. Define permissions, if the item should only be displayed for users with specific permissions.\n   * By default, an item is active if the current URL starts with the item URL.\n   * If you only want to display an item as active only when its path matches exactly, set `exactPathMatch` to true.\n   */\n  items: Array<{\n    title: string,\n    path: string,\n    permissions?: string | Array\n    exactPathMatch?: boolean,\n  }>\n}\n\n/**\n * Simple tab navigation to allow navigating to subareas of a page.\n */\nconst PageNavigation = ({ items }: Props) => (\n  \n    {items.map(({ path, title, permissions, exactPathMatch }) => {\n      if (!path) {\n        return null;\n      }\n\n      return (\n        \n          \n            \n              \n                {title}\n              \n            \n          \n        \n      );\n    })}\n  \n);\n\nexport default PageNavigation;\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 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';\n\nimport PageNavigation from 'components/common/PageNavigation';\nimport Routes from 'routing/Routes';\nimport { Row } from 'components/bootstrap';\n\nconst NAV_ITEMS = [\n  { title: 'Alerts & Events', path: Routes.ALERTS.LIST, exactPathMatch: true },\n  { title: 'Event Definitions', path: Routes.ALERTS.DEFINITIONS.LIST },\n  { title: 'Notifications', path: Routes.ALERTS.NOTIFICATIONS.LIST },\n];\n\nconst EventsPageNavigation = () => (\n  \n    \n  \n);\n\nexport default EventsPageNavigation;\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 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":["Container","StyledButton","theme","items","path","title","permissions","exactPathMatch","EventNotificationActionLinks","notificationId","NAV_ITEMS","_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