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

web-interface.assets.57e33c6c-97.11b9f72925818240e61d.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"sources":["webpack:///./src/pages/IndexSetConfigurationPage.jsx"],"names":["CombinedProvider","get","IndexSetsStore","IndexSetsActions","IndicesConfigurationStore","IndicesConfigurationActions","IndexSetConfigurationPage","createReactClass","displayName","propTypes","params","PropTypes","object","isRequired","location","mixins","Reflux","connect","getInitialState","indexSet","undefined","componentDidMount","this","props","indexSetId","loadRotationStrategies","loadRetentionStrategies","_formCancelLink","query","from","Routes","SYSTEM","INDEX_SETS","SHOW","state","id","INDICES","LIST","_saveConfiguration","update","then","history","push","_isLoading","rotationStrategies","retentionStrategies","render","title","page","DocsHelper","PAGES","INDEX_MODEL","text","to","bsStyle","className","md","cancelLink","onUpdate","withParams","withLocation"],"mappings":"2GAAA,+R,EAiC6CA,IAAiBC,IAAI,aAA1DC,E,EAAAA,eAAgBC,E,EAAAA,iB,EAC2CH,IAAiBC,IAAI,wBAAhFG,E,EAAAA,0BAA2BC,E,EAAAA,4BAE7BC,EAA4BC,IAAiB,CACjDC,YAAa,4BAEbC,UAAW,CACTC,OAAQC,IAAUC,OAAOC,WACzBC,SAAUH,IAAUC,OAAOC,YAG7BE,OAAQ,CAACC,IAAOC,QAAQf,GAAiBc,IAAOC,QAAQb,IAExDc,gBAViD,WAW/C,MAAO,CACLC,cAAUC,IAIdC,kBAhBiD,WAiB/ClB,EAAiBF,IAAIqB,KAAKC,MAAMb,OAAOc,YACvCnB,EAA4BoB,yBAC5BpB,EAA4BqB,2BAG9BC,gBAtBiD,WAuB/C,MAAuC,YAAnCL,KAAKC,MAAMT,SAASc,MAAMC,KACrBC,IAAOC,OAAOC,WAAWC,KAAKX,KAAKY,MAAMf,SAASgB,IAGpDL,IAAOC,OAAOK,QAAQC,MAG/BC,mBA9BiD,SA8B9BnB,GACjBhB,EAAiBoC,OAAOpB,GAAUqB,MAAK,WACrCC,IAAQC,KAAKZ,IAAOC,OAAOK,QAAQC,UAIvCM,WApCiD,WAqC/C,OAAQrB,KAAKY,MAAMf,WAAaG,KAAKY,MAAMU,qBAAuBtB,KAAKY,MAAMW,qBAG/EC,OAxCiD,WAyC/C,GAAIxB,KAAKqB,aACP,OAAO,kBAAC,KAAD,MAFF,IAKCxB,EAAaG,KAAKY,MAAlBf,SAER,OACE,kBAAC,IAAD,CAAe4B,MAAM,uBACnB,6BACE,kBAAC,IAAD,CAAYA,MAAM,uBAChB,sMAIA,gFACkD,IAChD,kBAAC,IAAD,CAAmBC,KAAMC,IAAWC,MAAMC,YAAaC,KAAK,mBAE9D,8BACE,kBAAC,IAAD,CAAeC,GAAIvB,IAAOC,OAAOK,QAAQC,MACvC,kBAAC,IAAD,CAAQiB,QAAQ,QAAhB,0BAKN,kBAAC,IAAD,CAAKC,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,CAA2BrC,SAAUA,EACVyB,mBAAoBtB,KAAKY,MAAMU,mBAC/BC,oBAAqBvB,KAAKY,MAAMW,oBAChCY,WAAYnC,KAAKK,kBACjB+B,SAAUpC,KAAKgB,4BASzCqB,sBAAWC,YAAatD","file":"57e33c6c-97.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 PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { LinkContainer } from 'components/graylog/router';\nimport { Row, Col, Button } from 'components/graylog';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { IndexSetConfigurationForm } from 'components/indices';\nimport { DocumentationLink } from 'components/support';\nimport CombinedProvider from 'injection/CombinedProvider';\nimport DocsHelper from 'util/DocsHelper';\nimport history from 'util/History';\nimport Routes from 'routing/Routes';\nimport withParams from 'routing/withParams';\nimport withLocation from 'routing/withLocation';\n\nconst { IndexSetsStore, IndexSetsActions } = CombinedProvider.get('IndexSets');\nconst { IndicesConfigurationStore, IndicesConfigurationActions } = CombinedProvider.get('IndicesConfiguration');\n\nconst IndexSetConfigurationPage = createReactClass({\n  displayName: 'IndexSetConfigurationPage',\n\n  propTypes: {\n    params: PropTypes.object.isRequired,\n    location: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(IndexSetsStore), Reflux.connect(IndicesConfigurationStore)],\n\n  getInitialState() {\n    return {\n      indexSet: undefined,\n    };\n  },\n\n  componentDidMount() {\n    IndexSetsActions.get(this.props.params.indexSetId);\n    IndicesConfigurationActions.loadRotationStrategies();\n    IndicesConfigurationActions.loadRetentionStrategies();\n  },\n\n  _formCancelLink() {\n    if (this.props.location.query.from === 'details') {\n      return Routes.SYSTEM.INDEX_SETS.SHOW(this.state.indexSet.id);\n    }\n\n    return Routes.SYSTEM.INDICES.LIST;\n  },\n\n  _saveConfiguration(indexSet) {\n    IndexSetsActions.update(indexSet).then(() => {\n      history.push(Routes.SYSTEM.INDICES.LIST);\n    });\n  },\n\n  _isLoading() {\n    return !this.state.indexSet || !this.state.rotationStrategies || !this.state.retentionStrategies;\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { indexSet } = this.state;\n\n    return (\n      \n        
\n \n \n Modify the current configuration for this index set, allowing you to customize the retention, sharding,\n and replication of messages coming from one or more streams.\n \n \n You can learn more about the index model in the{' '}\n \n \n \n \n \n \n \n \n\n \n \n \n \n \n
\n
\n );\n },\n});\n\nexport default withParams(withLocation(IndexSetConfigurationPage));\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy