Skip to content

Commit

Permalink
perf: perf docs, ui
Browse files Browse the repository at this point in the history
  • Loading branch information
rookie-luochao committed Jan 22, 2024
1 parent 62a881c commit eee05a5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
## 网站域名
* CN: [www.openapi-ui.com](https://www.openapi-ui.com)
* US: [docs.openapi-ui.com](https://docs.openapi-ui.com)
* US2: [doc.openapi-ui.com](https://doc.openapi-ui.com)

## 快速开始
```bash
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A simpler and more beautiful openapi document than swagger-ui, quickly generate
## Website domain
* CN: [www.openapi-ui.com](https://www.openapi-ui.com)
* US: [docs.openapi-ui.com](https://docs.openapi-ui.com)
* US2: [doc.openapi-ui.com](https://doc.openapi-ui.com)

## Quick start
```bash
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/HttpRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function HeadRow({ field, value }: IHeadRowProps) {
return (
<span css={{ display: "block" }}>
<span css={{ fontWeight: "bold", marginRight: "0.5em" }}>{field}:</span>
<span>{value}</span>
<span>{value}&nbsp;&nbsp;&nbsp;</span>
</span>
);
}
Expand Down
3 changes: 1 addition & 2 deletions src/openapi/RequestBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ function renderRequestBody(requestBody: IRequestBody, schemas: Dictionary<ISchem
function CreateCURL({ request }: { request: AxiosRequestConfig }) {
const { t } = useTranslation();
const cURL = generateCURL(request);
console.log("cURL", cURL);

return (
<div>
Expand All @@ -125,7 +124,7 @@ function CreateCURL({ request }: { request: AxiosRequestConfig }) {
复制
</Button>
</div>
<pre css={[{ width: 672, fontSize: dsc.fontSize.xs }, httpCardWrapStyle]}>{cURL}</pre>
<pre css={[{ width: 772, fontSize: dsc.fontSize.xs }, httpCardWrapStyle]}>{cURL}</pre>
</div>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/openapi/RequestParameterInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const RequestParameterInput = ({
{...commonProps}
schema={schema.items}
value={value}
onChange={(nextValue: string) => {
onChange={(nextValue) => {
commonProps.onChange(map(commonProps.value, (val, idx) => (index === idx ? nextValue : val)));
}}
/>
Expand Down

0 comments on commit eee05a5

Please sign in to comment.