chore: CE EE split of routes for manage env pages (#18449)
update: routes for CE EE split env editing
This commit is contained in:
parent
876cd428f9
commit
8d09ab297b
9
app/client/src/ce/pages/routes.tsx
Normal file
9
app/client/src/ce/pages/routes.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { DATA_SOURCES_EDITOR_ID_PATH } from "constants/routes";
|
||||
import DataSourceEditor from "pages/Editor/DataSourceEditor";
|
||||
|
||||
export const DatasourceEditorRoutes = [
|
||||
{
|
||||
path: DATA_SOURCES_EDITOR_ID_PATH,
|
||||
component: DataSourceEditor,
|
||||
},
|
||||
];
|
||||
1
app/client/src/ee/pages/routes.tsx
Normal file
1
app/client/src/ee/pages/routes.tsx
Normal file
|
|
@ -0,0 +1 @@
|
|||
export * from "ce/pages/routes";
|
||||
|
|
@ -4,7 +4,6 @@ import { useLocation, useRouteMatch } from "react-router";
|
|||
import ApiEditor from "./APIEditor";
|
||||
import IntegrationEditor from "./IntegrationEditor";
|
||||
import QueryEditor from "./QueryEditor";
|
||||
import DataSourceEditor from "./DataSourceEditor";
|
||||
import JSEditor from "./JSEditor";
|
||||
import GeneratePage from "./GeneratePage";
|
||||
import CurlImportForm from "./APIEditor/CurlImportForm";
|
||||
|
|
@ -16,7 +15,6 @@ import {
|
|||
JS_COLLECTION_EDITOR_PATH,
|
||||
JS_COLLECTION_ID_PATH,
|
||||
CURL_IMPORT_PAGE_PATH,
|
||||
DATA_SOURCES_EDITOR_ID_PATH,
|
||||
PROVIDER_TEMPLATE_PATH,
|
||||
GENERATE_TEMPLATE_FORM_PATH,
|
||||
matchBuilderPath,
|
||||
|
|
@ -37,6 +35,7 @@ import { builderURL } from "RouteBuilder";
|
|||
import history from "utils/history";
|
||||
import OnboardingChecklist from "./FirstTimeUserOnboarding/Checklist";
|
||||
import { getCurrentPageId } from "selectors/editorSelectors";
|
||||
import { DatasourceEditorRoutes } from "@appsmith/pages/routes";
|
||||
|
||||
const Wrapper = styled.div<{ isVisible: boolean }>`
|
||||
position: absolute;
|
||||
|
|
@ -137,11 +136,14 @@ function EditorsRouter() {
|
|||
path={`${path}${childPath}`}
|
||||
/>
|
||||
))}
|
||||
<SentryRoute
|
||||
component={DataSourceEditor}
|
||||
exact
|
||||
path={`${path}${DATA_SOURCES_EDITOR_ID_PATH}`}
|
||||
/>
|
||||
{DatasourceEditorRoutes.map(({ component, path: childPath }) => (
|
||||
<SentryRoute
|
||||
component={component}
|
||||
exact
|
||||
key={childPath}
|
||||
path={`${path}${childPath}`}
|
||||
/>
|
||||
))}
|
||||
<SentryRoute
|
||||
component={ProviderTemplates}
|
||||
exact
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user