-
{t('app.answerIcon.title')}
+
{t('app.answerIcon.title')}
setInputInfo({ ...inputInfo, use_icon_as_answer_icon: v })}
/>
-
{t('app.answerIcon.description')}
+
{t('app.answerIcon.description')}
)}
- item.supported)}
defaultValue={language}
onSelect={item => setLanguage(item.value as Language)}
/>
-
{t(`${prefixSettings}.workflow.title`)}
+
{t(`${prefixSettings}.workflow.title`)}
-
{t(`${prefixSettings}.workflow.subTitle`)}
+
{t(`${prefixSettings}.workflow.subTitle`)}
setInputInfo({ ...inputInfo, show_workflow_steps: v })}
/>
-
{t(`${prefixSettings}.workflow.showDesc`)}
+
{t(`${prefixSettings}.workflow.showDesc`)}
- {isChat && <> {t(`${prefixSettings}.chatColorTheme`)}
- {t(`${prefixSettings}.chatColorThemeDesc`)}
+ {isChat && <> {t(`${prefixSettings}.chatColorTheme`)}
+ {t(`${prefixSettings}.chatColorThemeDesc`)}
= ({
placeholder='E.g #A020F0'
/>
-
{t(`${prefixSettings}.chatColorThemeInverted`)}
+
{t(`${prefixSettings}.chatColorThemeInverted`)}
setInputInfo({ ...inputInfo, chatColorThemeInverted: v })}>
>}
{systemFeatures.enable_web_sso_switch_component &&
-
{t(`${prefixSettings}.sso.label`)}
+
{t(`${prefixSettings}.sso.label`)}
-
{t(`${prefixSettings}.sso.title`)}
+
{t(`${prefixSettings}.sso.title`)}
= ({
setInputInfo({ ...inputInfo, enable_sso: v })}>
-
{t(`${prefixSettings}.sso.description`)}
+
{t(`${prefixSettings}.sso.description`)}
}
{!isShowMore && setIsShowMore(true)}>
-
{t(`${prefixSettings}.more.entry`)}
-
+
{t(`${prefixSettings}.more.entry`)}
+
-
{t(`${prefixSettings}.more.copyright`)} & {t(`${prefixSettings}.more.privacyPolicy`)}
+
{t(`${prefixSettings}.more.copyright`)} & {t(`${prefixSettings}.more.privacyPolicy`)}
}
{isShowMore && <>
-
-
{t(`${prefixSettings}.more.copyright`)}
+
+
{t(`${prefixSettings}.more.copyright`)}
-
{t(`${prefixSettings}.more.privacyPolicy`)}
-
+
{t(`${prefixSettings}.more.privacyPolicy`)}
+
}}
+ components={{ privacyPolicyLink: }}
/>
= ({
onChange={onChange('privacyPolicy')}
placeholder={t(`${prefixSettings}.more.privacyPolicyPlaceholder`) as string}
/>
-
{t(`${prefixSettings}.more.customDisclaimer`)}
-
{t(`${prefixSettings}.more.customDisclaimerTip`)}
+
{t(`${prefixSettings}.more.customDisclaimer`)}
+
{t(`${prefixSettings}.more.customDisclaimerTip`)}
-
+
+
{children}
-
+
{
copy(value)
setIsCopied(true)
@@ -49,13 +49,13 @@ const InputCopy = ({
-
+
-
-
{
+
+
{
copy(value)
setIsCopied(true)
}}>
diff --git a/web/app/components/develop/secret-key/secret-key-generate.tsx b/web/app/components/develop/secret-key/secret-key-generate.tsx
index 14b862f68a..07cdf11c48 100644
--- a/web/app/components/develop/secret-key/secret-key-generate.tsx
+++ b/web/app/components/develop/secret-key/secret-key-generate.tsx
@@ -23,14 +23,14 @@ const SecretKeyGenerateModal = ({
const { t } = useTranslation()
return (
-
- {t('appApi.apiKeyModal.generateTips')}
+
+ {t('appApi.apiKeyModal.generateTips')}
-
diff --git a/web/app/components/develop/secret-key/secret-key-modal.tsx b/web/app/components/develop/secret-key/secret-key-modal.tsx
index dbb5cc37c7..54b833edef 100644
--- a/web/app/components/develop/secret-key/secret-key-modal.tsx
+++ b/web/app/components/develop/secret-key/secret-key-modal.tsx
@@ -98,37 +98,37 @@ const SecretKeyModal = ({
return (
-
- {t('appApi.apiKeyModal.apiSecretKeyTips')}
+
+ {t('appApi.apiKeyModal.apiSecretKeyTips')}
{!apiKeysList &&
}
{
!!apiKeysList?.data?.length && (
-
-
-
{t('appApi.apiKeyModal.secretKey')}
-
{t('appApi.apiKeyModal.created')}
-
{t('appApi.apiKeyModal.lastUsed')}
-
+
+
+
{t('appApi.apiKeyModal.secretKey')}
+
{t('appApi.apiKeyModal.created')}
+
{t('appApi.apiKeyModal.lastUsed')}
+
-
+
{apiKeysList.data.map(api => (
-
-
{generateToken(api.token)}
-
{formatTime(Number(api.created_at), t('appLog.dateTimeFormat') as string)}
-
{api.last_used_at ? formatTime(Number(api.last_used_at), t('appLog.dateTimeFormat') as string) : t('appApi.never')}
-
+
+
{generateToken(api.token)}
+
{formatTime(Number(api.created_at), t('appLog.dateTimeFormat') as string)}
+
{api.last_used_at ? formatTime(Number(api.last_used_at), t('appLog.dateTimeFormat') as string) : t('appApi.never')}
+
- {
+
{
// setIsCopied(true)
copy(api.token)
setCopyValue(api.token)
}}>
{isCurrentWorkspaceManager
- &&
{
+ &&
{
setDelKeyId(api.id)
setShowConfirmDelete(true)
}}>
@@ -142,12 +142,12 @@ const SecretKeyModal = ({
)
}
-
-
- {t('appApi.apiKeyModal.createNewSecretKey')}
+
+
+ {t('appApi.apiKeyModal.createNewSecretKey')}
-
setVisible(false)} newKey={newKey} />
+ setVisible(false)} newKey={newKey} />
{showConfirmDelete && (
{
+ return {
+ ...strategyProviderDetail?.declaration.identity,
+ tenant_id: detail.tenant_id,
+ }
+ }, [detail.tenant_id, strategyProviderDetail?.declaration.identity])
+
const strategyList = useMemo(() => {
if (!strategyProviderDetail)
return []
@@ -39,7 +46,7 @@ const AgentStrategyList = ({
{strategyList.map(strategyDetail => (
))}
diff --git a/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx b/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx
index 2b58f620b1..a7f1d84071 100644
--- a/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/strategy-detail.tsx
@@ -16,6 +16,7 @@ import type {
} from '@/app/components/plugins/types'
import type { Locale } from '@/i18n'
import { useRenderI18nObject } from '@/hooks/use-i18n'
+import { API_PREFIX } from '@/config'
import cn from '@/utils/classnames'
type Props = {
@@ -23,6 +24,7 @@ type Props = {
author: string
name: string
description: Record
+ tenant_id: string
icon: string
label: Record
tags: string[]
@@ -94,7 +96,7 @@ const StrategyDetail: FC = ({
BACK
-
+
{getValueFromI18nObject(provider.label)}
{getValueFromI18nObject(detail.identity.label)}
@@ -135,7 +137,7 @@ const StrategyDetail: FC
= ({
OUTPUT
{outputSchema.length > 0 && (
-
+
{outputSchema.map((outputItem, index) => (
diff --git a/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx b/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx
index 8cdb7315d8..fd2fea99e0 100644
--- a/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/strategy-item.tsx
@@ -13,6 +13,7 @@ type Props = {
author: string
name: string
description: Record
+ tenant_id: string
icon: string
label: Record
tags: string[]
diff --git a/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx b/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx
index e20673f7fa..d00b65f16d 100644
--- a/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx
+++ b/web/app/components/plugins/plugin-detail-panel/tool-selector/index.tsx
@@ -280,7 +280,7 @@ const ToolSelector: FC = ({
{currentProvider && currentProvider.type === CollectionType.builtIn && currentProvider.allow_delete && (
-
{t('plugin.detailPanel.toolSelector.auth')}
+
{t('plugin.detailPanel.toolSelector.auth')}
@@ -312,7 +312,7 @@ const ToolSelector: FC
= ({
{currentToolParams.length > 0 && currentProvider?.is_team_authorization && (
-
{t('plugin.detailPanel.toolSelector.settings')}
+
{t('plugin.detailPanel.toolSelector.settings')}