fix(webui): refine browser notifications (NAN-227)

Reconcile the original notification fix with the integrated main snapshot.

Group notification settings and simplify localized copy and documentation.
Preserve permission opt-out and notification click routing across app transitions.
Suppress late completion notifications for discarded temporary chats and align
notification settings skeletons with the loaded layout.
This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-20 13:45:04 +08:00
1 parent 7b2af031c0
commit 11152626f8
34 files changed
+728 -289

No files matched your search

+25 -10
View File
@@ -665,6 +665,7 @@
"byok": "BYOK",
"overview": "总览",
"appearance": "外观",
"notifications": "通知",
"models": "模型",
"providers": "提供商",
"image": "图片",
@@ -772,20 +773,34 @@
"availableCount": "可用模型:{{count}} 个"
},
"notifications": {
"scope": "本浏览器",
"intro": "选择任务结束时的提醒方式。",
"pageRequired": "页面关闭、挂起或断开连接后,无法接收新提醒。",
"revoked": "通知权限已撤销,已关闭提醒。请先在浏览器站点设置中允许通知,再在此开启。",
"retry": "重新检查",
"statusOff": "未开启",
"statusPermission": "需要授权",
"statusOn": "已开启",
"statusBlocked": "已被拒绝",
"statusRevoked": "权限已撤销",
"statusUnavailable": "不可用",
"statusWorker": "尚未就绪",
"statusBusy": "检查中…",
"statusError": "发送失败",
"test": "测试通知",
"testBody": "这是一条 nanobot 测试通知。",
"testBody": "这是一条测试通知。",
"waiting": "等待浏览器响应…",
"insecure": "请通过 HTTPS 或 localhost 打开 nanobot,再开启通知。",
"unsupported": "此浏览器不支持通知,请换用支持的浏览器。iPhone 或 iPad 需从主屏幕打开 nanobot。",
"denied": "通知已被浏览器阻止。请在本站的浏览器设置中允许通知,再重试。",
"unsupported": "此浏览器不支持通知,请更换浏览器。iPhone 或 iPad 请从主屏幕打开 nanobot。",
"denied": "通知已被浏览器阻止。请先在浏览器站点设置中允许通知,再在此开启。",
"dismissed": "尚未获得通知权限。请重新开启,并选择“允许”。",
"permissionFailed": "无法请求通知权限,请在支持的浏览器中重试。",
"workerUnavailable": "通知服务尚未就绪,请刷新页面后重试。",
"workerUnavailable": "通知服务尚未就绪,请重新检查或刷新页面。",
"displayFailed": "浏览器未能发送通知,请检查本站的通知权限后重试。",
"submitted": "已提交给浏览器。如未看到通知,请检查系统通知和勿扰设置。",
"completed": "任务已完成,打开 nanobot 查看结果。",
"failed": "任务未完成,打开 nanobot 查看详情。",
"interrupted": "任务需要处理,打开 nanobot 继续。"
"submitted": "已发送至浏览器。若未显示,请检查系统通知和勿扰设置。",
"completed": "任务已完成,点击查看结果。",
"failed": "任务失败,点击查看详情。",
"interrupted": "任务需要处理,点击继续。"
},
"rows": {
"theme": "主题",
@@ -851,8 +866,8 @@
"fileEditDisplay": "默认显示行数或展开修改内容",
"codeWrap": "长代码自动换行,方便阅读",
"brandLogos": "在设置中显示提供商与应用图标\n\n在设置中显示提供商和命令行应用的品牌图标。",
"browserNotifications": "网页在后台时,提醒任务结束或需要处理。请保持网页打开;关闭或挂起后无法接收新通知。",
"notificationSound": "回复结束播放提示音,默认关闭\n\n回合结束时播放短促提示音,页面在后台时也会播放。默认关闭。",
"browserNotifications": "页面在后台时提醒任务状态。",
"notificationSound": "回复结束时播放提示音,后台也会播放。",
"maxResults": "每次搜索最多显示多少条结果",
"timeout": "每次搜索最长等待时间,单位秒",
"jinaReader": "优先用 Jina Reader 读取网页\n\n读取网页时,优先使用可用的 Jina Reader。",