2020-09-03 19:25:05 +00:00
|
|
|
import React from "react";
|
2020-09-10 18:04:03 +00:00
|
|
|
import { Page, PageSection } from "@patternfly/react-core";
|
2020-08-27 12:09:36 +00:00
|
|
|
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-09-10 18:04:03 +00:00
|
|
|
import { NewRealmForm } from "./realm/add/NewRealmForm";
|
|
|
|
import { NewClientForm } from "./clients/add/NewClientForm";
|
|
|
|
import { ImportForm } from "./clients/import/ImportForm";
|
|
|
|
import { ClientsSection } from "./clients/ClientsSection";
|
|
|
|
import { ClientScopesSection } from "./client-scopes/ClientScopesSection";
|
|
|
|
import { RealmRolesSection } from "./realm-roles/RealmRolesSection";
|
|
|
|
import { UsersSection } from "./user/UsersSection";
|
|
|
|
import { GroupsSection } from "./groups/GroupsSection";
|
|
|
|
import { SessionsSection } from "./sessions/SessionsSection";
|
|
|
|
import { EventsSection } from "./events/EventsSection";
|
|
|
|
import { RealmSettingsSection } from "./realm-settings/RealmSettingsSection";
|
|
|
|
import { AuthenticationSection } from "./authentication/AuthenticationSection";
|
|
|
|
import { IdentityProvidersSection } from "./identity-providers/IdentityProvidersSection";
|
|
|
|
import { UserFederationSection } from "./user-federation/UserFederationSection";
|
2020-09-09 09:07:17 +00:00
|
|
|
|
2020-09-10 18:04:03 +00:00
|
|
|
import { PageNotFoundSection } from "./PageNotFoundSection";
|
2020-09-17 11:37:30 +00:00
|
|
|
import { RealmContextProvider } from "./components/realm-context/RealmContext";
|
2020-09-22 12:43:51 +00:00
|
|
|
import { ClientSettings } from "./clients/ClientSettings";
|
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-17 11:37:30 +00:00
|
|
|
<RealmContextProvider>
|
|
|
|
<Help>
|
|
|
|
<Page header={<Header />} isManagedSidebar sidebar={<PageNav />}>
|
2020-09-18 08:04:55 +00:00
|
|
|
<Switch>
|
|
|
|
<Route exact path="/add-realm" component={NewRealmForm}></Route>
|
2020-09-09 09:07:17 +00:00
|
|
|
|
2020-09-18 08:04:55 +00:00
|
|
|
<Route exact path="/clients" component={ClientsSection}></Route>
|
2020-09-22 12:43:51 +00:00
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/client-settings"
|
|
|
|
component={ClientSettings}
|
|
|
|
></Route>
|
2020-09-18 08:04:55 +00:00
|
|
|
<Route exact path="/add-client" component={NewClientForm}></Route>
|
|
|
|
<Route exact path="/import-client" component={ImportForm}></Route>
|
2020-09-09 09:07:17 +00:00
|
|
|
|
2020-09-18 08:04:55 +00:00
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/client-scopes"
|
|
|
|
component={ClientScopesSection}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/realm-roles"
|
|
|
|
component={RealmRolesSection}
|
|
|
|
></Route>
|
|
|
|
<Route exact path="/users" component={UsersSection}></Route>
|
|
|
|
<Route exact path="/groups" component={GroupsSection}></Route>
|
|
|
|
<Route exact path="/sessions" component={SessionsSection}></Route>
|
|
|
|
<Route exact path="/events" component={EventsSection}></Route>
|
2020-09-09 09:07:17 +00:00
|
|
|
|
2020-09-18 08:04:55 +00:00
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/realm-settings"
|
|
|
|
component={RealmSettingsSection}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/authentication"
|
|
|
|
component={AuthenticationSection}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/identity-providers"
|
|
|
|
component={IdentityProvidersSection}
|
|
|
|
></Route>
|
|
|
|
<Route
|
|
|
|
exact
|
|
|
|
path="/user-federation"
|
|
|
|
component={UserFederationSection}
|
|
|
|
></Route>
|
2020-09-09 09:07:17 +00:00
|
|
|
|
2020-09-18 08:04:55 +00:00
|
|
|
<Route exact path="/" component={ClientsSection} />
|
|
|
|
<Route component={PageNotFoundSection} />
|
|
|
|
</Switch>
|
2020-09-17 11:37:30 +00:00
|
|
|
</Page>
|
|
|
|
</Help>
|
|
|
|
</RealmContextProvider>
|
2020-08-27 12:09:36 +00:00
|
|
|
</Router>
|
2020-08-04 12:59:41 +00:00
|
|
|
);
|
|
|
|
};
|