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

web-interface.assets.1255d548-6303.a4648ae0cbf568bb38b5.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-6303.a4648ae0cbf568bb38b5.js","mappings":"yVA6BA,MAAMA,EAAyB,iCAEzBC,EAAkBC,GAA0C,CAChE,MAAMC,EAAW,OAAO,OAAOD,CAAK,EAC9BE,EAAa,KAAoB,GAAG,EAE1C,OAAQD,EAAS,UAAWE,GAAS,IAAI,KAAIA,EAAK,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,IAAMD,CAAU,GAAK,CACzH,EAEME,EAAkB,CAAC,CAAE,MAAAJ,CAAM,IAC1BA,EAIDD,EAAeC,CAAK,EAEpB,gBAAC,KAAkB,CAAC,QAAQ,OAAO,KAAM,KAAoBF,CAAsB,GAAG,4BAEtF,EAIG,KAXE,gBAAC,KAAO,IAAC,EAcpBM,EAAgB,UAAY,CAC1B,MAAO,WAAiB,UAC1B,EAuBA,QArBkB,IAAM,CACtB,MAAMC,KAAc,KAAe,EAC7B,CAAE,MAAAL,CAAM,KAAI,KAAS,GAAU,EAErC,OACE,gBAAC,KAAa,CAAC,MAAM,SACnB,gBAAC,WACC,gBAAC,KAAU,CAAC,MAAM,QAAQ,QAAS,gBAACI,EAAA,CAAgB,MAAAJ,CAAA,CAAc,GAChE,gBAAC,YAAK,4VAKN,CACF,EACA,gBAAC,KAAS,CAAC,YAAaK,EAAY,YAAa,MAAAL,CAAA,CAAc,CACjE,CACF,CAEJ,C","sources":["webpack://graylog-web-interface/./src/pages/NodesPage.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 from 'react';\nimport URI from 'urijs';\nimport PropTypes from 'prop-types';\n\nimport * as URLUtils from 'util/URLUtils';\nimport { DocumentTitle, ExternalLinkButton, PageHeader, Spinner } from 'components/common';\nimport { NodesList } from 'components/nodes';\nimport type { NodeInfo } from 'stores/nodes/NodesStore';\nimport { NodesStore } from 'stores/nodes/NodesStore';\nimport { useStore } from 'stores/connect';\n\nimport useCurrentUser from '../hooks/useCurrentUser';\n\nconst GLOBAL_API_BROWSER_URL = '/api-browser/global/index.html';\n\nconst hasExternalURI = (nodes: { [nodeId: string]: NodeInfo }) => {\n  const nodeVals = Object.values(nodes);\n  const publishURI = URLUtils.qualifyUrl('/');\n\n  return (nodeVals.findIndex((node) => new URI(node.transport_address).normalizePathname().toString() !== publishURI) >= 0);\n};\n\nconst GlobalAPIButton = ({ nodes }: { nodes: { [nodeId: string]: NodeInfo } }) => {\n  if (!nodes) {\n    return ;\n  }\n\n  if (hasExternalURI(nodes)) {\n    return (\n      \n        Cluster Global API browser\n      \n    );\n  }\n\n  return null;\n};\n\nGlobalAPIButton.propTypes = {\n  nodes: PropTypes.object.isRequired,\n};\n\nconst NodesPage = () => {\n  const currentUser = useCurrentUser();\n  const { nodes } = useStore(NodesStore);\n\n  return (\n    \n      
\n }>\n \n This page provides a real-time overview of the nodes in your Graylog cluster.\n You can pause message processing at any time. The process buffers will not accept any new messages until\n you resume it. If the message journal is enabled for a node, which it is by default, incoming messages\n will be persisted to disk, even when processing is disabled.\n \n \n \n
\n
\n );\n};\n\nexport default NodesPage;\n"],"names":["GLOBAL_API_BROWSER_URL","hasExternalURI","nodes","nodeVals","publishURI","node","GlobalAPIButton","currentUser"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy