web-interface.assets.1255d548-2951.9362266dfebed4fc6124.js.map Maven / Gradle / Ivy
{"version":3,"file":"1255d548-2951.9362266dfebed4fc6124.js","mappings":"qPA4BA,MAAMA,EAAkC,CAAC,CAAE,OAAQ,CAAE,KAAAC,CAAK,CAAE,IAAa,CACvE,MAAMC,KAAc,MAAqBD,CAAI,EAE7C,GAAI,CAACC,EACH,OAAO,gCAAG,yDAAyDD,CAAI,GAAI,EAG7E,KAAM,CAAE,gBAAiBE,CAAc,EAAID,EAE3C,OAAO,gBAACC,EAAA,IAAc,CACxB,EAEA,KAAe,KAAWH,CAA+B,C,0ECRzD,QANiDI,GAAgGC,GAAU,CACzJ,MAAMC,KAAS,aAAU,EAEzB,OAAO,gBAACF,EAAA,CAAW,GAAGC,EAAgB,OAAAC,CAAA,CAAgB,CACxD,C","sources":["webpack://graylog-web-interface/./src/pages/AuthenticationBackendCreatePage.tsx","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';\n\nimport withParams from 'routing/withParams';\nimport 'components/authentication/bindings'; // Bind all authentication plugins\nimport { getAuthServicePlugin } from 'util/AuthenticationService';\n\ntype Props = {\n params: {\n name: string,\n },\n};\n\nconst AuthenticationBackendCreatePage = ({ params: { name } }: Props) => {\n const authService = getAuthServicePlugin(name);\n\n if (!authService) {\n return <>{`No authentication service plugin configured for type \"${name}\"`}>;\n }\n\n const { createComponent: BackendCreate } = authService;\n\n return ;\n};\n\nexport default withParams(AuthenticationBackendCreatePage);\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":["AuthenticationBackendCreatePage","name","authService","BackendCreate","Component","props","params"],"sourceRoot":""}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy