mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-01 16:28:46 +00:00
feat: Enhance AI Assistant with new actions and context handling
This commit is contained in:
@@ -42,6 +42,9 @@ export default {
|
||||
},
|
||||
editor: {
|
||||
pressToExecute: "Press Cmd+Enter to execute",
|
||||
noDatabase: "No database selected",
|
||||
selectConnection: "Select connection",
|
||||
selectDatabase: "Select database",
|
||||
},
|
||||
grid: {
|
||||
rows: "{count} rows",
|
||||
@@ -57,6 +60,7 @@ export default {
|
||||
exportCsv: "Export CSV",
|
||||
exportJson: "Export JSON",
|
||||
exportMarkdown: "Export Markdown",
|
||||
copied: "Copied!",
|
||||
search: "Search...",
|
||||
page: "Page {page}",
|
||||
rowsPerPage: "Rows per page",
|
||||
@@ -78,6 +82,35 @@ export default {
|
||||
placeholder: "Describe your query in natural language...",
|
||||
settings: "AI Settings",
|
||||
provider: "Provider",
|
||||
run: "Run",
|
||||
readingSchema: "Reading schema",
|
||||
noConnection: "No connection is available for this tab",
|
||||
noSql: "No SQL to process",
|
||||
sqlPreview: "SQL Preview",
|
||||
copySql: "Copy SQL",
|
||||
copyAll: "Copy All",
|
||||
copied: "Copied",
|
||||
replace: "Replace Editor",
|
||||
append: "Append to Editor",
|
||||
truncated: "Context truncated",
|
||||
contextSummary: "{database} · {tables} tables",
|
||||
settingsHint: "The config is stored in the local app data directory. Requests are sent by the Tauri backend instead of directly from the frontend.",
|
||||
actions: {
|
||||
generate: "Generate SQL",
|
||||
explain: "Explain SQL",
|
||||
optimize: "Optimize SQL",
|
||||
fix: "Fix Error",
|
||||
convert: "Convert Dialect",
|
||||
sampleData: "Sample Data",
|
||||
},
|
||||
placeholders: {
|
||||
generate: "Describe what you want to query, e.g. orders per user in the last 7 days",
|
||||
explain: "Optional: add what you want to understand",
|
||||
optimize: "Optional: add a goal, e.g. reduce full table scans",
|
||||
fix: "Paste the error or describe the expected result",
|
||||
convert: "e.g. convert to PostgreSQL / MySQL / SQL Server",
|
||||
sampleData: "Describe the sample data or test statements to generate",
|
||||
},
|
||||
},
|
||||
contextMenu: {
|
||||
openConnection: "Open Connection",
|
||||
|
||||
@@ -42,6 +42,9 @@ export default {
|
||||
},
|
||||
editor: {
|
||||
pressToExecute: "按 Cmd+Enter 执行查询",
|
||||
noDatabase: "未选择数据库",
|
||||
selectConnection: "选择连接",
|
||||
selectDatabase: "选择数据库",
|
||||
},
|
||||
grid: {
|
||||
rows: "{count} 行",
|
||||
@@ -57,6 +60,7 @@ export default {
|
||||
exportCsv: "导出 CSV",
|
||||
exportJson: "导出 JSON",
|
||||
exportMarkdown: "导出 Markdown",
|
||||
copied: "已复制!",
|
||||
search: "搜索...",
|
||||
page: "第 {page} 页",
|
||||
rowsPerPage: "每页行数",
|
||||
@@ -78,6 +82,35 @@ export default {
|
||||
placeholder: "用自然语言描述你的查询...",
|
||||
settings: "AI 设置",
|
||||
provider: "提供商",
|
||||
run: "执行",
|
||||
readingSchema: "读取结构",
|
||||
noConnection: "当前标签页没有可用连接",
|
||||
noSql: "当前没有 SQL 可处理",
|
||||
sqlPreview: "SQL 预览",
|
||||
copySql: "复制 SQL",
|
||||
copyAll: "复制全部",
|
||||
copied: "已复制",
|
||||
replace: "替换编辑器",
|
||||
append: "追加到编辑器",
|
||||
truncated: "上下文已截断",
|
||||
contextSummary: "{database} · {tables} 张表",
|
||||
settingsHint: "配置会保存在本机应用数据目录中。请求由 Tauri 后端发出,避免在前端直接暴露给模型服务。",
|
||||
actions: {
|
||||
generate: "生成 SQL",
|
||||
explain: "解释 SQL",
|
||||
optimize: "优化 SQL",
|
||||
fix: "修复错误",
|
||||
convert: "转换方言",
|
||||
sampleData: "生成样例",
|
||||
},
|
||||
placeholders: {
|
||||
generate: "描述你想查询什么,例如:统计最近 7 天每个用户的订单数",
|
||||
explain: "可留空,或补充你关心的点",
|
||||
optimize: "可留空,或说明优化目标,例如:减少全表扫描",
|
||||
fix: "粘贴报错或说明期望结果",
|
||||
convert: "例如:转换成 PostgreSQL / MySQL / SQL Server",
|
||||
sampleData: "描述要生成的样例数据或测试语句",
|
||||
},
|
||||
},
|
||||
contextMenu: {
|
||||
openConnection: "打开连接",
|
||||
|
||||
Reference in New Issue
Block a user