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,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,0EC9LF,QANiDE,GAAgGlB,GAAU,CACzJ,MAAMmB,KAAS,aAAU,EAEzB,OAAO,gBAACD,EAAA,CAAW,GAAGlB,EAAgB,OAAAmB,CAAA,CAAgB,CACxD,C","sources":["webpack://graylog-web-interface/./src/components/common/PageNavigation.tsx","webpack://graylog-web-interface/./src/components/lookup-tables/LUTPageNavigation.tsx","webpack://graylog-web-interface/./src/pages/LUTTablesPage.jsx","webpack://graylog-web-interface/./src/routing/withParams.tsx"],"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 * as React from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { Button, ButtonToolbar } from 'components/bootstrap';\nimport { LinkContainer } from 'components/common/router';\nimport { IfPermitted } from 'components/common';\nimport NavItemStateIndicator, {\n hoverIndicatorStyles,\n activeIndicatorStyles,\n} from 'components/common/NavItemStateIndicator';\n\nconst Container = styled(ButtonToolbar)`\n margin-bottom: 10px;\n`;\n\nconst StyledButton = styled(Button)(({ theme }) => css`\n font-family: ${theme.fonts.family.navigation};\n font-size: ${theme.fonts.size.navigation};\n color: ${theme.colors.variant.darker.default};\n \n &:hover,\n &:focus {\n background: inherit;\n text-decoration: none;\n }\n\n &:hover {\n color: inherit;\n ${hoverIndicatorStyles(theme)}\n }\n\n &.active {\n color: ${theme.colors.global.textDefault};\n\n ${activeIndicatorStyles(theme)}\n\n &:hover,\n &:focus {\n ${activeIndicatorStyles(theme)}\n }\n`);\n\nStyledButton.displayName = 'Button';\n\ntype Props = {\n /**\n * List of nav items. Define permissions, if the item should only be displayed for users with specific permissions.\n * By default, an item is active if the current URL starts with the item URL.\n * If you only want to display an item as active only when its path matches exactly, set `exactPathMatch` to true.\n */\n items: Array<{\n title: string,\n path: string,\n permissions?: string | Array\n exactPathMatch?: boolean,\n }>\n}\n\n/**\n * Simple tab navigation to allow navigating to subareas of a page.\n */\nconst PageNavigation = ({ items }: Props) => (\n \n {items.map(({ path, title, permissions, exactPathMatch }) => {\n if (!path) {\n return null;\n }\n\n return (\n \n \n \n \n {title}\n \n \n \n \n );\n })}\n \n);\n\nexport default PageNavigation;\n","/*\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 * as React from 'react';\n\nimport PageNavigation from 'components/common/PageNavigation';\nimport Routes from 'routing/Routes';\nimport { Row } from 'components/bootstrap';\n\nconst NAV_ITEMS = [\n { title: 'Lookup Tables', path: Routes.SYSTEM.LOOKUPTABLES.OVERVIEW, exactPathMatch: true },\n { title: 'Caches', path: Routes.SYSTEM.LOOKUPTABLES.CACHES.OVERVIEW },\n { title: 'Data Adapters', path: Routes.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.OVERVIEW },\n];\n\nconst LUTPageNavigation = () => (\n \n \n
\n);\n\nexport default LUTPageNavigation;\n","/*\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","/*\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 * as React from 'react';\nimport { useParams } from 'react-router-dom';\nimport type { Subtract } from 'utility-types';\n\ntype ParamsContext = {\n params: {\n [key: string]: string | null | undefined;\n };\n};\n\nconst withParams = (Component: React.ComponentType): React.ComponentType> => (props) => {\n const params = useParams();\n\n return ;\n};\n\nexport default withParams;\n"],"names":["Container","StyledButton","theme","items","path","title","permissions","exactPathMatch","NAV_ITEMS","_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","Component","params"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy