feat(deeplink): display all four Claude model fields in import dialog
- Show haiku/sonnet/opus/multiModel fields conditionally for Claude - Maintain single model field display for Codex and Gemini - Add i18n translations for new model field labels (zh/en)
This commit is contained in:
@@ -254,7 +254,54 @@ export function DeepLinkImportDialog() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Model (if present) */}
|
{/* Model Fields - 根据应用类型显示不同的模型字段 */}
|
||||||
|
{request.app === "claude" ? (
|
||||||
|
<>
|
||||||
|
{/* Claude 四种模型字段 */}
|
||||||
|
{request.haikuModel && (
|
||||||
|
<div className="grid grid-cols-3 items-center gap-4">
|
||||||
|
<div className="font-medium text-sm text-muted-foreground">
|
||||||
|
{t("deeplink.haikuModel")}
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-sm font-mono">
|
||||||
|
{request.haikuModel}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{request.sonnetModel && (
|
||||||
|
<div className="grid grid-cols-3 items-center gap-4">
|
||||||
|
<div className="font-medium text-sm text-muted-foreground">
|
||||||
|
{t("deeplink.sonnetModel")}
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-sm font-mono">
|
||||||
|
{request.sonnetModel}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{request.opusModel && (
|
||||||
|
<div className="grid grid-cols-3 items-center gap-4">
|
||||||
|
<div className="font-medium text-sm text-muted-foreground">
|
||||||
|
{t("deeplink.opusModel")}
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-sm font-mono">
|
||||||
|
{request.opusModel}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{request.model && (
|
||||||
|
<div className="grid grid-cols-3 items-center gap-4">
|
||||||
|
<div className="font-medium text-sm text-muted-foreground">
|
||||||
|
{t("deeplink.multiModel")}
|
||||||
|
</div>
|
||||||
|
<div className="col-span-2 text-sm font-mono">
|
||||||
|
{request.model}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
{/* Codex 和 Gemini 使用通用 model 字段 */}
|
||||||
{request.model && (
|
{request.model && (
|
||||||
<div className="grid grid-cols-3 items-center gap-4">
|
<div className="grid grid-cols-3 items-center gap-4">
|
||||||
<div className="font-medium text-sm text-muted-foreground">
|
<div className="font-medium text-sm text-muted-foreground">
|
||||||
@@ -265,6 +312,8 @@ export function DeepLinkImportDialog() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Notes (if present) */}
|
{/* Notes (if present) */}
|
||||||
{request.notes && (
|
{request.notes && (
|
||||||
|
|||||||
@@ -749,6 +749,10 @@
|
|||||||
"endpoint": "API Endpoint",
|
"endpoint": "API Endpoint",
|
||||||
"apiKey": "API Key",
|
"apiKey": "API Key",
|
||||||
"model": "Model",
|
"model": "Model",
|
||||||
|
"haikuModel": "Haiku Model",
|
||||||
|
"sonnetModel": "Sonnet Model",
|
||||||
|
"opusModel": "Opus Model",
|
||||||
|
"multiModel": "Multi-Modal Model",
|
||||||
"notes": "Notes",
|
"notes": "Notes",
|
||||||
"import": "Import",
|
"import": "Import",
|
||||||
"importing": "Importing...",
|
"importing": "Importing...",
|
||||||
|
|||||||
@@ -749,6 +749,10 @@
|
|||||||
"endpoint": "API 端点",
|
"endpoint": "API 端点",
|
||||||
"apiKey": "API 密钥",
|
"apiKey": "API 密钥",
|
||||||
"model": "模型",
|
"model": "模型",
|
||||||
|
"haikuModel": "Haiku 模型",
|
||||||
|
"sonnetModel": "Sonnet 模型",
|
||||||
|
"opusModel": "Opus 模型",
|
||||||
|
"multiModel": "多模态模型",
|
||||||
"notes": "备注",
|
"notes": "备注",
|
||||||
"import": "导入",
|
"import": "导入",
|
||||||
"importing": "导入中...",
|
"importing": "导入中...",
|
||||||
|
|||||||
Reference in New Issue
Block a user