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

web-interface.assets.b6fe2bb5-7908.910e855508f995f66123.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"b6fe2bb5-7908.910e855508f995f66123.js","mappings":"81FA8BMA,EAAAA,SAAAA,I,wdACeC,G,6BAEG,K,iCAmBG,WACvB,MAAiC,EAAKC,MAA9BC,EAAR,EAAQA,OAAQC,EAAhB,EAAgBA,aAEhB,EAAKC,wBAEL,EAAKC,iBAAmBC,aAAY,WAClC,IAAIC,EAAa,KAMjB,GAJIL,IACFK,EAAaL,EAAOM,KAAI,SAACC,GAAD,OAAOA,EAAEC,SAG/BH,EAAY,CACd,IAAMI,EAAeC,OAAOC,OAAOV,GAAcK,KAAI,SAACM,GAAD,OAAOA,EAAEJ,QAE9DK,EAAAA,EAAAA,UAA8BR,EAAY,KAAMI,GAAgB,SAEjE,EAAKK,wB,gCAGc,WAClB,EAAKX,mBACPY,cAAc,EAAKZ,kBACnB,EAAKA,sBAAmBL,M,oBAIhB,SAACC,GACX,IAAQiB,EAAe,EAAKjB,MAApBiB,WAER,EAAKd,wBAEDH,EAAMkB,QAAUlB,EAAMkB,OAAOC,UAC/BL,EAAAA,EAAAA,IAAwBd,EAAMkB,OAAOC,WAC5B,EAAKC,YAAYpB,KAG1Bc,EAAAA,EAAAA,gBAAoCG,EAAWI,KAAMJ,EAAWK,SAAUL,EAAWM,OACrF,EAAKC,6B,iBAIA,WAEPC,EAAAA,EAAAA,KAAaC,EAAAA,GAAAA,OAAAA,aAAAA,a,sBAGD,YACZ,MAAkB,WADU,EAAbC,U,yBAIA,SAACC,GAChBd,EAAAA,EAAAA,SAA6Bc,M,gDArE/B,WACEC,KAAKC,UAAUD,KAAK7B,S,gCAGtB,SAAmB+B,GACkBF,KAAK7B,MAAhCgC,SAAYC,WAC6BF,EAAzCC,SAAYC,UAGlBJ,KAAKC,UAAUD,KAAK7B,S,kCAIxB,WACEgB,cAAca,KAAKzB,oB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cAAAA,UACjB,gBAAC,KAAD,CAAQyB,QAAQ,QAAhB,qBAMPjB,S,gFA5JLpC,CAAsBsD,EAAAA,WAmK5BtD,EAAcuD,UAAY,CACxBzB,MAAO0B,IAAAA,OACPnB,iBAAkBmB,IAAAA,OAClBlB,YAAakB,IAAAA,OACbjB,MAAOiB,IAAAA,OACPrD,OAAQqD,IAAAA,MACRhB,OAAQgB,IAAAA,OACRpD,aAAcoD,IAAAA,OACdrC,WAAYqC,IAAAA,OACZtB,SAAUsB,IAAAA,OACVf,YAAae,IAAAA,OACb3B,OAAQ2B,IAAAA,QAGVxD,EAAcyD,aAAe,CAC3BhB,YAAa,KACbJ,iBAAkB,GAClBjC,aAAc,KACd0B,MAAO,KACPS,MAAO,KACPC,OAAQ,KACRrC,OAAQ,KACR+B,SAAU,KACVf,WAAY,KACZmB,YAAa,KACbT,YAAQ5B,GAGV,SAAeyD,EAAAA,EAAAA,IAAQC,EAAAA,EAAAA,IAAWC,EAAAA,EAAAA,GAAa5D,IAAiB,CAAE6D,iBAAkBC,EAAAA,IAAqB,gBAAGD,EAAH,EAAGA,iBAAH,sBAEpGA","sources":["webpack://graylog-web-interface/./src/pages/LUTTablesPage.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\nimport { LinkContainer } from 'components/common/router';\nimport connect from 'stores/connect';\nimport Routes from 'routing/Routes';\nimport history from 'util/History';\nimport { ButtonToolbar, Col, Row, Button } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { LookupTable, LookupTableCreate, LookupTableForm, LookupTablesOverview } from 'components/lookup-tables';\nimport withParams from 'routing/withParams';\nimport withLocation from 'routing/withLocation';\nimport { LookupTablesActions, LookupTablesStore } from 'stores/lookup-tables/LookupTablesStore';\n\nclass LUTTablesPage extends React.Component {\n  errorStatesTimer = undefined;\n\n  errorStatesInterval = 1000;\n\n  componentDidMount() {\n    this._loadData(this.props);\n  }\n\n  componentDidUpdate(prevProps) {\n    const { location: { pathname } } = this.props;\n    const { location: { pathname: prevPathname } } = prevProps;\n\n    if (pathname !== prevPathname) {\n      this._loadData(this.props);\n    }\n  }\n\n  componentWillUnmount() {\n    clearInterval(this.errorStatesTimer);\n  }\n\n  _startErrorStatesTimer = () => {\n    const { tables, dataAdapters } = this.props;\n\n    this._stopErrorStatesTimer();\n\n    this.errorStatesTimer = setInterval(() => {\n      let tableNames = null;\n\n      if (tables) {\n        tableNames = tables.map((t) => t.name);\n      }\n\n      if (tableNames) {\n        const adapterNames = Object.values(dataAdapters).map((a) => a.name);\n\n        LookupTablesActions.getErrors(tableNames, null, adapterNames || null);\n      }\n    }, this.errorStatesInterval);\n  };\n\n  _stopErrorStatesTimer = () => {\n    if (this.errorStatesTimer) {\n      clearInterval(this.errorStatesTimer);\n      this.errorStatesTimer = undefined;\n    }\n  };\n\n  _loadData = (props) => {\n    const { pagination } = this.props;\n\n    this._stopErrorStatesTimer();\n\n    if (props.params && props.params.tableName) {\n      LookupTablesActions.get(props.params.tableName);\n    } else if (this._isCreating(props)) {\n      // nothing to do, the intermediate data container will take care of loading the caches and adapters\n    } else {\n      LookupTablesActions.searchPaginated(pagination.page, pagination.per_page, pagination.query);\n      this._startErrorStatesTimer();\n    }\n  };\n\n  _saved = () => {\n    // reset detail state\n    history.push(Routes.SYSTEM.LOOKUPTABLES.OVERVIEW);\n  };\n\n  _isCreating = ({ action }) => {\n    return action === 'create';\n  };\n\n  _validateTable = (table) => {\n    LookupTablesActions.validate(table);\n  };\n\n  render() {\n    const {\n      action,\n      table,\n      validationErrors,\n      dataAdapter,\n      cache,\n      tables,\n      caches,\n      dataAdapters,\n      pagination,\n      errorStates,\n    } = this.props;\n    let content;\n    const isShowing = action === 'show';\n    const isEditing = action === 'edit';\n\n    if (isShowing || isEditing) {\n      if (!table) {\n        content = ;\n      } else if (isEditing) {\n        content = (\n          \n            \n              

Lookup Table

\n \n \n
\n );\n } else {\n content = (\n \n );\n }\n } else if (this._isCreating(this.props)) {\n content = (\n \n );\n } else if (!tables) {\n content = ;\n } else {\n content = (\n \n );\n }\n\n return (\n \n \n \n Lookup tables can be used in extractors, converters and processing pipelines to translate message fields or to enrich messages.\n {null}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n {content}\n \n \n );\n }\n}\n\nLUTTablesPage.propTypes = {\n table: PropTypes.object,\n validationErrors: PropTypes.object,\n dataAdapter: PropTypes.object,\n cache: PropTypes.object,\n tables: PropTypes.array,\n caches: PropTypes.object,\n dataAdapters: PropTypes.object,\n pagination: PropTypes.object,\n location: PropTypes.object,\n errorStates: PropTypes.object,\n action: PropTypes.string,\n};\n\nLUTTablesPage.defaultProps = {\n errorStates: null,\n validationErrors: {},\n dataAdapters: null,\n table: null,\n cache: null,\n caches: null,\n tables: null,\n location: null,\n pagination: null,\n dataAdapter: null,\n action: undefined,\n};\n\nexport default connect(withParams(withLocation(LUTTablesPage)), { lookupTableStore: LookupTablesStore }, ({ lookupTableStore, ...otherProps }) => ({\n ...otherProps,\n ...lookupTableStore,\n}));\n"],"names":["LUTTablesPage","undefined","props","tables","dataAdapters","_stopErrorStatesTimer","errorStatesTimer","setInterval","tableNames","map","t","name","adapterNames","Object","values","a","LookupTablesActions","errorStatesInterval","clearInterval","pagination","params","tableName","_isCreating","page","per_page","query","_startErrorStatesTimer","history","Routes","action","table","this","_loadData","prevProps","location","pathname","content","validationErrors","dataAdapter","cache","caches","errorStates","isEditing","className","lg","create","saved","_saved","validate","_validateTable","text","title","to","bsStyle","React","propTypes","PropTypes","defaultProps","connect","withParams","withLocation","lookupTableStore","LookupTablesStore"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy