>
diff --git a/web/app/components/plugins/plugin-detail-panel/index.tsx b/web/app/components/plugins/plugin-detail-panel/index.tsx
index 3f60d19196..76ae8d7625 100644
--- a/web/app/components/plugins/plugin-detail-panel/index.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/index.tsx
@@ -48,6 +48,7 @@ const PluginDetailPanel: FC
= ({
{!!pluginDetail.declaration.endpoint && (
diff --git a/web/app/components/plugins/plugin-detail-panel/mock.ts b/web/app/components/plugins/plugin-detail-panel/mock.ts
index dd76c7bdbe..dffe753922 100644
--- a/web/app/components/plugins/plugin-detail-panel/mock.ts
+++ b/web/app/components/plugins/plugin-detail-panel/mock.ts
@@ -33,14 +33,14 @@ export const toolNotion = {
default: null,
options: null,
label: {
- 'en-US': 'API-key',
- 'zh-Hans': 'API-key',
+ en_US: 'API-key',
+ zh_Hans: 'API-key',
},
help: null,
url: null,
placeholder: {
- 'en-US': 'Please input your API key',
- 'zh-Hans': '请输入你的 API key',
+ en_US: 'Please input your API key',
+ zh_Hans: '请输入你的 API key',
},
},
],
@@ -81,14 +81,14 @@ export const toolNotionEndpoints = [
default: null,
options: null,
label: {
- 'en-US': 'API-key',
- 'zh-Hans': 'API-key',
+ en_US: 'API-key',
+ zh_Hans: 'API-key',
},
help: null,
url: null,
placeholder: {
- 'en-US': 'Please input your API key',
- 'zh-Hans': '请输入你的 API key',
+ en_US: 'Please input your API key',
+ zh_Hans: '请输入你的 API key',
},
},
],
diff --git a/web/app/components/plugins/types.ts b/web/app/components/plugins/types.ts
index 574b407895..2becf1e43d 100644
--- a/web/app/components/plugins/types.ts
+++ b/web/app/components/plugins/types.ts
@@ -1,4 +1,5 @@
import type { CredentialFormSchemaBase } from '../header/account-setting/model-provider-page/declarations'
+import type { ToolCredential } from '@/app/components/tools/types'
import type { Locale } from '@/i18n'
export enum PluginType {
@@ -23,11 +24,11 @@ export type PluginToolDeclaration = {
label: Record
tags: string[]
}
- credentials_schema: CredentialFormSchemaBase[] // TODO
+ credentials_schema: ToolCredential[] // TODO
}
export type PluginEndpointDeclaration = {
- settings: CredentialFormSchemaBase[]
+ settings: ToolCredential[]
endpoints: EndpointItem[]
}
diff --git a/web/i18n/en-US/plugin.ts b/web/i18n/en-US/plugin.ts
index 3866263fb7..b2ce5654ad 100644
--- a/web/i18n/en-US/plugin.ts
+++ b/web/i18n/en-US/plugin.ts
@@ -25,6 +25,8 @@ const translation = {
endpointDisableContent: 'Would you like to disable {{name}}? ',
endpointDeleteTip: 'Remove Endpoint',
endpointDeleteContent: 'Would you like to remove {{name}}? ',
+ endpointModalTitle: 'Setup endpoint',
+ endpointModalDesc: 'After configuring form, all members within the workspace can use this endpoint when orchestrating applications.',
serviceOk: 'Service OK',
disabled: 'Disabled',
modelNum: '{{num}} MODELS INCLUDED',
diff --git a/web/i18n/zh-Hans/plugin.ts b/web/i18n/zh-Hans/plugin.ts
index 26f913ce2f..69f0aeb079 100644
--- a/web/i18n/zh-Hans/plugin.ts
+++ b/web/i18n/zh-Hans/plugin.ts
@@ -25,6 +25,8 @@ const translation = {
endpointDisableContent: '是否要停用 {{name}} 的 Endpoint ?',
endpointDeleteTip: '移除 Endpoint',
endpointDeleteContent: '是否要移除 {{name}} ?',
+ endpointModalTitle: '设置 Endpoint',
+ endpointModalDesc: '配置表单后,工作区内的所有成员都可以在编排应用时使用此端点。',
serviceOk: '服务正常',
disabled: '停用',
modelNum: '{{num}} 模型已包含',