@lobehub/lobehub 2.0.0-next.240 → 2.0.0-next.241
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/CHANGELOG.md +25 -0
- package/apps/desktop/resources/locales/ar/menu.json +5 -1
- package/apps/desktop/resources/locales/bg-BG/menu.json +5 -1
- package/apps/desktop/resources/locales/de-DE/menu.json +5 -1
- package/apps/desktop/resources/locales/es-ES/menu.json +5 -1
- package/apps/desktop/resources/locales/fa-IR/menu.json +5 -1
- package/apps/desktop/resources/locales/fr-FR/menu.json +5 -1
- package/apps/desktop/resources/locales/it-IT/menu.json +5 -1
- package/apps/desktop/resources/locales/ja-JP/menu.json +5 -1
- package/apps/desktop/resources/locales/ko-KR/menu.json +5 -1
- package/apps/desktop/resources/locales/nl-NL/menu.json +5 -1
- package/apps/desktop/resources/locales/pl-PL/menu.json +5 -1
- package/apps/desktop/resources/locales/pt-BR/menu.json +5 -1
- package/apps/desktop/resources/locales/ru-RU/menu.json +5 -1
- package/apps/desktop/resources/locales/tr-TR/menu.json +5 -1
- package/apps/desktop/resources/locales/vi-VN/menu.json +5 -1
- package/apps/desktop/resources/locales/zh-CN/menu.json +5 -1
- package/apps/desktop/resources/locales/zh-TW/menu.json +5 -1
- package/apps/desktop/src/main/locales/default/menu.ts +5 -1
- package/apps/desktop/src/main/menus/impls/linux.ts +30 -0
- package/apps/desktop/src/main/menus/impls/macOS.test.ts +17 -0
- package/apps/desktop/src/main/menus/impls/macOS.ts +33 -0
- package/apps/desktop/src/main/menus/impls/windows.ts +30 -0
- package/changelog/v1.json +5 -0
- package/locales/ar/electron.json +24 -0
- package/locales/bg-BG/electron.json +24 -0
- package/locales/de-DE/electron.json +24 -0
- package/locales/en-US/electron.json +24 -0
- package/locales/es-ES/electron.json +24 -0
- package/locales/fa-IR/electron.json +24 -0
- package/locales/fr-FR/electron.json +24 -0
- package/locales/it-IT/electron.json +24 -0
- package/locales/ja-JP/electron.json +24 -0
- package/locales/ko-KR/electron.json +24 -0
- package/locales/nl-NL/electron.json +24 -0
- package/locales/pl-PL/electron.json +24 -0
- package/locales/pt-BR/electron.json +24 -0
- package/locales/ru-RU/electron.json +24 -0
- package/locales/tr-TR/electron.json +24 -0
- package/locales/vi-VN/electron.json +24 -0
- package/locales/zh-CN/electron.json +24 -0
- package/locales/zh-TW/electron.json +24 -0
- package/package.json +1 -1
- package/packages/electron-client-ipc/src/events/navigation.ts +12 -0
- package/src/components/PageTitle/index.tsx +11 -1
- package/src/features/ElectronTitlebar/NavigationBar/RecentlyViewed.tsx +137 -0
- package/src/features/ElectronTitlebar/NavigationBar/index.tsx +86 -0
- package/src/features/ElectronTitlebar/helpers/routeMetadata.ts +214 -0
- package/src/features/ElectronTitlebar/hooks/useNavigationHistory.ts +152 -0
- package/src/features/ElectronTitlebar/index.tsx +13 -5
- package/src/features/NavHeader/index.tsx +4 -2
- package/src/features/NavPanel/components/NavPanelDraggable.tsx +174 -0
- package/src/features/NavPanel/hooks/useNavPanel.ts +11 -35
- package/src/features/NavPanel/index.tsx +2 -126
- package/src/hooks/useTypeScriptHappyCallback.ts +7 -0
- package/src/locales/default/electron.ts +24 -0
- package/src/store/electron/actions/navigationHistory.ts +247 -0
- package/src/store/electron/initialState.ts +7 -1
- package/src/store/electron/store.ts +9 -2
- package/src/store/global/selectors/systemStatus.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.241](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.240...v2.0.0-next.241)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2026-01-08**</sup>
|
|
8
|
+
|
|
9
|
+
#### ✨ Features
|
|
10
|
+
|
|
11
|
+
- **desktop**: Implement history navigation stack.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's improved
|
|
19
|
+
|
|
20
|
+
- **desktop**: Implement history navigation stack, closes [#11341](https://github.com/lobehub/lobe-chat/issues/11341) ([db270d5](https://github.com/lobehub/lobe-chat/commit/db270d5))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.240](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.239...v2.0.0-next.240)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2026-01-08**</sup>
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "الإبلاغ عن مشكلة",
|
|
27
27
|
"help.title": "مساعدة",
|
|
28
28
|
"help.visitWebsite": "زيارة الموقع الرسمي",
|
|
29
|
+
"history.back": "رجوع",
|
|
30
|
+
"history.forward": "تقدم",
|
|
31
|
+
"history.home": "الرئيسية",
|
|
32
|
+
"history.title": "انتقل",
|
|
29
33
|
"macOS.about": "حول {{appName}}",
|
|
30
34
|
"macOS.devTools": "أدوات مطور LobeHub",
|
|
31
35
|
"macOS.hide": "إخفاء {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "نافذة",
|
|
51
55
|
"window.toggleFullscreen": "تبديل وضع ملء الشاشة",
|
|
52
56
|
"window.zoom": "تكبير"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Докладвай проблем",
|
|
27
27
|
"help.title": "Помощ",
|
|
28
28
|
"help.visitWebsite": "Посети уебсайта",
|
|
29
|
+
"history.back": "Назад",
|
|
30
|
+
"history.forward": "Напред",
|
|
31
|
+
"history.home": "Начало",
|
|
32
|
+
"history.title": "Отиди",
|
|
29
33
|
"macOS.about": "За {{appName}}",
|
|
30
34
|
"macOS.devTools": "Инструменти за разработчици на LobeHub",
|
|
31
35
|
"macOS.hide": "Скрий {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Прозорец",
|
|
51
55
|
"window.toggleFullscreen": "Превключи на цял екран",
|
|
52
56
|
"window.zoom": "Мащаб"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Problem melden",
|
|
27
27
|
"help.title": "Hilfe",
|
|
28
28
|
"help.visitWebsite": "Besuche die Website",
|
|
29
|
+
"history.back": "Zurück",
|
|
30
|
+
"history.forward": "Vorwärts",
|
|
31
|
+
"history.home": "Start",
|
|
32
|
+
"history.title": "Gehen",
|
|
29
33
|
"macOS.about": "Über {{appName}}",
|
|
30
34
|
"macOS.devTools": "LobeHub Entwicklerwerkzeuge",
|
|
31
35
|
"macOS.hide": "{{appName}} ausblenden",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Fenster",
|
|
51
55
|
"window.toggleFullscreen": "Vollbild umschalten",
|
|
52
56
|
"window.zoom": "Zoom"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Reportar un problema",
|
|
27
27
|
"help.title": "Ayuda",
|
|
28
28
|
"help.visitWebsite": "Visitar el sitio web",
|
|
29
|
+
"history.back": "Atrás",
|
|
30
|
+
"history.forward": "Adelante",
|
|
31
|
+
"history.home": "Inicio",
|
|
32
|
+
"history.title": "Ir",
|
|
29
33
|
"macOS.about": "Acerca de {{appName}}",
|
|
30
34
|
"macOS.devTools": "Herramientas de desarrollador de LobeHub",
|
|
31
35
|
"macOS.hide": "Ocultar {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Ventana",
|
|
51
55
|
"window.toggleFullscreen": "Alternar pantalla completa",
|
|
52
56
|
"window.zoom": "Zoom"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "گزارش مشکل",
|
|
27
27
|
"help.title": "کمک",
|
|
28
28
|
"help.visitWebsite": "بازدید از وبسایت",
|
|
29
|
+
"history.back": "بازگشت",
|
|
30
|
+
"history.forward": "جلو",
|
|
31
|
+
"history.home": "خانه",
|
|
32
|
+
"history.title": "برو",
|
|
29
33
|
"macOS.about": "درباره {{appName}}",
|
|
30
34
|
"macOS.devTools": "ابزارهای توسعهدهنده LobeHub",
|
|
31
35
|
"macOS.hide": "پنهان کردن {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "پنجره",
|
|
51
55
|
"window.toggleFullscreen": "تغییر به حالت تمام صفحه",
|
|
52
56
|
"window.zoom": "زوم"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Signaler un problème",
|
|
27
27
|
"help.title": "Aide",
|
|
28
28
|
"help.visitWebsite": "Visiter le site officiel",
|
|
29
|
+
"history.back": "Retour",
|
|
30
|
+
"history.forward": "Avancer",
|
|
31
|
+
"history.home": "Accueil",
|
|
32
|
+
"history.title": "Aller",
|
|
29
33
|
"macOS.about": "À propos de {{appName}}",
|
|
30
34
|
"macOS.devTools": "Outils de développement LobeHub",
|
|
31
35
|
"macOS.hide": "Masquer {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Fenêtre",
|
|
51
55
|
"window.toggleFullscreen": "Basculer en plein écran",
|
|
52
56
|
"window.zoom": "Zoom"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Segnala un problema",
|
|
27
27
|
"help.title": "Aiuto",
|
|
28
28
|
"help.visitWebsite": "Visita il sito ufficiale",
|
|
29
|
+
"history.back": "Indietro",
|
|
30
|
+
"history.forward": "Avanti",
|
|
31
|
+
"history.home": "Home",
|
|
32
|
+
"history.title": "Vai",
|
|
29
33
|
"macOS.about": "Informazioni su {{appName}}",
|
|
30
34
|
"macOS.devTools": "Strumenti per sviluppatori LobeHub",
|
|
31
35
|
"macOS.hide": "Nascondi {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Finestra",
|
|
51
55
|
"window.toggleFullscreen": "Attiva/disattiva schermo intero",
|
|
52
56
|
"window.zoom": "Zoom"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "問題を報告",
|
|
27
27
|
"help.title": "ヘルプ",
|
|
28
28
|
"help.visitWebsite": "公式ウェブサイトを訪問",
|
|
29
|
+
"history.back": "戻る",
|
|
30
|
+
"history.forward": "進む",
|
|
31
|
+
"history.home": "ホーム",
|
|
32
|
+
"history.title": "移動",
|
|
29
33
|
"macOS.about": "{{appName}} について",
|
|
30
34
|
"macOS.devTools": "LobeHub 開発者ツール",
|
|
31
35
|
"macOS.hide": "{{appName}} を隠す",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "ウィンドウ",
|
|
51
55
|
"window.toggleFullscreen": "フルスクリーン切替",
|
|
52
56
|
"window.zoom": "ズーム"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "문제 보고",
|
|
27
27
|
"help.title": "도움말",
|
|
28
28
|
"help.visitWebsite": "웹사이트 방문",
|
|
29
|
+
"history.back": "뒤로",
|
|
30
|
+
"history.forward": "앞으로",
|
|
31
|
+
"history.home": "홈",
|
|
32
|
+
"history.title": "이동",
|
|
29
33
|
"macOS.about": "{{appName}} 정보",
|
|
30
34
|
"macOS.devTools": "LobeHub 개발자 도구",
|
|
31
35
|
"macOS.hide": "{{appName}} 숨기기",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "창",
|
|
51
55
|
"window.toggleFullscreen": "전체 화면 전환",
|
|
52
56
|
"window.zoom": "줌"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Probleem melden",
|
|
27
27
|
"help.title": "Hulp",
|
|
28
28
|
"help.visitWebsite": "Bezoek de website",
|
|
29
|
+
"history.back": "Terug",
|
|
30
|
+
"history.forward": "Vooruit",
|
|
31
|
+
"history.home": "Home",
|
|
32
|
+
"history.title": "Ga",
|
|
29
33
|
"macOS.about": "Over {{appName}}",
|
|
30
34
|
"macOS.devTools": "LobeHub Ontwikkelaarstools",
|
|
31
35
|
"macOS.hide": "Verberg {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Venster",
|
|
51
55
|
"window.toggleFullscreen": "Schakel volledig scherm in/uit",
|
|
52
56
|
"window.zoom": "Inzoomen"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Zgłoś problem",
|
|
27
27
|
"help.title": "Pomoc",
|
|
28
28
|
"help.visitWebsite": "Odwiedź stronę internetową",
|
|
29
|
+
"history.back": "Wstecz",
|
|
30
|
+
"history.forward": "Naprzód",
|
|
31
|
+
"history.home": "Strona główna",
|
|
32
|
+
"history.title": "Idź",
|
|
29
33
|
"macOS.about": "O {{appName}}",
|
|
30
34
|
"macOS.devTools": "Narzędzia dewelopera LobeHub",
|
|
31
35
|
"macOS.hide": "Ukryj {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Okno",
|
|
51
55
|
"window.toggleFullscreen": "Przełącz tryb pełnoekranowy",
|
|
52
56
|
"window.zoom": "Powiększenie"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Reportar Problema",
|
|
27
27
|
"help.title": "Ajuda",
|
|
28
28
|
"help.visitWebsite": "Visitar o Site",
|
|
29
|
+
"history.back": "Voltar",
|
|
30
|
+
"history.forward": "Avançar",
|
|
31
|
+
"history.home": "Início",
|
|
32
|
+
"history.title": "Ir",
|
|
29
33
|
"macOS.about": "Sobre {{appName}}",
|
|
30
34
|
"macOS.devTools": "Ferramentas do Desenvolvedor LobeHub",
|
|
31
35
|
"macOS.hide": "Ocultar {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Janela",
|
|
51
55
|
"window.toggleFullscreen": "Alternar Tela Cheia",
|
|
52
56
|
"window.zoom": "Zoom"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Сообщить о проблеме",
|
|
27
27
|
"help.title": "Помощь",
|
|
28
28
|
"help.visitWebsite": "Посетить сайт",
|
|
29
|
+
"history.back": "Назад",
|
|
30
|
+
"history.forward": "Вперёд",
|
|
31
|
+
"history.home": "Домой",
|
|
32
|
+
"history.title": "Перейти",
|
|
29
33
|
"macOS.about": "О {{appName}}",
|
|
30
34
|
"macOS.devTools": "Инструменты разработчика LobeHub",
|
|
31
35
|
"macOS.hide": "Скрыть {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Окно",
|
|
51
55
|
"window.toggleFullscreen": "Переключить полноэкранный режим",
|
|
52
56
|
"window.zoom": "Масштаб"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Sorun Bildir",
|
|
27
27
|
"help.title": "Yardım",
|
|
28
28
|
"help.visitWebsite": "Resmi Web Sitesini Ziyaret Et",
|
|
29
|
+
"history.back": "Geri",
|
|
30
|
+
"history.forward": "İleri",
|
|
31
|
+
"history.home": "Ana Sayfa",
|
|
32
|
+
"history.title": "Git",
|
|
29
33
|
"macOS.about": "{{appName}} Hakkında",
|
|
30
34
|
"macOS.devTools": "LobeHub Geliştirici Araçları",
|
|
31
35
|
"macOS.hide": "{{appName}}'i Gizle",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Pencere",
|
|
51
55
|
"window.toggleFullscreen": "Tam Ekrana Geç",
|
|
52
56
|
"window.zoom": "Yakınlaştır"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "Báo cáo sự cố",
|
|
27
27
|
"help.title": "Trợ giúp",
|
|
28
28
|
"help.visitWebsite": "Truy cập trang web",
|
|
29
|
+
"history.back": "Quay lại",
|
|
30
|
+
"history.forward": "Tiến tới",
|
|
31
|
+
"history.home": "Trang chủ",
|
|
32
|
+
"history.title": "Đi",
|
|
29
33
|
"macOS.about": "Về {{appName}}",
|
|
30
34
|
"macOS.devTools": "Công cụ phát triển LobeHub",
|
|
31
35
|
"macOS.hide": "Ẩn {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "Cửa sổ",
|
|
51
55
|
"window.toggleFullscreen": "Chuyển đổi toàn màn hình",
|
|
52
56
|
"window.zoom": "Thu phóng"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"help.reportIssue": "反馈问题",
|
|
36
36
|
"help.title": "帮助",
|
|
37
37
|
"help.visitWebsite": "打开官网",
|
|
38
|
+
"history.back": "后退",
|
|
39
|
+
"history.forward": "前进",
|
|
40
|
+
"history.home": "主页",
|
|
41
|
+
"history.title": "前往",
|
|
38
42
|
"macOS.about": "关于 {{appName}}",
|
|
39
43
|
"macOS.devTools": "LobeHub 开发者工具",
|
|
40
44
|
"macOS.hide": "隐藏 {{appName}}",
|
|
@@ -59,4 +63,4 @@
|
|
|
59
63
|
"window.title": "窗口",
|
|
60
64
|
"window.toggleFullscreen": "切换全屏",
|
|
61
65
|
"window.zoom": "缩放"
|
|
62
|
-
}
|
|
66
|
+
}
|
|
@@ -26,6 +26,10 @@
|
|
|
26
26
|
"help.reportIssue": "報告問題",
|
|
27
27
|
"help.title": "幫助",
|
|
28
28
|
"help.visitWebsite": "訪問網站",
|
|
29
|
+
"history.back": "後退",
|
|
30
|
+
"history.forward": "前進",
|
|
31
|
+
"history.home": "首頁",
|
|
32
|
+
"history.title": "前往",
|
|
29
33
|
"macOS.about": "關於 {{appName}}",
|
|
30
34
|
"macOS.devTools": "LobeHub 開發者工具",
|
|
31
35
|
"macOS.hide": "隱藏 {{appName}}",
|
|
@@ -50,4 +54,4 @@
|
|
|
50
54
|
"window.title": "視窗",
|
|
51
55
|
"window.toggleFullscreen": "切換全螢幕",
|
|
52
56
|
"window.zoom": "縮放"
|
|
53
|
-
}
|
|
57
|
+
}
|
|
@@ -35,6 +35,10 @@ const menu = {
|
|
|
35
35
|
'help.reportIssue': 'Send Feedback',
|
|
36
36
|
'help.title': 'Help',
|
|
37
37
|
'help.visitWebsite': 'Open Website',
|
|
38
|
+
'history.back': 'Back',
|
|
39
|
+
'history.forward': 'Forward',
|
|
40
|
+
'history.home': 'Home',
|
|
41
|
+
'history.title': 'Go',
|
|
38
42
|
'macOS.about': 'About {{appName}}',
|
|
39
43
|
'macOS.devTools': 'LobeHub Developer Tools',
|
|
40
44
|
'macOS.hide': 'Hide {{appName}}',
|
|
@@ -61,4 +65,4 @@ const menu = {
|
|
|
61
65
|
'window.zoom': 'Zoom',
|
|
62
66
|
};
|
|
63
67
|
|
|
64
|
-
export default menu;
|
|
68
|
+
export default menu;
|
|
@@ -102,6 +102,36 @@ export class LinuxMenu extends BaseMenuPlatform implements IMenuPlatform {
|
|
|
102
102
|
{ accelerator: 'F11', label: t('view.toggleFullscreen'), role: 'togglefullscreen' },
|
|
103
103
|
],
|
|
104
104
|
},
|
|
105
|
+
{
|
|
106
|
+
label: t('history.title'),
|
|
107
|
+
submenu: [
|
|
108
|
+
{
|
|
109
|
+
accelerator: 'Alt+Left',
|
|
110
|
+
click: () => {
|
|
111
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
112
|
+
mainWindow.broadcast('historyGoBack');
|
|
113
|
+
},
|
|
114
|
+
label: t('history.back'),
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
accelerator: 'Alt+Right',
|
|
118
|
+
click: () => {
|
|
119
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
120
|
+
mainWindow.broadcast('historyGoForward');
|
|
121
|
+
},
|
|
122
|
+
label: t('history.forward'),
|
|
123
|
+
},
|
|
124
|
+
{ type: 'separator' },
|
|
125
|
+
{
|
|
126
|
+
accelerator: 'Ctrl+Shift+H',
|
|
127
|
+
click: () => {
|
|
128
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
129
|
+
mainWindow.broadcast('navigate', { path: '/' });
|
|
130
|
+
},
|
|
131
|
+
label: t('history.home'),
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
105
135
|
{
|
|
106
136
|
label: t('window.title'),
|
|
107
137
|
submenu: [
|
|
@@ -292,6 +292,23 @@ describe('MacOSMenu', () => {
|
|
|
292
292
|
|
|
293
293
|
expect(copyItem.accelerator).toBe('Command+C');
|
|
294
294
|
});
|
|
295
|
+
|
|
296
|
+
it('should set correct accelerators for history navigation', () => {
|
|
297
|
+
macOSMenu.buildAndSetAppMenu();
|
|
298
|
+
|
|
299
|
+
const template = (Menu.buildFromTemplate as any).mock.calls[0][0];
|
|
300
|
+
const historyMenu = template.find(
|
|
301
|
+
(item: any) => item.label === menuTranslations['history.title'],
|
|
302
|
+
);
|
|
303
|
+
|
|
304
|
+
const backItem = historyMenu.submenu.find((item: any) => item.label === 'Back');
|
|
305
|
+
const forwardItem = historyMenu.submenu.find((item: any) => item.label === 'Forward');
|
|
306
|
+
const homeItem = historyMenu.submenu.find((item: any) => item.label === 'Home');
|
|
307
|
+
|
|
308
|
+
expect(backItem.accelerator).toBe('Command+[');
|
|
309
|
+
expect(forwardItem.accelerator).toBe('Command+]');
|
|
310
|
+
expect(homeItem.accelerator).toBe('Shift+Command+H');
|
|
311
|
+
});
|
|
295
312
|
});
|
|
296
313
|
|
|
297
314
|
describe('developer menu items', () => {
|
|
@@ -166,6 +166,39 @@ export class MacOSMenu extends BaseMenuPlatform implements IMenuPlatform {
|
|
|
166
166
|
{ accelerator: 'F11', label: t('view.toggleFullscreen'), role: 'togglefullscreen' },
|
|
167
167
|
],
|
|
168
168
|
},
|
|
169
|
+
{
|
|
170
|
+
label: t('history.title'),
|
|
171
|
+
submenu: [
|
|
172
|
+
{
|
|
173
|
+
accelerator: 'Command+[',
|
|
174
|
+
acceleratorWorksWhenHidden: true,
|
|
175
|
+
click: () => {
|
|
176
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
177
|
+
mainWindow.broadcast('historyGoBack');
|
|
178
|
+
},
|
|
179
|
+
label: t('history.back'),
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
accelerator: 'Command+]',
|
|
183
|
+
acceleratorWorksWhenHidden: true,
|
|
184
|
+
click: () => {
|
|
185
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
186
|
+
mainWindow.broadcast('historyGoForward');
|
|
187
|
+
},
|
|
188
|
+
label: t('history.forward'),
|
|
189
|
+
},
|
|
190
|
+
{ type: 'separator' },
|
|
191
|
+
{
|
|
192
|
+
accelerator: 'Shift+Command+H',
|
|
193
|
+
acceleratorWorksWhenHidden: true,
|
|
194
|
+
click: () => {
|
|
195
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
196
|
+
mainWindow.broadcast('navigate', { path: '/' });
|
|
197
|
+
},
|
|
198
|
+
label: t('history.home'),
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
},
|
|
169
202
|
{
|
|
170
203
|
label: t('window.title'),
|
|
171
204
|
role: 'windowMenu',
|
|
@@ -101,6 +101,36 @@ export class WindowsMenu extends BaseMenuPlatform implements IMenuPlatform {
|
|
|
101
101
|
{ accelerator: 'F11', label: t('view.toggleFullscreen'), role: 'togglefullscreen' },
|
|
102
102
|
],
|
|
103
103
|
},
|
|
104
|
+
{
|
|
105
|
+
label: t('history.title'),
|
|
106
|
+
submenu: [
|
|
107
|
+
{
|
|
108
|
+
accelerator: 'Alt+Left',
|
|
109
|
+
click: () => {
|
|
110
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
111
|
+
mainWindow.broadcast('historyGoBack');
|
|
112
|
+
},
|
|
113
|
+
label: t('history.back'),
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
accelerator: 'Alt+Right',
|
|
117
|
+
click: () => {
|
|
118
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
119
|
+
mainWindow.broadcast('historyGoForward');
|
|
120
|
+
},
|
|
121
|
+
label: t('history.forward'),
|
|
122
|
+
},
|
|
123
|
+
{ type: 'separator' },
|
|
124
|
+
{
|
|
125
|
+
accelerator: 'Ctrl+Shift+H',
|
|
126
|
+
click: () => {
|
|
127
|
+
const mainWindow = this.app.browserManager.getMainWindow();
|
|
128
|
+
mainWindow.broadcast('navigate', { path: '/' });
|
|
129
|
+
},
|
|
130
|
+
label: t('history.home'),
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
104
134
|
{
|
|
105
135
|
label: t('window.title'),
|
|
106
136
|
submenu: [
|
package/changelog/v1.json
CHANGED
package/locales/ar/electron.json
CHANGED
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
+
"navigation.chat": "محادثة",
|
|
3
|
+
"navigation.discover": "اكتشف",
|
|
4
|
+
"navigation.discoverAssistants": "اكتشف المساعدين",
|
|
5
|
+
"navigation.discoverMcp": "اكتشف MCP",
|
|
6
|
+
"navigation.discoverModels": "اكتشف النماذج",
|
|
7
|
+
"navigation.discoverProviders": "اكتشف المزودين",
|
|
8
|
+
"navigation.group": "مجموعة",
|
|
9
|
+
"navigation.groupChat": "محادثة جماعية",
|
|
10
|
+
"navigation.home": "الرئيسية",
|
|
11
|
+
"navigation.image": "صورة",
|
|
12
|
+
"navigation.knowledgeBase": "قاعدة المعرفة",
|
|
13
|
+
"navigation.lobehub": "LobeHub",
|
|
14
|
+
"navigation.memory": "الذاكرة",
|
|
15
|
+
"navigation.memoryContexts": "الذاكرة - السياقات",
|
|
16
|
+
"navigation.memoryExperiences": "الذاكرة - التجارب",
|
|
17
|
+
"navigation.memoryIdentities": "الذاكرة - الهويات",
|
|
18
|
+
"navigation.memoryPreferences": "الذاكرة - التفضيلات",
|
|
19
|
+
"navigation.onboarding": "البدء",
|
|
20
|
+
"navigation.page": "صفحة",
|
|
21
|
+
"navigation.pages": "الصفحات",
|
|
22
|
+
"navigation.provider": "المزود",
|
|
23
|
+
"navigation.recentView": "المشاهدات الأخيرة",
|
|
24
|
+
"navigation.resources": "الموارد",
|
|
25
|
+
"navigation.settings": "الإعدادات",
|
|
2
26
|
"notification.finishChatGeneration": "اكتمل توليد الرسالة بواسطة الذكاء الاصطناعي",
|
|
3
27
|
"proxy.auth": "يتطلب المصادقة",
|
|
4
28
|
"proxy.authDesc": "إذا كان خادم البروكسي يتطلب اسم مستخدم وكلمة مرور",
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
+
"navigation.chat": "Чат",
|
|
3
|
+
"navigation.discover": "Откриване",
|
|
4
|
+
"navigation.discoverAssistants": "Откриване на Асистенти",
|
|
5
|
+
"navigation.discoverMcp": "Откриване на MCP",
|
|
6
|
+
"navigation.discoverModels": "Откриване на Модели",
|
|
7
|
+
"navigation.discoverProviders": "Откриване на Доставчици",
|
|
8
|
+
"navigation.group": "Група",
|
|
9
|
+
"navigation.groupChat": "Групов Чат",
|
|
10
|
+
"navigation.home": "Начало",
|
|
11
|
+
"navigation.image": "Изображение",
|
|
12
|
+
"navigation.knowledgeBase": "База Знания",
|
|
13
|
+
"navigation.lobehub": "LobeHub",
|
|
14
|
+
"navigation.memory": "Памят",
|
|
15
|
+
"navigation.memoryContexts": "Памят - Контексти",
|
|
16
|
+
"navigation.memoryExperiences": "Памят - Преживявания",
|
|
17
|
+
"navigation.memoryIdentities": "Памят - Идентичности",
|
|
18
|
+
"navigation.memoryPreferences": "Памят - Предпочитания",
|
|
19
|
+
"navigation.onboarding": "Въведение",
|
|
20
|
+
"navigation.page": "Страница",
|
|
21
|
+
"navigation.pages": "Страници",
|
|
22
|
+
"navigation.provider": "Доставчик",
|
|
23
|
+
"navigation.recentView": "Последни преглеждания",
|
|
24
|
+
"navigation.resources": "Ресурси",
|
|
25
|
+
"navigation.settings": "Настройки",
|
|
2
26
|
"notification.finishChatGeneration": "Генерирането на съобщение от ИИ е завършено",
|
|
3
27
|
"proxy.auth": "Изисква се удостоверяване",
|
|
4
28
|
"proxy.authDesc": "Ако прокси сървърът изисква потребителско име и парола",
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
+
"navigation.chat": "Chat",
|
|
3
|
+
"navigation.discover": "Entdecken",
|
|
4
|
+
"navigation.discoverAssistants": "Assistenten entdecken",
|
|
5
|
+
"navigation.discoverMcp": "MCP entdecken",
|
|
6
|
+
"navigation.discoverModels": "Modelle entdecken",
|
|
7
|
+
"navigation.discoverProviders": "Anbieter entdecken",
|
|
8
|
+
"navigation.group": "Gruppe",
|
|
9
|
+
"navigation.groupChat": "Gruppen-Chat",
|
|
10
|
+
"navigation.home": "Startseite",
|
|
11
|
+
"navigation.image": "Bild",
|
|
12
|
+
"navigation.knowledgeBase": "Wissensdatenbank",
|
|
13
|
+
"navigation.lobehub": "LobeHub",
|
|
14
|
+
"navigation.memory": "Speicher",
|
|
15
|
+
"navigation.memoryContexts": "Speicher - Kontexte",
|
|
16
|
+
"navigation.memoryExperiences": "Speicher - Erfahrungen",
|
|
17
|
+
"navigation.memoryIdentities": "Speicher - Identitäten",
|
|
18
|
+
"navigation.memoryPreferences": "Speicher - Präferenzen",
|
|
19
|
+
"navigation.onboarding": "Einführung",
|
|
20
|
+
"navigation.page": "Seite",
|
|
21
|
+
"navigation.pages": "Seiten",
|
|
22
|
+
"navigation.provider": "Anbieter",
|
|
23
|
+
"navigation.recentView": "Zuletzt angesehen",
|
|
24
|
+
"navigation.resources": "Ressourcen",
|
|
25
|
+
"navigation.settings": "Einstellungen",
|
|
2
26
|
"notification.finishChatGeneration": "KI-Nachrichtenerstellung abgeschlossen",
|
|
3
27
|
"proxy.auth": "Authentifizierung erforderlich",
|
|
4
28
|
"proxy.authDesc": "Falls der Proxy-Server einen Benutzernamen und ein Passwort benötigt",
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
+
"navigation.chat": "Chat",
|
|
3
|
+
"navigation.discover": "Discover",
|
|
4
|
+
"navigation.discoverAssistants": "Discover Assistants",
|
|
5
|
+
"navigation.discoverMcp": "Discover MCP",
|
|
6
|
+
"navigation.discoverModels": "Discover Models",
|
|
7
|
+
"navigation.discoverProviders": "Discover Providers",
|
|
8
|
+
"navigation.group": "Group",
|
|
9
|
+
"navigation.groupChat": "Group Chat",
|
|
10
|
+
"navigation.home": "Home",
|
|
11
|
+
"navigation.image": "Image",
|
|
12
|
+
"navigation.knowledgeBase": "Knowledge Base",
|
|
13
|
+
"navigation.lobehub": "LobeHub",
|
|
14
|
+
"navigation.memory": "Memory",
|
|
15
|
+
"navigation.memoryContexts": "Memory - Contexts",
|
|
16
|
+
"navigation.memoryExperiences": "Memory - Experiences",
|
|
17
|
+
"navigation.memoryIdentities": "Memory - Identities",
|
|
18
|
+
"navigation.memoryPreferences": "Memory - Preferences",
|
|
19
|
+
"navigation.onboarding": "Onboarding",
|
|
20
|
+
"navigation.page": "Page",
|
|
21
|
+
"navigation.pages": "Pages",
|
|
22
|
+
"navigation.provider": "Provider",
|
|
23
|
+
"navigation.recentView": "Recent pages",
|
|
24
|
+
"navigation.resources": "Resources",
|
|
25
|
+
"navigation.settings": "Settings",
|
|
2
26
|
"notification.finishChatGeneration": "AI message generation completed",
|
|
3
27
|
"proxy.auth": "Authentication Required",
|
|
4
28
|
"proxy.authDesc": "If the proxy server requires a username and password",
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
{
|
|
2
|
+
"navigation.chat": "Chat",
|
|
3
|
+
"navigation.discover": "Descubrir",
|
|
4
|
+
"navigation.discoverAssistants": "Descubrir Asistentes",
|
|
5
|
+
"navigation.discoverMcp": "Descubrir MCP",
|
|
6
|
+
"navigation.discoverModels": "Descubrir Modelos",
|
|
7
|
+
"navigation.discoverProviders": "Descubrir Proveedores",
|
|
8
|
+
"navigation.group": "Grupo",
|
|
9
|
+
"navigation.groupChat": "Chat de Grupo",
|
|
10
|
+
"navigation.home": "Inicio",
|
|
11
|
+
"navigation.image": "Imagen",
|
|
12
|
+
"navigation.knowledgeBase": "Base de Conocimiento",
|
|
13
|
+
"navigation.lobehub": "LobeHub",
|
|
14
|
+
"navigation.memory": "Memoria",
|
|
15
|
+
"navigation.memoryContexts": "Memoria - Contextos",
|
|
16
|
+
"navigation.memoryExperiences": "Memoria - Experiencias",
|
|
17
|
+
"navigation.memoryIdentities": "Memoria - Identidades",
|
|
18
|
+
"navigation.memoryPreferences": "Memoria - Preferencias",
|
|
19
|
+
"navigation.onboarding": "Incorporación",
|
|
20
|
+
"navigation.page": "Página",
|
|
21
|
+
"navigation.pages": "Páginas",
|
|
22
|
+
"navigation.provider": "Proveedor",
|
|
23
|
+
"navigation.recentView": "Vistas recientes",
|
|
24
|
+
"navigation.resources": "Recursos",
|
|
25
|
+
"navigation.settings": "Configuración",
|
|
2
26
|
"notification.finishChatGeneration": "Generación de mensaje por IA completada",
|
|
3
27
|
"proxy.auth": "Autenticación requerida",
|
|
4
28
|
"proxy.authDesc": "Si el servidor proxy requiere un nombre de usuario y una contraseña",
|