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security/pages/UserActivity.tsx","webpack://graylog-web-interface/./src/components/security/teaser/Hotspot.tsx","webpack://graylog-web-interface/./src/views/components/StaticSearch.tsx","webpack://graylog-web-interface/./src/components/security/teaser/TeaserSearch.tsx","webpack://graylog-web-interface/./src/views/components/contexts/SearchPageLayoutProvider.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 */\n\nimport * as React from 'react';\n\nimport { DocumentTitle } from 'components/common';\nimport TeaserSearch from 'components/security/teaser/TeaserSearch';\nimport viewJson from 'components/security/teaser/sample-dashboards/user_activity_view.json';\nimport searchJson from 'components/security/teaser/sample-dashboards/user_activity_search.json';\nimport resultJson from 'components/security/teaser/sample-dashboards/user_activity_results.json';\n\nconst hotspots = [\n {\n positionX: '67%',\n positionY: '260px',\n description: 'Quickly see if you have concerning trends in failed logons.',\n },\n {\n positionX: '40%',\n positionY: '500px',\n description: 'Logon successes and failures by user can help you spot problem accounts and unusual activity.',\n },\n {\n positionX: '70%',\n positionY: '500px',\n description: 'These are the top 15 user accounts generating high alerts!',\n },\n {\n positionX: '40%',\n positionY: '940px',\n description: 'What are the most common identity and access control changes made in your environment?',\n },\n {\n positionX: '50%',\n positionY: '1300px',\n description: 'Know the target of the most frequent access control changes.',\n },\n];\n\nconst UserActivity = () => (\n \n \n \n);\n\nexport default UserActivity;\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 { useState, useRef } from 'react';\nimport * as React from 'react';\nimport styled, { keyframes, css } from 'styled-components';\n\nimport Popover from 'components/common/Popover';\n\nconst HOTSPOT_HEIGHT = 80;\n\nconst hotspotExpand = keyframes`\n 0% {\n transform: scale(.5);\n opacity: 1;\n }\n 100% {\n transform: scale(1.5);\n opacity: 0;\n }\n`;\n\nconst HotspotTrigger = styled.button(({ theme }) => css`\n && {\n border-radius: 50%;\n height: ${HOTSPOT_HEIGHT}px;\n width: ${HOTSPOT_HEIGHT}px;\n background: ${theme.colors.variant.warning};\n color: ${theme.utils.contrastingColor(theme.colors.variant.warning)};\n border: 0;\n font-size: ${theme.fonts.size.huge};\n\n &:hover {\n background: ${theme.colors.variant.warning};\n color: ${theme.utils.contrastingColor(theme.colors.variant.warning)};\n }\n }\n \n &::before {\n background: ${theme.colors.variant.warning};\n content: \"\";\n width: 100%;\n height: 100%;\n position: absolute;\n z-index: -1;\n opacity: 0;\n animation: ${hotspotExpand} 2s infinite;\n border-radius: 50%;\n left: 0;\n top: 0;\n }\n`);\n\nconst HotspotContainer = styled.div<{ $positionX: string, $positionY: string }>(({ $positionX, $positionY }) => css`\n position: absolute;\n top: ${$positionY};\n left: calc(${$positionX} - ${HOTSPOT_HEIGHT / 2}px);\n`);\n\ntype TooltipProps = React.PropsWithChildren<{\n positionX: string,\n positionY: string,\n index: number,\n}>\n\nconst Hotspot = ({ children, positionX, positionY, index }: TooltipProps) => {\n const [show, setShow] = useState(false);\n const target = useRef();\n const container = useRef();\n const showPopover = () => setShow(true);\n const hidePopover = () => setShow(false);\n\n return (\n \n\n \n \n \n {index + 1}\n \n \n \n {children}\n \n \n \n );\n};\n\nexport default Hotspot;\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 */\n\nimport * as React from 'react';\nimport { useMemo } from 'react';\n\nimport type { SearchJson } from 'views/logic/search/Search';\nimport type { SearchJobResult } from 'views/logic/SearchResult';\nimport SearchExecutorsContext from 'views/components/contexts/SearchExecutorsContext';\nimport SearchPage from 'views/pages/SearchPage';\nimport Search from 'views/logic/search/Search';\nimport type { ViewJson } from 'views/logic/views/View';\nimport View from 'views/logic/views/View';\nimport SearchResult from 'views/logic/SearchResult';\nimport type { SearchExecutors } from 'views/logic/slices/searchExecutionSlice';\nimport SearchMetadata from 'views/logic/search/SearchMetadata';\n\ntype Props = {\n searchJson: Partial,\n viewJson: any,\n searchJobResult: Partial,\n}\nconst searchMetadata = SearchMetadata.empty();\n\nconst StaticSearch = ({ searchJson, viewJson, searchJobResult }: Props) => {\n const view = useMemo(() => {\n const search = Search.fromJSON(searchJson as SearchJson);\n\n return View.fromJSON(viewJson as ViewJson)\n .toBuilder()\n .search(search)\n .build();\n }, [searchJson, viewJson]);\n\n const searchResult = useMemo(() => ({\n result: new SearchResult(searchJobResult as SearchJobResult),\n widgetMapping: view.widgetMapping,\n }), [searchJobResult, view.widgetMapping]);\n\n const searchExecutors: SearchExecutors = useMemo(() => ({\n execute: async () => searchResult,\n parse: async () => searchMetadata,\n resultMapper: (result) => result,\n }), [searchResult]);\n\n return (\n \n \n \n );\n};\n\nexport default StaticSearch;\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 styled from 'styled-components';\nimport { useMemo } from 'react';\nimport 'wicg-inert';\n\nimport Hotspot from 'components/security/teaser/Hotspot';\nimport { SAVE_COPY } from 'views/components/contexts/SearchPageLayoutContext';\nimport PageContentLayout from 'components/layout/PageContentLayout';\nimport SearchPageLayoutProvider from 'views/components/contexts/SearchPageLayoutProvider';\nimport type { SearchJobResult } from 'views/logic/SearchResult';\nimport type { SearchJson } from 'views/logic/search/Search';\nimport StaticSearch from 'views/components/StaticSearch';\n\ntype HotspotMeta = {\n positionX: string,\n positionY: string,\n description: string\n}\n\nconst StyledPageContentLayout = styled(PageContentLayout)`\n .page-content-grid {\n position: relative;\n }\n`;\n\nconst DashboardOverlay = styled.div`\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 100%;\n background: transparent;\n z-index: 1;\n`;\n\nconst searchAreaContainer = (hotspots: Array) => ({ children }: React.PropsWithChildren) => (\n \n \n {hotspots.map(({ description, positionX, positionY }, index) => (\n // eslint-disable-next-line react/no-array-index-key\n \n {description}\n \n ))}\n \n \n {children}\n \n \n);\n\ntype Props = {\n searchJson: Partial,\n viewJson: any,\n searchJobResult: Partial,\n hotspots: Array,\n}\n\nconst TeaserSearch = ({ searchJson, viewJson, searchJobResult, hotspots }: Props) => {\n const searchPageLayout = useMemo(() => ({\n sidebar: { isShown: false },\n viewActions: SAVE_COPY,\n searchAreaContainer: { component: searchAreaContainer(hotspots) },\n }), [hotspots]);\n\n return (\n \n \n \n );\n};\n\nexport default TeaserSearch;\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 { useMemo } from 'react';\nimport merge from 'lodash/merge';\n\nimport type { LayoutState } from './SearchPageLayoutContext';\nimport SearchPageLayoutContext, { DEFAULT_STATE } from './SearchPageLayoutContext';\n\ntype Props = {\n children: React.ReactNode,\n value: Partial,\n};\n\nconst SearchPageLayoutProvider = ({ children, value }: Props) => {\n const contextValue = useMemo(() => merge({}, DEFAULT_STATE, value), [value]);\n\n return (\n \n {children}\n \n );\n};\n\nexport default SearchPageLayoutProvider;\n"],"names":["hotspots","TeaserSearch","HOTSPOT_HEIGHT","hotspotExpand","HotspotTrigger","theme","HotspotContainer","$positionX","$positionY","children","positionX","positionY","index","show","setShow","target","container","showPopover","hidePopover","Popover","searchMetadata","SearchMetadata","searchJson","viewJson","searchJobResult","view","search","Search","View","searchResult","SearchResult","searchExecutors","result","SearchExecutorsContext","SearchPage","StyledPageContentLayout","PageContentLayout","DashboardOverlay","searchAreaContainer","description","searchPageLayout","SearchPageLayoutProvider","value","contextValue"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy