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

web-interface.assets.325e2d4b-7137.6147c2d1234b7c94cce3.js.map Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
{"version":3,"file":"325e2d4b-7137.6147c2d1234b7c94cce3.js","mappings":"kNAsBA,MAAMA,EAAKC,EAAAA,QAAAA,GAAAA,WAAH,yDAAGA,CAAH,sBAIFC,GAAOD,EAAAA,EAAAA,SAAOE,EAAAA,IAAV,sEAAGF,CAAH,8EAqBV,EAVkB,QAAC,MAAEG,GAAH,SAChB,gBAACJ,EAAD,KACGI,EAAMC,KAAKC,GACV,gBAACJ,EAAD,CAAMK,IAAKD,EAAME,QAAkB,UAATF,EAAmB,OAAS,WACnDA,KAJS,C,0FChBlB,MAAMG,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,EANwB,IACtB,gBAAC,KAAD,CAAgBC,QAAQ,QAAQC,WAAS,EAACC,UAAU,QAAQC,QAASP,GACnE,gBAAC,KAAD,CAAQD,QAAQ,QAAO,gBAAC,KAAD,CAAMS,KAAK,qB,uPCzBtC,MAAMC,GAAiBjB,EAAAA,EAAAA,SAAOkB,EAAAA,IAAV,iFAAGlB,CAAH,4CAKdmB,EAAmB,QACvBC,MAAM,SAAEC,EAAF,GAAYZ,GAClBa,iBAAkBC,GAFK,SAOvB,gBAAC,IAAD,CAAeC,GAAIC,EAAAA,GAAAA,OAAAA,MAAAA,OAAAA,KAAgChB,IACjD,gBAACc,EAAD,CAAkBd,GAAK,eAAcA,IACnBiB,OAAO,KACPhB,MAAQ,uBAAsBW,KAFhD,eARqB,EAgBnBM,EAAkB,IAAsC,IAArC,KAAEP,GAAmC,EAC5D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D,CAAqBA,UAAWA,EACXC,iBAAkB2B,EAAuB/D,GACzCsC,oBAAqBgB,EACrBjB,QAASM,IAEhC,gBAAC,KAAD,CAAKlB,UAAU,WACb,gBAAC,KAAD,CAAKc,GAAI,IACP,gBAACM,EAAD,KACE,mCACC2B,GAAW,gBAAC1B,EAAD,CAAgBuC,KAAK,GAAGC,MAAO,KAE7C,qBAAG7D,UAAU,eAAb,SACSoD,EADT,oCAGA,gBAACzB,EAAD,CAAqBmC,WAAYV,GAC/B,gBAAC,KAAD,CAAWxG,GAAG,iBACHoD,UAAU,cACV+D,aAAa,QACbnD,QAASM,EACTL,oBAAqBgB,EACrBd,UAAU,WACViD,WAAY,gBAAC,KAAD,kCACZhD,KAAMmC,EAAMc,OACZC,aAAcR,EACd/C,iBAAkB2B,EAAuB/D,GACzC0C,WAAY,GACZkD,YAAY,oBA7BjC,E,oBEvFF,MAoBA,EApB0B,IACxB,gBAAC,KAAD,CAAetH,MAAM,kBACnB,gBAACuH,EAAA,EAAD,MACA,gBAAC,KAAD,CAAYvH,MAAM,iBACNwH,QACE,gBAAC,IAAD,CAAe1G,GAAIC,EAAAA,GAAAA,OAAAA,MAAAA,QACjB,gBAAC,KAAD,CAAQlB,QAAQ,WAAhB,gBAGJ4H,kBAAmB,CACjBzH,MAAO,4BACP0H,KAAMC,EAAAA,EAAAA,MAAAA,cAElB,wEAGF,gBAAC,EAAD,M","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/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/index.ts","webpack://graylog-web-interface/./src/components/users/UsersOverview/UserOverviewItem/UsersOverviewItem.tsx","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  padding: 4px 6px;\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';\nimport styled from 'styled-components';\n\nimport useCurrentUser from 'hooks/useCurrentUser';\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, ButtonToolbar } from 'components/bootstrap';\nimport { OverlayTrigger, IfPermitted } from 'components/common';\n\ntype Props = {\n user: UserOverview,\n};\n\nconst ActionsWrapper = styled(ButtonToolbar)`\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\nconst EditActions = ({ user, user: { username, id, fullName, accountStatus, external, readOnly } }: { user: UserOverview }) => {\n const currentUser = useCurrentUser();\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 {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 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 { 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 * 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, 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 useCurrentUser from 'hooks/useCurrentUser';\nimport { DataTable, Spinner, PaginatedList, EmptyResult } from 'components/common';\nimport { Col, Row } from 'components/bootstrap';\nimport type UserOverview from 'logic/users/UserOverview';\nimport usePaginationQueryParameter from 'hooks/usePaginationQueryParameter';\n\nimport UserOverviewItem from './UserOverviewItem';\nimport UsersFilter from './UsersFilter';\nimport ClientAddressHead from './ClientAddressHead';\nimport SystemAdministrator from './SystemAdministratorOverview';\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 = (pagination, setLoading, setPaginatedUsers, callback: () => void) => UsersActions.delete.completed.listen(() => {\n _loadUsers(pagination, setLoading, setPaginatedUsers);\n callback();\n});\nconst _updateListOnUserSetStatus = (pagination, setLoading, setPaginatedUsers) => UsersActions.setStatus.completed.listen(() => _loadUsers(pagination, setLoading, setPaginatedUsers));\n\nconst buildUsersOverviewItem = (currentUser: any) => (user: UserOverview) => {\n const { id: userId } = user;\n\n return ;\n};\n\nconst UsersOverview = () => {\n const { page, pageSize: perPage, resetPage } = usePaginationQueryParameter();\n const currentUser = useCurrentUser();\n const [paginatedUsers, setPaginatedUsers] = useState();\n const [loading, setLoading] = useState(false);\n const [query, setQuery] = useState('');\n const { list: users, adminUser, pagination: { total = 0 } = {} } = paginatedUsers || {};\n\n useEffect(() => _loadUsers({ page, perPage, query }, setLoading, setPaginatedUsers), [page, perPage, query]);\n useEffect(() => _updateListOnUserDelete({ page, perPage, query }, setLoading, setPaginatedUsers, resetPage), [page, perPage, query, resetPage]);\n useEffect(() => _updateListOnUserSetStatus({ page, perPage, query }, setLoading, setPaginatedUsers), [page, perPage, query]);\n\n if (!users) {\n return ;\n }\n\n const handleSearch = (newQuery: string) => {\n resetPage();\n setQuery(newQuery);\n };\n\n const searchFilter = ;\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 \n No users have been found.}\n rows={users.toJS()}\n customFilter={searchFilter}\n dataRowFormatter={buildUsersOverviewItem(currentUser)}\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 UsersPageNavigation from 'components/users/navigation/UsersPageNavigation';\n\nconst UsersOverviewPage = () => (\n \n \n \n \n \n )}\n documentationLink={{\n title: 'Permissions documentation',\n path: DocsHelper.PAGES.USERS_ROLES,\n }}>\n Overview of Graylog's registered users.\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","ActionsWrapper","ButtonToolbar","EditTokensAction","user","fullName","wrapperComponent","WrapperComponent","to","Routes","bsSize","ReadOnlyActions","tooltip","disabled","Button","EditActions","username","accountStatus","external","readOnly","currentUser","useCurrentUser","showEnableDisable","permissions","pullRight","MenuItem","onClick","UsersDomain","window","confirm","Wrapper","theme","active","colors","variant","success","default","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","TABLE_HEADERS","Container","Header","LoadingSpinner","Spinner","css","fonts","size","h3","StyledPaginatedList","PaginatedList","_headerCellFormatter","header","toLowerCase","_loadUsers","pagination","setLoading","setPaginatedUsers","then","paginatedUsers","buildUsersOverviewItem","userId","UserOverviewItem","page","pageSize","perPage","resetPage","usePaginationQueryParameter","useState","loading","query","setQuery","list","users","total","useEffect","callback","UsersActions","_updateListOnUserDelete","_updateListOnUserSetStatus","searchFilter","newQuery","text","delay","totalItems","rowClassName","noDataText","toJS","customFilter","filterLabel","UsersPageNavigation","actions","documentationLink","path","DocsHelper"],"sourceRoot":""}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy