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

web-interface.assets.bb8c8232-4987.9c5a5d01e37d325d511b.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"bb8c8232-4987.9c5a5d01e37d325d511b.js","mappings":"qRAwBA,MAAMA,EAAiBC,MAAoB,YAAS,CAAC,aAAcA,CAAO,EAAG,IAAM,UAAoBA,CAAO,CAAC,EAMzGC,EAAoB,CAAC,KAAM,UAAW,kBAAmB,aAAc,sBAAsB,EAyCnG,EAvCyB,CAAC,CAAE,GAAAC,CAAG,IAAa,CAC1C,KAAM,CAAE,KAAMC,EAAY,UAAAC,CAAU,EAAIL,EAAcG,CAAE,EAExD,GAAIE,EACF,OAAO,gBAAC,KAAO,IAAC,EAGlB,MAAMC,EAAyB,CAG7B,WAAYF,EAAW,WAAW,IAAKG,GAAc,OAAO,YAAY,OAAO,QAAQA,CAAS,EAC7F,OAAO,CAAC,CAACC,CAAG,IAAM,CAACN,EAAkB,SAASM,CAAG,CAAC,EAClD,IAAI,CAAC,CAACA,EAAKC,CAAK,IAAOD,IAAQ,OAAS,CAAC,iBAAkBC,CAAK,EAAI,CAACD,EAAKC,CAAK,CAAE,CAAC,CAAC,EACtF,QAASC,EAAA,kBAAuB,CAClC,EAEMC,EAAgB,KAAK,UAAUL,EAAwB,KAAM,CAAC,EAEpE,OACE,gBAAC,MAAG,CAAC,UAAU,WACb,gBAAC,MAAG,CAAC,GAAI,IACP,gBAAC,MAAG,KACF,gBAAC,MAAG,CAAC,GAAI,GACP,gBAAC,UAAG,iBAAe,CACrB,EACA,gBAAC,MAAG,CAAC,GAAI,GACP,gBAAC,KAAe,CAAC,MAAM,kBAAkB,UAAU,aAAa,KAAMK,CAAA,CAAe,CACvF,CACF,EACA,gBAAC,MAAG,KACF,gBAAC,MAAG,CAAC,GAAI,IACP,gBAAC,QAAK,CAAC,KAAK,WAAW,GAAG,4BAA4B,KAAM,GAAI,MAAOA,CAAA,CAAe,CACxF,CACF,CACF,CACF,CAEJ,E,oDClBA,QA3B6B,IAAM,CACjC,KAAM,CAAE,QAAAV,CAAQ,KAAIW,EAAA,GAAU,EACxB,CAAE,MAAAC,CAAM,KAAI,KAASC,EAAA,CAAW,EAMtC,SAJA,aAAU,IAAM,CACd,IAAc,IAAI,eAAeb,CAAO,CAC1C,EAAG,CAACA,CAAO,CAAC,EAEPY,EAKH,gBAAC,KAAa,CAAC,MAAO,wBAAwBA,EAAM,KAAK,IACvD,gBAAC,WACC,gBAAC,KAAU,CAAC,MAAO,gBAAC,YAAK,wBAAqB,gBAAC,UAAIA,EAAM,KAAM,CAAK,GAClE,gBAAC,YAAK,oGAEU,gBAAC,KAAE,KAAK,mCAAmC,IAAI,sBAAsB,OAAO,UAAS,yBAAuB,EAAI,GAChI,CACF,EACA,gBAAC,EAAgB,CAAC,GAAIA,EAAM,GAAI,CAClC,CACF,EAdO,gBAAC,KAAO,IAAC,CAgBpB,C","sources":["webpack://graylog-web-interface/./src/components/extractors/ExportExtractors.tsx","webpack://graylog-web-interface/./src/pages/ExportExtractorsPage.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 from 'react';\nimport { useQuery } from '@tanstack/react-query';\n\nimport { ClipboardButton, Spinner } from 'components/common';\nimport { Row, Col, Input } from 'components/bootstrap';\nimport Version from 'util/Version';\nimport * as API from '@graylog/server-api';\n\nconst useExtractors = (inputId: string) => useQuery(['extractors', inputId], () => API.Extractors.list(inputId));\n\ntype Props = {\n  id: string,\n}\n\nconst skippedAttributes = ['id', 'metrics', 'creator_user_id', 'exceptions', 'converter_exceptions'];\n\nconst ExportExtractors = ({ id }: Props) => {\n  const { data: extractors, isLoading } = useExtractors(id);\n\n  if (isLoading) {\n    return ;\n  }\n\n  const extractorsExportObject = {\n    // Create Graylog 1.x compatible export format.\n    // TODO: This should be done on the server.\n    extractors: extractors.extractors.map((extractor) => Object.fromEntries(Object.entries(extractor)\n      .filter(([key]) => !skippedAttributes.includes(key))\n      .map(([key, value]) => (key === 'type' ? ['extractor_type', value] : [key, value])))),\n    version: Version.getFullVersion(),\n  };\n\n  const formattedJSON = JSON.stringify(extractorsExportObject, null, 2);\n\n  return (\n    \n      \n        \n          \n            

Extractors JSON

\n \n \n \n \n
\n \n \n \n \n \n \n
\n );\n};\n\nexport default ExportExtractors;\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 React, { useEffect } from 'react';\n\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport ExportExtractors from 'components/extractors/ExportExtractors';\nimport { InputsActions, InputsStore } from 'stores/inputs/InputsStore';\nimport useParams from 'routing/useParams';\nimport { useStore } from 'stores/connect';\n\nconst ExportExtractorsPage = () => {\n const { inputId } = useParams();\n const { input } = useStore(InputsStore);\n\n useEffect(() => {\n InputsActions.get.triggerPromise(inputId);\n }, [inputId]);\n\n if (!input) {\n return ;\n }\n\n return (\n \n
\n Export extractors of {input.title}}>\n \n The extractors of an input can be exported to JSON for importing into other setups\n or sharing in the Graylog Marketplace.\n \n \n \n
\n
\n );\n};\n\nexport default ExportExtractorsPage;\n"],"names":["useExtractors","inputId","skippedAttributes","id","extractors","isLoading","extractorsExportObject","extractor","key","value","Version","formattedJSON","useParams","input","InputsStore"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy