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

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

There is a newer version: 6.0.2
Show newest version
{"version":3,"sources":["webpack:///./src/components/extractors/ExportExtractors.jsx","webpack:///./src/pages/ExportExtractorsPage.jsx"],"names":["ExtractorsActions","ActionsProvider","getActions","ExtractorsStore","StoreProvider","getStore","ExportExtractors","createReactClass","displayName","propTypes","input","PropTypes","object","isRequired","mixins","Reflux","connect","ListenerMethods","componentDidMount","list","triggerPromise","this","props","id","_isLoading","state","extractors","render","extractorsExportObject","map","extractor","copy","Object","keys","forEach","key","extractor_type","version","Version","getFullVersion","formattedJSON","JSON","stringify","className","md","title","target","type","rows","defaultValue","InputsActions","InputsStore","ExportExtractorsPage","params","get","inputId","href","rel","withParams"],"mappings":"4TA4BMA,EAAoBC,IAAgBC,WAAW,cAC/CC,EAAkBC,IAAcC,SAAS,cA4EhCC,EA1EUC,IAAiB,CACxCC,YAAa,mBAEbC,UAAW,CACTC,MAAOC,IAAUC,OAAOC,YAG1BC,OAAQ,CAACC,IAAOC,QAAQb,GAAkBY,IAAOE,iBAEjDC,kBATwC,WAUtClB,EAAkBmB,KAAKC,eAAeC,KAAKC,MAAMZ,MAAMa,KAGzDC,WAbwC,WActC,OAAQH,KAAKI,MAAMC,YAGrBC,OAjBwC,WAkBtC,GAAIN,KAAKG,aACP,OAAO,kBAAC,KAAD,MAGT,IAAMI,EAAyB,CAC7BF,WAAYL,KAAKI,MAAMC,WAAWG,KAAI,SAACC,GACrC,IAAMC,EAAO,GAqBb,OAjBAC,OAAOC,KAAKH,GAAWI,SAAQ,SAACC,GAC9B,OAAQA,GACN,IAAK,OAEHJ,EAAKK,eAAiBN,EAAUK,GAChC,MACF,IAAK,KACL,IAAK,UACL,IAAK,kBACL,IAAK,aACL,IAAK,uBACH,MACF,QACEJ,EAAKI,GAAOL,EAAUK,OAIrBJ,KAETM,QAASC,IAAQC,kBAGbC,EAAgBC,KAAKC,UAAUd,EAAwB,KAAM,GAEnE,OACE,kBAAC,IAAD,CAAKe,UAAU,WACb,kBAAC,IAAD,CAAKC,GAAI,IACP,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKA,GAAI,GACP,gDAEF,kBAAC,IAAD,CAAKA,GAAI,GACP,kBAAC,IAAD,CAAiBC,MAAM,kBAAkBF,UAAU,aAAaG,OAAO,iCAG3E,kBAAC,IAAD,KACE,kBAAC,IAAD,CAAKF,GAAI,IACP,kBAAC,IAAD,CAAOG,KAAK,WAAWxB,GAAG,4BAA4ByB,KAAM,GAAIC,aAAcT,W,gBCrEtFU,EAAgBjD,IAAgBC,WAAW,UAC3CiD,EAAc/C,IAAcC,SAAS,UAErC+C,EAAuB7C,IAAiB,CAC5CC,YAAa,uBAEbC,UAAW,CACT4C,OAAQ1C,IAAUC,OAAOC,YAG3BC,OAAQ,CAACC,IAAOC,QAAQmC,IAExBjC,kBAT4C,WASxB,IACVmC,EAAWhC,KAAKC,MAAhB+B,OAERH,EAAcI,IAAIlC,eAAeiC,EAAOE,UAG1C/B,WAf4C,WAiB1C,OAAQH,KAAKI,MAAMf,OAGrBiB,OApB4C,WAqB1C,GAAIN,KAAKG,aACP,OAAO,kBAAC,KAAD,MAFF,IAKCd,EAAUW,KAAKI,MAAff,MAER,OACE,kBAAC,IAAD,CAAemC,MAAK,+BAA0BnC,EAAMmC,QAClD,6BACE,kBAAC,IAAD,CAAYA,MAAO,sDAA2B,4BAAKnC,EAAMmC,SACvD,kIAEgB,uBAAGW,KAAK,mCAAmCC,IAAI,sBAAsBX,OAAO,UAA5E,2BAFhB,MAKF,kBAAC,EAAD,CAAkBpC,MAAOA,SAOpBgD,sBAAWN","file":"57e33c6c-93.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 { Row, Col } from 'components/graylog';\nimport { Input } from 'components/bootstrap';\nimport { ClipboardButton, Spinner } from 'components/common';\nimport Version from 'util/Version';\nimport ActionsProvider from 'injection/ActionsProvider';\nimport StoreProvider from 'injection/StoreProvider';\n\nconst ExtractorsActions = ActionsProvider.getActions('Extractors');\nconst ExtractorsStore = StoreProvider.getStore('Extractors');\n\nconst ExportExtractors = createReactClass({\n  displayName: 'ExportExtractors',\n\n  propTypes: {\n    input: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(ExtractorsStore), Reflux.ListenerMethods],\n\n  componentDidMount() {\n    ExtractorsActions.list.triggerPromise(this.props.input.id);\n  },\n\n  _isLoading() {\n    return !this.state.extractors;\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const extractorsExportObject = {\n      extractors: this.state.extractors.map((extractor) => {\n        const copy = {};\n\n        // Create Graylog 1.x compatible export format.\n        // TODO: This should be done on the server.\n        Object.keys(extractor).forEach((key) => {\n          switch (key) {\n            case 'type':\n              // The import expects \"extractor_type\", not \"type\".\n              copy.extractor_type = extractor[key];\n              break;\n            case 'id':\n            case 'metrics':\n            case 'creator_user_id':\n            case 'exceptions':\n            case 'converter_exceptions':\n              break;\n            default:\n              copy[key] = extractor[key];\n          }\n        });\n\n        return copy;\n      }),\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});\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 PropTypes from 'prop-types';\nimport React from 'react';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport ExportExtractors from 'components/extractors/ExportExtractors';\nimport ActionsProvider from 'injection/ActionsProvider';\nimport StoreProvider from 'injection/StoreProvider';\nimport withParams from 'routing/withParams';\n\nconst InputsActions = ActionsProvider.getActions('Inputs');\nconst InputsStore = StoreProvider.getStore('Inputs');\n\nconst ExportExtractorsPage = createReactClass({\n displayName: 'ExportExtractorsPage',\n\n propTypes: {\n params: PropTypes.object.isRequired,\n },\n\n mixins: [Reflux.connect(InputsStore)],\n\n componentDidMount() {\n const { params } = this.props;\n\n InputsActions.get.triggerPromise(params.inputId);\n },\n\n _isLoading() {\n // eslint-disable-next-line react/destructuring-assignment\n return !this.state.input;\n },\n\n render() {\n if (this._isLoading()) {\n return ;\n }\n\n const { input } = this.state;\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});\n\nexport default withParams(ExportExtractorsPage);\n"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy