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

web-interface.assets.325e2d4b-7908.f68f7a02de5aeef53269.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
{"version":3,"file":"325e2d4b-7908.f68f7a02de5aeef53269.js","mappings":"ghBAgCA,MAAMA,EAAS,KAEbC,EAAAA,EAAAA,KAAaC,EAAAA,GAAAA,OAAAA,aAAAA,SAAb,EAGIC,EAAc,IAAgB,IAAf,OAAEC,GAAa,EAClC,MAAkB,WAAXA,CAAP,EAGIC,EAAkBC,IACtBC,EAAAA,EAAAA,SAA6BD,EAA7B,EAGF,MAAME,UAAsBC,EAAAA,UAAgB,iEACvBC,GADuB,6BAGpB,KAHoB,iCAsBjB,KACvB,MAAM,OAAEC,EAAF,aAAUC,GAAiBC,KAAKC,MAEtCD,KAAKE,wBAELF,KAAKG,iBAAmBC,aAAY,KAClC,IAAIC,EAAa,KAMjB,GAJIP,IACFO,EAAaP,EAAOQ,KAAKC,GAAMA,EAAEC,QAG/BH,EAAY,CACd,MAAMI,EAAeC,OAAOC,OAAOZ,GAAcO,KAAKM,GAAMA,EAAEJ,OAE9Dd,EAAAA,EAAAA,UAA8BW,EAAY,KAAMI,GAAgB,KACjE,IACAT,KAAKa,oBAZR,IA3BwC,gCA0ClB,KAClBb,KAAKG,mBACPW,cAAcd,KAAKG,kBACnBH,KAAKG,sBAAmBN,EACzB,IA9CuC,oBAiD7BI,IACX,MAAM,WAAEc,GAAef,KAAKC,OACtB,KAAEe,EAAF,SAAQC,GAAajB,KAAKC,MAAMiB,yBAEtClB,KAAKE,wBAEDD,EAAMkB,QAAUlB,EAAMkB,OAAOC,UAC/B1B,EAAAA,EAAAA,IAAwBO,EAAMkB,OAAOC,WAC5B9B,EAAYW,KAGrBP,EAAAA,EAAAA,gBAAoCsB,EAAMC,EAAUF,EAAWM,OAC/DrB,KAAKsB,yBACN,GA9DuC,CAK1CC,oBACEvB,KAAKwB,UAAUxB,KAAKC,MACrB,CAEDwB,mBA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AkBoB,IAAAA,OAClBnB,YAAamB,IAAAA,OACblB,MAAOkB,IAAAA,OACPtD,OAAQsD,IAAAA,MACRjB,OAAQiB,IAAAA,OACRrD,aAAcqD,IAAAA,OACdrC,WAAYqC,IAAAA,OACZzB,SAAUyB,IAAAA,OACVhB,YAAagB,IAAAA,OACb7D,OAAQ6D,IAAAA,OACRlC,yBAA0BkC,IAAAA,OAAAA,YAG5BzD,EAAc0D,aAAe,CAC3BjB,YAAa,KACbJ,iBAAkB,CAAC,EACnBjC,aAAc,KACdN,MAAO,KACPyC,MAAO,KACPC,OAAQ,KACRrC,OAAQ,KACR6B,SAAU,KACVZ,WAAY,KACZkB,YAAa,KACb1C,YAAQM,GAGV,SAAeyD,EAAAA,EAAAA,IAAQC,EAAAA,EAAAA,IAAWC,EAAAA,EAAAA,IAAaC,EAAAA,EAAAA,GAA6B9D,KAAkB,CAAE+D,iBAAkBC,EAAAA,IAAqB,QAAC,iBAAED,KAAqBE,GAAxB,QAA0C,IAC5KA,KACAF,EAFkI,G","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 { Col, Row, Button } from 'components/bootstrap';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport withPaginationQueryParameter from 'components/common/withPaginationQueryParameter';\nimport { LookupTableView, 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';\nimport LUTPageNavigation from 'components/lookup-tables/LUTPageNavigation';\n\nconst _saved = () => {\n  // reset detail state\n  history.push(Routes.SYSTEM.LOOKUPTABLES.OVERVIEW);\n};\n\nconst _isCreating = ({ action }) => {\n  return action === 'create';\n};\n\nconst _validateTable = (table) => {\n  LookupTablesActions.validate(table);\n};\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    const { page, pageSize } = this.props.paginationQueryParameter;\n\n    this._stopErrorStatesTimer();\n\n    if (props.params && props.params.tableName) {\n      LookupTablesActions.get(props.params.tableName);\n    } else if (_isCreating(props)) {\n      // nothing to do, the intermediate data container will take care of loading the caches and adapters\n    } else {\n      LookupTablesActions.searchPaginated(page, pageSize, pagination.query);\n      this._startErrorStatesTimer();\n    }\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 (_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 \n \n )}>\n Lookup tables can be used in extractors, converters and processing pipelines to translate message fields or to enrich messages.\n \n\n {content}\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 paginationQueryParameter: PropTypes.object.isRequired,\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(withPaginationQueryParameter(LUTTablesPage))), { lookupTableStore: LookupTablesStore }, ({ lookupTableStore, ...otherProps }) => ({\n ...otherProps,\n ...lookupTableStore,\n}));\n"],"names":["_saved","history","Routes","_isCreating","action","_validateTable","table","LookupTablesActions","LUTTablesPage","React","undefined","tables","dataAdapters","this","props","_stopErrorStatesTimer","errorStatesTimer","setInterval","tableNames","map","t","name","adapterNames","Object","values","a","errorStatesInterval","clearInterval","pagination","page","pageSize","paginationQueryParameter","params","tableName","query","_startErrorStatesTimer","componentDidMount","_loadData","componentDidUpdate","prevProps","location","pathname","prevPathname","componentWillUnmount","render","validationErrors","dataAdapter","cache","caches","errorStates","content","isEditing","className","lg","create","saved","validate","text","title","actions","to","bsStyle","style","marginLeft","propTypes","PropTypes","defaultProps","connect","withParams","withLocation","withPaginationQueryParameter","lookupTableStore","LookupTablesStore","otherProps"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy