Merge #11 into develop_web from feature/20251219_zy
style(web): ui update * feature/20251219_zy: (1 commits) style(web): ui update Signed-off-by: zhaoying <zhaoying@redbearai.com> Merged-by: zhaoying <zhaoying@redbearai.com> CR-link: https://codeup.aliyun.com/redbearai/python/redbear-mem-open/change/11
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { type FC, useState, useRef, useEffect } from 'react';
|
||||
import clsx from 'clsx';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { Button, Space, App, Statistic, Row, Col } from 'antd';
|
||||
import copy from 'copy-to-clipboard'
|
||||
@@ -99,9 +100,12 @@ const Api: FC<{ application: Application | null }> = ({ application }) => {
|
||||
<div className="rb:p-[20px_20px_24px_20px] rb:bg-[#F0F3F8] rb:border rb:border-[#DFE4ED] rb:rounded-lg">
|
||||
<Space size={8}>
|
||||
{['GET', 'POST', 'PUT', 'DELETE'].map((method) => (
|
||||
<Button key={method} type={activeMethods.includes(method) ? 'primary' : 'default'}>
|
||||
<div key={method} className={clsx("rb:w-20 rb:h-7 rb:leading-7 rb:text-center rb:rounded-md rb:text-regular", {
|
||||
'rb:bg-[#155EEF] rb:text-white': activeMethods.includes(method),
|
||||
'rb:bg-white': !activeMethods.includes(method),
|
||||
})}>
|
||||
{method}
|
||||
</Button>
|
||||
</div>
|
||||
))}
|
||||
</Space>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user