-
- {list.map((tool) => {
- const labelContent = (() => {
- if (!tool.labels)
- return ''
- return tool.labels.map((name) => {
- const label = labelList.find(item => item.name === name)
- return resolveI18nText(label?.label, language)
- }).filter(Boolean).join(', ')
- })()
- const added = !!addedTools?.find(v => v.provider_id === toolWithProvider.id && v.provider_type === toolWithProvider.type && v.tool_name === tool.name)
- return (
-
-
- {resolveI18nText(tool.label, language)}
- {resolveI18nText(tool.description, language)}
- {tool.labels?.length > 0 && (
-
- )}
-
- )}
- >
-
-
-
{resolveI18nText(tool.label, language)}
- {!needAuth && added && (
-
-
- {t('tools.addToolModal.added').toLocaleUpperCase()}
-
- )}
- {!needAuth && !added && addable && (
-
- )}
- {needAuth && (
-
- )}
-
-
- )
- })}
-
- )
- }, [addable, language, t, labelList, addedTools, onAuthSetup, onSelect])
-
- return (
-
- {!tools.length && !showWorkflowEmpty && (
-
{t('workflow.tabs.noResult')}
- )}
- {!tools.length && showWorkflowEmpty && (
-
-
-
- )}
- {!!tools.length && tools.map(renderGroup)}
-
- )
-}
-
-export default memo(Blocks)
diff --git a/web/app/components/tools/add-tool-modal/type.tsx b/web/app/components/tools/add-tool-modal/type.tsx
deleted file mode 100644
index 26e78a7525..0000000000
--- a/web/app/components/tools/add-tool-modal/type.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-'use client'
-import { useTranslation } from 'react-i18next'
-import cn from '@/utils/classnames'
-import { Exchange02, FileCode } from '@/app/components/base/icons/src/vender/line/others'
-
-type Props = {
- value: string
- onSelect: (type: string) => void
-}
-
-const Types = ({
- value,
- onSelect,
-}: Props) => {
- const { t } = useTranslation()
-
- return (
-
-
onSelect('builtin')}>
-
-
{t('tools.type.builtIn')}
-
-
onSelect('api')}>
-
- {t('tools.type.custom')}
-
-
onSelect('workflow')}>
-
- {t('tools.type.workflow')}
-
-
- )
-}
-export default Types
diff --git a/web/app/components/tools/provider-list.tsx b/web/app/components/tools/provider-list.tsx
index 1679b4469b..01f9f09127 100644
--- a/web/app/components/tools/provider-list.tsx
+++ b/web/app/components/tools/provider-list.tsx
@@ -11,7 +11,7 @@ import Input from '@/app/components/base/input'
import ProviderDetail from '@/app/components/tools/provider/detail'
import Empty from '@/app/components/plugins/marketplace/empty'
import CustomCreateCard from '@/app/components/tools/provider/custom-create-card'
-import WorkflowToolEmpty from '@/app/components/tools/add-tool-modal/empty'
+import WorkflowToolEmpty from '@/app/components/tools/provider/empty'
import Card from '@/app/components/plugins/card'
import CardMoreInfo from '@/app/components/plugins/card/card-more-info'
import PluginDetailPanel from '@/app/components/plugins/plugin-detail-panel'
diff --git a/web/app/components/tools/add-tool-modal/empty.tsx b/web/app/components/tools/provider/empty.tsx
similarity index 100%
rename from web/app/components/tools/add-tool-modal/empty.tsx
rename to web/app/components/tools/provider/empty.tsx
diff --git a/web/app/components/workflow/block-selector/tools.tsx b/web/app/components/workflow/block-selector/tools.tsx
index c62f6a67f9..66d880d994 100644
--- a/web/app/components/workflow/block-selector/tools.tsx
+++ b/web/app/components/workflow/block-selector/tools.tsx
@@ -4,7 +4,7 @@ import IndexBar, { groupItems } from './index-bar'
import type { ToolDefaultValue, ToolValue } from './types'
import type { ToolTypeEnum } from './types'
import { ViewType } from './view-type-select'
-import Empty from '@/app/components/tools/add-tool-modal/empty'
+import Empty from '@/app/components/tools/provider/empty'
import { useGetLanguage } from '@/context/i18n'
import ToolListTreeView from './tool/tool-list-tree-view/list'
import ToolListFlatView from './tool/tool-list-flat-view/list'
diff --git a/web/i18n/de-DE/tools.ts b/web/i18n/de-DE/tools.ts
index 8aef8e87f9..4e93b4b71e 100644
--- a/web/i18n/de-DE/tools.ts
+++ b/web/i18n/de-DE/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Werkzeuge',
createCustomTool: 'Eigenes Werkzeug erstellen',
type: {
- all: 'Alle',
builtIn: 'Integriert',
custom: 'Benutzerdefiniert',
workflow: 'Arbeitsablauf',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: 'Nach der Konfiguration der Anmeldeinformationen können alle Mitglieder im Arbeitsbereich dieses Werkzeug beim Orchestrieren von Anwendungen nutzen.',
},
includeToolNum: '{{num}} Werkzeuge inkludiert',
- addTool: 'Werkzeug hinzufügen',
createTool: {
title: 'Eigenes Werkzeug erstellen',
editAction: 'Konfigurieren',
@@ -143,9 +141,7 @@ const translation = {
addToolModal: {
type: 'Art',
category: 'Kategorie',
- add: 'hinzufügen',
added: 'zugefügt',
- manageInTools: 'Verwalten in Tools',
custom: {
title: 'Kein benutzerdefiniertes Werkzeug verfügbar',
tip: 'Benutzerdefiniertes Werkzeug erstellen',
diff --git a/web/i18n/en-US/tools.ts b/web/i18n/en-US/tools.ts
index ec78aa2084..308d4b2b05 100644
--- a/web/i18n/en-US/tools.ts
+++ b/web/i18n/en-US/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'Create Custom Tool',
customToolTip: 'Learn more about Dify custom tools',
type: {
- all: 'All',
builtIn: 'Tools',
custom: 'Custom',
workflow: 'Workflow',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'After configuring credentials, all members within the workspace can use this tool when orchestrating applications.',
},
includeToolNum: '{{num}} {{action}} included',
- addTool: 'Add Tool',
addToolModal: {
type: 'type',
category: 'category',
- add: 'add',
added: 'added',
- manageInTools: 'Manage in Tools',
custom: {
title: 'No custom tool available',
tip: 'Create a custom tool',
diff --git a/web/i18n/es-ES/tools.ts b/web/i18n/es-ES/tools.ts
index 304247aee9..f85a44882e 100644
--- a/web/i18n/es-ES/tools.ts
+++ b/web/i18n/es-ES/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'Crear Herramienta Personalizada',
customToolTip: 'Aprende más sobre las herramientas personalizadas de Dify',
type: {
- all: 'Todas',
builtIn: 'Incorporadas',
custom: 'Personalizadas',
workflow: 'Flujo de Trabajo',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'Después de configurar las credenciales, todos los miembros dentro del espacio de trabajo pueden usar esta herramienta al orquestar aplicaciones.',
},
includeToolNum: '{{num}} herramientas incluidas',
- addTool: 'Agregar Herramienta',
addToolModal: {
type: 'tipo',
category: 'categoría',
- add: 'agregar',
added: 'agregada',
- manageInTools: 'Administrar en Herramientas',
custom: {
title: 'No hay herramienta personalizada disponible',
tip: 'Crear una herramienta personalizada',
diff --git a/web/i18n/fa-IR/tools.ts b/web/i18n/fa-IR/tools.ts
index a6be1d0d42..bc0510341b 100644
--- a/web/i18n/fa-IR/tools.ts
+++ b/web/i18n/fa-IR/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'ایجاد ابزار سفارشی',
customToolTip: 'بیشتر در مورد ابزارهای سفارشی Dify بیاموزید',
type: {
- all: 'همه',
builtIn: 'سفارشی شده',
custom: 'سفارشی',
workflow: 'جریان کار',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'پس از پیکربندی اعتبارنامهها، همه اعضای موجود در فضای کاری میتوانند از این ابزار هنگام هماهنگی برنامهها استفاده کنند.',
},
includeToolNum: '{{num}} ابزار شامل شد',
- addTool: 'افزودن ابزار',
addToolModal: {
type: 'نوع',
category: 'دستهبندی',
- add: 'افزودن',
added: 'افزوده شد',
- manageInTools: 'مدیریت در ابزارها',
custom: {
title: 'هیچ ابزار سفارشی موجود نیست',
tip: 'یک ابزار سفارشی ایجاد کنید',
diff --git a/web/i18n/fr-FR/tools.ts b/web/i18n/fr-FR/tools.ts
index 7c0e4db020..9f296773f2 100644
--- a/web/i18n/fr-FR/tools.ts
+++ b/web/i18n/fr-FR/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Outils',
createCustomTool: 'Créer un Outil Personnalisé',
type: {
- all: 'Tout',
builtIn: 'Intégré',
custom: 'Personnalisé',
workflow: 'Flux de travail',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: 'Après avoir configuré les identifiants, tous les membres de l\'espace de travail peuvent utiliser cet outil lors de l\'orchestration des applications.',
},
includeToolNum: '{{num}} outils inclus',
- addTool: 'Ajouter un outil',
createTool: {
title: 'Créer un Outil Personnalisé',
editAction: 'Configurer',
@@ -143,9 +141,7 @@ const translation = {
addToolModal: {
type: 'type',
added: 'supplémentaire',
- add: 'ajouter',
category: 'catégorie',
- manageInTools: 'Gérer dans Outils',
custom: {
title: 'Aucun outil personnalisé disponible',
tip: 'Créer un outil personnalisé',
diff --git a/web/i18n/hi-IN/tools.ts b/web/i18n/hi-IN/tools.ts
index 6e6dcf0ff6..c606f5f0b3 100644
--- a/web/i18n/hi-IN/tools.ts
+++ b/web/i18n/hi-IN/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'कस्टम उपकरण बनाएं',
customToolTip: 'Dify कस्टम उपकरणों के बारे में और जानें',
type: {
- all: 'सभी',
builtIn: 'निर्मित',
custom: 'कस्टम',
workflow: 'कार्यप्रवाह',
@@ -22,13 +21,10 @@ const translation = {
'प्रमाणिकरण कॉन्फ़िगर करने के बाद, कार्यस्थान के सभी सदस्य इस उपकरण का उपयोग कर सकेंगे।',
},
includeToolNum: '{{num}} उपकरण शामिल हैं',
- addTool: 'उपकरण जोड़ें',
addToolModal: {
type: 'प्रकार',
category: 'श्रेणी',
- add: 'जोड़ें',
added: 'जोड़ा गया',
- manageInTools: 'उपकरणों में प्रबंधित करें',
custom: {
title: 'कोई कस्टम टूल उपलब्ध नहीं है',
tip: 'एक कस्टम टूल बनाएं',
diff --git a/web/i18n/id-ID/tools.ts b/web/i18n/id-ID/tools.ts
index 707594446d..d9866dfb58 100644
--- a/web/i18n/id-ID/tools.ts
+++ b/web/i18n/id-ID/tools.ts
@@ -1,6 +1,5 @@
const translation = {
type: {
- all: 'Semua',
workflow: 'Alur Kerja',
builtIn: 'Perkakas',
custom: 'Adat',
@@ -35,8 +34,6 @@ const translation = {
category: 'golongan',
type: 'jenis',
added: 'Ditambahkan',
- add: 'tambah',
- manageInTools: 'Kelola di Alat',
},
createTool: {
exampleOptions: {
@@ -240,7 +237,6 @@ const translation = {
title: 'Perkakas',
createCustomTool: 'Buat Alat Kustom',
customToolTip: 'Pelajari alat kustom Dify lebih lanjut',
- addTool: 'Tambahkan Alat',
author: 'Oleh',
copyToolName: 'Salin Nama',
howToGet: 'Cara mendapatkan',
diff --git a/web/i18n/it-IT/tools.ts b/web/i18n/it-IT/tools.ts
index 0b8b122518..a81898eff2 100644
--- a/web/i18n/it-IT/tools.ts
+++ b/web/i18n/it-IT/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'Crea Strumento Personalizzato',
customToolTip: 'Scopri di più sugli strumenti personalizzati di Dify',
type: {
- all: 'Tutti',
builtIn: 'Integrato',
custom: 'Personalizzato',
workflow: 'Flusso di lavoro',
@@ -22,13 +21,10 @@ const translation = {
'Dopo aver configurato le credenziali, tutti i membri all\'interno del workspace possono utilizzare questo strumento durante l\'orchestrazione delle applicazioni.',
},
includeToolNum: '{{num}} strumenti inclusi',
- addTool: 'Aggiungi Strumento',
addToolModal: {
type: 'tipo',
category: 'categoria',
- add: 'aggiungi',
added: 'aggiunto',
- manageInTools: 'Gestisci in Strumenti',
custom: {
title: 'Nessuno strumento personalizzato disponibile',
tip: 'Crea uno strumento personalizzato',
diff --git a/web/i18n/ja-JP/tools.ts b/web/i18n/ja-JP/tools.ts
index 812b5f3c92..8df59af218 100644
--- a/web/i18n/ja-JP/tools.ts
+++ b/web/i18n/ja-JP/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'カスタムツールを作成する',
customToolTip: 'Dify カスタムツールの詳細',
type: {
- all: 'すべて',
builtIn: 'ツール',
custom: 'カスタム',
workflow: 'ワークフロー',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: '資格情報を構成した後、ワークスペース内のすべてのメンバーがアプリケーションのオーケストレーション時にこのツールを使用できます。',
},
includeToolNum: '{{num}}個のツールが含まれています',
- addTool: 'ツールを追加する',
addToolModal: {
type: 'タイプ',
category: 'カテゴリー',
- add: '追加',
added: '追加済',
- manageInTools: 'ツールリストに移動して管理する',
custom: {
title: 'カスタムツールはありません',
tip: 'カスタムツールを作成する',
diff --git a/web/i18n/ko-KR/tools.ts b/web/i18n/ko-KR/tools.ts
index ddcefe4bd4..6bfed4e859 100644
--- a/web/i18n/ko-KR/tools.ts
+++ b/web/i18n/ko-KR/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: '커스텀 도구 만들기',
customToolTip: 'Dify 커스텀 도구에 대해 더 알아보기',
type: {
- all: '모두',
builtIn: '내장',
custom: '커스텀',
workflow: '워크플로우',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: '자격 증명을 구성한 후에 워크스페이스의 모든 멤버가 이 도구를 사용하여 애플리케이션을 조작할 수 있습니다.',
},
includeToolNum: '{{num}}개의 도구가 포함되어 있습니다',
- addTool: '도구 추가',
addToolModal: {
type: '타입',
category: '카테고리',
- add: '추가',
added: '추가됨',
- manageInTools: '도구에서 관리',
custom: {
title: '사용자 정의 도구 없음',
tip: '사용자 정의 도구 생성',
diff --git a/web/i18n/pl-PL/tools.ts b/web/i18n/pl-PL/tools.ts
index 16fe5037df..fa6c5931e7 100644
--- a/web/i18n/pl-PL/tools.ts
+++ b/web/i18n/pl-PL/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Narzędzia',
createCustomTool: 'Utwórz niestandardowe narzędzie',
type: {
- all: 'Wszystkie',
builtIn: 'Wbudowane',
custom: 'Niestandardowe',
workflow: 'Przepływ pracy',
@@ -21,7 +20,6 @@ const translation = {
'Po skonfigurowaniu poświadczeń wszyscy członkowie w przestrzeni roboczej mogą używać tego narzędzia podczas projektowania aplikacji.',
},
includeToolNum: '{{num}} narzędzi zawarte',
- addTool: 'Dodaj narzędzie',
createTool: {
title: 'Utwórz niestandardowe narzędzie',
editAction: 'Konfiguruj',
@@ -145,11 +143,9 @@ const translation = {
notAuthorized: 'Narzędzie nieautoryzowane',
howToGet: 'Jak uzyskać',
addToolModal: {
- manageInTools: 'Zarządzanie w Narzędziach',
added: 'Dodane',
type: 'typ',
category: 'kategoria',
- add: 'dodawać',
custom: {
title: 'Brak dostępnego narzędzia niestandardowego',
tip: 'Utwórz narzędzie niestandardowe',
diff --git a/web/i18n/pt-BR/tools.ts b/web/i18n/pt-BR/tools.ts
index 66b040275d..6d5344b11b 100644
--- a/web/i18n/pt-BR/tools.ts
+++ b/web/i18n/pt-BR/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Ferramentas',
createCustomTool: 'Criar Ferramenta Personalizada',
type: {
- all: 'Todas',
builtIn: 'Integradas',
custom: 'Personalizadas',
workflow: 'Fluxo de trabalho',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: 'Após configurar as credenciais, todos os membros do espaço de trabalho podem usar essa ferramenta ao orquestrar aplicativos.',
},
includeToolNum: '{{num}} ferramentas incluídas',
- addTool: 'Adicionar Ferramenta',
createTool: {
title: 'Criar Ferramenta Personalizada',
editAction: 'Configurar',
@@ -143,9 +141,7 @@ const translation = {
addToolModal: {
category: 'categoria',
type: 'tipo',
- add: 'adicionar',
added: 'Adicionado',
- manageInTools: 'Gerenciar em Ferramentas',
custom: {
title: 'Nenhuma ferramenta personalizada disponível',
tip: 'Crie uma ferramenta personalizada',
diff --git a/web/i18n/ro-RO/tools.ts b/web/i18n/ro-RO/tools.ts
index 72c3954c97..c9eeb29d97 100644
--- a/web/i18n/ro-RO/tools.ts
+++ b/web/i18n/ro-RO/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Instrumente',
createCustomTool: 'Creează Instrument Personalizat',
type: {
- all: 'Toate',
builtIn: 'Incorporat',
custom: 'Personalizat',
workflow: 'Flux de lucru',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: 'După configurarea credențialelor, toți membrii din spațiul de lucru pot utiliza acest instrument la orchestrarea aplicațiilor.',
},
includeToolNum: '{{num}} instrumente incluse',
- addTool: 'Adaugă Instrument',
createTool: {
title: 'Creează Instrument Personalizat',
editAction: 'Configurează',
@@ -143,8 +141,6 @@ const translation = {
addToolModal: {
added: 'adăugat',
category: 'categorie',
- manageInTools: 'Gestionați în Instrumente',
- add: 'adăuga',
type: 'tip',
custom: {
title: 'Niciun instrument personalizat disponibil',
diff --git a/web/i18n/ru-RU/tools.ts b/web/i18n/ru-RU/tools.ts
index 7ee263657d..48de76e383 100644
--- a/web/i18n/ru-RU/tools.ts
+++ b/web/i18n/ru-RU/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'Создать пользовательский инструмент',
customToolTip: 'Узнать больше о пользовательских инструментах Dify',
type: {
- all: 'Все',
builtIn: 'Встроенные',
custom: 'Пользовательские',
workflow: 'Рабочий процесс',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'После настройки учетных данных все участники рабочего пространства смогут использовать этот инструмент при оркестровке приложений.',
},
includeToolNum: 'Включено {{num}} инструментов',
- addTool: 'Добавить инструмент',
addToolModal: {
type: 'тип',
category: 'категория',
- add: 'добавить',
added: 'добавлено',
- manageInTools: 'Управлять в инструментах',
custom: {
title: 'Нет доступного пользовательского инструмента',
tip: 'Создать пользовательский инструмент',
diff --git a/web/i18n/sl-SI/tools.ts b/web/i18n/sl-SI/tools.ts
index cae126d99d..f8dd1dc831 100644
--- a/web/i18n/sl-SI/tools.ts
+++ b/web/i18n/sl-SI/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'Ustvari prilagojeno orodje',
customToolTip: 'Izvedite več o prilagojenih orodjih Dify',
type: {
- all: 'Vsa',
builtIn: 'Vgrajena',
custom: 'Prilagojena',
workflow: 'Potek dela',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'Po konfiguraciji poverilnic bodo vsi člani znotraj delovnega prostora lahko uporabljali to orodje pri orkestraciji aplikacij.',
},
includeToolNum: 'Vključeno {{num}} orodij',
- addTool: 'Dodaj orodje',
addToolModal: {
type: 'tip',
category: 'kategorija',
- add: 'dodaj',
added: 'dodano',
- manageInTools: 'Upravljaj v Orodjih',
custom: {
title: 'Žiadne prispôsobené nástroje nie sú k dispozícii',
tip: 'Vytvorte prispôsobený nástroj',
diff --git a/web/i18n/th-TH/tools.ts b/web/i18n/th-TH/tools.ts
index 848a3f51b6..47e160c9e9 100644
--- a/web/i18n/th-TH/tools.ts
+++ b/web/i18n/th-TH/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'สร้างเครื่องมือที่กําหนดเอง',
customToolTip: 'เรียนรู้เพิ่มเติมเกี่ยวกับเครื่องมือแบบกําหนดเองของ Dify',
type: {
- all: 'ทั้งหมด',
builtIn: 'ในตัว',
custom: 'ธรรมเนียม',
workflow: 'เวิร์กโฟลว์',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'หลังจากกําหนดค่าข้อมูลประจําตัวแล้ว สมาชิกทั้งหมดภายในพื้นที่ทํางานสามารถใช้เครื่องมือนี้เมื่อประสานงานแอปพลิเคชันได้',
},
includeToolNum: '{{num}} รวมเครื่องมือ',
- addTool: 'เพิ่มเครื่องมือ',
addToolModal: {
type: 'ประเภท',
category: 'ประเภท',
- add: 'เพิ่ม',
added: 'เพิ่ม',
- manageInTools: 'จัดการในเครื่องมือ',
custom: {
title: 'ไม่มีเครื่องมือกำหนดเอง',
tip: 'สร้างเครื่องมือกำหนดเอง',
diff --git a/web/i18n/tr-TR/tools.ts b/web/i18n/tr-TR/tools.ts
index ccc97fef10..12849b1879 100644
--- a/web/i18n/tr-TR/tools.ts
+++ b/web/i18n/tr-TR/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: 'Özel Araç Oluştur',
customToolTip: 'Dify özel araçları hakkında daha fazla bilgi edinin',
type: {
- all: 'Hepsi',
builtIn: 'Yerleşik',
custom: 'Özel',
workflow: 'Workflow',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: 'Kimlik bilgilerini yapılandırdıktan sonra, çalışma alanındaki tüm üyeler uygulamaları düzenlerken bu aracı kullanabilir.',
},
includeToolNum: '{{num}} araç dahil',
- addTool: 'Araç Ekle',
addToolModal: {
type: 'Tür',
category: 'Kategori',
- add: 'Ekle',
added: 'Eklendi',
- manageInTools: 'Araçlarda Yönet',
custom: {
title: 'Mevcut özel araç yok',
tip: 'Özel bir araç oluşturun',
diff --git a/web/i18n/uk-UA/tools.ts b/web/i18n/uk-UA/tools.ts
index 40e35a1236..3a3f72b5ba 100644
--- a/web/i18n/uk-UA/tools.ts
+++ b/web/i18n/uk-UA/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Інструменти',
createCustomTool: 'Створити власний інструмент',
type: {
- all: 'Усі',
builtIn: 'Вбудовані',
custom: 'Користувацькі',
workflow: 'Робочий процес',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: 'Після налаштування облікових даних усі члени робочого простору можуть використовувати цей інструмент під час оркестрування програм.',
},
includeToolNum: '{{num}} інструмент(ів) включено',
- addTool: 'Додати інструмент ',
createTool: {
title: 'Створити власний інструмент',
editAction: 'Налаштування',
@@ -142,10 +140,8 @@ const translation = {
howToGet: 'Як отримати',
addToolModal: {
category: 'категорія',
- add: 'Додати',
added: 'Додано',
type: 'тип',
- manageInTools: 'Керування в інструментах',
custom: {
title: 'Немає доступного користувацького інструмента',
tip: 'Створити користувацький інструмент',
diff --git a/web/i18n/vi-VN/tools.ts b/web/i18n/vi-VN/tools.ts
index 08041ce400..a499a451a3 100644
--- a/web/i18n/vi-VN/tools.ts
+++ b/web/i18n/vi-VN/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: 'Công cụ',
createCustomTool: 'Tạo công cụ tùy chỉnh',
type: {
- all: 'Tất cả',
builtIn: 'Tích hợp sẵn',
custom: 'Tùy chỉnh',
workflow: 'Quy trình làm việc',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: 'Sau khi cấu hình thông tin đăng nhập, tất cả thành viên trong không gian làm việc có thể sử dụng công cụ này khi triển khai ứng dụng.',
},
includeToolNum: 'Bao gồm {{num}} công cụ',
- addTool: 'Thêm công cụ',
createTool: {
title: 'Tạo công cụ tùy chỉnh',
editAction: 'Cấu hình',
@@ -142,9 +140,7 @@ const translation = {
howToGet: 'Cách nhận',
addToolModal: {
category: 'loại',
- manageInTools: 'Quản lý trong Công cụ',
type: 'kiểu',
- add: 'thêm',
added: 'Thêm',
custom: {
title: 'Không có công cụ tùy chỉnh nào',
diff --git a/web/i18n/zh-Hans/tools.ts b/web/i18n/zh-Hans/tools.ts
index ce203a0592..cab4b22164 100644
--- a/web/i18n/zh-Hans/tools.ts
+++ b/web/i18n/zh-Hans/tools.ts
@@ -3,7 +3,6 @@ const translation = {
createCustomTool: '创建自定义工具',
customToolTip: '了解更多关于 Dify 自定义工具的信息',
type: {
- all: '全部',
builtIn: '工具',
custom: '自定义',
workflow: '工作流',
@@ -21,13 +20,10 @@ const translation = {
setupModalTitleDescription: '配置凭据后,工作区中的所有成员都可以在编排应用程序时使用此工具。',
},
includeToolNum: '包含 {{num}} 个 {{action}}',
- addTool: '添加工具',
addToolModal: {
type: '类型',
category: '类别',
- add: '添加',
added: '已添加',
- manageInTools: '去工具列表管理',
custom: {
title: '没有可用的自定义工具',
tip: '创建自定义工具',
diff --git a/web/i18n/zh-Hant/tools.ts b/web/i18n/zh-Hant/tools.ts
index d9aa901278..246d2d9dd5 100644
--- a/web/i18n/zh-Hant/tools.ts
+++ b/web/i18n/zh-Hant/tools.ts
@@ -2,7 +2,6 @@ const translation = {
title: '工具',
createCustomTool: '建立自定義工具',
type: {
- all: '全部',
builtIn: '內建',
custom: '自定義',
workflow: '工作流',
@@ -20,7 +19,6 @@ const translation = {
setupModalTitleDescription: '配置憑據後,工作區中的所有成員都可以在編排應用程式時使用此工具。',
},
includeToolNum: '包含 {{num}} 個工具',
- addTool: '新增工具',
createTool: {
title: '建立自定義工具',
editAction: '編輯',
@@ -141,10 +139,8 @@ const translation = {
notAuthorized: '工具未授權',
howToGet: '如何獲取',
addToolModal: {
- add: '加',
type: '類型',
added: '新增',
- manageInTools: '在工具中管理',
category: '類別',
custom: {
title: '沒有可用的自訂工具',
diff --git a/web/service/tools.ts b/web/service/tools.ts
index 6a88d8d567..2897ccac12 100644
--- a/web/service/tools.ts
+++ b/web/service/tools.ts
@@ -8,8 +8,6 @@ import type {
WorkflowToolProviderRequest,
WorkflowToolProviderResponse,
} from '@/app/components/tools/types'
-import type { ToolWithProvider } from '@/app/components/workflow/types'
-import type { Label } from '@/app/components/tools/labels/constant'
import { buildProviderQuery } from './_tools_util'
export const fetchCollectionList = () => {
@@ -112,26 +110,6 @@ export const testAPIAvailable = (payload: any) => {
})
}
-export const fetchAllBuiltInTools = () => {
- return get