Skip to content

Commit ca54fc5

Browse files
authored
Merge pull request #292 from APIParkLab/feature/1.7-cxx
Feature/1.7
2 parents e7372cb + 596f6f5 commit ca54fc5

42 files changed

Lines changed: 533 additions & 212 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/packages/common/src/components/aoplatform/UnUsedWordForTranslate.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export const TranslateWord = () => {
5656
{$t('无需审核:允许任何消费者调用该服务')}
5757
{$t('人工审核:仅允许通过人工审核的消费者调用该服务')}
5858
{$t('开启:AI Agent 等产品能够通过 MCP 方式调用服务')}
59+
{$t('总览')}
5960
{$t('永久')}
6061
{$t('否')}
6162
{$t('是')}

frontend/packages/common/src/components/postcat/ApiEdit.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,16 @@ export default function ApiEdit({
234234
<>
235235
<Space.Compact className="w-full mb-btnybase">
236236
<Select
237+
showSearch
238+
optionFilterProp="label"
237239
className="w-[15%] min-w-[100px]"
238240
value={apiInfo?.protocol || 'HTTP'}
239241
disabled={true}
240242
options={protocolOptionList}
241243
/>
242244
<Select
245+
showSearch
246+
optionFilterProp="label"
243247
className="w-[15%] min-w-[100px]"
244248
value={apiInfo?.method}
245249
disabled={true}

frontend/packages/common/src/const/type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export type MatchItem = {
8181
export type EntityItem = {
8282
id: string
8383
name: string
84+
isSubscribed: boolean
8485
}
8586

8687
export type DynamicMenuItem = {

frontend/packages/common/src/contexts/GlobalStateContext.tsx

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,31 @@ const mockData = [
9999
icon: 'ic:baseline-bar-chart',
100100
children: [
101101
{
102-
name: '运行视图',
103-
key: 'analytics',
104-
path: '/analytics',
105-
icon: 'ic:baseline-bar-chart',
102+
name: '总览',
103+
key: 'analyticsTotal',
104+
path: '/analytics/total',
105+
icon: 'material-symbols:bar-chart',
106+
access: 'system.analysis.run_view.view'
107+
},
108+
{
109+
name: '服务',
110+
key: 'analyticsSubscriber',
111+
path: '/analytics/subscriber/list',
112+
icon: 'ic:baseline-blinds-closed',
113+
access: 'system.analysis.run_view.view'
114+
},
115+
{
116+
name: '消费者',
117+
key: 'analyticsProvider',
118+
path: '/analytics/provider/list',
119+
icon: 'ic:baseline-apps',
120+
access: 'system.analysis.run_view.view'
121+
},
122+
{
123+
name: 'API',
124+
key: 'analyticsApi',
125+
path: '/analytics/api/list',
126+
icon: 'gravity-ui:plug-connection',
106127
access: 'system.analysis.run_view.view'
107128
}
108129
],

frontend/packages/common/src/locales/scan/en-US.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,5 +923,9 @@
923923
"Kba68dfc1": "Add API Settings",
924924
"Kc84dbd1a": "API Portal",
925925
"Ke93388fd": "Edit API",
926-
"K84aabfd4": "Add API"
926+
"K84aabfd4": "Add API",
927+
"K71ed51fa": "Please subscribe to the service first",
928+
"K1bec8cbe": "Select API Key",
929+
"K5611e01e": "This consumer is already subscribed",
930+
"Kaf9e8011": "Overview"
927931
}

frontend/packages/common/src/locales/scan/ja-JP.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,5 +945,9 @@
945945
"Kba68dfc1": "API設定の追加",
946946
"Kc84dbd1a": "APIポータル",
947947
"Ke93388fd": "APIの編集",
948-
"K84aabfd4": "APIの追加"
948+
"K84aabfd4": "APIの追加",
949+
"K71ed51fa": "このサービスに先にサブスクリプションしてください",
950+
"K1bec8cbe": "APIキーを選択してください",
951+
"K5611e01e": "この消費者はすでに購読しています",
952+
"Kaf9e8011": "概要"
949953
}

frontend/packages/common/src/locales/scan/zh-CN.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,5 +876,9 @@
876876
"Kba68dfc1": "添加 API 设置",
877877
"Kc84dbd1a": "API 门户",
878878
"Ke93388fd": "编辑 API",
879-
"K84aabfd4": "添加 API"
879+
"K84aabfd4": "添加 API",
880+
"K71ed51fa": "请先订阅该服务",
881+
"K1bec8cbe": "选择 API Key",
882+
"K5611e01e": "该消费者已订阅",
883+
"Kaf9e8011": "总览"
880884
}

frontend/packages/common/src/locales/scan/zh-TW.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,5 +945,9 @@
945945
"Kba68dfc1": "新增 API 設定",
946946
"Kc84dbd1a": "API 門戶",
947947
"Ke93388fd": "編輯 API",
948-
"K84aabfd4": "新增 API"
948+
"K84aabfd4": "新增 API",
949+
"K71ed51fa": "請先訂閱該服務",
950+
"K1bec8cbe": "選擇 API Key",
951+
"K5611e01e": "該消費者已訂閱",
952+
"Kaf9e8011": "總覽"
949953
}

frontend/packages/core/src/const/system/const.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export const SERVICE_APPROVAL_OPTIONS = [
359359
{ label: '人工审核:仅允许通过人工审核的消费者调用该服务', value: 'manual' }
360360
]
361361
export const MCP_OPTIONS = [
362-
{ label: '关闭', value: false },
362+
{ label: '禁用', value: false },
363363
{ label: '开启:AI Agent 等产品能够通过 MCP 方式调用服务', value: true }
364364
]
365365
export const SERVICE_KIND_OPTIONS = [

frontend/packages/core/src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,11 @@ p{
11091109
width: 16px !important;
11101110
justify-content:center;
11111111
}
1112+
.ant-select .ant-select-clear {
1113+
height:16px !important;
1114+
width: 16px !important;
1115+
top: 45%;
1116+
}
11121117

11131118
.ant-table-wrapper .ant-table{
11141119
scrollbar-color: none !important;

0 commit comments

Comments
 (0)