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

web-interface.assets.b6fe2bb5-7137.04ae3caa34408a5ff33b.js.map Maven / Gradle / Ivy

{"version":3,"file":"b6fe2bb5-7137.04ae3caa34408a5ff33b.js","mappings":"kNAsBMA,EAAKC,EAAAA,QAAAA,GAAAA,WAAH,yDAAGA,CAAH,sBAIFC,GAAOD,EAAAA,EAAAA,SAAOE,EAAAA,IAAV,sEAAGF,CAAH,+EAqBV,QAVkB,SAAC,GAAD,IAAGG,EAAH,EAAGA,MAAH,OAChB,gBAACJ,EAAD,KACGI,EAAMC,KAAI,SAACC,GAAD,OACT,gBAACJ,EAAD,CAAMK,IAAKD,EAAME,QAAkB,UAATF,EAAmB,OAAS,WACnDA,S,wFCpBHG,EACJ,gBAAC,KAAD,CAASC,GAAG,yBAAyBC,MAAM,sBACzC,yBAAG,0DACH,gBAAC,KAAD,CAAOC,WAAS,GACd,6BACE,0BACE,mCACA,2CAGJ,6BACE,0BACE,uCACA,sDAEF,0BACE,sCACA,wDAEF,0BACE,mCACA,iDAIN,yBAAG,2CACH,2EACiD,2BAC/C,gDAA4B,6BAWlC,QANwB,kBACtB,gBAAC,KAAD,CAAgBC,QAAQ,QAAQC,WAAS,EAACC,UAAU,QAAQC,QAASP,GACnE,gBAAC,KAAD,CAAQD,QAAQ,QAAO,gBAAC,KAAD,CAAMS,KAAK,wB,wHCVtC,QAvB0B,WACxB,IAAMC,EAAaC,EAAAA,GAAAA,eAAsB,gBAEzC,OACE,gBAAC,KAAD,KACE,gBAAC,KAAD,CAAaC,YAAY,cACvB,gBAAC,IAAD,CAAeC,GAAIF,EAAAA,GAAAA,OAAAA,MAAAA,UACjB,gBAAC,KAAD,CAAQX,QAAQ,QAAhB,oBAKHU,GACC,gBAAC,KAAD,CAAaE,YAAY,cACvB,gBAAC,IAAD,CAAeC,GAAIH,GACjB,gBAAC,KAAD,CAAQV,QAAQ,QAAhB,uB,qOCNNc,EAAiBrB,EAAAA,QAAAA,IAAAA,WAA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AV,OAAyBnB,EAAc,EAAD,KAAMP,GAAN,IAAkBlB,KAAM2C,EAAS1C,QAAS2C,OAC7G,gBAAC,KAAD,CAAWnH,GAAG,iBACHoD,UAAU,cACVgE,aAAa,QACbpD,QAASU,EACTT,oBAAqBoB,EACrBlB,UAAU,WACVkD,WAAY,gBAAC,KAAD,kCACZjD,KAAM6B,EAAMqB,OACZC,aAAcf,EACdzC,iBAAkB2C,EAClBrC,WAAY,GACZmD,YAAY,sB,oCE3FnC,QAvB0B,kBACxB,gBAAC,KAAD,CAAevH,MAAM,kBACnB,gBAAC,KAAD,CAAYA,MAAM,iBACNwH,WACE,gBAAC,IAAD,CAAe9G,GAAIF,EAAAA,GAAAA,OAAAA,MAAAA,QACjB,gBAAC,KAAD,CAAQX,QAAQ,WAAhB,iBAGd,uEAEA,gDACoB,IAClB,gBAAC4H,EAAA,EAAD,CAAmBnD,KAAMoD,EAAAA,EAAAA,MAAAA,YACNd,KAAK,mBAG1B,gBAACe,EAAA,EAAD,OAGF,gBAAC,EAAD","sources":["webpack://graylog-web-interface/./src/components/permissions/RolesCell.tsx","webpack://graylog-web-interface/./src/components/users/UsersQueryHelper.tsx","webpack://graylog-web-interface/./src/components/users/navigation/UserOverviewLinks.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/UserOverviewItem/ActionsCell.tsx","webpack://graylog-web-interface/./src/components/users/LoggedInIcon.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/UserOverviewItem/LoggedInCell.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/UserOverviewItem/StatusCell.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/UserOverviewItem/UsersOverviewItem.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/UserOverviewItem/index.ts","webpack://graylog-web-interface/./src/components/users/UsersOverview/UsersFilter.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/ClientAddressHead.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/SystemAdministratorOverview.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/UsersOverview.tsx","webpack://graylog-web-interface/./src/components/users/UsersOverview/index.js","webpack://graylog-web-interface/./src/pages/UsersOverviewPage.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 from 'styled-components';\nimport type * as Immutable from 'immutable';\n\nimport { Label } from 'components/bootstrap';\n\nconst Td = styled.td`\n  max-width: 300px;\n`;\n\nconst Role = styled(Label)`\n  margin-right: 5px;\n  margin-bottom: 5px;\n  display: inline-block;\n  line-height: 15px;\n`;\n\ntype Props = {\n  roles: Immutable.Set,\n};\n\nconst RolesCell = ({ roles }: Props) => (\n  \n    {roles.map((role) => (\n      \n        {role}\n      \n    ))}\n  \n);\n\nexport default RolesCell;\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 { Popover, Table, Button } from 'components/bootstrap';\nimport { OverlayTrigger, Icon } from 'components/common';\n\nconst userQueryHelperPopover = (\n  \n    

Available search fields

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
FieldDescription
full_nameThe full name of a user
usernameThe users login username.
emailThe users email.
\n

Examples

\n

\n Find users with a email containing example.com:
\n email:example.com
\n

\n
\n);\n\nconst UserQueryHelper = () => (\n \n \n \n);\n\nexport default UserQueryHelper;\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 { LinkContainer } from 'components/common/router';\nimport { IfPermitted } from 'components/common';\nimport { ButtonToolbar, Button } from 'components/bootstrap';\nimport Routes from 'routing/Routes';\n\nconst UserOverviewLinks = () => {\n const teamsRoute = Routes.getPluginRoute('SYSTEM_TEAMS');\n\n return (\n \n \n \n \n \n \n {teamsRoute && (\n \n \n \n \n \n )}\n \n );\n};\n\nexport default UserOverviewLinks;\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 { useContext } from 'react';\nimport styled from 'styled-components';\n\nimport CurrentUserContext from 'contexts/CurrentUserContext';\nimport { LinkContainer } from 'components/common/router';\nimport type UserOverview from 'logic/users/UserOverview';\nimport UsersDomain from 'domainActions/users/UsersDomain';\nimport Routes from 'routing/Routes';\nimport { Button, Tooltip, DropdownButton, MenuItem } from 'components/bootstrap';\nimport { OverlayTrigger, IfPermitted } from 'components/common';\n\ntype Props = {\n user: UserOverview,\n};\n\nconst ActionsWrapper = styled.div`\n display: flex;\n justify-content: flex-end;\n`;\n\nconst EditTokensAction = ({\n user: { fullName, id },\n wrapperComponent: WrapperComponent,\n}: {\n user: UserOverview,\n wrapperComponent: Button | MenuItem,\n}) => (\n \n \n Edit tokens\n \n \n);\n\nconst ReadOnlyActions = ({ user }: { user: UserOverview }) => {\n const tooltip = System users can only be modified in the Graylog configuration file.;\n\n return (\n <>\n \n \n \n  \n \n \n );\n};\n\nconst EditActions = ({ user, user: { username, id, fullName, accountStatus, external, readOnly } }: { user: UserOverview }) => {\n const currentUser = useContext(CurrentUserContext);\n\n const _toggleStatus = () => {\n if (accountStatus === 'enabled') {\n // eslint-disable-next-line no-alert\n if (window.confirm(`Do you really want to disable user ${fullName}? All current sessions will be terminated.`)) {\n UsersDomain.setStatus(id, 'disabled');\n }\n\n return;\n }\n\n UsersDomain.setStatus(id, 'enabled');\n };\n\n const _deleteUser = () => {\n // eslint-disable-next-line no-alert\n if (window.confirm(`Do you really want to delete user ${fullName}?`)) {\n UsersDomain.delete(id, fullName);\n }\n };\n\n const showEnableDisable = !external && !readOnly && currentUser?.id !== id;\n\n return (\n <>\n \n \n \n \n \n  \n \n \n \n {showEnableDisable && (\n \n {accountStatus === 'enabled' ? 'Disable' : 'Enable'}\n \n )}\n \n Delete\n \n \n \n \n );\n};\n\nconst ActionsCell = ({ user }: Props) => (\n \n \n {user.readOnly ? (\n \n ) : (\n \n )}\n \n \n);\n\nexport default ActionsCell;\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';\n\nimport { Icon } from 'components/common';\n\nconst Wrapper = styled.div<{ active: boolean }>(({ theme, active }) => `\n color: ${active ? theme.colors.variant.success : theme.colors.variant.default};\n`);\n\nconst LoggedInIcon = ({ active, ...rest }: { active: boolean }) => (\n \n \n \n);\n\nexport default LoggedInIcon;\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 type { $PropertyType } from 'utility-types';\n\nimport type UserOverview from 'logic/users/UserOverview';\nimport { OverlayTrigger, RelativeTime } from 'components/common';\nimport { Popover } from 'components/bootstrap';\n\nimport LoggedInIcon from '../../LoggedInIcon';\n\ntype Props = {\n lastActivity: $PropertyType,\n clientAddress: $PropertyType,\n sessionActive: $PropertyType,\n};\n\nconst Td = styled.td`\n width: 35px;\n text-align: right;\n position: relative;\n`;\n\nconst LoggedInCell = ({ lastActivity, sessionActive, clientAddress }: Props) => {\n return (\n \n \n {sessionActive ? (\n <>\n
Last activity: {lastActivity\n ? : '-'}\n
\n
Client address: {clientAddress ?? '-'}
\n \n ) : 'Not logged in'}\n \n )}\n rootClose>\n \n
\n \n );\n};\n\nexport default LoggedInCell;\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 type { $PropertyType } from 'utility-types';\n\nimport type UserOverview from 'logic/users/UserOverview';\nimport { OverlayTrigger, Icon } from 'components/common';\nimport { Popover } from 'components/bootstrap';\n\ntype Props = {\n accountStatus: $PropertyType,\n};\n\nconst Wrapper = styled.div<{ enabled: boolean }>(({ theme, enabled }) => `\n color: ${enabled ? theme.colors.variant.success : theme.colors.variant.default};\n`);\n\nconst Td = styled.td`\n width: 35px;\n text-align: center;\n`;\n\nconst StatusCell = ({ accountStatus }: Props) => (\n \n \n {`User is ${accountStatus}`}\n \n )}\n rootClose>\n \n \n \n \n \n);\n\nexport default StatusCell;\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 { Link } from 'components/common/router';\nimport Routes from 'routing/Routes';\nimport type UserOverview from 'logic/users/UserOverview';\nimport RolesCell from 'components/permissions/RolesCell';\n\nimport ActionsCell from './ActionsCell';\nimport LoggedInCell from './LoggedInCell';\nimport StatusCell from './StatusCell';\n\ntype Props = {\n user: UserOverview,\n isActive: boolean,\n};\n\nconst UsersOverviewItem = ({\n user,\n user: {\n id,\n clientAddress,\n email,\n fullName,\n lastActivity,\n sessionActive,\n username,\n roles,\n accountStatus,\n },\n isActive,\n}: Props) => {\n return (\n \n \n \n \n {fullName}\n \n \n {username}\n {email}\n {clientAddress}\n \n \n \n \n );\n};\n\nexport default UsersOverviewItem;\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 UsersOverviewItem from './UsersOverviewItem';\n\nexport default UsersOverviewItem;\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 { SearchForm } from 'components/common';\n\nimport UserQueryHelper from '../UsersQueryHelper';\n\ntype Props = {\n onSearch: (query: string) => void,\n};\n\nconst UsersFilter = ({ onSearch }: Props) => (\n onSearch('')}\n queryHelpComponent={}\n topMargin={0} />\n);\n\nexport default UsersFilter;\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';\n\nimport { OverlayTrigger, Icon } from 'components/common';\nimport { Popover, Button } from 'components/bootstrap';\n\ntype Props = {\n title: string,\n};\n\nconst TooltipButton = styled(Button)`\n cursor: help;\n padding: 0 0 0 2px;\n display: inline-flex;\n`;\n\nconst ClientAddressHead = ({ title }: Props) => {\n const popover = (\n \n

