File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed
viewer/packages/lowcoder/src Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 5
5
APP_EDITOR_URL ,
6
6
APPLICATION_VIEW_URL ,
7
7
BASE_URL ,
8
- COMPONENT_DOC_URL ,
9
8
DATASOURCE_CREATE_URL ,
10
9
DATASOURCE_EDIT_URL ,
11
10
DATASOURCE_URL ,
@@ -306,17 +305,10 @@ class AppIndex extends React.Component<AppIndexProps, any> {
306
305
path = { INVITE_LANDING_URL }
307
306
component = { LazyInviteLanding }
308
307
/>
309
- < LazyRoute
310
- path = { `${ COMPONENT_DOC_URL } /:name` }
311
- component = { LazyComponentDoc }
312
- />
313
308
< LazyRoute
314
309
path = { `/playground/:name/:dsl` }
315
310
component = { LazyComponentPlayground }
316
311
/>
317
-
318
- < Redirect to = { `${ COMPONENT_DOC_URL } /input` } path = "/components" />
319
-
320
312
{ developEnv ( ) && (
321
313
< >
322
314
< LazyRoute
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { DatasourceType } from "@lowcoder-ee/constants/queryConstants";
5
5
6
6
export const BASE_URL = "/" ;
7
7
export const USER_AUTH_URL = "/user/auth" ;
8
- export const COMPONENT_DOC_URL = "/components" ;
9
8
10
9
11
10
export const ALL_APPLICATIONS_URL = "/apps" ;
@@ -37,9 +36,8 @@ export const isAuthUnRequired = (pathname: string): boolean => {
37
36
pathname . startsWith ( "/invite/" ) ||
38
37
pathname . startsWith ( USER_AUTH_URL ) ||
39
38
pathname . endsWith ( '/auth/login' ) ||
40
- pathname . endsWith ( '/auth/register' ) ||
41
- pathname . startsWith ( COMPONENT_DOC_URL )
42
- ) ;
39
+ pathname . endsWith ( '/auth/register' )
40
+ )
43
41
} ;
44
42
45
43
export const buildDatasourceCreateUrl = ( datasourceType : DatasourceType ) =>
@@ -61,6 +59,4 @@ export const buildAppRouteWithState = (
61
59
62
60
export function preview ( applicationId : string ) {
63
61
window . open ( APPLICATION_VIEW_URL ( applicationId , "preview" ) ) ;
64
- }
65
-
66
-
62
+ }
You can’t perform that action at this time.
0 commit comments