2020-09-03 19:25:05 +00:00
|
|
|
import React from "react";
|
2020-08-27 12:09:36 +00:00
|
|
|
import { Page, PageSection, Button } from "@patternfly/react-core";
|
|
|
|
import { Header } from "./PageHeader";
|
|
|
|
import { PageNav } from "./PageNav";
|
2020-08-04 12:59:41 +00:00
|
|
|
|
2020-09-02 07:51:42 +00:00
|
|
|
import { Help } from "./components/help-enabler/HelpHeader";
|
2020-09-03 19:25:05 +00:00
|
|
|
import { BrowserRouter as Router, Route, Switch } from "react-router-dom";
|
2020-08-27 12:09:36 +00:00
|
|
|
import { NewRealmForm } from "./forms/realm/NewRealmForm";
|
2020-08-31 18:26:25 +00:00
|
|
|
import { NewClientForm } from "./forms/client/NewClientForm";
|
2020-09-03 19:25:05 +00:00
|
|
|
import { ImportForm } from "./forms/client/ImportForm";
|
2020-09-09 09:07:17 +00:00
|
|
|
|
2020-09-03 19:25:05 +00:00
|
|
|
import { ClientsPage } from "./page/ClientsPage";
|
2020-09-09 09:07:17 +00:00
|
|
|
import { ClientScopesPage } from "./page/ClientScopesPage";
|
|
|
|
import { RealmRolesPage } from "./page/RealmRolesPage";
|
|
|
|
import { UsersPage } from "./page/UsersPage";
|
|
|
|
import { GroupsPage } from "./page/GroupsPage";
|
|
|
|
import { SessionsPage } from "./page/SessionsPage";
|
|
|
|
import { EventsPage } from "./page/EventsPage";
|
|
|
|
import { RealmSettingsPage } from "./page/RealmSettingsPage";
|
|
|
|
import { AuthenticationPage } from "./page/AuthenticationPage";
|
|
|
|
import { IdentityProvidersPage } from "./page/IdentityProvidersPage";
|
|
|
|
import { UserFederationPage } from "./page/UserFederationPage";
|
|
|
|
|
|
|
|
import { PageNotFoundPage } from "./page/PageNotFoundPage";
|
2020-08-27 12:09:36 +00:00
|
|
|
|
2020-08-08 13:52:23 +00:00
|
|
|
export const App = () => {
|
2020-08-04 12:59:41 +00:00
|
|
|
return (
|
2020-08-27 12:09:36 +00:00
|
|
|
<Router>
|
2020-09-02 07:51:42 +00:00
|
|
|
<Help>
|
|
|
|
<Page header={<Header />} isManagedSidebar sidebar={<PageNav />}>
|
|
|
|
<PageSection variant="light">
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/add-realm" component={NewRealmForm}></Route>
|
2020-09-09 09:07:17 +00:00
|
|
|
|
|
|
|
<Route exact path="/clients" component={ClientsPage}></Route>
|
2020-09-02 07:51:42 +00:00
|
|
|
<Route exact path="/add-client" component={NewClientForm}></Route>
|
2020-09-03 19:25:05 +00:00
|
|
|
<Route exact path="/import-client" component={ImportForm}></Route>
|
2020-09-09 09:07:17 +00:00
|
|
|
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/client-scopes"
|
|
|
|
component={ClientScopesPage}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/realm-roles"
|
|
|
|
component={RealmRolesPage}
|
|
|
|
></Route>
|
|
|
|
<Route exact path="/users" component={UsersPage}></Route>
|
|
|
|
<Route exact path="/groups" component={GroupsPage}></Route>
|
|
|
|
<Route exact path="/sessions" component={SessionsPage}></Route>
|
|
|
|
<Route exact path="/events" component={EventsPage}></Route>
|
|
|
|
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/realm-settings"
|
|
|
|
component={RealmSettingsPage}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/authentication"
|
|
|
|
component={AuthenticationPage}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/identity-providers"
|
|
|
|
component={IdentityProvidersPage}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/user-federation"
|
|
|
|
component={UserFederationPage}
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
<Route exact path="/" component={ClientsPage} />
|
|
|
|
<Route component={PageNotFoundPage} />
|
2020-09-02 07:51:42 +00:00
|
|
|
</Switch>
|
|
|
|
</PageSection>
|
|
|
|
</Page>
|
|
|
|
</Help>
|
2020-08-27 12:09:36 +00:00
|
|
|
</Router>
|
2020-08-04 12:59:41 +00:00
|
|
|
);
|
|
|
|
};
|