2020-08-03 14:18:48 +00:00
|
|
|
import React, { Suspense } from "react";
|
|
|
|
|
import history from "utils/history";
|
|
|
|
|
import AppHeader from "pages/common/AppHeader";
|
|
|
|
|
import { Redirect, Router, Switch } from "react-router-dom";
|
|
|
|
|
import AppRoute from "pages/common/AppRoute";
|
|
|
|
|
import {
|
|
|
|
|
APP_VIEW_URL,
|
|
|
|
|
APPLICATIONS_URL,
|
|
|
|
|
AUTH_LOGIN_URL,
|
|
|
|
|
BASE_LOGIN_URL,
|
|
|
|
|
BASE_SIGNUP_URL,
|
|
|
|
|
BASE_URL,
|
|
|
|
|
BUILDER_URL,
|
|
|
|
|
ORG_URL,
|
|
|
|
|
PAGE_NOT_FOUND_URL,
|
|
|
|
|
SIGN_UP_URL,
|
|
|
|
|
USER_AUTH_URL,
|
|
|
|
|
USERS_URL,
|
|
|
|
|
} from "constants/routes";
|
|
|
|
|
import OrganizationLoader from "pages/organization/loader";
|
|
|
|
|
import ApplicationListLoader from "pages/Applications/loader";
|
|
|
|
|
import EditorLoader from "pages/Editor/loader";
|
|
|
|
|
import AppViewerLoader from "pages/AppViewer/loader";
|
|
|
|
|
import LandingScreen from "./LandingScreen";
|
|
|
|
|
import UserAuth from "pages/UserAuth";
|
|
|
|
|
import Users from "pages/users";
|
|
|
|
|
import PageNotFound from "pages/common/PageNotFound";
|
|
|
|
|
import Loader from "pages/common/Loader";
|
|
|
|
|
|
|
|
|
|
const loadingIndicator = <Loader />;
|
|
|
|
|
|
|
|
|
|
class AppRouter extends React.Component<any, any> {
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
|
|
|
|
<Router history={history}>
|
|
|
|
|
<Suspense fallback={loadingIndicator}>
|
|
|
|
|
<AppHeader />
|
|
|
|
|
<Switch>
|
|
|
|
|
<AppRoute
|
|
|
|
|
exact
|
|
|
|
|
path={BASE_URL}
|
|
|
|
|
component={LandingScreen}
|
|
|
|
|
name={"App"}
|
|
|
|
|
/>
|
|
|
|
|
<Redirect exact from={BASE_LOGIN_URL} to={AUTH_LOGIN_URL} />
|
|
|
|
|
<Redirect exact from={BASE_SIGNUP_URL} to={SIGN_UP_URL} />
|
|
|
|
|
<AppRoute
|
|
|
|
|
path={ORG_URL}
|
|
|
|
|
component={OrganizationLoader}
|
|
|
|
|
name={"Organisation"}
|
|
|
|
|
/>
|
Feature/entity browse (#220)
# New Feature: Entity Explorer
- Entities are actions (apis and queries), datasources, pages, and widgets
- With this new feature, all entities in the application will be available
to view in the new entity explorer sidebar
- All existing application features from the api sidebar, query sidebar, datasource sidebar and pages sidebar
now are avialable on the entity explorer sidebar
- Users are now able to quickly switch to any entity in the application from the entity explorer sidebar.
- Users can also search all entities in the application from the new sidebar. Use cmd + f or ctrl + f to focus on the search input
- Users can rename entities from the new sidebar
- Users can also perform contextual actions on these entities like set a page as home page, copy/move actions, delete entity, etc from the context menu available alongside the entities in the sidebar
- Users can view the properties of the entities in the sidebar, as well as copy bindings to use in the application.
2020-08-10 08:52:45 +00:00
|
|
|
<AppRoute exact path={USERS_URL} component={Users} name={"Users"} />
|
2020-08-03 14:18:48 +00:00
|
|
|
<AppRoute
|
|
|
|
|
path={USER_AUTH_URL}
|
|
|
|
|
component={UserAuth}
|
|
|
|
|
name={"UserAuth"}
|
|
|
|
|
/>
|
|
|
|
|
<AppRoute
|
|
|
|
|
exact
|
|
|
|
|
path={APPLICATIONS_URL}
|
|
|
|
|
component={ApplicationListLoader}
|
|
|
|
|
name={"Home"}
|
|
|
|
|
/>
|
|
|
|
|
<AppRoute
|
|
|
|
|
path={BUILDER_URL}
|
|
|
|
|
component={EditorLoader}
|
|
|
|
|
name={"Editor"}
|
|
|
|
|
/>
|
|
|
|
|
<AppRoute
|
|
|
|
|
path={APP_VIEW_URL}
|
|
|
|
|
component={AppViewerLoader}
|
|
|
|
|
name={"AppViewer"}
|
|
|
|
|
logDisable
|
|
|
|
|
/>
|
|
|
|
|
<AppRoute
|
|
|
|
|
exact
|
|
|
|
|
path={PAGE_NOT_FOUND_URL}
|
|
|
|
|
component={PageNotFound}
|
|
|
|
|
name={"PageNotFound"}
|
|
|
|
|
/>
|
|
|
|
|
<AppRoute component={PageNotFound} name={"PageNotFound"} />
|
|
|
|
|
</Switch>
|
|
|
|
|
</Suspense>
|
|
|
|
|
</Router>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default AppRouter;
|