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

theme.keycloak.v2.account.resources.widgets.Logout.js.map Maven / Gradle / Ivy

There is a newer version: 26.0.5
Show newest version
{"version":3,"file":"Logout.js","names":["React","Msg","KeycloakContext","Button","DropdownItem","handleLogout","keycloak","logout","LogoutButton","Component","render","createElement","Consumer","id","onClick","msgKey","LogoutDropdownItem","key","localize"],"sources":["../../src/app/widgets/Logout.tsx"],"sourcesContent":["/*\n * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as React from 'react';\n\nimport {Msg} from './Msg';\nimport {KeycloakService} from '../keycloak-service/keycloak.service';\nimport { KeycloakContext } from '../keycloak-service/KeycloakContext';\n\nimport {Button, DropdownItem} from '@patternfly/react-core';\n\nfunction handleLogout(keycloak: KeycloakService): void {\n    keycloak.logout();\n}\n\ninterface LogoutProps {}\nexport class LogoutButton extends React.Component {\n    public render(): React.ReactNode {\n        return (\n            \n            { keycloak => (\n                \n            )}\n            \n\n        );\n    }\n}\n\ninterface LogoutDropdownItemProps {}\nexport class LogoutDropdownItem extends React.Component {\n    public render(): React.ReactNode {\n        return (\n            \n                { keycloak => (\n                 handleLogout(keycloak!)}>\n                    {Msg.localize('doSignOut')}\n                \n                )}\n            \n        );\n    }\n}"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,KAAKA,KAAK;AAEjB,SAAQC,GAAG;AAEX,SAASC,eAAe;AAExB,SAAQC,MAAM,EAAEC,YAAY;AAE5B,SAASC,YAAYA,CAACC,QAAyB,EAAQ;EACnDA,QAAQ,CAACC,MAAM,CAAC,CAAC;AACrB;AAGA,OAAO,MAAMC,YAAY,SAASR,KAAK,CAACS,SAAS,CAAc;EACpDC,MAAMA,CAAA,EAAoB;IAC7B,oBACIV,KAAA,CAAAW,aAAA,CAACT,eAAe,CAACU,QAAQ,QACvBN,QAAQ,iBACNN,KAAA,CAAAW,aAAA,CAACR,MAAM;MAACU,EAAE,EAAC,eAAe;MAACC,OAAO,EAAEA,CAAA,KAAMT,YAAY,CAACC,QAAS;IAAE,gBAACN,KAAA,CAAAW,aAAA,CAACV,GAAG;MAACc,MAAM,EAAC;IAAW,CAAC,CAAS,CAE9E,CAAC;EAGnC;AACJ;AAGA,OAAO,MAAMC,kBAAkB,SAAShB,KAAK,CAACS,SAAS,CAA0B;EACtEC,MAAMA,CAAA,EAAoB;IAC7B,oBACIV,KAAA,CAAAW,aAAA,CAACT,eAAe,CAACU,QAAQ,QACnBN,QAAQ,iBACVN,KAAA,CAAAW,aAAA,CAACP,YAAY;MAACS,EAAE,EAAC,aAAa;MAACI,GAAG,EAAC,QAAQ;MAACH,OAAO,EAAEA,CAAA,KAAMT,YAAY,CAACC,QAAS;IAAE,GAC9EL,GAAG,CAACiB,QAAQ,CAAC,WAAW,CACf,CAEQ,CAAC;EAEnC;AACJ"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy