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

web-interface.assets.4e85aa7a-6379.be0d71ade0009cefd51c.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.5
Show newest version
{"version":3,"file":"4e85aa7a-6379.be0d71ade0009cefd51c.js","mappings":"giBAiCA,MAAMA,EAAsBC,GAAaC,EAAAA,GAAAA,OAAwBD,GAAUE,MAAK,KAC9EC,EAAAA,EAAAA,KAAaC,EAAAA,GAAAA,OAAAA,QAAAA,KAAb,IAGF,MAAMC,UAAkCC,EAAAA,UAAgB,4DAOpC,KAChB,MAAQC,UAAYC,OAAO,KAAEC,IAAvB,SAAiCT,GAAaU,KAAKC,MAEzD,MAAa,YAATF,EACKL,EAAAA,GAAAA,OAAAA,WAAAA,KAA8BJ,EAASY,IAGzCR,EAAAA,GAAAA,OAAAA,QAAAA,IAAP,IAdoD,qBAiBzC,KACX,MAAM,SAAEJ,EAAF,mBAAYa,EAAZ,oBAAgCC,GAAwBJ,KAAKC,MAEnE,OAAQX,IAAaa,IAAuBC,CAA5C,GApBoD,CACtDC,oBACEd,EAAAA,GAAAA,IAAqBS,KAAKC,MAAMK,OAAOC,YACvCC,EAAAA,EAAAA,yBACAA,EAAAA,EAAAA,yBACD,CAkBDC,SACE,GAAIT,KAAKU,aACP,OAAO,gBAAC,KAAD,MAGT,MAAM,SAAEpB,EAAF,2BAAYqB,EAAZ,mBAAwCR,EAAxC,oBAA4DC,GAAwBJ,KAAKC,MAE/F,OACE,gBAAC,KAAD,CAAeW,MAAM,uBACnB,2BACE,gBAAC,KAAD,CAAYA,MAAM,sBACNC,kBAAmB,CACjBD,MAAO,4BACPE,KAAMC,EAAAA,EAAAA,MAAAA,aAERC,WACE,gBAAC,IAAD,CAAeC,GAAIvB,EAAAA,GAAAA,OAAAA,QAAAA,MACjB,gBAAC,KAAD,CAAQwB,QAAQ,QAAhB,yBAGd,qMAMF,gBAAC,KAAD,CAAKC,UAAU,WACb,gBAAC,KAAD,CAAKC,GAAI,IACP,gB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MAAO,CACLF,qBAAsBjD,KAAKiD,qBAC3B9C,mBAAoBH,KAAKG,mBACzB+C,sBAAuBlD,KAAKkD,sBAC5B9C,oBAAqBJ,KAAKI,oBAC1BO,2BAA4BX,KAAKW,2BAEpC,EACDyC,KAAKtC,GACIuC,EAAAA,GA9BK,kBA8B2BvC,GAGzC6B,yBACE,MAAMW,GAAUC,EAAAA,EAAAA,IAAM,MAAOvD,KAAKoD,KAAK,yBAEvCE,EAAQ9D,MACLgE,IACCxD,KAAKG,mBAAqBqD,EAASC,WACnCzD,KAAK0D,QAAQ1D,KAAKmD,WAAlB,IAEDQ,IACCC,EAAAA,EAAAA,MAAwB,wCAAuCD,IAAS,yCAAxE,IAIJnD,EAA4BmC,uBAAuBW,QAAQA,EAC5D,EAEDT,0BACE,MAAMS,GAAUC,EAAAA,EAAAA,IAAM,MAAOvD,KAAKoD,KAAK,0BAEvCE,EAAQ9D,MACLgE,IACCxD,KAAKW,2BAA6B6C,EAASK,QAC3C7D,KAAKI,oBAAsBoD,EAASC,WACpCzD,KAAK0D,QAAQ1D,KAAKmD,WAAlB,IAEDQ,IACCC,EAAAA,EAAAA,MAAwB,yCAAwCD,IAAS,0CAAzE,IAIJnD,EAA4BqC,wBAAwBS,QAAQA,EAC7D,K","sources":["webpack://graylog-web-interface/./src/pages/IndexSetConfigurationPage.jsx","webpack://graylog-web-interface/./src/stores/indices/IndicesConfigurationStore.ts"],"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';\n\nimport { LinkContainer } from 'components/common/router';\nimport { Row, Col, Button } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { IndexSetConfigurationForm } from 'components/indices';\nimport connect from 'stores/connect';\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';\nimport { IndexSetsActions, IndexSetsStore, IndexSetPropType } from 'stores/indices/IndexSetsStore';\nimport { IndicesConfigurationActions, IndicesConfigurationStore } from 'stores/indices/IndicesConfigurationStore';\nimport { RetentionStrategyPropType, RotationStrategyPropType } from 'components/indices/Types';\n\nconst _saveConfiguration = (indexSet) => IndexSetsActions.update(indexSet).then(() => {\n  history.push(Routes.SYSTEM.INDICES.LIST);\n});\n\nclass IndexSetConfigurationPage extends React.Component {\n  componentDidMount() {\n    IndexSetsActions.get(this.props.params.indexSetId);\n    IndicesConfigurationActions.loadRotationStrategies();\n    IndicesConfigurationActions.loadRetentionStrategies();\n  }\n\n  _formCancelLink = () => {\n    const { location: { query: { from } }, indexSet } = this.props;\n\n    if (from === 'details') {\n      return Routes.SYSTEM.INDEX_SETS.SHOW(indexSet.id);\n    }\n\n    return Routes.SYSTEM.INDICES.LIST;\n  };\n\n  _isLoading = () => {\n    const { indexSet, rotationStrategies, retentionStrategies } = this.props;\n\n    return !indexSet || !rotationStrategies || !retentionStrategies;\n  };\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { indexSet, retentionStrategiesContext, rotationStrategies, retentionStrategies } = this.props;\n\n    return (\n      \n        
\n \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\n \n \n \n \n \n
\n
\n );\n }\n}\n\nIndexSetConfigurationPage.propTypes = {\n params: PropTypes.object.isRequired,\n location: PropTypes.object.isRequired,\n retentionStrategies: PropTypes.arrayOf(RetentionStrategyPropType),\n rotationStrategies: PropTypes.arrayOf(RotationStrategyPropType),\n indexSet: IndexSetPropType,\n retentionStrategiesContext: PropTypes.shape({\n max_index_retention_period: PropTypes.string,\n }),\n};\n\nIndexSetConfigurationPage.defaultProps = {\n retentionStrategies: undefined,\n rotationStrategies: undefined,\n indexSet: undefined,\n retentionStrategiesContext: {\n max_index_retention_period: undefined,\n },\n};\n\nexport default connect(\n withParams(withLocation(IndexSetConfigurationPage)),\n {\n indexSets: IndexSetsStore,\n indicesConfigurations: IndicesConfigurationStore,\n },\n ({ indexSets, indicesConfigurations }) => ({\n indexSet: indexSets.indexSet,\n rotationStrategies: indicesConfigurations.rotationStrategies,\n retentionStrategies: indicesConfigurations.retentionStrategies,\n retentionStrategiesContext: indicesConfigurations.retentionStrategiesContext,\n }),\n);\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 Reflux from 'reflux';\n\nimport type {\n IndicesConfigurationActionsType,\n IndicesConfigurationStoreState,\n RetentionStrategyResponse,\n RotationStrategyResponse,\n} from 'components/indices/Types';\nimport UserNotification from 'util/UserNotification';\nimport * as URLUtils from 'util/URLUtils';\nimport fetch from 'logic/rest/FetchProvider';\nimport { singletonStore, singletonActions } from 'logic/singleton';\n\nexport const IndicesConfigurationActions = singletonActions(\n 'core.IndicesConfiguration',\n () => Reflux.createActions({\n loadRotationStrategies: { asyncResult: true },\n loadRetentionStrategies: { asyncResult: true },\n }),\n);\n\nconst urlPrefix = '/system/indices';\n\nexport const IndicesConfigurationStore = singletonStore(\n 'core.IndicesConfiguration',\n () => Reflux.createStore({\n listenables: [IndicesConfigurationActions],\n\n rotationStrategies: undefined,\n retentionStrategies: undefined,\n retentionStrategiesContext: undefined,\n\n getInitialState() {\n return {\n activeRotationConfig: undefined,\n rotationStrategies: undefined,\n activeRetentionConfig: undefined,\n retentionStrategies: undefined,\n retentionStrategiesContext: undefined,\n };\n },\n getState() {\n return {\n activeRotationConfig: this.activeRotationConfig,\n rotationStrategies: this.rotationStrategies,\n activeRetentionConfig: this.activeRetentionConfig,\n retentionStrategies: this.retentionStrategies,\n retentionStrategiesContext: this.retentionStrategiesContext,\n };\n },\n _url(path) {\n return URLUtils.qualifyUrl(urlPrefix + path);\n },\n\n loadRotationStrategies() {\n const promise = fetch('GET', this._url('/rotation/strategies'));\n\n promise.then(\n (response: RotationStrategyResponse) => {\n this.rotationStrategies = response.strategies;\n this.trigger(this.getState());\n },\n (error) => {\n UserNotification.error(`Fetching rotation strategies failed: ${error}`, 'Could not retrieve rotation strategies');\n },\n );\n\n IndicesConfigurationActions.loadRotationStrategies.promise(promise);\n },\n\n loadRetentionStrategies() {\n const promise = fetch('GET', this._url('/retention/strategies'));\n\n promise.then(\n (response: RetentionStrategyResponse) => {\n this.retentionStrategiesContext = response.context;\n this.retentionStrategies = response.strategies;\n this.trigger(this.getState());\n },\n (error) => {\n UserNotification.error(`Fetching retention strategies failed: ${error}`, 'Could not retrieve retention strategies');\n },\n );\n\n IndicesConfigurationActions.loadRetentionStrategies.promise(promise);\n },\n }),\n);\n"],"names":["_saveConfiguration","indexSet","IndexSetsActions","then","history","Routes","IndexSetConfigurationPage","React","location","query","from","this","props","id","rotationStrategies","retentionStrategies","componentDidMount","params","indexSetId","IndicesConfigurationActions","render","_isLoading","retentionStrategiesContext","title","documentationLink","path","DocsHelper","topActions","to","bsStyle","className","md","submitButtonText","submitLaodingText","cancelLink","_formCancelLink","onUpdate","propTypes","PropTypes","RetentionStrategyPropType","RotationStrategyPropType","IndexSetPropType","max_index_retention_period","defaultProps","undefined","connect","withParams","withLocation","indexSets","IndexSetsStore","indicesConfigurations","IndicesConfigurationStore","singletonActions","Reflux","loadRotationStrategies","asyncResult","loadRetentionStrategies","singletonStore","listenables","getInitialState","activeRotationConfig","activeRetentionConfig","getState","_url","URLUtils","promise","fetch","response","strategies","trigger","error","UserNotification","context"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy