From 6507bb902bce32be9ea3eb043edfd6dfd24f760c Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Tue, 14 Jul 2026 10:37:23 +0800 Subject: [PATCH] Remove "Hide menu button" option from settings and localization files - Deleted the "Hide menu button" setting from the reader settings component and its related actions, reducers, and state management. - Removed corresponding translations for "Hide menu button" from various localization files (e.g., ar.json, bg.json, bn.json, etc.). --- src/assets/locales/am.json | 1 - src/assets/locales/ar.json | 1 - src/assets/locales/bg.json | 1 - src/assets/locales/bn.json | 1 - src/assets/locales/bo.json | 1 - src/assets/locales/cs.json | 1 - src/assets/locales/da.json | 1 - src/assets/locales/de.json | 1 - src/assets/locales/el.json | 1 - src/assets/locales/en.json | 1 - src/assets/locales/es.json | 1 - src/assets/locales/fa.json | 1 - src/assets/locales/fi.json | 1 - src/assets/locales/fr.json | 1 - src/assets/locales/ga.json | 1 - src/assets/locales/hi.json | 1 - src/assets/locales/hu.json | 1 - src/assets/locales/hy.json | 1 - src/assets/locales/id.json | 1 - src/assets/locales/ie.json | 1 - src/assets/locales/it.json | 1 - src/assets/locales/ja.json | 1 - src/assets/locales/ko.json | 1 - src/assets/locales/nl.json | 1 - src/assets/locales/pl.json | 1 - src/assets/locales/pt-BR.json | 1 - src/assets/locales/pt.json | 1 - src/assets/locales/ro.json | 1 - src/assets/locales/ru.json | 1 - src/assets/locales/sl.json | 1 - src/assets/locales/sr.json | 1 - src/assets/locales/sv.json | 1 - src/assets/locales/ta.json | 1 - src/assets/locales/th.json | 1 - src/assets/locales/tl.json | 1 - src/assets/locales/tr.json | 1 - src/assets/locales/uk.json | 1 - src/assets/locales/vi.json | 1 - src/assets/locales/zh-CN.json | 1 - src/assets/locales/zh-MO.json | 1 - src/assets/locales/zh-TW.json | 1 - .../settingSwitch/component.tsx | 23 ++---------------- .../readerSettings/settingSwitch/index.tsx | 2 -- .../settingSwitch/interface.tsx | 2 -- src/constants/settingList.tsx | 5 ---- src/pages/reader/component.tsx | 24 +++++++++---------- src/pages/reader/index.tsx | 1 - src/pages/reader/interface.tsx | 1 - src/store/actions/reader.tsx | 3 --- src/store/index.tsx | 1 - src/store/reducers/reader.tsx | 6 ----- 51 files changed, 13 insertions(+), 96 deletions(-) diff --git a/src/assets/locales/am.json b/src/assets/locales/am.json index d13e8b29..ad97782a 100644 --- a/src/assets/locales/am.json +++ b/src/assets/locales/am.json @@ -412,7 +412,6 @@ "Authorize": "ፈቃድ ስጥ", "Open book without adding it to library": "መጽሐፍን ወደ ቤተ-መጽሐፍት ሳይጨመር ክፈት", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Koodo በመጠቀም በፋይል አስተዳዳሪ ውስጥ መጽሐፍትን ሲክፈቱ የተከፈቱት መጽሐፍት ወደ ቤተ-መጽሐፍት አይጨምሩም", - "Hide menu button": "የምናሌ አዝራርን ደብቅ", "Manage": "አስተዳድር", "Sliding animation": "የስላይድ እንቅስቃሴ", "Please turn off open books in the main window": "እባክዎ በዋናው መስኮት ውስጥ ያሉትን ክፍት መጽሐፍት ይዝጉ", diff --git a/src/assets/locales/ar.json b/src/assets/locales/ar.json index 1ded84a3..4ec72122 100644 --- a/src/assets/locales/ar.json +++ b/src/assets/locales/ar.json @@ -314,7 +314,6 @@ "Authorize": "تفويض", "Open book without adding it to library": "فتح الكتاب دون إضافته إلى المكتبة", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "عند فتح الكتب في مدير الملفات باستخدام Koodo ، لن تتم إضافة الكتب المفتوحة إلى المكتبة", - "Hide menu button": "إخفاء زر القائمة", "Manage": "إدارة", "Sliding animation": "حركة أنزلاقية", "Please turn off open books in the main window": "الرجاء إيقاف تشغيل الكتب المفتوحة في النافذة الرئيسة", diff --git a/src/assets/locales/bg.json b/src/assets/locales/bg.json index 7a9251f3..1db855bb 100644 --- a/src/assets/locales/bg.json +++ b/src/assets/locales/bg.json @@ -312,7 +312,6 @@ "Authorize": "Упълномощаване", "Open book without adding it to library": "Отваряне на книга без добавяне в библиотеката", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Когато се отварят книги във файловия мениджър с Koodo, отворените книги няма да се добавят в библиотеката", - "Hide menu button": "Бутон за скриване на менюто", "Manage": "Управление", "Sliding animation": "Плъзгаща се анимация", "Please turn off open books in the main window": "Моля, затворете отворените книги в основния прозорец", diff --git a/src/assets/locales/bn.json b/src/assets/locales/bn.json index d916469a..0334b9d1 100644 --- a/src/assets/locales/bn.json +++ b/src/assets/locales/bn.json @@ -312,7 +312,6 @@ "Authorize": "অনুমোদন করুন", "Open book without adding it to library": "লাইব্রেরীতে যোগ না করে বইটি খুলুন", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "যখন ফাইল ম্যানেজার থেকে Koodo দিয়ে বই খোলা হবে, তখন সেই বইটি লাইব্রেরীতে যুক্ত হবে না", - "Hide menu button": "মেনু বাটন আড়াল করুন", "Manage": "ম্যানেজ", "Sliding animation": "স্লাইডিং অ্যানিমেশন", "Please turn off open books in the main window": "অনুগ্রহ করে প্রধান উইন্ডোজে খোলা বইগুলি বন্ধ করুন", diff --git a/src/assets/locales/bo.json b/src/assets/locales/bo.json index 50486517..1a562049 100644 --- a/src/assets/locales/bo.json +++ b/src/assets/locales/bo.json @@ -312,7 +312,6 @@ "Authorize": "དབང་སྤྲོད།", "Open book without adding it to library": "དཔེ་མཛོད་དུ་མ་འཇོག་པར་དཔེ་ཆ་ཁ་ཕྱེས།", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "དཔེ་ཆ་གསར་བ་ཁ་ཕྱེས་སྐབས་དཔེ་མཛོད་ཁྲོད་དུ་སྐྱེལ་འཇོག་མི་བྱ།", - "Hide menu button": "གདམ་ཐོ་སྦས།", "Manage": "དོ་དམ།", "Sliding animation": "འདྲེད་བརྡར་འགུལ་རིས།", "Please turn off open books in the main window": "སྒེའུ་ཁུང་གཙོ་བོའི་ནང་གི་དཔེ་ཆ་སྒོ་རྒྱོབ།", diff --git a/src/assets/locales/cs.json b/src/assets/locales/cs.json index c45bc186..3dbce436 100644 --- a/src/assets/locales/cs.json +++ b/src/assets/locales/cs.json @@ -315,7 +315,6 @@ "Authorize": "Autorizovat", "Open book without adding it to library": "Otevřít knihu bez přidání do knihovny", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Při otevření knih ve správci souborů pomocí aplikace Koodo se otevřené knihy nepřidají do knihovny", - "Hide menu button": "Skrýt tlačítko nabídky", "Manage": "Spravovat", "Sliding animation": "Posuvná animace", "Please turn off open books in the main window": "Vypněte prosím otevřené knihy v hlavním okně", diff --git a/src/assets/locales/da.json b/src/assets/locales/da.json index bd57a6c3..c6083320 100644 --- a/src/assets/locales/da.json +++ b/src/assets/locales/da.json @@ -363,7 +363,6 @@ "Authorize": "Godkend", "Open book without adding it to library": "Åbn bog uden at tilføje til bibliotek", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Når bøger åbnes i filhåndteringen med Koodo, tilføjes de ikke til biblioteket", - "Hide menu button": "Skjul menuknap", "Please turn off open books in the main window": "Sluk for åbne bøger i hovedvinduet", "This action will delete all the notes, bookmarks and digests of this book": "Denne handling sletter alle noter, bogmærker og uddrag i denne bog", "More formats supported": "Flere formater understøttes", diff --git a/src/assets/locales/de.json b/src/assets/locales/de.json index d8047bd5..a19ef140 100644 --- a/src/assets/locales/de.json +++ b/src/assets/locales/de.json @@ -315,7 +315,6 @@ "Authorize": "Autorisieren", "Open book without adding it to library": "Öffne das Buch ohne es zur Bibliothek hinzuzufügen", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Beim Öffnen von Büchern im Dateimanager mit Koodo werden die geöffneten Bücher nicht zur Bibliothek hinzugefügt", - "Hide menu button": "Menü-Button verstecken", "Manage": "Verwalten", "Sliding animation": "Gleitende Animation", "Please turn off open books in the main window": "Bitte deaktivieren Sie \"Öffne Bücher im Hauptfenster\"", diff --git a/src/assets/locales/el.json b/src/assets/locales/el.json index 216bb4d6..2355b172 100644 --- a/src/assets/locales/el.json +++ b/src/assets/locales/el.json @@ -359,7 +359,6 @@ "Authorize": "Εξουσιοδότηση", "Open book without adding it to library": "Άνοιγμα βιβλίου χωρίς προσθήκη στη βιβλιοθήκη", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Όταν ανοίγετε βιβλία μέσω του Koodo από τον διαχειριστή αρχείων, δεν προστίθενται στη βιβλιοθήκη", - "Hide menu button": "Απόκρυψη κουμπιού μενού", "Manage": "Διαχείριση", "Sliding animation": "Κινούμενη κύλιση", "Please turn off open books in the main window": "Κλείστε τα βιβλία που είναι ανοιχτά στο κύριο παράθυρο", diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index befb062c..202f6b8f 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -464,7 +464,6 @@ "Authorize": "Authorize", "Open book without adding it to library": "Open book without adding it to library", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "When opening books in the file manager with Koodo, the opened books won't be added to the library", - "Hide menu button": "Hide menu button", "Manage": "Manage", "Sliding animation": "Sliding animation", "Page turning animation": "Page turning animation", diff --git a/src/assets/locales/es.json b/src/assets/locales/es.json index 951a0b5b..8a013fa6 100644 --- a/src/assets/locales/es.json +++ b/src/assets/locales/es.json @@ -316,7 +316,6 @@ "Authorize": "Autorizar", "Open book without adding it to library": "Abrir libro sin agregarlo a la biblioteca", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Al abrir libros del manejador de archivos con Koodo, éstos no se agregarán a su biblioteca", - "Hide menu button": "Esconder botón de menú", "Manage": "Administrar", "Sliding animation": "Animación Deslizante", "Please turn off open books in the main window": "Por favor cierre los libros abiertos de la ventana principal", diff --git a/src/assets/locales/fa.json b/src/assets/locales/fa.json index 50224048..6a31b31b 100644 --- a/src/assets/locales/fa.json +++ b/src/assets/locales/fa.json @@ -319,7 +319,6 @@ "Authorize": "احراز هویت", "Open book without adding it to library": "کتاب را بدون افزودن به کتابخانه باز کنید", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "هنگام باز کردن کتاب ها در مدیر فایل با کودو، کتاب های باز شده به کتابخانه اضافه نمی شوند", - "Hide menu button": "دکمه مخفی کردن منو", "Manage": "مدیریت کردن", "Sliding animation": "انیمیشن کشویی", "Please turn off open books in the main window": "لطفاً کتاب‌های باز را در پنجره اصلی ببندید", diff --git a/src/assets/locales/fi.json b/src/assets/locales/fi.json index 2fc2d8c4..445a1664 100644 --- a/src/assets/locales/fi.json +++ b/src/assets/locales/fi.json @@ -256,7 +256,6 @@ "Deselect all": "Älä valitse mitään", "Authorize": "Valtuuta", "Open book without adding it to library": "Avaa kirja lisäämättä sitä kirjastoon", - "Hide menu button": "Piilota valikkopainike", "Manage": "Hallitse", "Sliding animation": "Liu'utusanimaatio", "Use first page as PDF cover": "Käytä ensimmäistä sivua PDF-kantena", diff --git a/src/assets/locales/fr.json b/src/assets/locales/fr.json index 9334f236..0d19d7cf 100644 --- a/src/assets/locales/fr.json +++ b/src/assets/locales/fr.json @@ -316,7 +316,6 @@ "Authorize": "Autoriser", "Open book without adding it to library": "Ouvrir un livre sans l’ajouter à la bibliothèque", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Lorsque vous ouvrez des livres dans le gestionnaire de fichiers avec Koodo, les livres ouverts ne sont pas ajoutés à la bibliothèque.", - "Hide menu button": "Masquer le bouton du menu", "Manage": "Gérer", "Sliding animation": "Animation coulissante", "Please turn off open books in the main window": "Veuillez fermer les livres ouverts dans la fenêtre principale", diff --git a/src/assets/locales/ga.json b/src/assets/locales/ga.json index bc723fab..424ad56a 100644 --- a/src/assets/locales/ga.json +++ b/src/assets/locales/ga.json @@ -358,7 +358,6 @@ "Authorize": "Údarú", "Open book without adding it to library": "Oscail leabhar gan é a chur leis an leabharlann", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Agus leabhair á oscailt sa bhainisteoir comhad le Koodo, ní chuirfear na leabhair oscailte leis an leabharlann", - "Hide menu button": "Folaigh cnaipe roghchlár", "Manage": "Bainistiú", "Sliding animation": "Beochan sleamhnáin", "Please turn off open books in the main window": "Múch leabhair oscailte sa phríomhfhuinneog", diff --git a/src/assets/locales/hi.json b/src/assets/locales/hi.json index e034597b..b2e0bb82 100644 --- a/src/assets/locales/hi.json +++ b/src/assets/locales/hi.json @@ -358,7 +358,6 @@ "Authorize": "अधिकृत", "Open book without adding it to library": "किताबें लाइब्रेरी में जोड़े बिना खोलें", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Koodo से File Manager में किताबें खोलते समय, खोली गईं किताबें लाइब्रेरी में नहीं जुड़ेगीं", - "Hide menu button": "मेन्यू बटन छिपाएं", "Manage": "मैनेज़", "Sliding animation": "स्लाडिंग एनीमेशन्", "Please turn off open books in the main window": "कृपया मुख्य विंडो में किताबें बंद करें", diff --git a/src/assets/locales/hu.json b/src/assets/locales/hu.json index a99f614f..653285f4 100644 --- a/src/assets/locales/hu.json +++ b/src/assets/locales/hu.json @@ -358,7 +358,6 @@ "Authorize": "Engedélyezés", "Open book without adding it to library": "Könyv megnyitása könyvtárhoz való hozzáadás nélkül", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Ha könyveket nyit meg a fájlkezelőben a Koodo segítségével, a megnyitott könyvek nem kerülnek be a könyvtárba", - "Hide menu button": "Menü gomb elrejtése", "Manage": "Kezelés", "Sliding animation": "Csúsztatási animáció", "Please turn off open books in the main window": "Kérjük, zárja be a nyitott könyveket a főablakban", diff --git a/src/assets/locales/hy.json b/src/assets/locales/hy.json index d1e34449..3185605e 100644 --- a/src/assets/locales/hy.json +++ b/src/assets/locales/hy.json @@ -312,7 +312,6 @@ "Authorize": "Մուտք գործել", "Open book without adding it to library": "Բացել գրքերն առանց գրադարանի մեջ ավելացնելու", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Համակարգչում գտնվող գրքերը Koodo ծրագրով բացելիս՝ դրանք կբացվեն, բայց չեն ավելացվի գրադարանի մեջ", - "Hide menu button": "Թաքցնել մենյու կոճակը", "Manage": "Կառավարել", "Sliding animation": "Թերթելու անիմացիա", "Please turn off open books in the main window": "Անջատեք գրքերը հիմնական պատուհանում բացելը", diff --git a/src/assets/locales/id.json b/src/assets/locales/id.json index 13218bca..34762c87 100644 --- a/src/assets/locales/id.json +++ b/src/assets/locales/id.json @@ -312,7 +312,6 @@ "Authorize": "Mengizinkan", "Open book without adding it to library": "Buka buku tanpa menambahkannya ke perpustakaan", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Saat membuka buku di manajer file dengan Koodo, buku yang dibuka tidak akan ditambahkan ke perpustakaan", - "Hide menu button": "Sembunyikan tombol menu", "Manage": "Kelola", "Sliding animation": "Animasi Geser", "Please turn off open books in the main window": "Harap matikan buku yang terbuka di jendela utama", diff --git a/src/assets/locales/ie.json b/src/assets/locales/ie.json index 71d0b94f..0368131c 100644 --- a/src/assets/locales/ie.json +++ b/src/assets/locales/ie.json @@ -362,7 +362,6 @@ "Authorize": "Autorisar", "Open book without adding it to library": "Aperir book without adding it to library", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Quande abrir libros in li gerer de files con Koodo, li apertet libros ne va esser adjuntet al biblioteca", - "Hide menu button": "Celar menu button", "Please turn off open books in the main window": "Pro favor, clude li apert libres in li principal fenestre", "This action will delete all the notes, bookmarks and digests of this book": "Ti action va deleter omni notes, marcapages e extraktes de ti libre", "More formats supported": "Plu formates supportat", diff --git a/src/assets/locales/it.json b/src/assets/locales/it.json index 17e02fd4..eab1ab29 100644 --- a/src/assets/locales/it.json +++ b/src/assets/locales/it.json @@ -312,7 +312,6 @@ "Authorize": "Autorizza", "Open book without adding it to library": "Apri il libro senza aggiungerlo alla libreria", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Quando si aprono libri nel file manager con Koodo, i libri aperti non verranno aggiunti alla libreria", - "Hide menu button": "Nascondi il pulsante del menu", "Manage": "Gestisci", "Sliding animation": "Animazione a scorrimento", "Please turn off open books in the main window": "Si prega di chiudere i libri aperti nella finestra principale", diff --git a/src/assets/locales/ja.json b/src/assets/locales/ja.json index b575efde..cb438338 100644 --- a/src/assets/locales/ja.json +++ b/src/assets/locales/ja.json @@ -312,7 +312,6 @@ "Authorize": "権限", "Open book without adding it to library": "ライブラリに追加せずに図書を開く", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Koodoを使用してフォルダ内の図書を開くと、図書はライブラリに追加されません", - "Hide menu button": "メニューボタンを表示しない", "Manage": "管理する", "Sliding animation": "ページをめくるアニメーション", "Please turn off open books in the main window": "メインウィンドウで開いている図書を閉じてください", diff --git a/src/assets/locales/ko.json b/src/assets/locales/ko.json index 48a31ab8..546e9059 100644 --- a/src/assets/locales/ko.json +++ b/src/assets/locales/ko.json @@ -315,7 +315,6 @@ "Authorize": "인증", "Open book without adding it to library": "라이브러리에 추가하지 않고 책 열기", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "탐색기에서 책을 열면, 라이브러리에 추가하지 않습니다", - "Hide menu button": "메뉴 버튼 숨기기", "Manage": "합치기", "Sliding animation": "미끄러지는 애니메이션", "Please turn off open books in the main window": "기본 창에 열어둔 책을 닫으세요", diff --git a/src/assets/locales/nl.json b/src/assets/locales/nl.json index f753e4a9..dd82ecaa 100644 --- a/src/assets/locales/nl.json +++ b/src/assets/locales/nl.json @@ -312,7 +312,6 @@ "Authorize": "Goedkeuren", "Open book without adding it to library": "Boeken openen zonder toe te voegen aan bibliotheek", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Als boeken vanuit de bestandsbeheerder geopend worden, dan worden ze niet toegevoegd aan de bibliotheek", - "Hide menu button": "Menuknop verbergen", "Manage": "Beheren", "Sliding animation": "Verschuifanimatie", "Please turn off open books in the main window": "Sluit de geopende boeken in het hoofdvenster", diff --git a/src/assets/locales/pl.json b/src/assets/locales/pl.json index 76dbc5d1..e2d66f7d 100644 --- a/src/assets/locales/pl.json +++ b/src/assets/locales/pl.json @@ -314,7 +314,6 @@ "Authorize": "Autoryzuj", "Open book without adding it to library": "Otwórz książkę bez dodawania jej do biblioteki", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Podczas otwierania książek w menedżerze plików za pomocą Koodo otwarte książki nie zostaną dodane do biblioteki", - "Hide menu button": "Ukryj przycisk menu", "Manage": "Zarządzaj", "Sliding animation": "Animacja przewijania", "Please turn off open books in the main window": "Wyłącz otwarte książki w głównym oknie", diff --git a/src/assets/locales/pt-BR.json b/src/assets/locales/pt-BR.json index c2082273..3406be5a 100644 --- a/src/assets/locales/pt-BR.json +++ b/src/assets/locales/pt-BR.json @@ -316,7 +316,6 @@ "Authorize": "Autorizar", "Open book without adding it to library": "Abrir livro sem adicionar à biblioteca", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Quando abrir livros no gerenciador de arquivos com Koodo, os livros abertos não serão adicionados à biblioteca", - "Hide menu button": "Esconder botão de menu", "Manage": "Gerenciar", "Sliding animation": "Animação de deslize", "Please turn off open books in the main window": "Por favor, desabilite abertura de livros na janela principal", diff --git a/src/assets/locales/pt.json b/src/assets/locales/pt.json index 2da031af..b29f9558 100644 --- a/src/assets/locales/pt.json +++ b/src/assets/locales/pt.json @@ -365,7 +365,6 @@ "Authorize": "Autorizar", "Open book without adding it to library": "Abrir livro sem adicionar à biblioteca", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Quando abrir livros no gerenciador de arquivos com Koodo, os livros abertos não serão adicionados à biblioteca", - "Hide menu button": "Esconder botão de menu", "Manage": "Gerenciar", "Sliding animation": "Animação de deslize", "Please turn off open books in the main window": "Por favor, desabilite abertura de livros na janela principal", diff --git a/src/assets/locales/ro.json b/src/assets/locales/ro.json index 54cc2b9f..47b5f831 100644 --- a/src/assets/locales/ro.json +++ b/src/assets/locales/ro.json @@ -314,7 +314,6 @@ "Authorize": "Autorizați", "Open book without adding it to library": "Deschide cartea fără a o adăuga la bibliotecă", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Când deschideți cărți în managerul de fișiere cu Koodo, cărțile deschise nu vor fi adăugate în bibliotecă", - "Hide menu button": "Ascundeți butonul pentru meniu", "Manage": "Administrați", "Sliding animation": "Animație de alunecare", "Please turn off open books in the main window": "Vă rugăm să dezactivați cărțile deschise în fereastra principală", diff --git a/src/assets/locales/ru.json b/src/assets/locales/ru.json index 51f5c5ea..446a88c2 100644 --- a/src/assets/locales/ru.json +++ b/src/assets/locales/ru.json @@ -314,7 +314,6 @@ "Authorize": "Авторизовать", "Open book without adding it to library": "Открыть книгу, не добавляя ее в библиотеку", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "При открытии книг в файловом менеджере с помощью Koodo открытые книги не добавляются в библиотеку", - "Hide menu button": "Скрыть кнопку меню", "Manage": "Управлять", "Sliding animation": "Анимация перелистывания", "Please turn off open books in the main window": "Пожалуйста, отключите открытие книг в главном окне", diff --git a/src/assets/locales/sl.json b/src/assets/locales/sl.json index 691c65cb..91a3192c 100644 --- a/src/assets/locales/sl.json +++ b/src/assets/locales/sl.json @@ -174,7 +174,6 @@ "Hide books which have been added to the shelf, so they won't show up in home page": "Skrij knjige, ki so bile dodane na polico, da ne bodo prikazane na domači strani", "Hide footer": "Skrij nogo", "Hide header": "Skrij glavo", - "Hide menu button": "Skrij menijski gumb", "Hide mimical background": "Skrij mimično ozadje", "Highlight": "Poudari", "Highlighting successful": "Poudarjanje uspešno", diff --git a/src/assets/locales/sr.json b/src/assets/locales/sr.json index c04ff8ee..65dcb24a 100644 --- a/src/assets/locales/sr.json +++ b/src/assets/locales/sr.json @@ -409,7 +409,6 @@ "Authorize": "Autorizuj", "Open book without adding it to library": "Otvorite knjigu bez dodavanja u biblioteku", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Kada otvarate knjige u menadžeru fajlova sa Koodo, otvorene knjige neće biti dodane u biblioteku", - "Hide menu button": "Sakrij dugme menija", "Manage": "Upravljaj", "Sliding animation": "Animacija klizanja", "Please turn off open books in the main window": "Molimo zatvorite otvorene knjige u glavnom prozoru", diff --git a/src/assets/locales/sv.json b/src/assets/locales/sv.json index b665488b..ac98f5e4 100644 --- a/src/assets/locales/sv.json +++ b/src/assets/locales/sv.json @@ -359,7 +359,6 @@ "Authorize": "Autentisera", "Open book without adding it to library": "Öppna bok utan att lägga till den i biblioteket", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Vid öppnande av böcker i Koodos filutforskare kommer böckerna inte att läggas till i biblioteket", - "Hide menu button": "Dölj menyknappen", "Manage": "Hantera", "Sliding animation": "Glidanimation", "Please turn off open books in the main window": "Vänligen slå av öppna böcker i huvudfönstret", diff --git a/src/assets/locales/ta.json b/src/assets/locales/ta.json index 029d04ea..1a03cd94 100644 --- a/src/assets/locales/ta.json +++ b/src/assets/locales/ta.json @@ -357,7 +357,6 @@ "Authorize": "அங்கீகரி", "Open book without adding it to library": "நூலகத்தில் சேர்க்காமல் புத்தகத்தைத் திறக்கவும்", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "கோப்பு மேலாளரில் கூடூ மூலம் புத்தகங்களைத் திறக்கும்போது, திறக்கப்பட்ட புத்தகங்கள் நூலகத்தில் சேர்க்கப்படாது", - "Hide menu button": "மெனு பொத்தானை மறை", "Manage": "நிர்வகி", "Sliding animation": "சறுக்கும் அனிமேஷன்", "Please turn off open books in the main window": "தயவுசெய்து பிரதான சாளரத்தில் திறந்த புத்தகங்களை மூடவும்", diff --git a/src/assets/locales/th.json b/src/assets/locales/th.json index 2fb2603b..b313c0a5 100644 --- a/src/assets/locales/th.json +++ b/src/assets/locales/th.json @@ -324,7 +324,6 @@ "Authorize": "อนุญาต", "Open book without adding it to library": "เปิดหนังสือโดยไม่เพิ่มลงในห้องสมุด", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "เมื่อเปิดหนังสือในตัวจัดการไฟล์ด้วย Koodo หนังสือที่เปิดจะไม่ถูกเพิ่มลงในห้องสมุด", - "Hide menu button": "ซ่อนปุ่มเมนู", "Manage": "จัดการ", "Sliding animation": "ภาพเคลื่อนไหวแบบเลื่อน", "Please turn off open books in the main window": "โปรดปิดการเปิดหนังสือในหน้าต่างหลัก", diff --git a/src/assets/locales/tl.json b/src/assets/locales/tl.json index 06439348..a86ad867 100644 --- a/src/assets/locales/tl.json +++ b/src/assets/locales/tl.json @@ -357,7 +357,6 @@ "Authorize": "Pahintulutan", "Open book without adding it to library": "Buksan ang libro nang hindi idinadagdag sa library", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Kapag nagbubukas ng mga libro sa file manager gamit ang Koodo, ang mga bukas na libro ay hindi idaragdag sa library", - "Hide menu button": "Itago ang menu button", "Manage": "Pamahalaan", "Sliding animation": "Animasyon ng pagdulas", "Please turn off open books in the main window": "Mangyaring isara ang mga bukas na libro sa pangunahing window", diff --git a/src/assets/locales/tr.json b/src/assets/locales/tr.json index d2f696a8..aca4e947 100644 --- a/src/assets/locales/tr.json +++ b/src/assets/locales/tr.json @@ -314,7 +314,6 @@ "Authorize": "Yetkilendir", "Open book without adding it to library": "Kitabı kitaplığa eklemeden aç", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Koodo ile dosya yöneticisinde kitap açarken, açılan kitaplar kitaplığa eklenmeyecek", - "Hide menu button": "Menü tuşunu gizle", "Manage": "Yönet", "Sliding animation": "Kaydırma animasyonu", "Please turn off open books in the main window": "Lütfen ana pencerede açık kitapları kapatın", diff --git a/src/assets/locales/uk.json b/src/assets/locales/uk.json index 093a4758..59edb0aa 100644 --- a/src/assets/locales/uk.json +++ b/src/assets/locales/uk.json @@ -307,7 +307,6 @@ "Authorize": "Авторизуватися", "Open book without adding it to library": "Відкрити книгу, не додаючи її до бібліотеки", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Під час відкриття книг у файловому менеджері за допомогою Koodo, відкриті книги не будуть додані до бібліотеки", - "Hide menu button": "Сховати кнопку меню", "Manage": "Керувати", "Sliding animation": "Анімація ковзання", "Please turn off open books in the main window": "Будь ласка, вимкніть відкриті книги в головному вікні", diff --git a/src/assets/locales/vi.json b/src/assets/locales/vi.json index 32b4a24b..ecdcac70 100644 --- a/src/assets/locales/vi.json +++ b/src/assets/locales/vi.json @@ -363,7 +363,6 @@ "Deselect all": "Bỏ chọn tất cả", "Authorize": "Cho quyền", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "Khi mở sách trong trình quản lý tệp bằng Koodo, sách đã mở sẽ không được thêm vào thư viện", - "Hide menu button": "Ẩn nút menu", "Manage": "Quản lý", "Sliding animation": "Hoạt ảnh trượt", "Please turn off open books in the main window": "Vui lòng đóng sách đang mở trong cửa sổ chính", diff --git a/src/assets/locales/zh-CN.json b/src/assets/locales/zh-CN.json index f631b9de..b07e9c88 100644 --- a/src/assets/locales/zh-CN.json +++ b/src/assets/locales/zh-CN.json @@ -882,7 +882,6 @@ "Authorize": "授权", "Open book without adding it to library": "打开图书但不添加到书库", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "当您使用Koodo打开文件夹中的图书时,图书不会被添加到书库中", - "Hide menu button": "不显示菜单按钮", "Manage": "管理", "Sliding animation": "翻页动画", "Page turning animation": "翻页动画", diff --git a/src/assets/locales/zh-MO.json b/src/assets/locales/zh-MO.json index a31a54b9..9fa0131a 100644 --- a/src/assets/locales/zh-MO.json +++ b/src/assets/locales/zh-MO.json @@ -312,7 +312,6 @@ "Authorize": "授權", "Open book without adding it to library": "僅閲讀而不將其添加到書庫", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "使用Koodo在文件管理器中開啟書籍時,開啟的書籍不會添加到書庫中", - "Hide menu button": "隱藏選單按鈕", "Manage": "管理", "Sliding animation": "翻頁動畫", "Please turn off open books in the main window": "請關閉主視窗中開啟的書籍", diff --git a/src/assets/locales/zh-TW.json b/src/assets/locales/zh-TW.json index 22b34937..00f16cc7 100644 --- a/src/assets/locales/zh-TW.json +++ b/src/assets/locales/zh-TW.json @@ -317,7 +317,6 @@ "Authorize": "綁定", "Open book without adding it to library": "打開書籍但不添加到書庫", "When opening books in the file manager with Koodo, the opened books won't be added to the library": "當您使用Koodo打開文件夾中的書籍時,書籍不會被添加到書庫中", - "Hide menu button": "不顯示選單按鈕", "Manage": "管理", "Sliding animation": "滑動動畫", "Please turn off open books in the main window": "請關閉直接在主視窗打開書籍的選項", diff --git a/src/components/readerSettings/settingSwitch/component.tsx b/src/components/readerSettings/settingSwitch/component.tsx index 8bb43669..d8166f81 100644 --- a/src/components/readerSettings/settingSwitch/component.tsx +++ b/src/components/readerSettings/settingSwitch/component.tsx @@ -5,7 +5,7 @@ import { ConfigService } from "../../../assets/lib/kookit-extra-browser.min"; import { readerSettingList } from "../../../constants/settingList"; import { wordFrequencyList } from "../../../constants/dropdownList"; import toast from "react-hot-toast"; -import { vexComfirmAsync, detectLocalLanguage } from "../../../utils/common"; +import { detectLocalLanguage } from "../../../utils/common"; import BookUtil from "../../../utils/file/bookUtil"; class SettingSwitch extends React.Component< SettingSwitchProps, @@ -32,8 +32,6 @@ class SettingSwitch extends React.Component< ConfigService.getReaderConfig("isHideBackground") === "yes", isHideFooter: ConfigService.getReaderConfig("isHideFooter") === "yes", isHideHeader: ConfigService.getReaderConfig("isHideHeader") === "yes", - isHideMenuButton: - ConfigService.getReaderConfig("isHideMenuButton") === "yes", isShowPageBorder: ConfigService.getReaderConfig("isShowPageBorder") === "yes", isCustomBookCSS: @@ -405,24 +403,7 @@ class SettingSwitch extends React.Component< isShowPageBorder: this.props.handleShowBorder, }; - if (propName === "isHideMenuButton") { - if (!this.state.isHideMenuButton) { - const result = await vexComfirmAsync( - "After hiding the menu button, you can move the mouse to the edge of the window to show it again." - ); - if (result) { - this.props.handleHideMenuButton(true); - ConfigService.setReaderConfig( - "isHideMenuButton", - "yes" - ); - toast(this.props.t("Change successful")); - } - } else { - this.props.handleHideMenuButton(false); - this.handleChange("isHideMenuButton"); - } - } else if (propName === "isShowPageBorder") { + if (propName === "isShowPageBorder") { this.props.handleShowBorder(!this.state.isShowPageBorder); if (!this.state.isShowPageBorder) { this.props.handleHideBackground(true); diff --git a/src/components/readerSettings/settingSwitch/index.tsx b/src/components/readerSettings/settingSwitch/index.tsx index 2a063db3..fff854f8 100644 --- a/src/components/readerSettings/settingSwitch/index.tsx +++ b/src/components/readerSettings/settingSwitch/index.tsx @@ -6,7 +6,6 @@ import { handleHideFooter, handleHideHeader, handleHideBackground, - handleHideMenuButton, handleShowBorder, handleSetting, handleSettingMode, @@ -26,7 +25,6 @@ const actionCreator = { handleHideFooter, handleHideHeader, handleHideBackground, - handleHideMenuButton, handleShowBorder, handleSetting, handleSettingMode, diff --git a/src/components/readerSettings/settingSwitch/interface.tsx b/src/components/readerSettings/settingSwitch/interface.tsx index b7a21973..f95e3486 100644 --- a/src/components/readerSettings/settingSwitch/interface.tsx +++ b/src/components/readerSettings/settingSwitch/interface.tsx @@ -11,7 +11,6 @@ export interface SettingSwitchProps { handleHideHeader: (isHideHeader: boolean) => void; t: (title: string) => string; handleHideBackground: (isHideBackground: boolean) => void; - handleHideMenuButton: (isHideMenuButton: boolean) => void; handleShowBorder: (isShowPageBorder: boolean) => void; handleSetting: (isOpenSetting: boolean) => void; handleSettingMode: (mode: string) => void; @@ -33,7 +32,6 @@ export interface SettingSwitchState { isKeepPDFBackground: boolean; isBionic: boolean; isHideHeader: boolean; - isHideMenuButton: boolean; isShowPageBorder: boolean; isCustomBookCSS: boolean; customBookCSS: string; diff --git a/src/constants/settingList.tsx b/src/constants/settingList.tsx index 3ad79bc9..328388b1 100644 --- a/src/constants/settingList.tsx +++ b/src/constants/settingList.tsx @@ -567,11 +567,6 @@ export const readerSettingList = [ propName: "isHideBackground", isPDF: true, }, - { - title: "Hide menu button", - propName: "isHideMenuButton", - isPDF: true, - }, ]; export const officialTranList = { Automatic: "Automatic", diff --git a/src/pages/reader/component.tsx b/src/pages/reader/component.tsx index cc9ae6ef..18e51bd7 100644 --- a/src/pages/reader/component.tsx +++ b/src/pages/reader/component.tsx @@ -644,19 +644,17 @@ class Reader extends React.Component { > )} - {!this.props.isHideMenuButton && ( -
{ - this.handleEnterReader("left"); - this.handleEnterReader("right"); - this.handleEnterReader("bottom"); - this.handleEnterReader("top"); - }} - > - -
- )} +
{ + this.handleEnterReader("left"); + this.handleEnterReader("right"); + this.handleEnterReader("bottom"); + this.handleEnterReader("top"); + }} + > + +
{this.props.isSettingOpen && ( <> diff --git a/src/pages/reader/index.tsx b/src/pages/reader/index.tsx index c3159fc0..2778357b 100644 --- a/src/pages/reader/index.tsx +++ b/src/pages/reader/index.tsx @@ -40,7 +40,6 @@ const mapStateToProps = (state: stateType) => { isSettingOpen: state.manager.isSettingOpen, scale: state.reader.scale, renderBookFunc: state.book.renderBookFunc, - isHideMenuButton: state.reader.isHideMenuButton, }; }; const actionCreator = { diff --git a/src/pages/reader/interface.tsx b/src/pages/reader/interface.tsx index 205c21ef..b5871b35 100644 --- a/src/pages/reader/interface.tsx +++ b/src/pages/reader/interface.tsx @@ -15,7 +15,6 @@ export interface ReaderProps { isSearch: boolean; isAuthed: boolean; isSettingOpen: boolean; - isHideMenuButton: boolean; readerMode: string; scale: string; handleFetchNotes: () => void; diff --git a/src/store/actions/reader.tsx b/src/store/actions/reader.tsx index 3a231748..4dc1e578 100644 --- a/src/store/actions/reader.tsx +++ b/src/store/actions/reader.tsx @@ -98,9 +98,6 @@ export function handleHideHeader(isHideHeader: boolean) { export function handleHideBackground(isHideBackground: boolean) { return { type: "HANDLE_HIDE_BACKGROUND", payload: isHideBackground }; } -export function handleHideMenuButton(isHideMenuButton: boolean) { - return { type: "HANDLE_HIDE_MENU_BUTTON", payload: isHideMenuButton }; -} export function handleShowBorder(isShowPageBorder: boolean) { return { type: "HANDLE_SHOW_BORDER", payload: isShowPageBorder }; } diff --git a/src/store/index.tsx b/src/store/index.tsx index dd6187e1..d71c74c3 100644 --- a/src/store/index.tsx +++ b/src/store/index.tsx @@ -111,7 +111,6 @@ export type stateType = { isHideFooter: boolean; isHideHeader: boolean; isHideBackground: boolean; - isHideMenuButton: boolean; isShowPageBorder: boolean; textOrientation: string; noteKey: string; diff --git a/src/store/reducers/reader.tsx b/src/store/reducers/reader.tsx index 5599c68d..636533c6 100644 --- a/src/store/reducers/reader.tsx +++ b/src/store/reducers/reader.tsx @@ -38,7 +38,6 @@ const initState = { isHideFooter: ConfigService.getReaderConfig("isHideFooter") === "yes", isHideHeader: ConfigService.getReaderConfig("isHideHeader") === "yes", isHideBackground: ConfigService.getReaderConfig("isHideBackground") === "yes", - isHideMenuButton: ConfigService.getReaderConfig("isHideMenuButton") === "yes", isShowPageBorder: ConfigService.getReaderConfig("isShowPageBorder") === "yes", textOrientation: ConfigService.getReaderConfig("textOrientation") || "", jumpPosition: null as object | null, @@ -146,11 +145,6 @@ export function reader( ...state, isHideBackground: action.payload, }; - case "HANDLE_HIDE_MENU_BUTTON": - return { - ...state, - isHideMenuButton: action.payload, - }; case "HANDLE_SHOW_BORDER": return { ...state,