Please wait. This can take some minutes ...
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.
web-interface.assets.0c1a66a2-103.1ec71fc30880f2142b45.js.map Maven / Gradle / Ivy
{"version":3,"sources":["webpack:///./src/pages/ShowNodePage.jsx"],"names":["NodesStore","StoreProvider","getStore","ClusterOverviewStore","PluginsStore","InputStatesStore","InputTypesStore","ShowNodePage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","mixins","Reflux","connectFilter","state","nodes","this","props","nodeId","clusterOverview","undefined","connect","getInitialState","jvmInformation","plugins","componentWillMount","Promise","all","jvm","then","setState","list","inputStates","inputIds","Object","keys","filteredInputStates","forEach","inputId","inputObject","push","errors","_isLoading","node","systemOverview","render","title","short_node_id","hostname","is_master","inputDescriptions"],"mappings":"4GAAA,+JAUMA,EAAaC,IAAcC,SAAS,SACpCC,EAAuBF,IAAcC,SAAS,mBAC9CE,EAAeH,IAAcC,SAAS,WACtCG,EAAmBJ,IAAcC,SAAS,eAC1CI,EAAkBL,IAAcC,SAAS,cAU/C,IAAMK,EAAeC,IAAiB,CACpCC,YAAa,eAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,YAG3BC,OAAQ,CACNC,IAAOC,cAAcjB,EAAY,QAhBrC,SAAoBkB,GAClB,OAAOA,EAAMC,MAAQD,EAAMC,MAAMC,KAAKC,MAAMV,OAAOW,QAAUJ,EAAMC,SAgBjEH,IAAOC,cAAcd,EAAsB,kBAb/C,SAA+Be,GAC7B,OAAOA,EAAMK,gBAAkBL,EAAMK,gBAAgBH,KAAKC,MAAMV,OAAOW,aAAUE,KAa/ER,IAAOS,QAAQnB,IAGjBoB,gBAboC,WAclC,MAAO,CACLC,oBAAgBH,EAChBI,aAASJ,IAIbK,mBApBoC,WAoBf,WACnBC,QAAQC,IAAI,CACV5B,EAAqB6B,IAAIZ,KAAKC,MAAMV,OAAOW,QACxCW,MAAK,SAACN,GAAD,OAAoB,EAAK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'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport StoreProvider from 'injection/StoreProvider';\n\nimport { NodeMaintenanceDropdown, NodeOverview } from 'components/nodes';\nimport { DocumentTitle, PageErrorOverview, PageHeader, Spinner } from 'components/common';\n\nconst NodesStore = StoreProvider.getStore('Nodes');\nconst ClusterOverviewStore = StoreProvider.getStore('ClusterOverview');\nconst PluginsStore = StoreProvider.getStore('Plugins');\nconst InputStatesStore = StoreProvider.getStore('InputStates');\nconst InputTypesStore = StoreProvider.getStore('InputTypes');\n\nfunction nodeFilter(state) {\n return state.nodes ? state.nodes[this.props.params.nodeId] : state.nodes;\n}\n\nfunction clusterOverviewFilter(state) {\n return state.clusterOverview ? state.clusterOverview[this.props.params.nodeId] : undefined;\n}\n\nconst ShowNodePage = createReactClass({\n displayName: 'ShowNodePage',\n\n propTypes: {\n params: PropTypes.object.isRequired,\n },\n\n mixins: [\n Reflux.connectFilter(NodesStore, 'node', nodeFilter),\n Reflux.connectFilter(ClusterOverviewStore, 'systemOverview', clusterOverviewFilter),\n Reflux.connect(InputTypesStore),\n ],\n\n getInitialState() {\n return {\n jvmInformation: undefined,\n plugins: undefined,\n };\n },\n\n componentWillMount() {\n Promise.all([\n ClusterOverviewStore.jvm(this.props.params.nodeId)\n .then((jvmInformation) => this.setState({ jvmInformation: jvmInformation })),\n PluginsStore.list(this.props.params.nodeId).then((plugins) => this.setState({ plugins: plugins })),\n InputStatesStore.list().then((inputStates) => {\n // We only want the input states for the current node\n const inputIds = Object.keys(inputStates);\n const filteredInputStates = [];\n inputIds.forEach((inputId) => {\n const inputObject = inputStates[inputId][this.props.params.nodeId];\n if (inputObject) {\n filteredInputStates.push(inputObject);\n }\n });\n\n this.setState({ inputStates: filteredInputStates });\n }),\n ]).then(() => {}, (errors) => this.setState({ errors: errors }));\n },\n\n _isLoading() {\n return !(this.state.node && this.state.systemOverview);\n },\n\n render() {\n if (this.state.errors) {\n return ;\n }\n if (this._isLoading()) {\n return ;\n }\n const { node } = this.state;\n const title = Node {node.short_node_id} / {node.hostname} ;\n\n return (\n \n \n
\n \n This page shows details of a Graylog server node that is active and reachable in your cluster.\n \n \n {node.is_master ? This is the master node. : This is not the master node. }\n \n \n \n
\n
\n \n );\n },\n});\n\nexport default ShowNodePage;\n"],"sourceRoot":""}