refactor(web): remove redundant add-tool-modal components and related code (#27996)

This commit is contained in:
yangzheli
2025-11-13 20:21:04 +08:00
committed by GitHub
parent ffc04f2a9b
commit 20403c69b2
41 changed files with 2 additions and 800 deletions

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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: 'یک ابزار سفارشی ایجاد کنید',

View File

@@ -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é',

View File

@@ -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: 'एक कस्टम टूल बनाएं',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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: 'カスタムツールを作成する',

View File

@@ -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: '사용자 정의 도구 생성',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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',

View File

@@ -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: 'Создать пользовательский инструмент',

View File

@@ -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',

View File

@@ -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: 'สร้างเครื่องมือกำหนดเอง',

View File

@@ -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',

View File

@@ -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: 'Створити користувацький інструмент',

View File

@@ -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',

View File

@@ -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: '创建自定义工具',

View File

@@ -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: '沒有可用的自訂工具',