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

Skip to content

Commit 46bed57

Browse files
committed
remove mews, marketplace and trash
1 parent 72bb928 commit 46bed57

File tree

5 files changed

+1
-138
lines changed

5 files changed

+1
-138
lines changed

viewer/packages/lowcoder/src/app.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { default as App } from "antd/es/app";
22
import { default as ConfigProvider } from "antd/es/config-provider";
33
import {
44
USER_PROFILE_URL,
5-
NEWS_URL,
65
ORG_HOME_URL,
76
ALL_APPLICATIONS_URL,
87
APP_EDITOR_URL,
@@ -17,11 +16,9 @@ import {
1716
IMPORT_APP_FROM_TEMPLATE_URL,
1817
INVITE_LANDING_URL,
1918
isAuthUnRequired,
20-
MARKETPLACE_URL,
2119
ORG_AUTH_LOGIN_URL,
2220
ORG_AUTH_REGISTER_URL,
2321
QUERY_LIBRARY_URL,
24-
TRASH_URL,
2522
USER_AUTH_URL,
2623
ADMIN_APP_URL,
2724
ORG_AUTH_FORGOT_PASSWORD_URL,
@@ -311,7 +308,6 @@ class AppIndex extends React.Component<AppIndexProps, any> {
311308
fallback="layout"
312309
path={[
313310
USER_PROFILE_URL,
314-
NEWS_URL,
315311
ORG_HOME_URL,
316312
ALL_APPLICATIONS_URL,
317313
DATASOURCE_CREATE_URL,
@@ -320,8 +316,6 @@ class AppIndex extends React.Component<AppIndexProps, any> {
320316
QUERY_LIBRARY_URL,
321317
FOLDERS_URL,
322318
FOLDER_URL,
323-
TRASH_URL,
324-
MARKETPLACE_URL,
325319
ADMIN_APP_URL
326320
]}
327321
// component={ApplicationListPage}

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ import { DatasourceType } from "@lowcoder-ee/constants/queryConstants";
66
export const BASE_URL = "/";
77
export const USER_AUTH_URL = "/user/auth";
88
export const USER_PROFILE_URL = "/user/profile";
9-
export const NEWS_URL = "/news";
109
export const ORG_HOME_URL = "/org/home";
1110
export const COMPONENT_DOC_URL = "/components";
1211

1312
export const ALL_APPLICATIONS_URL = "/apps";
1413
export const ADMIN_APP_URL = "/ee/:applicationId/:viewMode";
1514
export const APPLICATION_MARKETPLACE_URL = `https://app.lowcoder.cloud/apps`;
1615
export const MODULE_APPLICATIONS_URL = "/apps/module";
17-
export const MARKETPLACE_URL = `/marketplace`;
1816
export const DATASOURCE_URL = `/datasource`;
1917
export const DATASOURCE_CREATE_URL = `${DATASOURCE_URL}/new/:datasourceType`;
2018
export const DATASOURCE_EDIT_URL = `${DATASOURCE_URL}/:datasourceId`;
2119
export const QUERY_LIBRARY_URL = `/query-library`;
2220
export const FOLDER_URL_PREFIX = `/folder`;
2321
export const FOLDER_URL = `${FOLDER_URL_PREFIX}/:folderId`;
2422
export const FOLDERS_URL = `/folders`;
25-
export const TRASH_URL = `/trash`;
2623
export const IMPORT_APP_FROM_TEMPLATE_URL = `${ALL_APPLICATIONS_URL}/template-import/:templateId`;
2724
export const APP_EDITOR_URL = `${ALL_APPLICATIONS_URL}/:applicationId/:viewMode/:appPageId?`;
2825

@@ -40,7 +37,6 @@ export const ORG_AUTH_LOGIN_URL = `/org/:orgId/auth/login`;
4037
export const ORG_AUTH_REGISTER_URL = `/org/:orgId/auth/register`;
4138
export const ORG_AUTH_FORGOT_PASSWORD_URL = `/org/:orgId/auth/forgot-password`;
4239
export const ORG_AUTH_RESET_PASSWORD_URL = `/org/:orgId/auth/lost-password`;
43-
export const MARKETPLACE_TYPE_URL = `${MARKETPLACE_URL}/:marketplaceType`;
4440

4541
export const APPLICATION_VIEW_URL = (appId: string, viewMode: AppViewMode) =>
4642
`${ALL_APPLICATIONS_URL}/${appId}/${viewMode}`;
@@ -50,8 +46,6 @@ export const APPLICATION_MARKETPLACE_VIEW_URL = (
5046
viewMode: AppViewMode
5147
) => `${APPLICATION_MARKETPLACE_URL}/${appId}/${viewMode}`;
5248

53-
export const MARKETPLACE_URL_BY_TYPE = (type: MarketplaceType) =>
54-
`${MARKETPLACE_URL}/${type}`;
5549

5650
export const isAuthUnRequired = (pathname: string): boolean => {
5751
return (

viewer/packages/lowcoder/src/pages/ApplicationV2/MarketplaceView.tsx

Lines changed: 0 additions & 66 deletions
This file was deleted.

viewer/packages/lowcoder/src/pages/ApplicationV2/TrashView.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

viewer/packages/lowcoder/src/pages/ApplicationV2/index.tsx

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ import {
55
FOLDER_URL,
66
FOLDER_URL_PREFIX,
77
FOLDERS_URL,
8-
MARKETPLACE_URL,
98
MODULE_APPLICATIONS_URL,
109
QUERY_LIBRARY_URL,
11-
TRASH_URL,
1210
// ADMIN_APP_URL,
13-
NEWS_URL,
1411
ORG_HOME_URL,
1512
} from "constants/routesURL";
1613
import { getUser, isFetchingUser } from "redux/selectors/usersSelectors";
@@ -49,8 +46,6 @@ import { OrgView } from "./OrgView";
4946
import styled, { css } from "styled-components";
5047
import history from "../../util/history";
5148
import { FolderView } from "./FolderView";
52-
import { TrashView } from "./TrashView";
53-
import { MarketplaceView } from "./MarketplaceView";
5449
import { SideBarItemType } from "../../components/layout/SideBarSection";
5550
import { RootFolderListView } from "./RootFolderListView";
5651
import InviteDialog from "../common/inviteDialog";
@@ -356,29 +351,14 @@ export default function ApplicationHome() {
356351
routeComp: UserProfileView,
357352
icon: ({ selected, ...otherProps }) => selected ? <UserIcon {...otherProps} width={"24px"} /> : <UserIcon {...otherProps} width={"24px"} />,
358353
},
359-
{
360-
text: <TabLabel>{trans("home.news")}</TabLabel>,
361-
routePath: NEWS_URL,
362-
routeComp: NewsView,
363-
icon: ({ selected, ...otherProps }) => selected ? <NewsIcon {...otherProps} width={"24px"} /> : <NewsIcon {...otherProps} width={"24px"} />,
364-
visible: ({ user }) => user.orgDev,
365-
style: { color: "red" },
366-
},
367354
{
368355
text: <TabLabel>{trans("home.orgHome")}</TabLabel>,
369356
routePath: ORG_HOME_URL,
370357
routePathExact: false,
371358
routeComp: OrgView,
372359
icon: ({ selected, ...otherProps }) => selected ? <WorkspacesIcon {...otherProps} width={"24px"} /> : <WorkspacesIcon {...otherProps} width={"24px"} />,
373360
visible: ({ user }) => !user.orgDev,
374-
},
375-
{
376-
text: <TabLabel>{trans("home.marketplace")}</TabLabel>,
377-
routePath: MARKETPLACE_URL,
378-
routePathExact: false,
379-
routeComp: MarketplaceView,
380-
icon: ({ selected, ...otherProps }) => selected ? <MarketplaceIcon {...otherProps} width={"24px"} /> : <MarketplaceIcon {...otherProps} width={"24px"} />,
381-
},
361+
}
382362
]
383363
},
384364

@@ -453,18 +433,6 @@ export default function ApplicationHome() {
453433
],
454434
} : { items: [] },
455435

456-
{
457-
items: [
458-
{
459-
text: <TabLabel>{trans("home.trash")}</TabLabel>,
460-
routePath: TRASH_URL,
461-
routeComp: TrashView,
462-
icon: ({ selected, ...otherProps }) => selected ? <RecyclerIcon {...otherProps} width={"24px"} /> : <RecyclerIcon {...otherProps} width={"24px"} />,
463-
visible: ({ user }) => user.orgDev,
464-
},
465-
],
466-
},
467-
468436
]}
469437
/>
470438

0 commit comments

Comments
 (0)