优化代码
This commit is contained in:
@@ -3,14 +3,25 @@
|
||||
"settings": "API Settings",
|
||||
"default": "DEFAULT",
|
||||
"custom": "CUSTOM",
|
||||
"save": "Save",
|
||||
"save": "Save & Close",
|
||||
"cancel": "Cancel",
|
||||
"confirm": "Confirm",
|
||||
"loading": "Loading...",
|
||||
"generating": "Generating...",
|
||||
"expanding": "Expanding Idea...",
|
||||
"active": "Active",
|
||||
"signin": "SIGN IN",
|
||||
"tools": "Tools"
|
||||
"tools": "Tools",
|
||||
"confirmReset": "Are you sure you want to reset the canvas? All current ideas will be lost.",
|
||||
"error": {
|
||||
"title": "Request Failed",
|
||||
"cors": "Request blocked, possibly due to CORS policy or network connection issues.",
|
||||
"rateLimit": "Too many requests (429), please try again later.",
|
||||
"badRequest": "Bad request (400), please check your configuration.",
|
||||
"serverError": "Internal server error (500), please try again later.",
|
||||
"unknown": "An unknown error occurred, please check your network or API config.",
|
||||
"retry": "Retry"
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"title": "ThinkFlow AI",
|
||||
@@ -46,6 +57,7 @@
|
||||
"coreIdea": "Core Idea",
|
||||
"followUp": "Ask a follow-up...",
|
||||
"imgAction": "IMG",
|
||||
"deepDive": "Detail",
|
||||
"view": "View",
|
||||
"regenerate": "Regenerate",
|
||||
"mainTitle": "Root Node",
|
||||
@@ -53,11 +65,12 @@
|
||||
},
|
||||
"prompts": {
|
||||
"system": "You are a mind-mapping assistant that helps users expand their ideas layer by layer into a thinking tree.\n\nWorkflow:\n1. User provides an initial idea (or selects an existing node).\n2. Understand user intent based on the [Thinking Context Path] (trace from root to current node).\n3. Generate 3-5 deeper or related sub-ideas.\n4. Each sub-idea includes a short name and a minimal description.\n\nResponse format must be strict JSON:\n{'{'}\n \"nodes\": [\n {'{'} \"text\": \"Sub-idea 1 Name\", \"description\": \"One-sentence description\" {'}'},\n {'{'} \"text\": \"Sub-idea 2 Name\", \"description\": \"One-sentence description\" {'}'}\n ]\n{'}'}\n\nNote: Return ONLY JSON, no explanation.",
|
||||
"image": "Generate an illustration style image representing the theme: {prompt}. Requirements: Simple composition, bright colors, suitable as a visual aid for a mind map. NO Chinese characters or text in the image.",
|
||||
"image": "A beautiful book art illustration, theme: {prompt}. Style: Exquisite picture book aesthetic, warm tones, soft lighting, elegant and poetic composition that tells a story. Details: High-quality brushwork, minimalist yet decorative, suitable as a visual centerpiece for a mind map. STRICT REQUIREMENT: No text, letters, or characters in the image.",
|
||||
"continue": "Please continue exploring",
|
||||
"coreIdeaPrefix": "Core Idea",
|
||||
"contextPath": "Thinking Context Path",
|
||||
"selectedNode": "Current Selected Node",
|
||||
"newRequirement": "User Follow-up/New Requirement"
|
||||
"newRequirement": "User Follow-up/New Requirement",
|
||||
"deepDivePrompt": "Please provide a deep and detailed analysis of 【{topic}】. Requirements:\n1. Clear structure, including background, core principles, key elements, and practical applications.\n2. Professional yet easy-to-understand language.\n3. Total length around 300-500 words.\n4. Output the body text directly, do not use JSON format, and do not include any opening or closing remarks."
|
||||
}
|
||||
}
|
||||
@@ -1,22 +1,33 @@
|
||||
{
|
||||
"common": {
|
||||
"settings": "API 设置",
|
||||
"default": "默认模式",
|
||||
"custom": "自定义模式",
|
||||
"save": "保存",
|
||||
"default": "默认接口",
|
||||
"custom": "自定义接口",
|
||||
"save": "保存并关闭",
|
||||
"cancel": "取消",
|
||||
"confirm": "确定",
|
||||
"loading": "加载中...",
|
||||
"generating": "生成中...",
|
||||
"expanding": "正在展开想法...",
|
||||
"expanding": "发散中...",
|
||||
"active": "激活",
|
||||
"signin": "登录",
|
||||
"tools": "工具箱"
|
||||
"tools": "工具箱",
|
||||
"confirmReset": "确定要重置画布吗?当前的所有想法都将丢失。",
|
||||
"error": {
|
||||
"title": "请求失败",
|
||||
"cors": "网络请求受阻,可能是跨域(CORS)策略或网络连接问题。",
|
||||
"rateLimit": "请求过于频繁(429),请稍后再试。",
|
||||
"badRequest": "请求参数错误(400),请检查配置。",
|
||||
"serverError": "服务器内部错误(500),请稍后再试。",
|
||||
"unknown": "发生未知错误,请检查网络或 API 配置。",
|
||||
"retry": "重试"
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"title": "ThinkFlow AI",
|
||||
"subtitle": "思维导图 & AI 助手",
|
||||
"placeholder": "在这里输入您的想法...",
|
||||
"execute": "执行发散",
|
||||
"execute": "发散思维",
|
||||
"reset": "重置",
|
||||
"fit": "适配",
|
||||
"layout": "布局",
|
||||
@@ -46,6 +57,7 @@
|
||||
"coreIdea": "核心想法",
|
||||
"followUp": "输入后续问题...",
|
||||
"imgAction": "生图",
|
||||
"deepDive": "详情",
|
||||
"view": "查看",
|
||||
"regenerate": "重新生成",
|
||||
"mainTitle": "主节点",
|
||||
@@ -53,11 +65,12 @@
|
||||
},
|
||||
"prompts": {
|
||||
"system": "你是一个思维发散助手,帮助用户将想法逐层展开,构建思维树。\n\n工作流程:\n1. 用户给出一个初始想法(或选择一个已有节点继续追问)。\n2. 你需要根据【思考上下文路径】(即从根节点到当前节点的思考链路)来理解用户的意图。\n3. 生成 3-5 个更深层或相关维度的子想法。\n4. 每个子想法包含简短名称和极简描述。\n\n返回格式必须为严格 JSON:\n{'{'}\n \"nodes\": [\n {'{'} \"text\": \"子想法1名称\", \"description\": \"一句话描述\" {'}'},\n {'{'} \"text\": \"子想法2名称\", \"description\": \"一句话描述\" {'}'}\n ]\n{'}'}\n\n注意:只返回 JSON,不附加解释。",
|
||||
"image": "生成一张插画风格的图片,表现主题:{prompt}。要求:构图简洁,色彩明快,适合作为思维导图的视觉辅助,图片中严禁出现任何中文字符。",
|
||||
"image": "这是一张精美的艺术插画,主题是:{prompt}。风格要求:具有精致的绘本感,构图优美且富有诗意,像是在讲述一个故事。细节要求:高质量的笔触,极简主义与装饰艺术结合,适合作为思维导图的视觉核心。严禁:图片中不得出现任何文字、字母或字符。",
|
||||
"continue": "请继续深入发散",
|
||||
"coreIdeaPrefix": "核心想法",
|
||||
"contextPath": "思考上下文路径",
|
||||
"selectedNode": "当前选择节点",
|
||||
"newRequirement": "用户追问/新要求"
|
||||
"newRequirement": "用户追问/新要求",
|
||||
"deepDivePrompt": "请针对【{topic}】提供一个深度且详细的解析。要求:\n1. 结构清晰,包含背景、核心原理、关键要素和实际应用。\n2. 语言专业且易懂。\n3. 总字数控制在 300-500 字左右。\n4. 直接输出正文内容,不要包含 JSON 格式,也不要包含任何开场白或结束语。"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user