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.
{"version":3,"sources":["webpack:///./src/pages/NodesPage.jsx"],"names":["CurrentUserStore","StoreProvider","getStore","NodesStore","NodesPage","createReactClass","displayName","mixins","Reflux","connect","_isLoading","this","state","nodes","_renderGlobalAPIButton","_hasExternalURI","bsStyle","href","URLUtils","nodeVals","Object","values","publishURI","findIndex","node","URI","transport_address","normalizePathname","toString","render","currentUser","title","permissions"],"mappings":"4GAAA,+KA0BMA,EAAmBC,IAAcC,SAAS,eAC1CC,EAAaF,IAAcC,SAAS,SAIpCE,EAAYC,IAAiB,CACjCC,YAAa,YACbC,OAAQ,CAACC,IAAOC,QAAQT,GAAmBQ,IAAOC,QAAQN,IAE1DO,WAJiC,WAO/B,OAFkBC,KAAKC,MAAfC,OAKVC,uBAViC,WAW/B,OAAIH,KAAKD,aACA,kBAAC,KAAD,MAGLC,KAAKI,kBAEL,kBAAC,IAAD,CAAoBC,QAAQ,OAAOC,KAAMC,IAnBlB,mCAmBvB,8BAMG,MAGTH,gBA1BiC,WA0Bf,IACRF,EAAUF,KAAKC,MAAfC,MACFM,EAAWC,OAAOC,OAAOR,GACzBS,EAAaJ,IAAoB,KAEvC,OAAQC,EAASI,WAAU,SAACC,GAAD,OAAU,IAAIC,IAAID,EAAKE,mBAAmBC,oBAAoBC,aAAeN,MAAe,GAGzHO,OAlCiC,WAkCxB,MACwBlB,KAAKC,MAA5BC,EADD,EACCA,MAAOiB,EADR,EACQA,YAEf,OACE,kBAAC,IAAD,CAAeC,MAAM,SACnB,6BACE,kBAAC,IAAD,CAAYA,MAAM,SAChB,+GAEA,8SAKA,8BACGpB,KAAKG,2BAGV,kBAAC,IAAD,CAAWkB,YAAaF,EAAYE,YAAanB,MAAOA,SAOnDT","file":"57e33c6c-108.11b9f72925818240e61d.js","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 createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\nimport URI from 'urijs';\n\nimport * as URLUtils from 'util/URLUtils';\nimport StoreProvider from 'injection/StoreProvider';\nimport { DocumentTitle, ExternalLinkButton, PageHeader, Spinner } from 'components/common';\nimport { NodesList } from 'components/nodes';\n\nconst CurrentUserStore = StoreProvider.getStore('CurrentUser');\nconst NodesStore = StoreProvider.getStore('Nodes');\n\nconst GLOBAL_API_BROWSER_URL = '/api-browser/global/index.html';\n\nconst NodesPage = createReactClass({\n displayName: 'NodesPage',\n mixins: [Reflux.connect(CurrentUserStore), Reflux.connect(NodesStore)],\n\n _isLoading() {\n const { nodes } = this.state;\n\n return !(nodes);\n },\n\n _renderGlobalAPIButton() {\n if (this._isLoading()) {\n return ;\n }\n\n if (this._hasExternalURI()) {\n return (\n \n Cluster Global API browser\n \n );\n }\n\n return null;\n },\n\n _hasExternalURI() {\n const { nodes } = this.state;\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\n render() {\n const { nodes, currentUser } = this.state;\n\n return (\n \n
\n \n This page provides a real-time overview of the nodes in your Graylog cluster.\n\n \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 {this._renderGlobalAPIButton()}\n \n \n \n