Skip to content

Commit 84a01d5

Browse files
remove stoplight docs
1 parent 6a30754 commit 84a01d5

File tree

5 files changed

+64
-1961
lines changed

5 files changed

+64
-1961
lines changed

client/packages/lowcoder/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"@rjsf/core": "^5.15.1",
3030
"@rjsf/utils": "^5.15.1",
3131
"@rjsf/validator-ajv8": "^5.15.1",
32-
"@stoplight/elements": "^8.1.3",
3332
"@types/lodash": "^4.14.194",
3433
"@types/node": "^16.7.13",
3534
"@types/react": "^18.2.45",

client/packages/lowcoder/src/pages/ApplicationV2/ApiDocLayout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled, { createGlobalStyle } from "styled-components";
22
import { trans } from "../../i18n";
3-
import { API } from '@stoplight/elements';
3+
// import { API } from '@stoplight/elements';
44
import React from 'react';
55
import { useLocation } from "react-router-dom";
66
import history from "util/history";
@@ -130,7 +130,7 @@ export function ApiDoc(props: ApiDocLayoutProps) {
130130
</StyleApiDocCover>
131131
<Card style={{ marginBottom: "20px", minHeight : "800px", width: "100%" }}>
132132
<div style={{width : "100%"}}> {/* className={styles.stoplightApidoc} */}
133-
<API
133+
{/* <API
134134
layout="responsive"
135135
hideSchemas={true}
136136
hideInternal={true}
@@ -139,7 +139,7 @@ export function ApiDoc(props: ApiDocLayoutProps) {
139139
tryItCorsProxy={isSelfHost ? undefined : 'https://api-service.lowcoder.cloud'}
140140
basePath={API_DOCS_URL}
141141
apiDescriptionUrl="https://api-service.lowcoder.cloud/api/docs/api-docs"
142-
/>
142+
/> */}
143143
</div>
144144
</Card>
145145

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { Layout } from "../../components/layout/Layout";
4949
import { HomeView } from "./HomeView";
5050
import { UserProfileView } from "./UserProfileView";
5151
import { NewsView } from "./NewsView";
52-
import { ApiDocView } from "./ApiDocView";
52+
// import { ApiDocView } from "./ApiDocView";
5353
import { OrgView } from "./OrgView";
5454
import styled, { css } from "styled-components";
5555
import history from "../../util/history";
@@ -444,13 +444,13 @@ export default function ApplicationHome() {
444444
visible: ({ user }) => user.orgDev,
445445
onSelected: (_, currentPath) => currentPath.split("/")[1] === "datasource",
446446
},
447-
{
448-
text: <TabLabel>{trans("home.api")}</TabLabel>,
449-
routePath: API_DOCS_URL,
450-
routeComp: ApiDocView,
451-
icon: ({ selected, ...otherProps }) => selected ? <APIDocsIcon {...otherProps} width={"24px"}/> : <APIDocsIcon {...otherProps} width={"24px"}/>,
452-
visible: ({ user }) => user.orgDev,
453-
}
447+
// {
448+
// text: <TabLabel>{trans("home.api")}</TabLabel>,
449+
// routePath: API_DOCS_URL,
450+
// routeComp: ApiDocView,
451+
// icon: ({ selected, ...otherProps }) => selected ? <APIDocsIcon {...otherProps} width={"24px"}/> : <APIDocsIcon {...otherProps} width={"24px"}/>,
452+
// visible: ({ user }) => user.orgDev,
453+
// }
454454
],
455455
},
456456
isEE() ? {

client/packages/lowcoder/src/pages/setting/apiDocs/index.tsx

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

0 commit comments

Comments
 (0)