@vincentbanana/banana-gui 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/ui/app.js +34 -0
- package/ui/style.css +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vincentbanana/banana-gui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"description": "Banana 鐨勫浘褰㈢晫闈細鏈湴鏈嶅姟 + 娴忚鍣ㄣ€傞粦鐧戒富棰橈紝鑷粯鍥炬爣锛屾棤绗笁鏂?UI 渚濊禆",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"electron-builder": "^25.0.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@vincentbanana/bananacli": "^0.8.
|
|
75
|
+
"@vincentbanana/bananacli": "^0.8.18"
|
|
76
76
|
},
|
|
77
77
|
"license": "MIT",
|
|
78
78
|
"publishConfig": {
|
package/ui/app.js
CHANGED
|
@@ -395,6 +395,36 @@ const UI_EN = {
|
|
|
395
395
|
'项目文件': 'Project files',
|
|
396
396
|
'代码支持行号、全屏查看和选中后问 AI。': 'Code view supports line numbers, fullscreen and ask-AI on selection.',
|
|
397
397
|
'还没有会话。': 'No conversations yet.',
|
|
398
|
+
'取消': 'Cancel',
|
|
399
|
+
'确定': 'Confirm',
|
|
400
|
+
'删除': 'Delete',
|
|
401
|
+
'清空': 'Clear',
|
|
402
|
+
'关闭': 'Close',
|
|
403
|
+
'重命名会话': 'Rename conversation',
|
|
404
|
+
'输入新的标题': 'Enter a new title',
|
|
405
|
+
'标题不能为空': 'Title cannot be empty',
|
|
406
|
+
'删除这个会话?': 'Delete this conversation?',
|
|
407
|
+
'清空当前对话?': 'Clear this conversation?',
|
|
408
|
+
'消息、任务清单和计划都会被清空,这个操作无法撤回。': 'Messages, tasks and the plan will be cleared. This cannot be undone.',
|
|
409
|
+
'删除对话?': 'Delete conversation?',
|
|
410
|
+
'切换工作目录?': 'Switch working directory?',
|
|
411
|
+
'匹配到的对话会被删除,无法恢复。': 'Matching conversations will be deleted permanently.',
|
|
412
|
+
'agent 的文件工具范围会切换到新目录。': 'The agent will work inside the new directory.',
|
|
413
|
+
'发现项目级配置': 'Project-level config found',
|
|
414
|
+
'信任并加载': 'Trust and load',
|
|
415
|
+
'新建对话': 'New conversation',
|
|
416
|
+
'开始一个干净的会话': 'Start with a clean conversation',
|
|
417
|
+
'打开项目文件': 'Open project files',
|
|
418
|
+
'浏览、全屏查看、引用文件': 'Browse, view fullscreen and reference files',
|
|
419
|
+
'按文件查看增删行,审阅 agent 的修改': 'Review additions and deletions per file',
|
|
420
|
+
'底部 dock,不遮挡输入框': 'Bottom dock without covering the composer',
|
|
421
|
+
'打开控制中心': 'Open control center',
|
|
422
|
+
'模型、外观、终端、工作区、插件': 'Model, appearance, terminal, workspace, plugins',
|
|
423
|
+
'启用、停用、生成模板、试运行插件': 'Enable, disable, scaffold and test plugins',
|
|
424
|
+
'切换主题': 'Switch theme',
|
|
425
|
+
'浅色 / 深色 / 跟随系统': 'Light / dark / system',
|
|
426
|
+
'撤销上一轮改动': 'Undo the last turn',
|
|
427
|
+
'把文件恢复到上一轮对话之前': 'Restore files to before the last turn',
|
|
398
428
|
};
|
|
399
429
|
|
|
400
430
|
const LOCALIZE_SKIP = '.msg, .thread, pre, code, textarea';
|
|
@@ -414,6 +444,10 @@ function translateTextNode(node) {
|
|
|
414
444
|
}
|
|
415
445
|
const shifted = key.match(/^已切换到 (.+)$/);
|
|
416
446
|
if (next == null && shifted) next = `Switched to ${shifted[1]}`;
|
|
447
|
+
const deleted = key.match(/^「(.+?)」会从本地删除,无法恢复。$/);
|
|
448
|
+
if (next == null && deleted) next = `“${deleted[1]}” will be deleted locally. This cannot be undone.`;
|
|
449
|
+
const trust = key.match(/^这个工作区包含(.+?)。只有信任后才会加载;不信任时会被忽略。$/);
|
|
450
|
+
if (next == null && trust) next = `This workspace contains ${trust[1]}. It loads only after you trust it; otherwise it is ignored.`;
|
|
417
451
|
if (next == null) return;
|
|
418
452
|
if (node.__zhText == null) node.__zhText = raw;
|
|
419
453
|
node.nodeValue = raw.replace(key, next);
|
package/ui/style.css
CHANGED
|
@@ -4414,6 +4414,10 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4414
4414
|
.composer { box-shadow: none; }
|
|
4415
4415
|
.composer:focus-within { box-shadow: none; }
|
|
4416
4416
|
.chat-card { box-shadow: none; }
|
|
4417
|
+
.modal-card,
|
|
4418
|
+
.sheet-panel,
|
|
4419
|
+
.think,
|
|
4420
|
+
.work-group { box-shadow: none; }
|
|
4417
4421
|
|
|
4418
4422
|
/* 顶栏和聊天头部:少一点装饰,多一点边界 */
|
|
4419
4423
|
.topbar { height: 50px; }
|