\n The address of the client used to initially establish the session, not necessarily its current address.\n

\n
\n );\n\n return (\n \n {title}\n \n \n \n \n \n \n );\n};\n\nexport default ClientAddressHead;\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 type UserOverview from 'logic/users/UserOverview';\nimport { DataTable } from 'components/common';\nimport { Col, Row } from 'components/bootstrap';\n\ntype Props = {\n adminUser: UserOverview,\n dataRowFormatter: (user: UserOverview) => React.ReactElement,\n headerCellFormatter: (header: string) => React.ReactElement,\n headers: Array,\n};\n\nconst SystemAdministratorOverview = ({ adminUser, dataRowFormatter, headers, headerCellFormatter }: Props) => (\n \n \n

System Administrator

\n

\n The system administrator can only be edited in the Graylog configuration file.\n

\n \n \n
\n);\n\nexport default SystemAdministratorOverview;\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 { useEffect, useContext, useState } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { PaginatedUsers } from 'stores/users/UsersStore';\nimport UsersDomain from 'domainActions/users/UsersDomain';\nimport { UsersActions } from 'stores/users/UsersStore';\nimport CurrentUserContext from 'contexts/CurrentUserContext';\nimport { DataTable, Spinner, PaginatedList, EmptyResult } from 'components/common';\nimport { Col, Row } from 'components/bootstrap';\nimport type UserOverview from 'logic/users/UserOverview';\n\nimport UserOverviewItem from './UserOverviewItem';\nimport UsersFilter from './UsersFilter';\nimport ClientAddressHead from './ClientAddressHead';\nimport SystemAdministrator from './SystemAdministratorOverview';\n\nconst DEFAULT_PAGINATION = {\n page: 1,\n perPage: 10,\n query: '',\n};\n\nconst TABLE_HEADERS = ['', 'Full name', 'Username', 'E-Mail Address', 'Client Address', 'Enabled', 'Role', 'Actions'];\n\nconst Container = styled.div`\n .data-table {\n overflow-x: visible;\n }\n`;\n\nconst Header = styled.div`\n display: flex;\n align-items: center;\n`;\n\nconst LoadingSpinner = styled(Spinner)(({ theme }) => css`\n margin-left: 10px;\n font-size: ${theme.fonts.size.h3};\n`);\n\nconst StyledPaginatedList = styled(PaginatedList)`\n .pagination {\n margin: 0;\n }\n`;\n\nconst _headerCellFormatter = (header) => {\n switch (header.toLowerCase()) {\n case 'client address':\n return ;\n case 'actions':\n return {header};\n default:\n return {header};\n }\n};\n\nconst _loadUsers = (pagination, setLoading, setPaginatedUsers) => {\n setLoading(true);\n\n UsersDomain.loadUsersPaginated(pagination).then((paginatedUsers) => {\n setPaginatedUsers(paginatedUsers);\n setLoading(false);\n });\n};\n\nconst _updateListOnUserDelete = (perPage, query, setPagination) => UsersActions.delete.completed.listen(() => setPagination({ page: DEFAULT_PAGINATION.page, perPage, query }));\nconst _updateListOnUserSetStatus = (pagination, setLoading, setPaginatedUsers) => UsersActions.setStatus.completed.listen(() => _loadUsers(pagination, setLoading, setPaginatedUsers));\n\nconst UsersOverview = () => {\n const currentUser = useContext(CurrentUserContext);\n const [paginatedUsers, setPaginatedUsers] = useState();\n const [loading, setLoading] = useState(false);\n const [pagination, setPagination] = useState(DEFAULT_PAGINATION);\n const { list: users, adminUser, pagination: { total = 0 } = {} } = paginatedUsers || {};\n const { page, query, perPage } = pagination;\n\n useEffect(() => _loadUsers(pagination, setLoading, setPaginatedUsers), [pagination]);\n useEffect(() => _updateListOnUserDelete(perPage, query, setPagination), [perPage, query]);\n useEffect(() => _updateListOnUserSetStatus(pagination, setLoading, setPaginatedUsers), [pagination]);\n\n if (!users) {\n return ;\n }\n\n const searchFilter = setPagination({ ...pagination, query: newQuery, page: DEFAULT_PAGINATION.page })} />;\n\n const _usersOverviewItem = (user: UserOverview) => {\n const { id: userId } = user;\n\n return ;\n };\n\n return (\n \n {adminUser && (\n \n )}\n \n \n
\n

Users

\n {loading && }\n
\n

\n Found {total} registered users on the system.\n

\n setPagination({ ...pagination, page: newPage, perPage: newPerPage })}>\n No users have been found.}\n rows={users.toJS()}\n customFilter={searchFilter}\n dataRowFormatter={_usersOverviewItem}\n filterKeys={[]}\n filterLabel=\"Filter Users\" />\n \n \n
\n
\n );\n};\n\nexport default UsersOverview;\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 UsersOverview from './UsersOverview';\n\nexport default UsersOverview;\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 { LinkContainer } from 'components/common/router';\nimport Routes from 'routing/Routes';\nimport DocsHelper from 'util/DocsHelper';\nimport { Button } from 'components/bootstrap';\nimport { PageHeader, DocumentTitle } from 'components/common';\nimport UsersOverview from 'components/users/UsersOverview';\nimport UserOverviewLinks from 'components/users/navigation/UserOverviewLinks';\nimport DocumentationLink from 'components/support/DocumentationLink';\n\nconst UsersOverviewPage = () => (\n \n \n \n \n )}>\n Overview of Graylog's registered users.\n\n \n Learn more in the{' '}\n \n \n\n \n \n\n \n \n);\n\nexport default UsersOverviewPage;\n"],"names":["Td","styled","Role","Label","roles","map","role","key","bsStyle","userQueryHelperPopover","id","title","condensed","trigger","rootClose","placement","overlay","name","teamsRoute","Routes","permissions","to","ActionsWrapper","EditTokensAction","user","fullName","WrapperComponent","wrapperComponent","bsSize","ReadOnlyActions","tooltip","disabled","Button","EditActions","username","accountStatus","external","readOnly","currentUser","useContext","CurrentUserContext","showEnableDisable","pullRight","MenuItem","onClick","UsersDomain","window","confirm","Wrapper","theme","active","colors","variant","success","rest","lastActivity","sessionActive","clientAddress","dateTime","enabled","email","isActive","className","RolesCell","onSearch","wrapperClass","onReset","queryHelpComponent","topMargin","TooltipButton","popover","fixedWidth","adminUser","dataRowFormatter","headers","headerCellFormatter","xs","sortByKey","rows","filterKeys","DEFAULT_PAGINATION","page","perPage","query","TABLE_HEADERS","Container","Header","LoadingSpinner","Spinner","css","fonts","size","h3","StyledPaginatedList","PaginatedList","_headerCellFormatter","header","toLowerCase","_loadUsers","pagination","setLoading","setPaginatedUsers","then","paginatedUsers","useState","loading","setPagination","users","list","total","useEffect","UsersActions","_updateListOnUserDelete","_updateListOnUserSetStatus","searchFilter","newQuery","_usersOverviewItem","userId","UserOverviewItem","text","delay","activePage","totalItems","onChange","newPage","newPerPage","rowClassName","noDataText","toJS","customFilter","filterLabel","subactions","DocumentationLink","DocsHelper","UserOverviewLinks"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy