From 17ab506b81cb783b083a591a5fada76be68232f6 Mon Sep 17 00:00:00 2001 From: Back Yu Date: Wed, 25 Mar 2026 14:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(feishu-form):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=B8=8B=E8=BD=BD=E7=9B=AE=E5=BD=95=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在飞书表单中新增下载目录输入字段 - 更新中英文翻译文件添加相关文案 - 支持设置自定义下载文件目录路径 --- .../components/channels/channel-forms/feishu-form.tsx | 10 ++++++++++ web/frontend/src/i18n/locales/en.json | 3 +++ web/frontend/src/i18n/locales/zh.json | 3 +++ 3 files changed, 16 insertions(+) diff --git a/web/frontend/src/components/channels/channel-forms/feishu-form.tsx b/web/frontend/src/components/channels/channel-forms/feishu-form.tsx index 386adf9a5..761ec4cd0 100644 --- a/web/frontend/src/components/channels/channel-forms/feishu-form.tsx +++ b/web/frontend/src/components/channels/channel-forms/feishu-form.tsx @@ -126,6 +126,16 @@ export function FeishuForm({ placeholder={t("channels.field.allowFromPlaceholder")} /> + + onChange("download_dir", e.target.value)} + placeholder={t("channels.field.downloadDirPlaceholder")} + /> + ) } diff --git a/web/frontend/src/i18n/locales/en.json b/web/frontend/src/i18n/locales/en.json index a7c60f893..a157bc339 100644 --- a/web/frontend/src/i18n/locales/en.json +++ b/web/frontend/src/i18n/locales/en.json @@ -300,6 +300,8 @@ "allowFromPlaceholder": "e.g. 123456, 789012", "allowOrigins": "Allow Origins", "allowOriginsPlaceholder": "e.g. https://example.com, http://localhost:5173", + "downloadDir": "Download Directory", + "downloadDirPlaceholder": "downloads or /absolute/path", "secretPlaceholder": "Enter secret", "secretHintSet": "A value is already set. Leave blank to keep it unchanged." }, @@ -331,6 +333,7 @@ "groupTriggerPrefixes": "Custom group-chat trigger prefixes, separated by commas.", "isLark": "Use Lark international domain (open.larksuite.com) instead of Feishu domain (open.feishu.cn).", "allowFrom": "Allowed user or group IDs, separated by commas.", + "downloadDir": "Custom directory for downloaded files. Relative paths are resolved from the workspace directory. Leave empty to use system temp directory.", "allowOrigins": "Allowed origin domains, separated by commas.", "wsUrl": "WebSocket service URL.", "reconnectInterval": "Reconnect interval after disconnection (seconds).", diff --git a/web/frontend/src/i18n/locales/zh.json b/web/frontend/src/i18n/locales/zh.json index 9dde090f8..6504236f0 100644 --- a/web/frontend/src/i18n/locales/zh.json +++ b/web/frontend/src/i18n/locales/zh.json @@ -300,6 +300,8 @@ "allowFromPlaceholder": "例如 123456, 789012", "allowOrigins": "允许来源域名", "allowOriginsPlaceholder": "例如 https://example.com, http://localhost:5173", + "downloadDir": "下载目录", + "downloadDirPlaceholder": "downloads 或 /absolute/path", "secretPlaceholder": "输入密钥", "secretHintSet": "已设置密钥,留空表示不修改。" }, @@ -331,6 +333,7 @@ "groupTriggerPrefixes": "群聊触发前缀,多个值用逗号分隔。", "isLark": "使用 Lark 国际版域名(open.larksuite.com)替代飞书域名(open.feishu.cn)。", "allowFrom": "允许访问的用户或群组 ID,多个值用逗号分隔。", + "downloadDir": "自定义下载文件目录。相对路径将基于工作目录解析,留空则使用系统临时目录。", "allowOrigins": "允许访问的来源域名,多个值用逗号分隔。", "wsUrl": "WebSocket 服务地址。", "reconnectInterval": "断线后的重连间隔(秒)。",