2019-10-29 12:02:58 +00:00
|
|
|
import React from "react";
|
|
|
|
|
import EditorsRouter from "./routes";
|
|
|
|
|
import WidgetsEditor from "./WidgetsEditor";
|
|
|
|
|
import styled from "styled-components";
|
2020-09-02 06:44:01 +00:00
|
|
|
import Sidebar from "components/editorComponents/Sidebar";
|
2020-09-24 16:05:18 +00:00
|
|
|
import { Route, Switch } from "react-router";
|
2020-09-18 12:47:32 +00:00
|
|
|
import { BUILDER_URL } from "constants/routes";
|
2019-10-29 12:02:58 +00:00
|
|
|
|
2020-09-24 16:05:18 +00:00
|
|
|
import * as Sentry from "@sentry/react";
|
|
|
|
|
const SentryRoute = Sentry.withSentryRouting(Route);
|
|
|
|
|
|
2019-10-29 12:02:58 +00:00
|
|
|
const Container = styled.div`
|
|
|
|
|
display: flex;
|
2021-02-04 07:02:36 +00:00
|
|
|
height: calc(100vh - ${(props) => props.theme.smallHeaderHeight});
|
2019-10-29 12:02:58 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const EditorContainer = styled.div`
|
|
|
|
|
position: relative;
|
2020-12-24 04:32:25 +00:00
|
|
|
width: calc(100vw - ${(props) => props.theme.sidebarWidth});
|
2019-10-29 12:02:58 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const MainContainer = () => {
|
|
|
|
|
return (
|
|
|
|
|
<Container>
|
2020-09-02 06:44:01 +00:00
|
|
|
<Sidebar />
|
2019-10-29 12:02:58 +00:00
|
|
|
<EditorContainer>
|
2020-09-18 12:47:32 +00:00
|
|
|
<Switch>
|
2020-09-24 16:05:18 +00:00
|
|
|
<SentryRoute exact path={BUILDER_URL} component={WidgetsEditor} />
|
|
|
|
|
<SentryRoute component={EditorsRouter} />
|
2020-09-18 12:47:32 +00:00
|
|
|
</Switch>
|
2019-10-29 12:02:58 +00:00
|
|
|
</EditorContainer>
|
|
|
|
|
</Container>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
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
|
|
|
MainContainer.displayName = "MainContainer";
|
|
|
|
|
|
2019-10-29 12:02:58 +00:00
|
|
|
export default MainContainer;
|