web-interface.assets.1255d548-7195.1a542e98eaacea2fce5d.js.map Maven / Gradle / Ivy
{"version":3,"file":"1255d548-7195.1a542e98eaacea2fce5d.js","mappings":"qVA0EA,QA9CiC,IAAM,CACrC,MAAMA,KAAU,KAAW,EACrB,CAAE,YAAAC,CAAY,KAAI,KAAU,EAC5B,CAACC,EAAWC,CAAY,KAAI,YAAS,EAErCC,KAAmB,eAAY,IAAM,CACzC,IAAkB,aAAaH,CAAW,EAAE,KACzCI,GAAWF,EAAaE,CAAM,EAC9BC,GAAU,CACLA,EAAM,SAAW,KACnBN,EAAQ,KAAK,KAAO,OAAO,SAAS,aAAa,CAErD,CACF,CACF,EAAG,CAACC,EAAaD,CAAO,CAAC,EAMzB,SAJA,aAAU,IAAM,CACdI,EAAiB,CACnB,EAAG,CAACA,CAAgB,CAAC,EAEhBF,EAKH,gBAAC,KAAa,CAAC,MAAM,iBACnB,gBAAC,IAAsB,IAAC,EACxB,gBAAC,MAAW,MAAM,gBACN,kBAAmB,CACjB,MAAO,wBACP,KAAM,IAAW,MAAM,iBACzB,GACV,gBAAC,YAAK,kCAEN,CACF,EAEA,gBAAC,MAAG,CAAC,UAAU,WACb,gBAAC,MAAG,CAAC,GAAI,GACP,gBAAC,IAAa,CAAC,OAAO,OAAO,UAAAA,CAAA,CAAsB,CACrD,CACF,CACF,EArBO,gBAAC,KAAO,IAAC,CAuBpB,C","sources":["webpack://graylog-web-interface/./src/pages/SidecarEditCollectorPage.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 React, { useCallback, useEffect, useState } from 'react';\n\nimport { Col, Row } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport Routes from 'routing/Routes';\nimport { CollectorsActions } from 'stores/sidecars/CollectorsStore';\nimport CollectorForm from 'components/sidecars/configuration-forms/CollectorForm';\nimport SidecarsPageNavigation from 'components/sidecars/common/SidecarsPageNavigation';\nimport DocsHelper from 'util/DocsHelper';\nimport useParams from 'routing/useParams';\nimport useHistory from 'routing/useHistory';\n\nconst SidecarEditCollectorPage = () => {\n const history = useHistory();\n const { collectorId } = useParams();\n const [collector, setCollector] = useState();\n\n const _reloadCollector = useCallback(() => {\n CollectorsActions.getCollector(collectorId).then(\n (result) => setCollector(result),\n (error) => {\n if (error.status === 404) {\n history.push(Routes.SYSTEM.SIDECARS.CONFIGURATION);\n }\n },\n );\n }, [collectorId, history]);\n\n useEffect(() => {\n _reloadCollector();\n }, [_reloadCollector]);\n\n if (!collector) {\n return ;\n }\n\n return (\n \n \n \n \n Some words about log collectors.\n \n \n\n \n \n \n \n
\n \n );\n};\n\nexport default SidecarEditCollectorPage;\n"],"names":["history","collectorId","collector","setCollector","_reloadCollector","result","error"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy