-
{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 && (
void) => {
const foldIntoAnim = async () => {
clearCountDown()
const modalElem = document.querySelector(`.${modalClassName}`) as HTMLElement
- const pluginTaskTriggerElem = document.getElementById('plugin-task-trigger')
+ const pluginTaskTriggerElem = document.getElementById('plugin-task-trigger') || document.querySelector('.plugins-nav-button')
if (!modalElem || !pluginTaskTriggerElem) {
onClose()
diff --git a/web/app/components/workflow/block-selector/all-tools.tsx b/web/app/components/workflow/block-selector/all-tools.tsx
index 9f0596d9b1..0100d4ede8 100644
--- a/web/app/components/workflow/block-selector/all-tools.tsx
+++ b/web/app/components/workflow/block-selector/all-tools.tsx
@@ -144,6 +144,7 @@ const AllTools = ({
wrapElemRef={wrapElemRef}
list={notInstalledPlugins as any} ref={pluginRef}
searchText={searchText}
+ toolContentClassName={toolContentClassName}
tags={tags}
/>
diff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx
index f177d1ac60..0c381c2a39 100644
--- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx
+++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx
@@ -15,6 +15,7 @@ type Props = {
list: Plugin[]
searchText: string
tags: string[]
+ toolContentClassName?: string
disableMaxWidth?: boolean
}
@@ -23,6 +24,7 @@ const List = forwardRef<{ handleScroll: () => void }, Props>(({
searchText,
tags,
list,
+ toolContentClassName,
disableMaxWidth = false,
}, ref) => {
const { t } = useTranslation()
@@ -76,7 +78,7 @@ const List = forwardRef<{ handleScroll: () => void }, Props>(({
)
}
- const maxWidthClassName = 'max-w-[300px]'
+ const maxWidthClassName = toolContentClassName || 'max-w-[300px]'
return (
<>