web-interface.assets.1255d548-8988.59d16c07ad7f68851e18.js.map Maven / Gradle / Ivy
{"version":3,"file":"1255d548-8988.59d16c07ad7f68851e18.js","mappings":"8VA6BA,MAAMA,EAA+B,CAAC,CAAE,OAAAC,CAAO,IAAM,CACnD,KAAM,CAACC,EAAeC,CAAgB,KAAI,YAAwB,IAAI,EAChE,CAACC,EAAuBC,CAAwB,KAAI,YAAwC,IAAI,EAChGC,KAAU,KAAW,EA0B3B,SAxBA,aAAU,IAAM,EACe,IAAM,CACjC,KAAM,CAAE,gBAAAC,CAAgB,EAAIN,EAE5B,IAA+B,iBAAiBM,CAAe,EAAE,KAC9DC,GAAmB,CAClBL,EAAiBK,CAAc,EAE/B,IAA+B,yBAAyBD,CAAe,EACpE,KAAME,GAA2BJ,EAAyBI,CAAsB,CAAC,CACtF,EACCC,GAAU,CACLA,EAAM,SAAW,KACnBJ,EAAQ,KAAK,KAAO,OAAO,SAAS,aAAa,CAErD,CACF,CACF,GAEqB,CACvB,EAAG,CAACA,EAASL,CAAM,CAAC,GAED,IAAM,CAACC,GAAiB,CAACE,GAE7B,EACN,gBAAC,KAAO,IAAC,EAIhB,gBAAC,KAAa,CAAC,MAAM,2BACnB,gBAAC,IAAsB,IAAC,EACxB,gBAAC,MAAW,MAAM,0BACN,kBAAmB,CACjB,MAAO,wBACP,KAAM,IAAW,MAAM,iBACzB,GACV,gBAAC,YAAK,4CAEN,CACF,EACA,gBAAC,KAAkB,cAAAF,EACA,sBAAAE,CAAA,CAA8C,CACnE,CAEJ,EAEAJ,EAA6B,UAAY,CACvC,OAAQ,WAAiB,UAC3B,EAEA,WAAe,KAAWA,CAA4B,C,0ECpDtD,QANiDW,GAAgGC,GAAU,CACzJ,MAAMX,KAAS,aAAU,EAEzB,OAAO,gBAACU,EAAA,CAAW,GAAGC,EAAgB,OAAAX,CAAA,CAAgB,CACxD,C","sources":["webpack://graylog-web-interface/./src/pages/SidecarEditConfigurationPage.tsx","webpack://graylog-web-interface/./src/routing/withParams.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 PropTypes from 'prop-types';\nimport React, { useState, useEffect } from 'react';\n\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport Routes from 'routing/Routes';\nimport ConfigurationForm from 'components/sidecars/configuration-forms/ConfigurationForm';\nimport withParams from 'routing/withParams';\nimport { CollectorConfigurationsActions } from 'stores/sidecars/CollectorConfigurationsStore';\nimport type { Configuration, ConfigurationSidecarsResponse } from 'components/sidecars/types';\nimport SidecarsPageNavigation from 'components/sidecars/common/SidecarsPageNavigation';\nimport DocsHelper from 'util/DocsHelper';\nimport useHistory from 'routing/useHistory';\n\nconst SidecarEditConfigurationPage = ({ params }) => {\n const [configuration, setConfiguration] = useState(null);\n const [configurationSidecars, setConfigurationSidecars] = useState(null);\n const history = useHistory();\n\n useEffect(() => {\n const _reloadConfiguration = () => {\n const { configurationId } = params;\n\n CollectorConfigurationsActions.getConfiguration(configurationId).then(\n (_configuration) => {\n setConfiguration(_configuration);\n\n CollectorConfigurationsActions.getConfigurationSidecars(configurationId)\n .then((_configurationSidecars) => setConfigurationSidecars(_configurationSidecars));\n },\n (error) => {\n if (error.status === 404) {\n history.push(Routes.SYSTEM.SIDECARS.CONFIGURATION);\n }\n },\n );\n };\n\n _reloadConfiguration();\n }, [history, params]);\n\n const _isLoading = () => !configuration || !configurationSidecars;\n\n if (_isLoading()) {\n return ;\n }\n\n return (\n \n \n \n \n Some words about collector configurations.\n \n \n \n \n );\n};\n\nSidecarEditConfigurationPage.propTypes = {\n params: PropTypes.object.isRequired,\n};\n\nexport default withParams(SidecarEditConfigurationPage);\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 * as React from 'react';\nimport { useParams } from 'react-router-dom';\nimport type { Subtract } from 'utility-types';\n\ntype ParamsContext = {\n params: {\n [key: string]: string | null | undefined;\n };\n};\n\nconst withParams = (Component: React.ComponentType): React.ComponentType> => (props) => {\n const params = useParams();\n\n return ;\n};\n\nexport default withParams;\n"],"names":["SidecarEditConfigurationPage","params","configuration","setConfiguration","configurationSidecars","setConfigurationSidecars","history","configurationId","_configuration","_configurationSidecars","error","Component","props"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy