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

web-interface.assets.1255d548-5372.f7f1344cf6047ca9ae26.js.map Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
{"version":3,"file":"1255d548-5372.f7f1344cf6047ca9ae26.js","mappings":"0jBAgCA,MAAMA,EAAUC,GAAY,CAE1BA,EAAQ,KAAK,KAAO,OAAO,aAAa,QAAQ,CAClD,EAEMC,EAAc,CAAC,CAAE,OAAAC,CAAO,IAAMA,IAAW,SAEzCC,EAAkBC,GAAU,CAChC,IAAoB,SAASA,CAAK,CACpC,EAEA,MAAMC,UAAsB,WAAgB,CAA5C,kCACE,2BAEA,6BAAsB,KAsBtB,gCAAyB,IAAM,CAC7B,KAAM,CAAE,OAAAC,EAAQ,aAAAC,CAAa,EAAI,KAAK,MAEtC,KAAK,sBAAsB,EAE3B,KAAK,iBAAmB,YAAY,IAAM,CACxC,IAAIC,EAAa,KAMjB,GAJIF,IACFE,EAAaF,EAAO,IAAKG,GAAMA,EAAE,IAAI,GAGnCD,EAAY,CACd,MAAME,EAAe,OAAO,OAAOH,CAAY,EAAE,IAAKI,GAAMA,EAAE,IAAI,EAElE,IAAoB,UAAUH,EAAY,KAAME,GAAgB,IAAI,CACtE,CACF,EAAG,KAAK,mBAAmB,CAC7B,CAAC,EAED,+BAAwB,IAAM,CACxB,KAAK,mBACP,cAAc,KAAK,gBAAgB,EACnC,KAAK,iBAAmB,OAE5B,CAAC,EAED,mBAAaE,GAAU,CACrB,KAAM,CAAE,WAAAC,CAAW,EAAI,KAAK,MACtB,CAAE,KAAAC,EAAM,SAAAC,CAAS,EAAI,KAAK,MAAM,yBAEtC,KAAK,sBAAsB,EAEvBH,EAAM,QAAUA,EAAM,OAAO,UAC/B,IAAoB,IAAIA,EAAM,OAAO,SAAS,EACrCX,EAAYW,CAAK,IAG1B,IAAoB,gBAAgBE,EAAMC,EAAUF,EAAW,KAAK,EACpE,KAAK,uBAAuB,EAEhC,CAAC,CAAD,CA7DA,mBAA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,EAAU,gBAAC,KAAO,CAAC,KAAK,uBAAwB,GAYhD,gBAAC,KAAa,CAAC,MAAM,iBACnB,gBAAC,IAAiB,IAAC,EACnB,gBAAC,MAAW,MAAM,gBACN,QACE,gBAAC,IAAa,CAAC,GAAI,KAAO,OAAO,aAAa,QAC5C,gBAAC,SAAM,CAAC,QAAQ,UAAU,MAAO,CAAE,WAAY,CAAE,GAAG,qBAAmB,CACzE,GAEZ,gBAAC,YAAK,iIAA+H,CACvI,EAECA,CACH,CAEJ,CACF,CAEAnB,EAAc,UAAY,CACxB,MAAO,WACP,iBAAkB,WAClB,YAAa,WACb,MAAO,WACP,OAAQ,UACR,OAAQ,WACR,aAAc,WACd,WAAY,WACZ,QAAS,WAAiB,WAC1B,SAAU,WACV,YAAa,WACb,OAAQ,WACR,yBAA0B,WAAiB,UAC7C,EAEAA,EAAc,aAAe,CAC3B,YAAa,KACb,iBAAkB,CAAC,EACnB,aAAc,KACd,MAAO,KACP,MAAO,KACP,OAAQ,KACR,OAAQ,KACR,SAAU,KACV,WAAY,KACZ,YAAa,KACb,OAAQ,MACV,EAEA,WAAe,QAAQ,QAAY,QAAW,QAAa,KAA6BA,CAAa,CAAC,CAAC,CAAC,EAAG,CAAE,iBAAkB,GAAkB,EAAG,CAAC,CAAE,iBAAAuB,EAAkB,GAAGC,CAAW,KAAO,CAC5L,GAAGA,EACH,GAAGD,CACL,EAAE,C","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 { 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';\nimport withHistory from 'routing/withHistory';\n\nconst _saved = (history) => {\n  // reset detail state\n  history.push(Routes.SYSTEM.LOOKUPTABLES.OVERVIEW);\n};\n\nconst _isCreating = ({ action }) => action === 'create';\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    const { page, pageSize } = this.props.paginationQueryParameter;\n\n    clearInterval(this.errorStatesTimer);\n    LookupTablesActions.searchPaginated(page, pageSize);\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      history,\n    } = this.props;\n    let content;\n    const isShowing = action === 'show';\n    const isEditing = action === 'edit';\n    const saved = () => _saved(history);\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 history: PropTypes.object.isRequired,\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(withHistory(withParams(withLocation(withPaginationQueryParameter(LUTTablesPage)))), { lookupTableStore: LookupTablesStore }, ({ lookupTableStore, ...otherProps }) => ({\n ...otherProps,\n ...lookupTableStore,\n}));\n"],"names":["_saved","history","_isCreating","action","_validateTable","table","LUTTablesPage","tables","dataAdapters","tableNames","t","adapterNames","a","props","pagination","page","pageSize","prevProps","pathname","prevPathname","validationErrors","dataAdapter","cache","caches","errorStates","content","isShowing","isEditing","saved","lookupTableStore","otherProps"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy