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

web-interface.assets.b6fe2bb5-3682.d1514fa62e89cb6a8665.js.map Maven / Gradle / Ivy

{"version":3,"file":"b6fe2bb5-3682.d1514fa62e89cb6a8665.js","mappings":"0cAkCMA,EAAuBC,GAAAA,CAAiB,CAC5CC,YAAa,uBAEbC,UAAW,CACTC,OAAQC,IAAAA,OAAAA,WACRC,SAAUD,IAAAA,OAAAA,YAGZE,OAAQ,CAACC,IAAAA,QAAeC,EAAAA,IAExBC,gBAV4C,WAW1C,IACQC,EADaC,KAAKC,MAAlBP,SACAK,MAER,MAAO,CACLG,UAAWC,EAAAA,EAAAA,IAAoBJ,EAAMK,eAAgBL,EAAMM,OAC3DC,oBAAgBC,EAChBF,MAAON,EAAMM,MACbG,aAAcT,EAAMU,cACpBC,UAAWX,EAAMY,aAIrBC,kBAvB4C,WAuBxB,WACVpB,EAAWQ,KAAKC,MAAhBT,OAERqB,EAAAA,EAAAA,IAAAA,eAAiCrB,EAAOsB,SACxC,MAAoCd,KAAKe,MAAjCP,EAAR,EAAQA,aAAcE,EAAtB,EAAsBA,UAEtBM,EAAAA,EAAAA,YAAAA,eAA2CR,EAAcE,GACtDO,MAAK,SAACC,GAAD,OAAa,EAAKC,SAAS,CAAEb,eAAgBY,QAGvDE,WAjC4C,WAkC1C,MAAkCpB,KAAKe,MAA/BT,EAAR,EAAQA,eAER,QAFA,EAAwBe,OAENf,IAGpBgB,gBAvC4C,WAwC1C,IAAIC,EACI/B,EAAWQ,KAAKC,MAAhBT,OAIN+B,EAHgBvB,KAAKe,MAAfM,MAEEG,OACFC,EAAAA,GAAAA,wBAA+BjC,EAAOsB,SAEtCW,EAAAA,GAAAA,uBAA8BjC,EAAOkC,OAAQlC,EAAOsB,SAG5Da,EAAAA,EAAAA,KAAaJ,IAGfK,OArD4C,WAsD1C,GAAI5B,KAAKoB,aACP,OAAO,gBAAC,KAAD,MAGT,MAAoDpB,KAAKe,MAAjDV,EAAR,EAAQA,MAAOC,EAAf,EAAeA,eAAgBJ,EAA/B,EAA+BA,UAAWmB,EAA1C,EAA0CA,MACpCQ,EAA4BC,EAAAA,EAAAA,UAAsBxB,EAAeyB,OAAO1B,IAE9E,OACE,gBAAC,KAAD,CAAe2B,MAAK,kCAA6BX,EAAMW,QACrD,2BACE,gBAAC,KAAD,CAAYA,MAAO,uDAA8B,0BAAKX,EAAMW,SAC1D,sNAKA,4EAEG,IAAI,gBAAC,IAAD,CAAmBC,KAAMC,EAAAA,EAAAA,MAAAA,WAA6BC,KAAK,kBAFlE,MAKF,gBAAC,IAAD,CAAeC,OAAO,SACPlC,UAAWA,EACXY,QAASO,EAAMgB,GACf/B,eAAgBuB,EAChBS,OAAQtC,KAAKsB,uBAOtC,SAAeiB,EAAAA,EAAAA,IAAWC,EAAAA,EAAAA,GAAapD","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';\nimport createReactClass from 'create-react-class';\nimport Reflux from 'reflux';\n\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport DocumentationLink from 'components/support/DocumentationLink';\nimport EditExtractor from 'components/extractors/EditExtractor';\nimport DocsHelper from 'util/DocsHelper';\nimport StringUtils from 'util/StringUtils';\nimport history from 'util/History';\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';\n\nconst CreateExtractorsPage = createReactClass({\n  displayName: 'CreateExtractorsPage',\n\n  propTypes: {\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 } = 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 \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 Find more information about extractors in the\n {' '}.\n \n \n \n
\n
\n );\n },\n});\n\nexport default withParams(withLocation(CreateExtractorsPage));\n"],"names":["CreateExtractorsPage","createReactClass","displayName","propTypes","params","PropTypes","location","mixins","Reflux","InputsStore","getInitialState","query","this","props","extractor","ExtractorsStore","extractor_type","field","exampleMessage","undefined","exampleIndex","example_index","exampleId","example_id","componentDidMount","InputsActions","inputId","state","MessagesActions","then","message","setState","_isLoading","input","_extractorSaved","url","global","Routes","nodeId","history","render","stringifiedExampleMessage","StringUtils","fields","title","page","DocsHelper","text","action","id","onSave","withParams","withLocation"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy