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

Skip to content

Commit 1617b86

Browse files
committed
Remove marketplace of route and its dependencies.
1 parent 82ab433 commit 1617b86

File tree

9 files changed

+4
-294
lines changed

9 files changed

+4
-294
lines changed

viewer/packages/lowcoder/src/app.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
IMPORT_APP_FROM_TEMPLATE_URL,
1616
INVITE_LANDING_URL,
1717
isAuthUnRequired,
18-
MARKETPLACE_URL,
1918
ORG_AUTH_LOGIN_URL,
2019
ORG_AUTH_REGISTER_URL,
2120
QUERY_LIBRARY_URL,
@@ -321,7 +320,6 @@ class AppIndex extends React.Component<AppIndexProps, any> {
321320
FOLDER_URL,
322321
TRASH_URL,
323322
SETTING_URL,
324-
MARKETPLACE_URL,
325323
ADMIN_APP_URL
326324
]}
327325
// component={ApplicationListPage}

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AppViewMode, MarketplaceType } from "constants/applicationConstants";
1+
import { AppViewMode } from "constants/applicationConstants";
22
import { LocationDescriptor } from "history";
33
import { UserGuideLocationState } from "pages/tutorials/tutorialsConstant";
44
import { DatasourceType } from "@lowcoder-ee/constants/queryConstants";
@@ -20,9 +20,7 @@ export const OAUTH_PROVIDER_DETAIL = "/setting/oauth-provider/detail";
2020

2121
export const ALL_APPLICATIONS_URL = "/apps";
2222
export const ADMIN_APP_URL = "/ee/:applicationId/:viewMode";
23-
export const APPLICATION_MARKETPLACE_URL = `https://app.lowcoder.cloud/apps`;
2423
export const MODULE_APPLICATIONS_URL = "/apps/module";
25-
export const MARKETPLACE_URL = `/marketplace`;
2624
export const DATASOURCE_URL = `/datasource`;
2725
export const DATASOURCE_CREATE_URL = `${DATASOURCE_URL}/new/:datasourceType`;
2826
export const DATASOURCE_EDIT_URL = `${DATASOURCE_URL}/:datasourceId`;
@@ -48,17 +46,10 @@ export const ORG_AUTH_LOGIN_URL = `/org/:orgId/auth/login`;
4846
export const ORG_AUTH_REGISTER_URL = `/org/:orgId/auth/register`;
4947
export const ORG_AUTH_FORGOT_PASSWORD_URL = `/org/:orgId/auth/forgot-password`;
5048
export const ORG_AUTH_RESET_PASSWORD_URL = `/org/:orgId/auth/lost-password`;
51-
export const MARKETPLACE_TYPE_URL = `${MARKETPLACE_URL}/:marketplaceType`;
5249

5350
export const APPLICATION_VIEW_URL = (appId: string, viewMode: AppViewMode) =>
5451
`${ALL_APPLICATIONS_URL}/${appId}/${viewMode}`;
5552

56-
export const APPLICATION_MARKETPLACE_VIEW_URL = (appId: string, viewMode: AppViewMode) =>
57-
`${APPLICATION_MARKETPLACE_URL}/${appId}/${viewMode}`;
58-
59-
export const MARKETPLACE_URL_BY_TYPE = (type: MarketplaceType) =>
60-
`${MARKETPLACE_URL}/${type}`;
61-
6253
export const isAuthUnRequired = (pathname: string): boolean => {
6354
return (
6455
pathname.startsWith("/invite/") ||

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import styled from "styled-components";
22
import { HomeRes } from "./HomeLayout";
33
import { HomeResCard } from "./HomeResCard";
4-
import { MarketplaceResCard } from "./MarketplaceResCard";
54
import React, { useState } from "react";
65
import { MoveToFolderModal } from "./MoveToFolderModal";
76

@@ -24,9 +23,7 @@ export function HomeCardView(props: { resources: HomeRes[] }) {
2423

2524
return (
2625
<ApplicationCardsWrapper>
27-
{props.resources.map((res) => (
28-
res.isMarketplace ?
29-
<MarketplaceResCard key={res.id} res={res} /> :
26+
{props.resources.map((res) => (
3027
<HomeResCard key={res.id} res={res} onMove={setNeedMoveRes} />
3128
))}
3229
<MoveToFolderModal source={needMoveRes} onClose={() => setNeedMoveRes(undefined)} />

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
handleAppEditClick,
1212
handleAppViewClick,
1313
handleFolderViewClick,
14-
handleMarketplaceAppViewClick,
1514
HomeResInfo,
1615
} from "../../util/homeResUtils";
1716
import { HomeResOptions } from "./HomeResOptions";
@@ -196,10 +195,6 @@ export function HomeResCard(props: { res: HomeRes; onMove: (res: HomeRes) => voi
196195
history.push(APPLICATION_VIEW_URL(res.id, "view"));
197196
return;
198197
}
199-
if(res.isMarketplace) {
200-
handleMarketplaceAppViewClick(res.id);
201-
return;
202-
}
203198
res.isEditable ? handleAppEditClick(e, res.id) : handleAppViewClick(res.id);
204199
}
205200
}}
@@ -234,8 +229,6 @@ export function HomeResCard(props: { res: HomeRes; onMove: (res: HomeRes) => voi
234229
onClick={() =>
235230
res.type === HomeResTypeEnum.Folder
236231
? handleFolderViewClick(res.id)
237-
: res.isMarketplace
238-
? handleMarketplaceAppViewClick(res.id)
239232
: handleAppViewClick(res.id)
240233
}
241234
>

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
handleAppEditClick,
88
handleAppViewClick,
99
handleFolderViewClick,
10-
handleMarketplaceAppViewClick,
1110
HomeResInfo,
1211
} from "../../util/homeResUtils";
1312
import { HomeResTypeEnum } from "../../types/homeRes";
@@ -76,8 +75,6 @@ export const HomeTableView = (props: { resources: HomeRes[] }) => {
7675
}
7776
if (item.type === HomeResTypeEnum.Folder) {
7877
handleFolderViewClick(item.id);
79-
} else if(item.isMarketplace) {
80-
handleMarketplaceAppViewClick(item.id);
8178
} else {
8279
item.isEditable ? handleAppEditClick(e, item.id) : handleAppViewClick(item.id);
8380
}
@@ -212,8 +209,6 @@ export const HomeTableView = (props: { resources: HomeRes[] }) => {
212209
e.stopPropagation();
213210
return item.type === HomeResTypeEnum.Folder
214211
? handleFolderViewClick(item.id)
215-
: item.isMarketplace
216-
? handleMarketplaceAppViewClick(item.id)
217212
: handleAppViewClick(item.id);
218213
}}
219214
style={{ marginRight: "52px" }}

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

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

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

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

0 commit comments

Comments
 (0)