diff --git a/frontend/packages/common/src/components/aoplatform/UnUsedWordForTranslate.tsx b/frontend/packages/common/src/components/aoplatform/UnUsedWordForTranslate.tsx index 939fe6d9..7298d6cb 100644 --- a/frontend/packages/common/src/components/aoplatform/UnUsedWordForTranslate.tsx +++ b/frontend/packages/common/src/components/aoplatform/UnUsedWordForTranslate.tsx @@ -56,6 +56,7 @@ export const TranslateWord = () => { {$t('无需审核:允许任何消费者调用该服务')} {$t('人工审核:仅允许通过人工审核的消费者调用该服务')} {$t('开启:AI Agent 等产品能够通过 MCP 方式调用服务')} + {$t('总览')} {$t('永久')} {$t('否')} {$t('是')} diff --git a/frontend/packages/common/src/components/postcat/ApiEdit.tsx b/frontend/packages/common/src/components/postcat/ApiEdit.tsx index 9fb41e90..9bb654a7 100644 --- a/frontend/packages/common/src/components/postcat/ApiEdit.tsx +++ b/frontend/packages/common/src/components/postcat/ApiEdit.tsx @@ -234,12 +234,16 @@ export default function ApiEdit({ <> { diff --git a/frontend/packages/core/src/pages/aiService/api/AiServiceInsideRouterModelConfig.tsx b/frontend/packages/core/src/pages/aiService/api/AiServiceInsideRouterModelConfig.tsx index 70bce5e3..dc0ca865 100644 --- a/frontend/packages/core/src/pages/aiService/api/AiServiceInsideRouterModelConfig.tsx +++ b/frontend/packages/core/src/pages/aiService/api/AiServiceInsideRouterModelConfig.tsx @@ -163,6 +163,8 @@ const AiServiceRouterModelConfig = forwardRef label={$t('模型类型')} name="type" rules={[{ required: true }]}> ((props: any, ref: any ((props, ref: any) > label={$t('模型类型')} name="type" rules={[{ required: true }]}> + +
+ {apiKey} + handleCopy(apiKey)} + sx={{ + position: 'absolute', + top: '0px', + right: '5px', + color: '#999', + transition: 'none', + '&.MuiButtonBase-root:hover': { + background: 'transparent', + color: '#3D46F2', + transition: 'none' + } + }} + > +
+
+ + ) : ( + <> + + + )} + + ) : ( + + + + )} )} - handleCopy(configContent)} - sx={{ - position: 'absolute', - top: '5px', - right: '5px', - color: '#999', - transition: 'none', - '&.MuiButtonBase-root:hover': { - background: 'transparent', - color: '#3D46F2', - transition: 'none' - } - }} - > - - - {activeTab === 'mcp' && ( - <> -
API Key
- {apiKeyList.length ? ( - <> - x.id)} diff --git a/frontend/packages/core/src/pages/partitions/DashboardSettingEdit.tsx b/frontend/packages/core/src/pages/partitions/DashboardSettingEdit.tsx index d133e6ea..1d4897b7 100644 --- a/frontend/packages/core/src/pages/partitions/DashboardSettingEdit.tsx +++ b/frontend/packages/core/src/pages/partitions/DashboardSettingEdit.tsx @@ -60,7 +60,13 @@ export type DashboardSettingEditProps = { name="driver" rules={[{ required: true }]} > -
diff --git a/frontend/packages/core/src/pages/policy/FilterForm.tsx b/frontend/packages/core/src/pages/policy/FilterForm.tsx index 1c3a1bb8..361d1c6f 100644 --- a/frontend/packages/core/src/pages/policy/FilterForm.tsx +++ b/frontend/packages/core/src/pages/policy/FilterForm.tsx @@ -301,7 +301,13 @@ const FilterForm = forwardRef( return (
- ((_,ref) => { name="type" rules={[{ required: true }]} > - + diff --git a/frontend/packages/core/src/pages/policy/dataMasking/DataMaskingRuleForm.tsx b/frontend/packages/core/src/pages/policy/dataMasking/DataMaskingRuleForm.tsx index 6393481d..705db146 100644 --- a/frontend/packages/core/src/pages/policy/dataMasking/DataMaskingRuleForm.tsx +++ b/frontend/packages/core/src/pages/policy/dataMasking/DataMaskingRuleForm.tsx @@ -146,6 +146,8 @@ const DataMaskRuleForm: React.FC = ({ = ({ ((_, ref) => { {!onEdit && ( label={$t('所属团队')} name="team" rules={[{ required: true }]}> { diff --git a/frontend/packages/core/src/pages/system/SystemList.tsx b/frontend/packages/core/src/pages/system/SystemList.tsx index 06b53ab5..321976ed 100644 --- a/frontend/packages/core/src/pages/system/SystemList.tsx +++ b/frontend/packages/core/src/pages/system/SystemList.tsx @@ -180,10 +180,24 @@ const SystemList: FC = () => { - {$t(SERVICE_KIND_OPTIONS.find((x) => x.value === record.service_kind)?.label || '-')} - {record.enable_mcp && ( - MCP - )} + + {SERVICE_KIND_OPTIONS.find((x) => x.value === record.service_kind)?.label || '-'} + + {record?.enable_mcp && ( + + MCP + + )} ) } diff --git a/frontend/packages/core/src/pages/system/api/SystemInsideApiProxy.tsx b/frontend/packages/core/src/pages/system/api/SystemInsideApiProxy.tsx index c47b2b1e..adc87901 100644 --- a/frontend/packages/core/src/pages/system/api/SystemInsideApiProxy.tsx +++ b/frontend/packages/core/src/pages/system/api/SystemInsideApiProxy.tsx @@ -30,7 +30,10 @@ const SystemInsideApiProxy = forwardRefPROXY_HEADER_CONFIG.map((x)=>({ ...x, ...(x.key === 'optType' ? { - component: ({...x, label:$t(x.label)}))}/> } : {}) })) ,[state.language]) diff --git a/frontend/packages/core/src/pages/system/api/SystemInsideRouterCreate.tsx b/frontend/packages/core/src/pages/system/api/SystemInsideRouterCreate.tsx index 3b3e9cc4..5ce1ecb4 100644 --- a/frontend/packages/core/src/pages/system/api/SystemInsideRouterCreate.tsx +++ b/frontend/packages/core/src/pages/system/api/SystemInsideRouterCreate.tsx @@ -179,6 +179,8 @@ const SystemInsideRouterCreate = forwardRef { return { label: $t(value), value: key } @@ -192,6 +194,8 @@ const SystemInsideRouterCreate = forwardRef { return { label: $t(value), value: key } @@ -252,6 +256,8 @@ const SystemInsideRouterCreate = forwardRef label={$t('请求协议')} name="protocols" rules={[{ required: true }]}> label={$t('请求方式')} name="methods" rules={[{ required: true }]}> ({...x, label:$t(x.label)}))}/> + component: + @@ -192,7 +192,7 @@ const globalConfigNodesRule: FormItemProps['rules'] = [ name="passHost" rules={[{ required: true }]} > - setFormShowHost(val === 'rewrite')}> diff --git a/frontend/packages/core/src/pages/team/TeamConfig.tsx b/frontend/packages/core/src/pages/team/TeamConfig.tsx index 7be89f56..b8ab0c42 100644 --- a/frontend/packages/core/src/pages/team/TeamConfig.tsx +++ b/frontend/packages/core/src/pages/team/TeamConfig.tsx @@ -205,6 +205,8 @@ const TeamConfig = forwardRef((props, ref) => rules={[{ required: true }]} > () - const [activeKey, setActiveKey] = useState('total') const navigateTo = useNavigate() useEffect(() => { - setActiveKey(dashboardType || 'total') + const activeKey = dashboardType || 'total' + navigateTo(`/analytics/${activeKey === 'total' ? activeKey : `${activeKey}/list`}`) }, [dashboardType]) - const monitorTabItems: TabsProps['items'] = [ - { - label: $t('监控总览'), - key: 'total', - children: - }, - { - label: $t('服务被调用统计'), - key: 'subscriber', - children: - }, - { - label: $t('消费者调用统计'), - key: 'provider', - children: - }, - { - label: $t('API 调用统计'), - key: 'api', - children: - } - ] - return ( <> - { - setActiveKey(val) - navigateTo(`/analytics/${val === 'total' ? val : `${val}/list`}`) - }} - items={monitorTabItems} - className="h-full overflow-hidden mt-[6px] [&>.ant-tabs-content-holder]:overflow-auto [&>.ant-tabs-content-holder]:pr-PAGE_INSIDE_X [&>.ant-tabs-content-holder>.ant-tabs-content]:h-full [&>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane]:h-full" - size="small" - tabBarStyle={{ paddingLeft: '10px', marginTop: '0px', marginBottom: '0px' }} - /> + ) } diff --git a/frontend/packages/market/src/index.css b/frontend/packages/market/src/index.css index 69e22726..e5752ce5 100644 --- a/frontend/packages/market/src/index.css +++ b/frontend/packages/market/src/index.css @@ -1053,6 +1053,11 @@ p{ .ant-table-wrapper .ant-table{ scrollbar-color: none !important; } +.ant-select .ant-select-clear { + height:16px !important; + width: 16px !important; + top: 45%; +} .eo_page_drag .ant-table-body{ overflow-y: auto !important; diff --git a/frontend/packages/market/src/pages/serviceHub/ApplyServiceModal.tsx b/frontend/packages/market/src/pages/serviceHub/ApplyServiceModal.tsx index 382392dc..4ca9647a 100644 --- a/frontend/packages/market/src/pages/serviceHub/ApplyServiceModal.tsx +++ b/frontend/packages/market/src/pages/serviceHub/ApplyServiceModal.tsx @@ -2,7 +2,7 @@ import WithPermission from '@common/components/aoplatform/WithPermission' import { BasicResponse, RESPONSE_TIPS, STATUS_CODE } from '@common/const/const' import { useFetch } from '@common/hooks/http' import { $t } from '@common/locales' -import { App, Col, Form, Input, Row, Select } from 'antd' +import { App, Col, Form, Input, Row, Select, Tooltip } from 'antd' import { forwardRef, useEffect, useImperativeHandle } from 'react' import { ApplyServiceHandle, ApplyServiceProps } from '../../const/serviceHub/type' @@ -70,11 +70,23 @@ export const ApplyServiceModal = forwardRef { } + indicator={ +
+
+ +
+
+ } spinning={filterOption.listLoading} > {filterOption.showServicesList && filterOption.showServicesList.length > 0 ? ( @@ -189,7 +195,12 @@ const ServiceHubList: FC = () => { }} /> ) : ( - + <> + {!filterOption.listLoading && + (!filterOption.showServicesList || filterOption.showServicesList.length === 0) && ( + + )} + )}
@@ -225,7 +236,7 @@ const CardTitle = (service: ServiceHubTableListItem) => {
{ {service.catalogue?.name || '-'} @@ -242,7 +253,7 @@ const CardTitle = (service: ServiceHubTableListItem) => { {service?.enableMcp && ( label={$t('所属团队')} name="team" rules={[{ required: true }]}>