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

web-interface.assets.1255d548-7246.f200d699d40bd783cabe.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-7246.f200d699d40bd783cabe.js","mappings":"gcAkCA,MAAMA,EAAuB,IAAiB,CAE5C,YAAa,uBAGb,UAAW,CACT,QAAS,WAAiB,WAC1B,OAAQ,WAAiB,WACzB,SAAU,WAAiB,UAC7B,EAEA,OAAQ,CAAC,YAAe,GAAW,CAAC,EAEpC,iBAAkB,CAChB,KAAM,CAAE,SAAAC,CAAS,EAAI,KAAK,MACpB,CAAE,MAAAC,CAAM,EAAID,EAElB,MAAO,CACL,UAAW,IAAgB,IAAIC,EAAM,eAAgBA,EAAM,KAAK,EAChE,eAAgB,OAChB,MAAOA,EAAM,MACb,aAAcA,EAAM,cACpB,UAAWA,EAAM,UACnB,CACF,EAEA,mBAAoB,CAClB,KAAM,CAAE,OAAAC,CAAO,EAAI,KAAK,MAExB,IAAc,IAAI,eAAeA,EAAO,OAAO,EAC/C,KAAM,CAAE,aAAAC,EAAc,UAAAC,CAAU,EAAI,KAAK,MAEzC,IAAgB,YAAY,eAAeD,EAAcC,CAAS,EAC/D,KAAMC,GAAY,KAAK,SAAS,CAAE,eAAgBA,CAAQ,CAAC,CAAC,CACjE,EAEA,YAAa,CACX,KAAM,CAAE,eAAAC,EAAgB,MAAAC,CAAM,EAAI,KAAK,MAEvC,MAAO,EAAEA,GAASD,EACpB,EAEA,iBAAkB,CAChB,IAAIE,EACJ,KAAM,CAAE,OAAAN,EAAQ,QAAAO,CAAQ,EAAI,KAAK,MAC3B,CAAE,MAAAF,CAAM,EAAI,KAAK,MAEnBA,EAAM,OACRC,EAAM,KAAO,wBAAwBN,EAAO,OAAO,EAEnDM,EAAM,KAAO,uBAAuBN,EAAO,OAAQA,EAAO,OAAO,EAGnEO,EAAQ,KAAKD,CAAG,CAClB,EAEA,QAAS,CACP,GAAI,KAAK,WAAW,EAClB,OAAO,gBAAC,KAAO,IAAC,EAGlB,KAAM,CAAE,MAAAE,EAAO,eAAAJ,EAAgB,UAAAK,EAAW,MAAAJ,CAAM,EAAI,KAAK,MACnDK,EAA4B,IAAY,UAAUN,EAAe,OAAOI,CAAK,CAAC,EAEpF,OACE,gBAAC,KAAa,CAAC,MAAO,2BAA2BH,EAAM,KAAK,IAC1D,gBAAC,WACC,gBAAC,MAAW,MAAO,gBAAC,YAAK,2BAAwB,gBAAC,UAAIA,EAAM,KAAM,CAAK,EAC3D,kBAAmB,CACjB,MAAO,2BACP,KAAM,IAAW,MAAM,UACzB,GACV,gBAAC,YAAK,wLAGN,CACF,EACA,gBAAC,KAAc,OAAO,SACP,UAAAI,EACA,QAASJ,EAAM,GACf,eAAgBK,EAChB,OAAQ,KAAK,gBAAiB,CAC/C,CACF,CAEJ,CACF,CAAC,EAED,KAAe,QAAY,QAAW,KAAab,CAAoB,CAAC,CAAC,C","sources":["webpack://graylog-web-interface/./src/pages/CreateExtractorsPage.jsx"],"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// eslint-disable-next-line no-restricted-imports\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport EditExtractor from 'components/extractors/EditExtractor';\nimport DocsHelper from 'util/DocsHelper';\nimport StringUtils from 'util/StringUtils';\nimport Routes from 'routing/Routes';\nimport withParams from 'routing/withParams';\nimport withLocation from 'routing/withLocation';\nimport { ExtractorsStore } from 'stores/extractors/ExtractorsStore';\nimport { InputsActions, InputsStore } from 'stores/inputs/InputsStore';\nimport { MessagesActions } from 'stores/messages/MessagesStore';\nimport withHistory from 'routing/withHistory';\n\nconst CreateExtractorsPage = createReactClass({\n  // eslint-disable-next-line react/no-unused-class-component-methods\n  displayName: 'CreateExtractorsPage',\n\n  // eslint-disable-next-line react/no-unused-class-component-methods\n  propTypes: {\n    history: PropTypes.object.isRequired,\n    params: PropTypes.object.isRequired,\n    location: PropTypes.object.isRequired,\n  },\n\n  mixins: [Reflux.connect(InputsStore)],\n\n  getInitialState() {\n    const { location } = this.props;\n    const { query } = location;\n\n    return {\n      extractor: ExtractorsStore.new(query.extractor_type, query.field),\n      exampleMessage: undefined,\n      field: query.field,\n      exampleIndex: query.example_index,\n      exampleId: query.example_id,\n    };\n  },\n\n  componentDidMount() {\n    const { params } = this.props;\n\n    InputsActions.get.triggerPromise(params.inputId);\n    const { exampleIndex, exampleId } = this.state;\n\n    MessagesActions.loadMessage.triggerPromise(exampleIndex, exampleId)\n      .then((message) => this.setState({ exampleMessage: message }));\n  },\n\n  _isLoading() {\n    const { exampleMessage, input } = this.state;\n\n    return !(input && exampleMessage);\n  },\n\n  _extractorSaved() {\n    let url;\n    const { params, history } = this.props;\n    const { input } = this.state;\n\n    if (input.global) {\n      url = Routes.global_input_extractors(params.inputId);\n    } else {\n      url = Routes.local_input_extractors(params.nodeId, params.inputId);\n    }\n\n    history.push(url);\n  },\n\n  render() {\n    if (this._isLoading()) {\n      return ;\n    }\n\n    const { field, exampleMessage, extractor, input } = this.state;\n    const stringifiedExampleMessage = StringUtils.stringify(exampleMessage.fields[field]);\n\n    return (\n      \n        
\n New extractor for input {input.title}}\n documentationLink={{\n title: 'Extractors documentation',\n path: DocsHelper.PAGES.EXTRACTORS,\n }}>\n \n Extractors are applied on every message that is received by an input. Use them to extract and\n transform any text data into fields that allow you easy filtering and analysis later on.\n \n \n \n
\n
\n );\n },\n});\n\nexport default withHistory(withParams(withLocation(CreateExtractorsPage)));\n"],"names":["CreateExtractorsPage","location","query","params","exampleIndex","exampleId","message","exampleMessage","input","url","history","field","extractor","stringifiedExampleMessage"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy