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GAAuB,EACtC,CAAC,CAAE,YAAAe,EAAa,GAAGC,CAAW,KAAO,CACnC,GAAGA,EACH,GAAGD,CACL,EACF,C,0EC5IA,QANiDE,GAAgGhB,GAAU,CACzJ,MAAMiB,KAAS,aAAU,EAEzB,OAAO,gBAACD,EAAA,CAAW,GAAGhB,EAAgB,OAAAiB,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/LUTCachesPage.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 { Col, Row, Button } from 'components/bootstrap';\nimport Routes from 'routing/Routes';\nimport { DocumentTitle, PageHeader, Spinner } from 'components/common';\nimport { Cache, CacheCreate, CacheForm, CachesOverview } from 'components/lookup-tables';\nimport withPaginationQueryParameter from 'components/common/withPaginationQueryParameter';\nimport withParams from 'routing/withParams';\nimport withLocation from 'routing/withLocation';\nimport { LookupTableCachesActions, LookupTableCachesStore } from 'stores/lookup-tables/LookupTableCachesStore';\nimport LUTPageNavigation from 'components/lookup-tables/LUTPageNavigation';\nimport withHistory from 'routing/withHistory';\n\nconst _saved = (history) => {\n history.push(Routes.SYSTEM.LOOKUPTABLES.CACHES.OVERVIEW);\n};\n\nconst _isCreating = ({ action }) => action === 'create';\n\nconst _validateCache = (adapter) => {\n LookupTableCachesActions.validate(adapter);\n};\n\nclass LUTCachesPage extends React.Component {\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 LookupTableCachesActions.searchPaginated(page, pageSize);\n }\n\n _loadData = (props) => {\n const { pagination } = props;\n const { page, pageSize } = this.props.paginationQueryParameter;\n\n if (props.params && props.params.cacheName) {\n LookupTableCachesActions.get(props.params.cacheName);\n } else if (_isCreating(props)) {\n LookupTableCachesActions.getTypes();\n } else {\n LookupTableCachesActions.searchPaginated(page, pageSize, pagination.query);\n }\n };\n\n render() {\n const {\n action,\n cache,\n validationErrors,\n types,\n caches,\n pagination,\n history,\n } = this.props;\n let content;\n const isShowing = action === 'show';\n const isEditing = action === 'edit';\n\n if (isShowing || isEditing) {\n if (!cache) {\n content = ;\n } else if (isEditing) {\n content = (\n \n \n _saved(history)}\n validate={_validateCache}\n validationErrors={validationErrors} />\n \n
\n );\n } else {\n content = ;\n }\n } else if (_isCreating(this.props)) {\n if (!types) {\n content = ;\n } else {\n content = (\n _saved(history)}\n validate={_validateCache}\n validationErrors={validationErrors} />\n );\n }\n } else if (!caches) {\n content = ;\n } else {\n content = (\n \n );\n }\n\n return (\n \n \n \n \n \n )}>\n Caches provide the actual values for lookup tables\n \n {content}\n \n );\n }\n}\n\nLUTCachesPage.propTypes = {\n cache: PropTypes.object,\n validationErrors: PropTypes.object,\n types: PropTypes.object,\n caches: PropTypes.array,\n history: PropTypes.object.isRequired,\n location: PropTypes.object.isRequired,\n pagination: PropTypes.object.isRequired,\n action: PropTypes.string,\n paginationQueryParameter: PropTypes.object.isRequired,\n};\n\nLUTCachesPage.defaultProps = {\n cache: null,\n validationErrors: {},\n types: null,\n caches: null,\n action: undefined,\n};\n\nexport default connect(\n withHistory(withParams(withLocation(withPaginationQueryParameter(LUTCachesPage)))),\n { cachesStore: LookupTableCachesStore },\n ({ cachesStore, ...otherProps }) => ({\n ...otherProps,\n ...cachesStore,\n }),\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","_validateCache","adapter","LUTCachesPage","props","pagination","page","pageSize","prevProps","pathname","prevPathname","cache","validationErrors","types","caches","content","isShowing","isEditing","cachesStore","otherProps","Component","params"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy