Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d9bf81

Browse files
committed
remove COMPONENT_DOC_URL of route
1 parent de68621 commit 1d9bf81

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

viewer/packages/lowcoder/src/app.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
APP_EDITOR_URL,
66
APPLICATION_VIEW_URL,
77
BASE_URL,
8-
COMPONENT_DOC_URL,
98
DATASOURCE_CREATE_URL,
109
DATASOURCE_EDIT_URL,
1110
DATASOURCE_URL,
@@ -306,17 +305,10 @@ class AppIndex extends React.Component<AppIndexProps, any> {
306305
path={INVITE_LANDING_URL}
307306
component={LazyInviteLanding}
308307
/>
309-
<LazyRoute
310-
path={`${COMPONENT_DOC_URL}/:name`}
311-
component={LazyComponentDoc}
312-
/>
313308
<LazyRoute
314309
path={`/playground/:name/:dsl`}
315310
component={LazyComponentPlayground}
316311
/>
317-
318-
<Redirect to={`${COMPONENT_DOC_URL}/input`} path="/components" />
319-
320312
{developEnv() && (
321313
<>
322314
<LazyRoute

viewer/packages/lowcoder/src/constants/routesURL.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { DatasourceType } from "@lowcoder-ee/constants/queryConstants";
55

66
export const BASE_URL = "/";
77
export const USER_AUTH_URL = "/user/auth";
8-
export const COMPONENT_DOC_URL = "/components";
98

109

1110
export const ALL_APPLICATIONS_URL = "/apps";
@@ -37,9 +36,8 @@ export const isAuthUnRequired = (pathname: string): boolean => {
3736
pathname.startsWith("/invite/") ||
3837
pathname.startsWith(USER_AUTH_URL) ||
3938
pathname.endsWith('/auth/login') ||
40-
pathname.endsWith('/auth/register') ||
41-
pathname.startsWith(COMPONENT_DOC_URL)
42-
);
39+
pathname.endsWith('/auth/register')
40+
)
4341
};
4442

4543
export const buildDatasourceCreateUrl = (datasourceType: DatasourceType) =>
@@ -61,6 +59,4 @@ export const buildAppRouteWithState = (
6159

6260
export function preview(applicationId: string) {
6361
window.open(APPLICATION_VIEW_URL(applicationId, "preview"));
64-
}
65-
66-
62+
}

0 commit comments

Comments
 (0)