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

Skip to content

Commit 95361a2

Browse files
committed
Remove folder of route and its dependencies.
1 parent 65a2861 commit 95361a2

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

viewer/packages/lowcoder/src/app.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import {
1010
DATASOURCE_CREATE_URL,
1111
DATASOURCE_EDIT_URL,
1212
DATASOURCE_URL,
13-
FOLDER_URL,
14-
FOLDERS_URL,
1513
IMPORT_APP_FROM_TEMPLATE_URL,
1614
INVITE_LANDING_URL,
1715
isAuthUnRequired,

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ export const DATASOURCE_URL = `/datasource`;
2525
export const DATASOURCE_CREATE_URL = `${DATASOURCE_URL}/new/:datasourceType`;
2626
export const DATASOURCE_EDIT_URL = `${DATASOURCE_URL}/:datasourceId`;
2727
export const QUERY_LIBRARY_URL = `/query-library`;
28-
export const FOLDER_URL_PREFIX = `/folder`;
29-
export const FOLDER_URL = `${FOLDER_URL_PREFIX}/:folderId`;
30-
export const FOLDERS_URL = `/folders`;
3128
export const IMPORT_APP_FROM_TEMPLATE_URL = `${ALL_APPLICATIONS_URL}/template-import/:templateId`;
3229
export const APP_EDITOR_URL = `${ALL_APPLICATIONS_URL}/:applicationId/:viewMode/:appPageId?`;
3330

@@ -63,7 +60,6 @@ export const buildDatasourceCreateUrl = (datasourceType: DatasourceType) =>
6360
`${DATASOURCE_URL}/new/${datasourceType}`;
6461
export const buildDatasourceEditUrl = (datasourceId: string) => `${DATASOURCE_URL}/${datasourceId}`;
6562

66-
export const buildFolderUrl = (folderId: string) => `${FOLDER_URL_PREFIX}/${folderId}`;
6763

6864
export const buildAppRouteWithState = (
6965
appId: string,

viewer/packages/lowcoder/src/util/homeResUtils.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
NavDocIcon,
88
} from "lowcoder-design";
99
import { HomeResTypeEnum } from "../types/homeRes";
10-
import { APPLICATION_VIEW_URL, buildFolderUrl } from "../constants/routesURL";
10+
import { APPLICATION_VIEW_URL } from "../constants/routesURL";
1111
import history from "./history";
1212
import { trans } from "../i18n";
1313
import { FunctionComponent } from "react";
@@ -59,4 +59,3 @@ export const handleAppEditClick = (e: any, id: string): void => {
5959

6060
export const handleAppViewClick = (id: string) => window.open(APPLICATION_VIEW_URL(id, "view"), '_blank');
6161

62-
export const handleFolderViewClick = (id: string) => history.push(buildFolderUrl(id));

0 commit comments

Comments
 (0)