chore: locales

This commit is contained in:
lencx 2024-02-18 15:54:37 +08:00
parent e4d4f3ed72
commit 78f33dda41
17 changed files with 155 additions and 16 deletions

View File

@ -9,7 +9,7 @@ Learn more: [electronjs/doc](https://www.electronjs.org/docs/latest/api/extensio
<!-- EXTENSIONS_START -->
| Name | Version | Description |
| --- | --- | --- |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.3 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask](https://github.com/lencx/Noi/tree/main/extensions/noi-ask) | 0.1.4 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/ask-custom](https://github.com/lencx/Noi/tree/main/extensions/noi-ask-custom) | 0.1.0 | The best assistant for batch asking and quick typing of prompts. |
| [@noi/export-chatgpt](https://github.com/lencx/Noi/tree/main/extensions/noi-export-chatgpt) | 0.1.0 | ChatGPT chat history export, supports PDF, Image, and Markdown formats. |
| [@noi/reset](https://github.com/lencx/Noi/tree/main/extensions/noi-reset) | 0.1.0 | Reset certain website styles to enhance compatibility with Noi. |

View File

@ -19,6 +19,13 @@ class NoiAsk {
}
}
static autoFocus() {
const inputElement = document.querySelector('textarea');
if (inputElement) {
inputElement.focus();
}
}
static simulateUserInput(element, text) {
const inputEvent = new InputEvent('input', {
bubbles: true,
@ -69,6 +76,10 @@ class ClaudeAsk extends NoiAsk {
}
}
static autoFocus() {
this.sync('');
}
static submit() {
// subsequent screens use this
let btn = document.querySelector('button[aria-label*="Send Message"]');
@ -97,6 +108,13 @@ class GeminiAsk extends NoiAsk {
}
}
static autoFocus() {
const inputElement = document.querySelector('.ql-editor.textarea');
if (inputElement) {
inputElement.focus();
}
}
static submit() {
const btn = document.querySelector('button[aria-label*="Send message"]');
if (btn) {
@ -120,6 +138,13 @@ class HuggingChatAsk extends NoiAsk {
}
}
static autoFocus() {
var inputElement = document.querySelector('textarea[placeholder*="Ask anything"]');
if (inputElement) {
inputElement.focus();
}
}
static submit() {
var btn = document.querySelector('form.relative > div > button[type="submit"]');
if (btn) this.autoClick(btn);
@ -158,6 +183,16 @@ class CopilotAsk extends NoiAsk {
}
}
static autoFocus() {
const serpDOM = document.querySelector('.cib-serp-main');
const inputDOM = serpDOM.shadowRoot.querySelector('#cib-action-bar-main');
const textInputDOM = inputDOM.shadowRoot.querySelector('cib-text-input');
const inputElement = textInputDOM ? textInputDOM.shadowRoot.querySelector('#searchbox') : inputDOM.shadowRoot.querySelector('#searchbox');
if (inputElement) {
inputElement.focus();
}
}
static submit() {
try {
// Access SERP Shadow DOM

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "@noi/ask",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"description": "The best assistant for batch asking and quick typing of prompts.",
"content_scripts": [

View File

@ -5,7 +5,7 @@
{
"name": "@noi/ask",
"description": "The best assistant for batch asking and quick typing of prompts.",
"version": "0.1.3",
"version": "0.1.4",
"url": "https://github.com/lencx/Noi/tree/main/extensions/noi-ask",
"dirname": "noi-ask",
"disabled": false

View File

@ -22,6 +22,7 @@
"showSidebar": "Seitenleiste anzeigen",
"hideSidebar": "Seitenleiste verstecken",
"devTools": "Entwicklertools",
"monochromatic": "Monochrom",
"frostedTexture": "Mattierte Textur",
"xQuit": "Klicken Sie auf [X] zum Beenden",
"systemTray": "Systemtray",
@ -69,7 +70,13 @@
"rename": "Umbenennen",
"user": "Benutzer",
"setSystemTray": "Als Systemtray festlegen",
"clearCache": "Cache-Daten löschen"
"clearCache": "Cache-Daten löschen",
"find": {
"name": "Suchen",
"findNext": "Weitersuchen",
"findPrevious": "Vorherige suchen",
"jumpToSelection": "Zur Auswahl springen"
}
},
"form": {
"name": "Name",
@ -106,6 +113,7 @@
"name": "Allgemein",
"syncBookmarks": "Lesezeichen synchronisieren",
"globalShortcut": "Globales Kürzel",
"trayShortcut": "Systemablage-Verknüpfung",
"recording": "Aufnahme...",
"proxy": "Proxy",
"proxyRules": "Regeln",

View File

@ -22,6 +22,7 @@
"showSidebar": "Show Sidebar",
"hideSidebar": "Hide Sidebar",
"devTools": "Developer Tools",
"monochromatic": "Monochromatic",
"frostedTexture": "Frosted Texture",
"xQuit": "Click [X] to Exit",
"systemTray": "System Tray",
@ -69,7 +70,13 @@
"rename": "Rename",
"user": "User",
"setSystemTray": "Set as System Tray",
"clearCache": "Clear Cache Data"
"clearCache": "Clear Cache Data",
"find": {
"name": "Find",
"findNext": "Find Next",
"findPrevious": "Find Previous",
"jumpToSelection": "Jump to Selection"
}
},
"form": {
"name": "Name",
@ -106,6 +113,7 @@
"name": "General",
"syncBookmarks": "Sync Bookmarks",
"globalShortcut": "Global shortcut",
"trayShortcut": "System Tray Shortcut",
"recording": "Recording...",
"proxy": "Proxy",
"proxyRules": "Rules",

View File

@ -22,6 +22,7 @@
"showSidebar": "Mostrar Barra Lateral",
"hideSidebar": "Ocultar Barra Lateral",
"devTools": "Herramientas para Desarrolladores",
"monochromatic": "Monocromático",
"frostedTexture": "Textura Esmerilada",
"xQuit": "Clic en [X] para Salir",
"systemTray": "Bandeja del Sistema",
@ -69,7 +70,13 @@
"rename": "Renombrar",
"user": "Usuario",
"setSystemTray": "Establecer como Bandeja del Sistema",
"clearCache": "Limpiar Datos de Caché"
"clearCache": "Limpiar Datos de Caché",
"find": {
"name": "Buscar",
"findNext": "Buscar siguiente",
"findPrevious": "Buscar anterior",
"jumpToSelection": "Saltar a la selección"
}
},
"form": {
"name": "Nombre",
@ -106,6 +113,7 @@
"name": "General",
"syncBookmarks": "Sincronizar Marcadores",
"globalShortcut": "Atajo global",
"trayShortcut": "Acceso directo de la bandeja del sistema",
"recording": "Grabando…",
"proxy": "Proxy",
"proxyRules": "Reglas",

View File

@ -22,6 +22,7 @@
"showSidebar": "Afficher la barre latérale",
"hideSidebar": "Masquer la barre latérale",
"devTools": "Outils de développement",
"monochromatic": "Monochromatique",
"frostedTexture": "Texture givrée",
"xQuit": "Cliquer sur [X] pour quitter",
"systemTray": "Zone de notification",
@ -69,7 +70,13 @@
"rename": "Renommer",
"user": "Utilisateur",
"setSystemTray": "Définir comme zone de notification",
"clearCache": "Effacer les données du cache"
"clearCache": "Effacer les données du cache",
"find": {
"name": "Trouver",
"findNext": "Trouver suivant",
"findPrevious": "Trouver précédent",
"jumpToSelection": "Aller à la sélection"
}
},
"form": {
"name": "Nom",
@ -106,6 +113,7 @@
"name": "Général",
"syncBookmarks": "Synchroniser les marque-pages",
"globalShortcut": "Raccourci global",
"trayShortcut": "Raccourci de la barre des tâches",
"recording": "Enregistrement…",
"proxy": "Proxy",
"proxyRules": "Règles",

View File

@ -22,6 +22,7 @@
"showSidebar": "Oldalsáv megjelenítése",
"hideSidebar": "Oldalsáv elrejtése",
"devTools": "Fejlesztői eszközök",
"monochromatic": "Monokromatikus",
"frostedTexture": "Fagyott textúra",
"xQuit": "Kilépéshez kattintson a [X]-re",
"systemTray": "Rendszertálca",
@ -69,7 +70,13 @@
"rename": "Átnevezés",
"user": "Felhasználó",
"setSystemTray": "Beállítás rendszertálcaként",
"clearCache": "Gyorsítótár adatok törlése"
"clearCache": "Gyorsítótár adatok törlése",
"find": {
"name": "Keresés",
"findNext": "Következő keresése",
"findPrevious": "Előző keresése",
"jumpToSelection": "Ugrás a kijelölésre"
}
},
"form": {
"name": "Név",
@ -106,6 +113,7 @@
"name": "Általános",
"syncBookmarks": "Könyvjelzők szinkronizálása",
"globalShortcut": "Globális gyorsbillentyű",
"trayShortcut": "Rendszertálca gyorsindító",
"recording": "Felvétel...",
"proxy": "Proxy",
"proxyRules": "Szabályok",

View File

@ -22,6 +22,7 @@
"showSidebar": "Mostra Barra Laterale",
"hideSidebar": "Nascondi Barra Laterale",
"devTools": "Strumenti per Sviluppatori",
"monochromatic": "Monocromatico",
"frostedTexture": "Texture Glassata",
"xQuit": "Clicca [X] per Uscire",
"systemTray": "Area di Notifica",
@ -69,7 +70,13 @@
"rename": "Rinomina",
"user": "Utente",
"setSystemTray": "Imposta come Area di Notifica",
"clearCache": "Pulisci Cache"
"clearCache": "Pulisci Cache",
"find": {
"name": "Trova",
"findNext": "Trova successivo",
"findPrevious": "Trova precedente",
"jumpToSelection": "Salta alla selezione"
}
},
"form": {
"name": "Nome",
@ -106,6 +113,7 @@
"name": "Generale",
"syncBookmarks": "Sincronizza Segnalibri",
"globalShortcut": "Scorciatoia globale",
"trayShortcut": "Scorciatoia area di notifica",
"recording": "Registrazione…",
"proxy": "Proxy",
"proxyRules": "Regole",

View File

@ -22,6 +22,7 @@
"showSidebar": "サイドバーを表示",
"hideSidebar": "サイドバーを隠す",
"devTools": "開発者ツール",
"monochromatic": "モノクロ",
"frostedTexture": "フロステッドテクスチャ",
"xQuit": "[X]をクリックして終了",
"systemTray": "システムトレイ",
@ -69,7 +70,13 @@
"rename": "名前を変更",
"user": "ユーザー",
"setSystemTray": "システムトレイとして設定",
"clearCache": "キャッシュデータをクリア"
"clearCache": "キャッシュデータをクリア",
"find": {
"name": "検索",
"findNext": "次を検索",
"findPrevious": "前を検索",
"jumpToSelection": "選択へジャンプ"
}
},
"form": {
"name": "名前",
@ -106,6 +113,7 @@
"name": "一般",
"syncBookmarks": "ブックマークを同期",
"globalShortcut": "グローバルショートカット",
"trayShortcut": "システムトレイショートカット",
"recording": "録音中…",
"proxy": "プロキシ",
"proxyRules": "ルール",

View File

@ -22,6 +22,7 @@
"showSidebar": "사이드바 표시",
"hideSidebar": "사이드바 숨기기",
"devTools": "개발자 도구",
"monochromatic": "단색",
"frostedTexture": "서리 질감",
"xQuit": "[X] 클릭으로 종료",
"systemTray": "시스템 트레이",
@ -69,7 +70,13 @@
"rename": "이름 바꾸기",
"user": "사용자",
"setSystemTray": "시스템 트레이로 설정",
"clearCache": "캐시 데이터 지우기"
"clearCache": "캐시 데이터 지우기",
"find": {
"name": "찾기",
"findNext": "다음 찾기",
"findPrevious": "이전 찾기",
"jumpToSelection": "선택 영역으로 이동"
}
},
"form": {
"name": "이름",
@ -106,6 +113,7 @@
"name": "일반",
"syncBookmarks": "북마크 동기화",
"globalShortcut": "전역 단축키",
"trayShortcut": "시스템 트레이 단축키",
"recording": "녹음 중…",
"proxy": "프록시",
"proxyRules": "규칙",

View File

@ -22,6 +22,7 @@
"showSidebar": "Mostrar Barra Lateral",
"hideSidebar": "Ocultar Barra Lateral",
"devTools": "Ferramentas de Desenvolvedor",
"monochromatic": "Monocromático",
"frostedTexture": "Textura Fosca",
"xQuit": "Clicar em [X] para Sair",
"systemTray": "Bandeja do Sistema",
@ -69,7 +70,13 @@
"rename": "Renomear",
"user": "Usuário",
"setSystemTray": "Definir como Bandeja do Sistema",
"clearCache": "Limpar Dados de Cache"
"clearCache": "Limpar Dados de Cache",
"find": {
"name": "Encontrar",
"findNext": "Encontrar próximo",
"findPrevious": "Encontrar anterior",
"jumpToSelection": "Saltar para seleção"
}
},
"form": {
"name": "Nome",
@ -106,6 +113,7 @@
"name": "Geral",
"syncBookmarks": "Sincronizar Favoritos",
"globalShortcut": "Atalho global",
"trayShortcut": "Atalho da bandeja do sistema",
"recording": "Gravando...",
"proxy": "Proxy",
"proxyRules": "Regras",

View File

@ -22,6 +22,7 @@
"showSidebar": "Показать боковую панель",
"hideSidebar": "Скрыть боковую панель",
"devTools": "Инструменты разработчика",
"monochromatic": "Монохромный",
"frostedTexture": "Матовая текстура",
"xQuit": "Нажмите [X] для выхода",
"systemTray": "Системный трей",
@ -69,7 +70,13 @@
"rename": "Переименовать",
"user": "Пользователь",
"setSystemTray": "Установить как системный трей",
"clearCache": "Очистить данные кэша"
"clearCache": "Очистить данные кэша",
"find": {
"name": "Найти",
"findNext": "Найти далее",
"findPrevious": "Найти предыдущее",
"jumpToSelection": "Перейти к выбору"
}
},
"form": {
"name": "Имя",
@ -106,6 +113,7 @@
"name": "Общие",
"syncBookmarks": "Синхронизировать закладки",
"globalShortcut": "Глобальные горячие клавиши",
"trayShortcut": "Ярлык в системном трее",
"recording": "Запись...",
"proxy": "Прокси",
"proxyRules": "Правила",

View File

@ -23,6 +23,7 @@
"hideSidebar": "Kenar Çubuğunu Gizle",
"devTools": "Geliştirici Araçları",
"frostedTexture": "Buzlu Doku",
"monochromatic": "Monokrom",
"xQuit": "[X]'e Tıklayarak Çık",
"systemTray": "Sistem Tepsisi",
@ -69,7 +70,13 @@
"rename": "Yeniden Adlandır",
"user": "Kullanıcı",
"setSystemTray": "Sistem Tepsisi Olarak Ayarla",
"clearCache": "Önbellek Verilerini Temizle"
"clearCache": "Önbellek Verilerini Temizle",
"find": {
"name": "Bul",
"findNext": "Sonrakini Bul",
"findPrevious": "Öncekini Bul",
"jumpToSelection": "Seçime Atla"
}
},
"form": {
"name": "Ad",
@ -106,6 +113,7 @@
"name": "Genel",
"syncBookmarks": "Yer İşaretlerini Senkronize Et",
"globalShortcut": "Küresel kısayol",
"trayShortcut": "Sistem Tepsisi Kısayolu",
"recording": "Kaydediliyor...",
"proxy": "Proxy",
"proxyRules": "Kurallar",

View File

@ -22,6 +22,7 @@
"showSidebar": "显示侧边栏",
"hideSidebar": "隐藏侧边栏",
"devTools": "开发者工具",
"monochromatic": "单色",
"frostedTexture": "磨砂纹理",
"xQuit": "点击 [X] 退出",
"systemTray": "系统托盘",
@ -69,7 +70,13 @@
"rename": "重命名",
"user": "用户",
"setSystemTray": "设置为系统托盘",
"clearCache": "清除缓存数据"
"clearCache": "清除缓存数据",
"find": {
"name": "查找",
"findNext": "查找下一个",
"findPrevious": "查找上一个",
"jumpToSelection": "跳转到选择"
}
},
"form": {
"name": "名称",
@ -106,6 +113,7 @@
"name": "通用",
"syncBookmarks": "同步书签",
"globalShortcut": "全局快捷键",
"trayShortcut": "系统托盘快捷键",
"recording": "正在录制…",
"proxy": "代理",
"proxyRules": "规则",

View File

@ -22,6 +22,7 @@
"showSidebar": "顯示側邊欄",
"hideSidebar": "隱藏側邊欄",
"devTools": "開發者工具",
"monochromatic": "單色",
"frostedTexture": "磨砂質感",
"xQuit": "點擊 [X] 退出",
"systemTray": "系統托盤",
@ -69,7 +70,13 @@
"rename": "重命名",
"user": "用戶",
"setSystemTray": "設置為系統托盤",
"clearCache": "清除快取數據"
"clearCache": "清除快取數據",
"find": {
"name": "查找",
"findNext": "查找下一個",
"findPrevious": "查找上一個",
"jumpToSelection": "跳轉到選擇"
}
},
"form": {
"name": "名稱",
@ -106,6 +113,7 @@
"name": "通用",
"syncBookmarks": "同步書簽",
"globalShortcut": "全域快捷鍵",
"trayShortcut": "系統托盤快捷鍵",
"recording": "正在錄制…",
"proxy": "代理",
"proxyRules": "規則",