From 8f37a1b7212a6d10085c6c4fd34fff99ca1dcac6 Mon Sep 17 00:00:00 2001 From: Shirasawa <764798966@qq.com> Date: Mon, 22 Dec 2025 18:38:18 +0800 Subject: [PATCH 001/228] i18n: improve zh-CN translation --- src/lib/i18n/locales/zh-CN/translation.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/i18n/locales/zh-CN/translation.json b/src/lib/i18n/locales/zh-CN/translation.json index cc02b5d5c9..a20b7514aa 100644 --- a/src/lib/i18n/locales/zh-CN/translation.json +++ b/src/lib/i18n/locales/zh-CN/translation.json @@ -12,10 +12,10 @@ "{{COUNT}} Available Tools": "{{COUNT}} 个可用工具", "{{COUNT}} characters": "{{COUNT}} 个字符", "{{COUNT}} extracted lines": "已提取 {{COUNT}} 行", - "{{COUNT}} files": "", + "{{COUNT}} files": "{{COUNT}} 个文件", "{{COUNT}} hidden lines": "{{COUNT}} 行被隐藏", "{{COUNT}} Replies": "{{COUNT}} 条回复", - "{{COUNT}} Rows": "", + "{{COUNT}} Rows": "{{COUNT}} 行", "{{COUNT}} Sources": "{{COUNT}} 个引用来源", "{{COUNT}} words": "{{COUNT}} 个字", "{{LOCALIZED_DATE}} at {{LOCALIZED_TIME}}": "{{LOCALIZED_DATE}} {{LOCALIZED_TIME}}", @@ -69,7 +69,7 @@ "Add text content": "添加文本内容", "Add User": "添加用户", "Add User Group": "添加权限组", - "Add webpage": "", + "Add webpage": "添加网页", "Additional Config": "额外配置项", "Additional configuration options for marker. This should be a JSON string with key-value pairs. For example, '{\"key\": \"value\"}'. Supported keys include: disable_links, keep_pageheader_in_output, keep_pagefooter_in_output, filter_blank_pages, drop_repeated_text, layout_coverage_threshold, merge_threshold, height_tolerance, gap_threshold, image_threshold, min_line_length, level_count, default_level": "Datalab Marker 的额外配置项,可以填写一个包含键值对的 JSON 字符串。例如:{\"key\": \"value\"}。支持的键包括:disable_links、keep_pageheader_in_output、keep_pagefooter_in_output、filter_blank_pages、drop_repeated_text、layout_coverage_threshold、merge_threshold、height_tolerance、gap_threshold、image_threshold、min_line_length、level_count 和 default_level。", "Additional Parameters": "额外参数", @@ -138,7 +138,7 @@ "API keys": "API 密钥", "API Keys": "API 密钥", "API Mode": "API 模式", - "API Timeout": "", + "API Timeout": "API 超时时间", "API Version": "API 版本", "API Version is required": "API 版本是必填项。", "Application DN": "Application DN", @@ -373,7 +373,7 @@ "Create new key": "创建新密钥", "Create new secret key": "创建新安全密钥", "Create note": "创建笔记", - "Create Note": "", + "Create Note": "创建笔记", "Create your first note by clicking on the plus button below.": "点击下面的加号按钮创建您的第一个笔记", "Created at": "创建于", "Created At": "创建于", @@ -738,7 +738,7 @@ "Failed to load chat preview": "对话预览加载失败", "Failed to load file content.": "文件内容加载失败", "Failed to move chat": "移动对话失败", - "Failed to process URL: {{url}}": "", + "Failed to process URL: {{url}}": "处理链接失败: {{url}}", "Failed to read clipboard contents": "读取剪贴板内容失败", "Failed to remove member": "移除成员失败", "Failed to render diagram": "图表渲染失败", @@ -998,7 +998,7 @@ "License": "授权", "Lift List": "上移列表", "Light": "浅色", - "Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).": "", + "Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).": "搜索并发数限制。默认为 0(无限制),设置为 1 则以顺序执行(推荐用于具有严格速率限制的接口,如 Brave 免费套餐)。", "List": "列表", "Listening...": "正在倾听...", "Llama.cpp": "Llama.cpp", @@ -1787,7 +1787,7 @@ "Web Search in Chat": "在对话时进行联网搜索", "Web Search Query Generation": "联网搜索关键词生成", "Webhook URL": "Webhook URL", - "Webpage URLs": "", + "Webpage URLs": "网页链接", "WebUI Settings": "WebUI 设置", "WebUI URL": "WebUI URL", "WebUI will make requests to \"{{url}}\"": "WebUI 将向 \"{{url}}\" 发出请求", From 42b6cf32bc6a6cc869dd93d6370cd972b39938cd Mon Sep 17 00:00:00 2001 From: Shirasawa <764798966@qq.com> Date: Mon, 22 Dec 2025 18:39:38 +0800 Subject: [PATCH 002/228] i18n: improve zh-TW translation --- src/lib/i18n/locales/zh-TW/translation.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/i18n/locales/zh-TW/translation.json b/src/lib/i18n/locales/zh-TW/translation.json index 14d1451b2d..3c07719ff3 100644 --- a/src/lib/i18n/locales/zh-TW/translation.json +++ b/src/lib/i18n/locales/zh-TW/translation.json @@ -12,10 +12,10 @@ "{{COUNT}} Available Tools": "{{COUNT}} 個可用工具", "{{COUNT}} characters": "{{COUNT}} 個字元", "{{COUNT}} extracted lines": "已擷取 {{COUNT}} 行", - "{{COUNT}} files": "", + "{{COUNT}} files": "{{COUNT}} 個文件", "{{COUNT}} hidden lines": "已隱藏 {{COUNT}} 行", "{{COUNT}} Replies": "{{COUNT}} 回覆", - "{{COUNT}} Rows": "", + "{{COUNT}} Rows": "{{COUNT}} 行", "{{COUNT}} Sources": "{{COUNT}} 個來源", "{{COUNT}} words": "{{COUNT}} 個詞", "{{LOCALIZED_DATE}} at {{LOCALIZED_TIME}}": "{{LOCALIZED_DATE}} {{LOCALIZED_TIME}}", @@ -69,7 +69,7 @@ "Add text content": "新增文字內容", "Add User": "新增使用者", "Add User Group": "新增使用者群組", - "Add webpage": "", + "Add webpage": "新增網頁", "Additional Config": "額外設定", "Additional configuration options for marker. This should be a JSON string with key-value pairs. For example, '{\"key\": \"value\"}'. Supported keys include: disable_links, keep_pageheader_in_output, keep_pagefooter_in_output, filter_blank_pages, drop_repeated_text, layout_coverage_threshold, merge_threshold, height_tolerance, gap_threshold, image_threshold, min_line_length, level_count, default_level": "Datalab Marker 的額外設定選項,可以填寫一個包含鍵值對的 JSON 字串。例如:{\"key\": \"value\"}。支援的鍵包括:disable_links、keep_pageheader_in_output、keep_pagefooter_in_output、filter_blank_pages、drop_repeated_text、layout_coverage_threshold、merge_threshold、height_tolerance、gap_threshold、image_threshold、min_line_length、level_count 和 default_level。", "Additional Parameters": "額外參數", @@ -138,7 +138,7 @@ "API keys": "API 金鑰", "API Keys": "API 金鑰", "API Mode": "API 模式", - "API Timeout": "", + "API Timeout": "API 超時時間", "API Version": "API 版本", "API Version is required": "API 版本為必填項目", "Application DN": "應用程式 DN", @@ -373,7 +373,7 @@ "Create new key": "建立新的金鑰", "Create new secret key": "建立新的金鑰", "Create note": "建立筆記", - "Create Note": "", + "Create Note": "建立筆記", "Create your first note by clicking on the plus button below.": "點選下方加號按鈕建立您的第一則筆記。", "Created at": "建立於", "Created At": "建立於", @@ -738,7 +738,7 @@ "Failed to load chat preview": "對話預覽載入失敗", "Failed to load file content.": "載入檔案內容失敗。", "Failed to move chat": "移動對話失敗", - "Failed to process URL: {{url}}": "", + "Failed to process URL: {{url}}": "處理鏈接失敗: {{url}}", "Failed to read clipboard contents": "讀取剪貼簿內容失敗", "Failed to remove member": "移除成員失敗", "Failed to render diagram": "繪製圖表失敗", @@ -998,7 +998,7 @@ "License": "授權", "Lift List": "上移清單", "Light": "淺色", - "Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).": "", + "Limit concurrent search queries. 0 = unlimited (default). Set to 1 for sequential execution (recommended for APIs with strict rate limits like Brave free tier).": "搜索並行數限制。默認為 0(無限制),設置為 1 則以順序執行(推薦用於具有嚴格速率限制的接口,如 Brave 免費套餐)。", "List": "列表", "Listening...": "正在聆聽...", "Llama.cpp": "Llama.cpp", @@ -1787,7 +1787,7 @@ "Web Search in Chat": "在對話中進行網頁搜尋", "Web Search Query Generation": "網頁搜尋查詢生成", "Webhook URL": "Webhook URL", - "Webpage URLs": "", + "Webpage URLs": "網頁連結", "WebUI Settings": "WebUI 設定", "WebUI URL": "WebUI URL", "WebUI will make requests to \"{{url}}\"": "WebUI 將向 \"{{url}}\" 傳送請求", From d0536000964ed9b0105ce34ccb179607ec942cd1 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 22 Dec 2025 17:20:19 +0400 Subject: [PATCH 003/228] refac: styling --- .../workspace/Models/ModelEditor.svelte | 322 +++++++++--------- 1 file changed, 162 insertions(+), 160 deletions(-) diff --git a/src/lib/components/workspace/Models/ModelEditor.svelte b/src/lib/components/workspace/Models/ModelEditor.svelte index 313be6938a..c302c213f8 100644 --- a/src/lib/components/workspace/Models/ModelEditor.svelte +++ b/src/lib/components/workspace/Models/ModelEditor.svelte @@ -414,190 +414,192 @@ submitHandler(); }} > -
-
- + +
+ - - - -
- -
- - -
-
- - - -
-
-
-
-
- -
-
-
+
+
+
+
+ +
+
+ +
+
-
-
- +
+ {$i18n.t('Access')} +
+ +
-
- {#if preset} -
-
- {$i18n.t('Base Model (From)')} -
+ {#if preset} +
+
+ {$i18n.t('Base Model (From)')} +
-
- - {#each $models.filter((m) => (model ? m.id !== model.id : true) && !m?.preset && m?.owned_by !== 'arena' && !(m?.direct ?? false)) as model} - - {/each} - + + {#each $models.filter((m) => (model ? m.id !== model.id : true) && !m?.preset && m?.owned_by !== 'arena' && !(m?.direct ?? false)) as model} + + {/each} + +
-
- {/if} + {/if} -
-
-
- {$i18n.t('Description')} +
+
+
+ {$i18n.t('Description')} +
+ +
- + {#if enableDescription} +