diff --git a/docs/plugins/tools/batch-install-plugins-tool.md b/docs/plugins/tools/batch-install-plugins-tool.md index fd7d161..4db9f4e 100644 --- a/docs/plugins/tools/batch-install-plugins-tool.md +++ b/docs/plugins/tools/batch-install-plugins-tool.md @@ -10,7 +10,7 @@ One-click batch install plugins from GitHub repositories to your OpenWebUI insta - **Auto-Update**: Automatically updates previously installed plugins - **Public GitHub Support**: Install plugins from any public GitHub repository - **Multi-Type Support**: Supports Pipe, Action, Filter, and Tool plugins -- **Interactive Selection Dialog**: Review the filtered list with type tags and plugin descriptions, then install only the checked subset +- **Interactive Selection Dialog**: Filter by type, search by keyword, review plugin descriptions, then install only the checked subset - **i18n**: Supports 11 languages ## Flow @@ -33,7 +33,7 @@ User Input ▼ ┌─────────────────────────────────────┐ │ Show Selection Dialog │ -│ (checkbox list + type tags + desc) │ +│ (type filter + search + desc) │ └─────────────────────────────────────┘ │ ├── [Cancel] → End @@ -59,7 +59,7 @@ User Input Each request handles one repository. To mix repositories, send another request after the previous installation completes. -After plugin discovery and filtering, OpenWebUI opens a browser dialog built with the `execute` event so you can review plugin descriptions, use type tags for quick batch selection, and check exactly which plugins to install before the API calls start. +After plugin discovery and filtering, OpenWebUI opens a browser dialog built with the `execute` event so you can filter by plugin type, search by keyword, review plugin descriptions, and check exactly which plugins to install before the API calls start. ## Quick Start: Install Popular Collections diff --git a/docs/plugins/tools/batch-install-plugins-tool.zh.md b/docs/plugins/tools/batch-install-plugins-tool.zh.md index 270c19d..159b860 100644 --- a/docs/plugins/tools/batch-install-plugins-tool.zh.md +++ b/docs/plugins/tools/batch-install-plugins-tool.zh.md @@ -10,7 +10,7 @@ - 自动更新:自动更新之前安装过的插件 - 公开 GitHub 支持:支持从任何公开 GitHub 仓库安装插件 - 多类型支持:支持 Pipe、Action、Filter 和 Tool 插件 -- 交互式选择对话框:先查看带类型标签和描述信息的过滤列表,再勾选要安装的插件,只安装所选子集 +- 交互式选择对话框:先按类型筛选、按关键词搜索并查看描述信息,再勾选要安装的插件,只安装所选子集 - 国际化:支持 11 种语言 ## 流程 @@ -33,7 +33,7 @@ ▼ ┌─────────────────────────────────────┐ │ 显示选择对话框 │ -│ (复选列表 + 类型标签 + 描述) │ +│ (类型筛选 + 搜索 + 描述) │ └─────────────────────────────────────┘ │ ├── [取消] → 结束 @@ -59,7 +59,7 @@ 每次请求处理一个仓库。如需混合多个来源,请在上一次安装完成后再发起下一次请求。 -在插件发现和过滤完成后,OpenWebUI 会通过 `execute` 事件打开浏览器选择对话框。你可以先查看插件描述,使用类型标签进行批量勾选,再开始调用安装 API。 +在插件发现和过滤完成后,OpenWebUI 会通过 `execute` 事件打开浏览器选择对话框。你可以先按类型筛选、通过关键词搜索、查看插件描述,再开始调用安装 API。 ## 快速开始:安装热门插件集 diff --git a/docs/plugins/tools/batch-install-plugins.md b/docs/plugins/tools/batch-install-plugins.md index e8fd4c7..a0a95d8 100644 --- a/docs/plugins/tools/batch-install-plugins.md +++ b/docs/plugins/tools/batch-install-plugins.md @@ -14,7 +14,7 @@ One-click batch install plugins from GitHub repositories to your OpenWebUI insta - **Auto-Update**: Automatically updates previously installed plugins - **Public GitHub Support**: Install plugins from any public GitHub repository - **Multi-Type Support**: Supports Pipe, Action, Filter, and Tool plugins -- **Interactive Selection Dialog**: Review the filtered list with type tags and plugin descriptions, then install only the checked subset +- **Interactive Selection Dialog**: Filter by type, search by keyword, review plugin descriptions, then install only the checked subset - **i18n**: Supports 11 languages ## Flow @@ -37,7 +37,7 @@ User Input ▼ ┌─────────────────────────────────────┐ │ Show Selection Dialog │ -│ (checkbox list + type tags + desc) │ +│ (type filter + search + desc) │ └─────────────────────────────────────┘ │ ├── [Cancel] → End @@ -63,7 +63,7 @@ User Input Each request handles one repository. To mix repositories, send another request after the previous installation completes. -After plugin discovery and filtering, OpenWebUI opens a browser dialog built with the `execute` event so you can review plugin descriptions, use type tags for quick batch selection, and check exactly which plugins to install before the API calls start. +After plugin discovery and filtering, OpenWebUI opens a browser dialog built with the `execute` event so you can filter by plugin type, search by keyword, review plugin descriptions, and check exactly which plugins to install before the API calls start. ## Quick Start: Install Popular Collections diff --git a/docs/plugins/tools/batch-install-plugins.zh.md b/docs/plugins/tools/batch-install-plugins.zh.md index ab81ffe..83b7edf 100644 --- a/docs/plugins/tools/batch-install-plugins.zh.md +++ b/docs/plugins/tools/batch-install-plugins.zh.md @@ -14,7 +14,7 @@ - 自动更新:自动更新之前安装过的插件 - 公开 GitHub 支持:支持从任何公开 GitHub 仓库安装插件 - 多类型支持:支持 Pipe、Action、Filter 和 Tool 插件 -- 交互式选择对话框:先查看带类型标签和描述信息的过滤列表,再勾选要安装的插件,只安装所选子集 +- 交互式选择对话框:先按类型筛选、按关键词搜索并查看描述信息,再勾选要安装的插件,只安装所选子集 - 国际化:支持 11 种语言 ## 流程 @@ -37,7 +37,7 @@ ▼ ┌─────────────────────────────────────┐ │ 显示选择对话框 │ -│ (复选列表 + 类型标签 + 描述) │ +│ (类型筛选 + 搜索 + 描述) │ └─────────────────────────────────────┘ │ ├── [取消] → 结束 @@ -63,7 +63,7 @@ 每次请求处理一个仓库。如需混合多个来源,请在上一次安装完成后再发起下一次请求。 -在插件发现和过滤完成后,OpenWebUI 会通过 `execute` 事件打开浏览器选择对话框。你可以先查看插件描述,使用类型标签进行批量勾选,再开始调用安装 API。 +在插件发现和过滤完成后,OpenWebUI 会通过 `execute` 事件打开浏览器选择对话框。你可以先按类型筛选、通过关键词搜索、查看插件描述,再开始调用安装 API。 ## 快速开始:安装热门插件集 diff --git a/plugins/tools/batch-install-plugins/ANNOUNCEMENT.md b/plugins/tools/batch-install-plugins/ANNOUNCEMENT.md index 5c66c3b..81679dd 100644 --- a/plugins/tools/batch-install-plugins/ANNOUNCEMENT.md +++ b/plugins/tools/batch-install-plugins/ANNOUNCEMENT.md @@ -10,7 +10,7 @@ Installing plugins in OpenWebUI should not feel like an all-or-nothing jump. Wit ### 🚀 Interactive Plugin Selection - Uses the OpenWebUI `execute` event to open a custom browser dialog -- Displays the filtered plugin list with checkboxes, type tags, plugin descriptions, and repository context +- Displays the filtered plugin list with checkboxes, type filters, keyword search, plugin descriptions, and repository context - Installs only the plugins the user keeps selected ### ✅ Smart Safety Features diff --git a/plugins/tools/batch-install-plugins/ANNOUNCEMENT_CN.md b/plugins/tools/batch-install-plugins/ANNOUNCEMENT_CN.md index a10db62..33df437 100644 --- a/plugins/tools/batch-install-plugins/ANNOUNCEMENT_CN.md +++ b/plugins/tools/batch-install-plugins/ANNOUNCEMENT_CN.md @@ -10,7 +10,7 @@ ### 🚀 交互式插件选择 - 基于 OpenWebUI 的 `execute` 事件打开自定义浏览器选择对话框 -- 显示带复选框、类型标签、插件描述和仓库信息的过滤结果 +- 显示带复选框、类型筛选、关键词搜索、插件描述和仓库信息的过滤结果 - 只安装用户保留勾选的插件 ### ✅ 智能安全保障 diff --git a/plugins/tools/batch-install-plugins/README.md b/plugins/tools/batch-install-plugins/README.md index e8fd4c7..a0a95d8 100644 --- a/plugins/tools/batch-install-plugins/README.md +++ b/plugins/tools/batch-install-plugins/README.md @@ -14,7 +14,7 @@ One-click batch install plugins from GitHub repositories to your OpenWebUI insta - **Auto-Update**: Automatically updates previously installed plugins - **Public GitHub Support**: Install plugins from any public GitHub repository - **Multi-Type Support**: Supports Pipe, Action, Filter, and Tool plugins -- **Interactive Selection Dialog**: Review the filtered list with type tags and plugin descriptions, then install only the checked subset +- **Interactive Selection Dialog**: Filter by type, search by keyword, review plugin descriptions, then install only the checked subset - **i18n**: Supports 11 languages ## Flow @@ -37,7 +37,7 @@ User Input ▼ ┌─────────────────────────────────────┐ │ Show Selection Dialog │ -│ (checkbox list + type tags + desc) │ +│ (type filter + search + desc) │ └─────────────────────────────────────┘ │ ├── [Cancel] → End @@ -63,7 +63,7 @@ User Input Each request handles one repository. To mix repositories, send another request after the previous installation completes. -After plugin discovery and filtering, OpenWebUI opens a browser dialog built with the `execute` event so you can review plugin descriptions, use type tags for quick batch selection, and check exactly which plugins to install before the API calls start. +After plugin discovery and filtering, OpenWebUI opens a browser dialog built with the `execute` event so you can filter by plugin type, search by keyword, review plugin descriptions, and check exactly which plugins to install before the API calls start. ## Quick Start: Install Popular Collections diff --git a/plugins/tools/batch-install-plugins/README_CN.md b/plugins/tools/batch-install-plugins/README_CN.md index ab81ffe..83b7edf 100644 --- a/plugins/tools/batch-install-plugins/README_CN.md +++ b/plugins/tools/batch-install-plugins/README_CN.md @@ -14,7 +14,7 @@ - 自动更新:自动更新之前安装过的插件 - 公开 GitHub 支持:支持从任何公开 GitHub 仓库安装插件 - 多类型支持:支持 Pipe、Action、Filter 和 Tool 插件 -- 交互式选择对话框:先查看带类型标签和描述信息的过滤列表,再勾选要安装的插件,只安装所选子集 +- 交互式选择对话框:先按类型筛选、按关键词搜索并查看描述信息,再勾选要安装的插件,只安装所选子集 - 国际化:支持 11 种语言 ## 流程 @@ -37,7 +37,7 @@ ▼ ┌─────────────────────────────────────┐ │ 显示选择对话框 │ -│ (复选列表 + 类型标签 + 描述) │ +│ (类型筛选 + 搜索 + 描述) │ └─────────────────────────────────────┘ │ ├── [取消] → 结束 @@ -63,7 +63,7 @@ 每次请求处理一个仓库。如需混合多个来源,请在上一次安装完成后再发起下一次请求。 -在插件发现和过滤完成后,OpenWebUI 会通过 `execute` 事件打开浏览器选择对话框。你可以先查看插件描述,使用类型标签进行批量勾选,再开始调用安装 API。 +在插件发现和过滤完成后,OpenWebUI 会通过 `execute` 事件打开浏览器选择对话框。你可以先按类型筛选、通过关键词搜索、查看插件描述,再开始调用安装 API。 ## 快速开始:安装热门插件集 diff --git a/plugins/tools/batch-install-plugins/batch_install_plugins.py b/plugins/tools/batch-install-plugins/batch_install_plugins.py index 940b4b2..d291493 100644 --- a/plugins/tools/batch-install-plugins/batch_install_plugins.py +++ b/plugins/tools/batch-install-plugins/batch_install_plugins.py @@ -303,7 +303,11 @@ SELECTION_DIALOG_TEXTS = { "en-US": { "select_all": "Select all", "clear_all": "Clear all", - "quick_select": "Types", + "quick_select": "Filter by type", + "all_types": "All", + "search_label": "Search", + "search_placeholder": "Search title, description, file path...", + "no_results": "No plugins match the current filter.", "selected_count": "{count} selected", "install_selected": "Install Selected", "cancel": "Cancel", @@ -315,7 +319,11 @@ SELECTION_DIALOG_TEXTS = { "zh-CN": { "select_all": "全选", "clear_all": "清空", - "quick_select": "类型标签", + "quick_select": "按类型筛选", + "all_types": "全部", + "search_label": "搜索", + "search_placeholder": "搜索标题、描述、文件路径...", + "no_results": "当前筛选条件下没有匹配的插件。", "selected_count": "已选 {count} 项", "install_selected": "安装所选插件", "cancel": "取消", @@ -327,7 +335,11 @@ SELECTION_DIALOG_TEXTS = { "zh-HK": { "select_all": "全選", "clear_all": "清空", - "quick_select": "類型標籤", + "quick_select": "按類型篩選", + "all_types": "全部", + "search_label": "搜尋", + "search_placeholder": "搜尋標題、描述、檔案路徑...", + "no_results": "目前篩選條件下沒有相符的外掛。", "selected_count": "已選 {count} 項", "install_selected": "安裝所選外掛", "cancel": "取消", @@ -339,7 +351,11 @@ SELECTION_DIALOG_TEXTS = { "zh-TW": { "select_all": "全選", "clear_all": "清空", - "quick_select": "類型標籤", + "quick_select": "按類型篩選", + "all_types": "全部", + "search_label": "搜尋", + "search_placeholder": "搜尋標題、描述、檔案路徑...", + "no_results": "目前篩選條件下沒有符合的外掛。", "selected_count": "已選 {count} 項", "install_selected": "安裝所選外掛", "cancel": "取消", @@ -351,7 +367,11 @@ SELECTION_DIALOG_TEXTS = { "ko-KR": { "select_all": "전체 선택", "clear_all": "선택 해제", - "quick_select": "유형", + "quick_select": "유형별 필터", + "all_types": "전체", + "search_label": "검색", + "search_placeholder": "제목, 설명, 파일 경로 검색...", + "no_results": "현재 필터와 일치하는 플러그인이 없습니다.", "selected_count": "{count}개 선택됨", "install_selected": "선택한 플러그인 설치", "cancel": "취소", @@ -363,7 +383,11 @@ SELECTION_DIALOG_TEXTS = { "ja-JP": { "select_all": "すべて選択", "clear_all": "クリア", - "quick_select": "タイプ", + "quick_select": "タイプで絞り込み", + "all_types": "すべて", + "search_label": "検索", + "search_placeholder": "タイトル、説明、ファイルパスを検索...", + "no_results": "現在の条件に一致するプラグインはありません。", "selected_count": "{count}件を選択", "install_selected": "選択したプラグインをインストール", "cancel": "キャンセル", @@ -375,7 +399,11 @@ SELECTION_DIALOG_TEXTS = { "fr-FR": { "select_all": "Tout sélectionner", "clear_all": "Tout effacer", - "quick_select": "Types", + "quick_select": "Filtrer par type", + "all_types": "Tous", + "search_label": "Rechercher", + "search_placeholder": "Rechercher par titre, description, fichier...", + "no_results": "Aucun plugin ne correspond au filtre actuel.", "selected_count": "{count} sélectionnés", "install_selected": "Installer la sélection", "cancel": "Annuler", @@ -387,7 +415,11 @@ SELECTION_DIALOG_TEXTS = { "de-DE": { "select_all": "Alle auswählen", "clear_all": "Auswahl löschen", - "quick_select": "Typen", + "quick_select": "Nach Typ filtern", + "all_types": "Alle", + "search_label": "Suchen", + "search_placeholder": "Titel, Beschreibung, Dateipfad durchsuchen...", + "no_results": "Keine Plugins entsprechen dem aktuellen Filter.", "selected_count": "{count} ausgewählt", "install_selected": "Auswahl installieren", "cancel": "Abbrechen", @@ -399,7 +431,11 @@ SELECTION_DIALOG_TEXTS = { "es-ES": { "select_all": "Seleccionar todo", "clear_all": "Limpiar", - "quick_select": "Tipos", + "quick_select": "Filtrar por tipo", + "all_types": "Todos", + "search_label": "Buscar", + "search_placeholder": "Buscar por titulo, descripcion o archivo...", + "no_results": "Ningun plugin coincide con el filtro actual.", "selected_count": "{count} seleccionados", "install_selected": "Instalar seleccionados", "cancel": "Cancelar", @@ -411,7 +447,11 @@ SELECTION_DIALOG_TEXTS = { "it-IT": { "select_all": "Seleziona tutto", "clear_all": "Cancella", - "quick_select": "Tipi", + "quick_select": "Filtra per tipo", + "all_types": "Tutti", + "search_label": "Cerca", + "search_placeholder": "Cerca per titolo, descrizione o file...", + "no_results": "Nessun plugin corrisponde al filtro attuale.", "selected_count": "{count} selezionati", "install_selected": "Installa selezionati", "cancel": "Annulla", @@ -423,7 +463,11 @@ SELECTION_DIALOG_TEXTS = { "vi-VN": { "select_all": "Chọn tất cả", "clear_all": "Bỏ chọn", - "quick_select": "Loại", + "quick_select": "Lọc theo loại", + "all_types": "Tất cả", + "search_label": "Tìm kiếm", + "search_placeholder": "Tìm theo tiêu đề, mô tả, đường dẫn tệp...", + "no_results": "Không có plugin nào khớp với bộ lọc hiện tại.", "selected_count": "Đã chọn {count}", "install_selected": "Cài đặt mục đã chọn", "cancel": "Hủy", @@ -905,6 +949,8 @@ def _build_selection_dialog_js( " return;", " }", " const selected = new Set(options.map((item) => item.id));", + " let activeFilter = '';", + " let searchTerm = '';", " const escapeHtml = (value) => String(value ?? '').replace(/[&<>\"']/g, (char) => ({", " '&': '&',", " '<': '<',", @@ -949,9 +995,15 @@ def _build_selection_dialog_js( " ", "
", " ", - "