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

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

There is a newer version: 26.0.5
Show newest version
{"version":3,"file":"App.js","names":["React","PageNav","PageHeaderTool","makeRoutes","Brand","Page","PageHeader","PageSidebar","KeycloakContext","App","Component","constructor","props","context","_defineProperty","toggleReact","render","authenticated","isWelcomePage","login","Header","createElement","logo","id","href","brandUrl","src","brandImg","alt","className","headerTools","showNavToggle","Sidebar","nav","header","sidebar","isManagedSidebar"],"sources":["../src/app/App.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 {KeycloakService} from './keycloak-service/keycloak.service';\n\nimport {PageNav} from './PageNav';\nimport {PageHeaderTool} from './PageHeaderTool';\nimport {makeRoutes} from './ContentPages';\n\nimport {\n    Brand,\n    Page,\n    PageHeader,\n    PageSidebar\n} from '@patternfly/react-core';\n\nimport { KeycloakContext } from './keycloak-service/KeycloakContext';\n\ndeclare function toggleReact(): void;\ndeclare function isWelcomePage(): boolean;\n\ndeclare const brandImg: string;\ndeclare const brandUrl: string;\n\nexport interface AppProps {};\nexport class App extends React.Component {\n    static contextType = KeycloakContext;\n    context: React.ContextType;\n\n    public constructor(props: AppProps, context: React.ContextType) {\n        super(props);\n        this.context = context;\n        toggleReact();\n    }\n\n    public render(): React.ReactNode {\n        toggleReact();\n\n        // check login\n        if (!this.context!.authenticated() && !isWelcomePage()) {\n            this.context!.login();\n        }\n\n        const Header = (\n            }\n                headerTools={}\n                showNavToggle\n            />\n        );\n\n        const Sidebar = } />;\n\n        return (\n            \n                {makeRoutes()}\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;AAIjB,SAAQC,OAAO;AACf,SAAQC,cAAc;AACtB,SAAQC,UAAU;AAElB,SACIC,KAAK,EACLC,IAAI,EACJC,UAAU,EACVC,WAAW;AAGf,SAASC,eAAe;AAQI;AAC5B,OAAO,MAAMC,GAAG,SAAST,KAAK,CAACU,SAAS,CAAW;EAIxCC,WAAWA,CAACC,KAAe,EAAEC,OAAkD,EAAE;IACpF,KAAK,CAACD,KAAK,CAAC;IAACE,eAAA;IACb,IAAI,CAACD,OAAO,GAAGA,OAAO;IACtBE,WAAW,CAAC,CAAC;EACjB;EAEOC,MAAMA,CAAA,EAAoB;IAC7BD,WAAW,CAAC,CAAC;;IAEb;IACA,IAAI,CAAC,IAAI,CAACF,OAAO,CAAEI,aAAa,CAAC,CAAC,IAAI,CAACC,aAAa,CAAC,CAAC,EAAE;MACpD,IAAI,CAACL,OAAO,CAAEM,KAAK,CAAC,CAAC;IACzB;IAEA,MAAMC,MAAM,gBACRpB,KAAA,CAAAqB,aAAA,CAACf,UAAU;MACPgB,IAAI,eAAEtB,KAAA,CAAAqB,aAAA;QAAGE,EAAE,EAAC,WAAW;QAACC,IAAI,EAAEC;MAAS,gBAACzB,KAAA,CAAAqB,aAAA,CAACjB,KAAK;QAACsB,GAAG,EAAEC,QAAS;QAACC,GAAG,EAAC,MAAM;QAACC,SAAS,EAAC;MAAO,CAAC,CAAI,CAAE;MACjGC,WAAW,eAAE9B,KAAA,CAAAqB,aAAA,CAACnB,cAAc,MAAC,CAAE;MAC/B6B,aAAa;IAAA,CAChB,CACJ;IAED,MAAMC,OAAO,gBAAGhC,KAAA,CAAAqB,aAAA,CAACd,WAAW;MAAC0B,GAAG,eAAEjC,KAAA,CAAAqB,aA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