From 0715de814710ca6d40b46c5b6a97af0bef4ff2ee Mon Sep 17 00:00:00 2001 From: Faizan Zafar Date: Mon, 3 Jun 2024 18:32:10 -0700 Subject: [PATCH 1/5] Update font settings in EpubReader and Reader components to include a "Font Boldness" slider which applies a stroke to the text --- client/components/readers/EpubReader.vue | 8 ++++++-- client/components/readers/Reader.vue | 12 ++++++++++-- client/strings/en-us.json | 1 + 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/client/components/readers/EpubReader.vue b/client/components/readers/EpubReader.vue index de31a8d5..8945bd19 100644 --- a/client/components/readers/EpubReader.vue +++ b/client/components/readers/EpubReader.vue @@ -46,7 +46,8 @@ export default { font: 'serif', fontScale: 100, lineSpacing: 115, - spread: 'auto' + spread: 'auto', + textStroke: 0 } } }, @@ -109,11 +110,14 @@ export default { const fontScale = this.ereaderSettings.fontScale / 100 + const textStroke = this.ereaderSettings.textStroke / 100 + return { '*': { color: `${fontColor}!important`, 'background-color': `${backgroundColor}!important`, - 'line-height': lineSpacing * fontScale + 'rem!important' + 'line-height': lineSpacing * fontScale + 'rem!important', + '-webkit-text-stroke': textStroke + 'px ' + fontColor + '!important' }, a: { color: `${fontColor}!important` diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index 5ee85182..5529ee9b 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -98,6 +98,12 @@ +
+
+

{{ $strings.LabelFontBoldness }}:

+
+ +

{{ $strings.LabelLayout }}:

@@ -130,7 +136,9 @@ export default { font: 'serif', fontScale: 100, lineSpacing: 115, - spread: 'auto' + fontBoldness: 100, + spread: 'auto', + textStroke: 0 } } }, @@ -416,4 +424,4 @@ export default { height: 100%; } } - \ No newline at end of file + diff --git a/client/strings/en-us.json b/client/strings/en-us.json index 04cd90d1..15d90c02 100644 --- a/client/strings/en-us.json +++ b/client/strings/en-us.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folders", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Font family", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", From 9adfdda7daec7be52d346b648813607b45324bb3 Mon Sep 17 00:00:00 2001 From: Faizan Zafar Date: Mon, 3 Jun 2024 18:37:25 -0700 Subject: [PATCH 2/5] Update font settings in EpubReader and Reader components to include a "Font Boldness" slider which applies a stroke to the text --- client/components/readers/Reader.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index 5529ee9b..718ed542 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -102,7 +102,7 @@

{{ $strings.LabelFontBoldness }}:

- +
From f43969e429d6e49072c6a1efa517a8cd40b15abe Mon Sep 17 00:00:00 2001 From: Faizan Zafar Date: Mon, 3 Jun 2024 18:44:41 -0700 Subject: [PATCH 3/5] Update font settings in EpubReader and Reader components to include a "Font Boldness" slider which applies a stroke to the text --- client/strings/bg.json | 3 ++- client/strings/bn.json | 3 ++- client/strings/cs.json | 3 ++- client/strings/da.json | 3 ++- client/strings/de.json | 3 ++- client/strings/es.json | 3 ++- client/strings/et.json | 3 ++- client/strings/fr.json | 1 + client/strings/gu.json | 3 ++- client/strings/he.json | 3 ++- client/strings/hi.json | 3 ++- client/strings/hr.json | 3 ++- client/strings/hu.json | 3 ++- client/strings/it.json | 3 ++- client/strings/lt.json | 3 ++- client/strings/nl.json | 3 ++- client/strings/no.json | 3 ++- client/strings/pl.json | 3 ++- client/strings/pt-br.json | 3 ++- client/strings/ru.json | 3 ++- client/strings/sv.json | 3 ++- client/strings/uk.json | 3 ++- client/strings/vi-vn.json | 3 ++- client/strings/zh-cn.json | 3 ++- client/strings/zh-tw.json | 3 ++- 25 files changed, 49 insertions(+), 24 deletions(-) diff --git a/client/strings/bg.json b/client/strings/bg.json index 79f50b79..b6e9a577 100644 --- a/client/strings/bg.json +++ b/client/strings/bg.json @@ -307,6 +307,7 @@ "LabelFolder": "Папка", "LabelFolders": "Папки", "LabelFontBold": "Получерно", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Шрифт", "LabelFontItalic": "Курсив", "LabelFontScale": "Мащаб на Шрифта", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Неуспешно изтриване на потребител", "ToastUserDeleteSuccess": "Потребителят е изтрит" -} \ No newline at end of file +} diff --git a/client/strings/bn.json b/client/strings/bn.json index 964cd8b7..68f76e6e 100644 --- a/client/strings/bn.json +++ b/client/strings/bn.json @@ -307,6 +307,7 @@ "LabelFolder": "ফোল্ডার", "LabelFolders": "ফোল্ডারগুলো", "LabelFontBold": "বোল্ড", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "ফন্ট পরিবার", "LabelFontItalic": "ইটালিক", "LabelFontScale": "ফন্ট স্কেল", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "ব্যবহারকারী মুছতে ব্যর্থ", "ToastUserDeleteSuccess": "ব্যবহারকারী মুছে ফেলা হয়েছে" -} \ No newline at end of file +} diff --git a/client/strings/cs.json b/client/strings/cs.json index 3a497e57..ad5840b8 100644 --- a/client/strings/cs.json +++ b/client/strings/cs.json @@ -307,6 +307,7 @@ "LabelFolder": "Složka", "LabelFolders": "Složky", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Rodina písem", "LabelFontItalic": "Italic", "LabelFontScale": "Měřítko písma", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Nepodařilo se smazat uživatele", "ToastUserDeleteSuccess": "Uživatel smazán" -} \ No newline at end of file +} diff --git a/client/strings/da.json b/client/strings/da.json index d9eaf4f1..34951f8b 100644 --- a/client/strings/da.json +++ b/client/strings/da.json @@ -307,6 +307,7 @@ "LabelFolder": "Mappe", "LabelFolders": "Mapper", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Fontfamilie", "LabelFontItalic": "Italic", "LabelFontScale": "Skriftstørrelse", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Mislykkedes sletning af bruger", "ToastUserDeleteSuccess": "Bruger slettet" -} \ No newline at end of file +} diff --git a/client/strings/de.json b/client/strings/de.json index 23395f68..ddee14fc 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -307,6 +307,7 @@ "LabelFolder": "Ordner", "LabelFolders": "Verzeichnisse", "LabelFontBold": "Fett", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Schriftfamilie", "LabelFontItalic": "Kursiv", "LabelFontScale": "Schriftgröße", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Die Sortier-Prefixe wirden geupdated ({0} Einträge)", "ToastUserDeleteFailed": "Benutzer konnte nicht gelöscht werden", "ToastUserDeleteSuccess": "Benutzer gelöscht" -} \ No newline at end of file +} diff --git a/client/strings/es.json b/client/strings/es.json index 92a7ae27..bf3df171 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -307,6 +307,7 @@ "LabelFolder": "Carpeta", "LabelFolders": "Carpetas", "LabelFontBold": "Negrilla", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Familia tipográfica", "LabelFontItalic": "Itálica", "LabelFontScale": "Tamaño de Fuente", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Prefijos de ordenar actualizaron ({0} items)", "ToastUserDeleteFailed": "Error al eliminar el usuario", "ToastUserDeleteSuccess": "Usuario eliminado" -} \ No newline at end of file +} diff --git a/client/strings/et.json b/client/strings/et.json index 2c155aff..150081c6 100644 --- a/client/strings/et.json +++ b/client/strings/et.json @@ -307,6 +307,7 @@ "LabelFolder": "Kaust", "LabelFolders": "Kataloogid", "LabelFontBold": "Paks", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Fondi pere", "LabelFontItalic": "Kaldkiri", "LabelFontScale": "Fondi suurus", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Kasutaja kustutamine ebaõnnestus", "ToastUserDeleteSuccess": "Kasutaja kustutatud" -} \ No newline at end of file +} diff --git a/client/strings/fr.json b/client/strings/fr.json index 7f660012..51da091b 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -307,6 +307,7 @@ "LabelFolder": "Dossier", "LabelFolders": "Dossiers", "LabelFontBold": "Gras", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Polices de caractères", "LabelFontItalic": "Italique", "LabelFontScale": "Taille de la police de caractère", diff --git a/client/strings/gu.json b/client/strings/gu.json index dc23c0f8..173490c2 100644 --- a/client/strings/gu.json +++ b/client/strings/gu.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folders", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "ફોન્ટ કુટુંબ", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Failed to delete user", "ToastUserDeleteSuccess": "User deleted" -} \ No newline at end of file +} diff --git a/client/strings/he.json b/client/strings/he.json index ad356fac..1cb08f3e 100644 --- a/client/strings/he.json +++ b/client/strings/he.json @@ -307,6 +307,7 @@ "LabelFolder": "תיקייה", "LabelFolders": "תיקיות", "LabelFontBold": "מודגש", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "משפחת הפונטים", "LabelFontItalic": "נטוי", "LabelFontScale": "קנה מידה של הפונט", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "מחיקת המשתמש נכשלה", "ToastUserDeleteSuccess": "המשתמש נמחק בהצלחה" -} \ No newline at end of file +} diff --git a/client/strings/hi.json b/client/strings/hi.json index 3ec029e9..44e2d745 100644 --- a/client/strings/hi.json +++ b/client/strings/hi.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folders", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "फुहारा परिवार", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Failed to delete user", "ToastUserDeleteSuccess": "User deleted" -} \ No newline at end of file +} diff --git a/client/strings/hr.json b/client/strings/hr.json index 0bbd2f84..7b77a43e 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folderi", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Font family", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Neuspješno brisanje korisnika", "ToastUserDeleteSuccess": "Korisnik obrisan" -} \ No newline at end of file +} diff --git a/client/strings/hu.json b/client/strings/hu.json index ff70d1a8..920adb33 100644 --- a/client/strings/hu.json +++ b/client/strings/hu.json @@ -307,6 +307,7 @@ "LabelFolder": "Mappa", "LabelFolders": "Mappák", "LabelFontBold": "Félkövér", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Betűtípus család", "LabelFontItalic": "Dőlt", "LabelFontScale": "Betűméret skála", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Felhasználó törlése sikertelen", "ToastUserDeleteSuccess": "Felhasználó törölve" -} \ No newline at end of file +} diff --git a/client/strings/it.json b/client/strings/it.json index 505f52a9..cfb2e123 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -307,6 +307,7 @@ "LabelFolder": "Cartella", "LabelFolders": "Cartelle", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Font family", "LabelFontItalic": "Italic", "LabelFontScale": "Dimensione Font", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Errore eliminazione utente", "ToastUserDeleteSuccess": "Utente eliminato" -} \ No newline at end of file +} diff --git a/client/strings/lt.json b/client/strings/lt.json index 317be06c..a85de1fe 100644 --- a/client/strings/lt.json +++ b/client/strings/lt.json @@ -307,6 +307,7 @@ "LabelFolder": "Aplankas", "LabelFolders": "Aplankai", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Famiglia di font", "LabelFontItalic": "Italic", "LabelFontScale": "Šrifto mastelis", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Nepavyko ištrinti naudotojo", "ToastUserDeleteSuccess": "Naudotojas ištrintas" -} \ No newline at end of file +} diff --git a/client/strings/nl.json b/client/strings/nl.json index b1ba56fe..59dc9696 100644 --- a/client/strings/nl.json +++ b/client/strings/nl.json @@ -307,6 +307,7 @@ "LabelFolder": "Map", "LabelFolders": "Mappen", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Lettertypefamilie", "LabelFontItalic": "Italic", "LabelFontScale": "Lettertype schaal", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Verwijderen gebruiker mislukt", "ToastUserDeleteSuccess": "Gebruiker verwijderd" -} \ No newline at end of file +} diff --git a/client/strings/no.json b/client/strings/no.json index 05817dc1..5b05a8a3 100644 --- a/client/strings/no.json +++ b/client/strings/no.json @@ -307,6 +307,7 @@ "LabelFolder": "Mappe", "LabelFolders": "Mapper", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Fontfamilie", "LabelFontItalic": "Italic", "LabelFontScale": "Font størrelse", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Misslykkes å slette bruker", "ToastUserDeleteSuccess": "Bruker slettet" -} \ No newline at end of file +} diff --git a/client/strings/pl.json b/client/strings/pl.json index 6f82b70a..89eab666 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Foldery", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Rodzina czcionek", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Nie udało się usunąć użytkownika", "ToastUserDeleteSuccess": "Użytkownik usunięty" -} \ No newline at end of file +} diff --git a/client/strings/pt-br.json b/client/strings/pt-br.json index f0422b38..f9473756 100644 --- a/client/strings/pt-br.json +++ b/client/strings/pt-br.json @@ -307,6 +307,7 @@ "LabelFolder": "Pasta", "LabelFolders": "Pastas", "LabelFontBold": "Negrito", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Família de fonte", "LabelFontItalic": "Itálico", "LabelFontScale": "Escala de fonte", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Prefixos de ordenação atualizados ({0} item(ns))", "ToastUserDeleteFailed": "Falha ao apagar usuário", "ToastUserDeleteSuccess": "Usuário apagado" -} \ No newline at end of file +} diff --git a/client/strings/ru.json b/client/strings/ru.json index f7224579..5b113661 100644 --- a/client/strings/ru.json +++ b/client/strings/ru.json @@ -307,6 +307,7 @@ "LabelFolder": "Папка", "LabelFolders": "Папки", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Семейство шрифтов", "LabelFontItalic": "Italic", "LabelFontScale": "Масштаб шрифта", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Не удалось удалить пользователя", "ToastUserDeleteSuccess": "Пользователь удален" -} \ No newline at end of file +} diff --git a/client/strings/sv.json b/client/strings/sv.json index 31170499..ac704e32 100644 --- a/client/strings/sv.json +++ b/client/strings/sv.json @@ -307,6 +307,7 @@ "LabelFolder": "Mapp", "LabelFolders": "Mappar", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Teckensnittsfamilj", "LabelFontItalic": "Italic", "LabelFontScale": "Teckensnittsskala", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Misslyckades med att ta bort användaren", "ToastUserDeleteSuccess": "Användaren borttagen" -} \ No newline at end of file +} diff --git a/client/strings/uk.json b/client/strings/uk.json index 53e309ea..9ce7defb 100644 --- a/client/strings/uk.json +++ b/client/strings/uk.json @@ -307,6 +307,7 @@ "LabelFolder": "Тека", "LabelFolders": "Теки", "LabelFontBold": "Жирний", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Гарнітура", "LabelFontItalic": "Курсив", "LabelFontScale": "Розмір шрифту", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Префікси сортування оновлено ({0})", "ToastUserDeleteFailed": "Не вдалося видалити користувача", "ToastUserDeleteSuccess": "Користувача видалено" -} \ No newline at end of file +} diff --git a/client/strings/vi-vn.json b/client/strings/vi-vn.json index 6b1d092e..49abf0d5 100644 --- a/client/strings/vi-vn.json +++ b/client/strings/vi-vn.json @@ -307,6 +307,7 @@ "LabelFolder": "Thư Mục", "LabelFolders": "Các Thư Mục", "LabelFontBold": "Đậm", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Gia đình font", "LabelFontItalic": "Nghiêng", "LabelFontScale": "Tỷ lệ font", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Xóa người dùng thất bại", "ToastUserDeleteSuccess": "Người dùng đã được xóa" -} \ No newline at end of file +} diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index 5bfbb163..a563bee3 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -307,6 +307,7 @@ "LabelFolder": "文件夹", "LabelFolders": "文件夹", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "字体系列", "LabelFontItalic": "斜体", "LabelFontScale": "字体比例", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "删除用户失败", "ToastUserDeleteSuccess": "用户已删除" -} \ No newline at end of file +} diff --git a/client/strings/zh-tw.json b/client/strings/zh-tw.json index b322f393..5883ddbd 100644 --- a/client/strings/zh-tw.json +++ b/client/strings/zh-tw.json @@ -307,6 +307,7 @@ "LabelFolder": "資料夾", "LabelFolders": "資料夾", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "字體系列", "LabelFontItalic": "斜體", "LabelFontScale": "字體比例", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "刪除使用者失敗", "ToastUserDeleteSuccess": "使用者已刪除" -} \ No newline at end of file +} From 265cd75691de9bde74f28d260c0d83aa0bb099a7 Mon Sep 17 00:00:00 2001 From: Faizan Zafar Date: Mon, 3 Jun 2024 18:47:29 -0700 Subject: [PATCH 4/5] Update font settings in EpubReader and Reader components to include a "Font Boldness" slider which applies a stroke to the text #3020 --- client/strings/bg.json | 3 ++- client/strings/bn.json | 3 ++- client/strings/cs.json | 3 ++- client/strings/da.json | 3 ++- client/strings/de.json | 3 ++- client/strings/es.json | 3 ++- client/strings/et.json | 3 ++- client/strings/fr.json | 1 + client/strings/gu.json | 3 ++- client/strings/he.json | 3 ++- client/strings/hi.json | 3 ++- client/strings/hr.json | 3 ++- client/strings/hu.json | 3 ++- client/strings/it.json | 3 ++- client/strings/lt.json | 3 ++- client/strings/nl.json | 3 ++- client/strings/no.json | 3 ++- client/strings/pl.json | 3 ++- client/strings/pt-br.json | 3 ++- client/strings/ru.json | 3 ++- client/strings/sv.json | 3 ++- client/strings/uk.json | 3 ++- client/strings/vi-vn.json | 3 ++- client/strings/zh-cn.json | 3 ++- client/strings/zh-tw.json | 3 ++- 25 files changed, 49 insertions(+), 24 deletions(-) diff --git a/client/strings/bg.json b/client/strings/bg.json index 79f50b79..b6e9a577 100644 --- a/client/strings/bg.json +++ b/client/strings/bg.json @@ -307,6 +307,7 @@ "LabelFolder": "Папка", "LabelFolders": "Папки", "LabelFontBold": "Получерно", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Шрифт", "LabelFontItalic": "Курсив", "LabelFontScale": "Мащаб на Шрифта", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Неуспешно изтриване на потребител", "ToastUserDeleteSuccess": "Потребителят е изтрит" -} \ No newline at end of file +} diff --git a/client/strings/bn.json b/client/strings/bn.json index 964cd8b7..68f76e6e 100644 --- a/client/strings/bn.json +++ b/client/strings/bn.json @@ -307,6 +307,7 @@ "LabelFolder": "ফোল্ডার", "LabelFolders": "ফোল্ডারগুলো", "LabelFontBold": "বোল্ড", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "ফন্ট পরিবার", "LabelFontItalic": "ইটালিক", "LabelFontScale": "ফন্ট স্কেল", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "ব্যবহারকারী মুছতে ব্যর্থ", "ToastUserDeleteSuccess": "ব্যবহারকারী মুছে ফেলা হয়েছে" -} \ No newline at end of file +} diff --git a/client/strings/cs.json b/client/strings/cs.json index 3a497e57..ad5840b8 100644 --- a/client/strings/cs.json +++ b/client/strings/cs.json @@ -307,6 +307,7 @@ "LabelFolder": "Složka", "LabelFolders": "Složky", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Rodina písem", "LabelFontItalic": "Italic", "LabelFontScale": "Měřítko písma", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Nepodařilo se smazat uživatele", "ToastUserDeleteSuccess": "Uživatel smazán" -} \ No newline at end of file +} diff --git a/client/strings/da.json b/client/strings/da.json index d9eaf4f1..34951f8b 100644 --- a/client/strings/da.json +++ b/client/strings/da.json @@ -307,6 +307,7 @@ "LabelFolder": "Mappe", "LabelFolders": "Mapper", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Fontfamilie", "LabelFontItalic": "Italic", "LabelFontScale": "Skriftstørrelse", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Mislykkedes sletning af bruger", "ToastUserDeleteSuccess": "Bruger slettet" -} \ No newline at end of file +} diff --git a/client/strings/de.json b/client/strings/de.json index 23395f68..ddee14fc 100644 --- a/client/strings/de.json +++ b/client/strings/de.json @@ -307,6 +307,7 @@ "LabelFolder": "Ordner", "LabelFolders": "Verzeichnisse", "LabelFontBold": "Fett", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Schriftfamilie", "LabelFontItalic": "Kursiv", "LabelFontScale": "Schriftgröße", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Die Sortier-Prefixe wirden geupdated ({0} Einträge)", "ToastUserDeleteFailed": "Benutzer konnte nicht gelöscht werden", "ToastUserDeleteSuccess": "Benutzer gelöscht" -} \ No newline at end of file +} diff --git a/client/strings/es.json b/client/strings/es.json index 92a7ae27..bf3df171 100644 --- a/client/strings/es.json +++ b/client/strings/es.json @@ -307,6 +307,7 @@ "LabelFolder": "Carpeta", "LabelFolders": "Carpetas", "LabelFontBold": "Negrilla", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Familia tipográfica", "LabelFontItalic": "Itálica", "LabelFontScale": "Tamaño de Fuente", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Prefijos de ordenar actualizaron ({0} items)", "ToastUserDeleteFailed": "Error al eliminar el usuario", "ToastUserDeleteSuccess": "Usuario eliminado" -} \ No newline at end of file +} diff --git a/client/strings/et.json b/client/strings/et.json index 2c155aff..150081c6 100644 --- a/client/strings/et.json +++ b/client/strings/et.json @@ -307,6 +307,7 @@ "LabelFolder": "Kaust", "LabelFolders": "Kataloogid", "LabelFontBold": "Paks", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Fondi pere", "LabelFontItalic": "Kaldkiri", "LabelFontScale": "Fondi suurus", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Kasutaja kustutamine ebaõnnestus", "ToastUserDeleteSuccess": "Kasutaja kustutatud" -} \ No newline at end of file +} diff --git a/client/strings/fr.json b/client/strings/fr.json index 7f660012..51da091b 100644 --- a/client/strings/fr.json +++ b/client/strings/fr.json @@ -307,6 +307,7 @@ "LabelFolder": "Dossier", "LabelFolders": "Dossiers", "LabelFontBold": "Gras", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Polices de caractères", "LabelFontItalic": "Italique", "LabelFontScale": "Taille de la police de caractère", diff --git a/client/strings/gu.json b/client/strings/gu.json index dc23c0f8..173490c2 100644 --- a/client/strings/gu.json +++ b/client/strings/gu.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folders", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "ફોન્ટ કુટુંબ", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Failed to delete user", "ToastUserDeleteSuccess": "User deleted" -} \ No newline at end of file +} diff --git a/client/strings/he.json b/client/strings/he.json index ad356fac..1cb08f3e 100644 --- a/client/strings/he.json +++ b/client/strings/he.json @@ -307,6 +307,7 @@ "LabelFolder": "תיקייה", "LabelFolders": "תיקיות", "LabelFontBold": "מודגש", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "משפחת הפונטים", "LabelFontItalic": "נטוי", "LabelFontScale": "קנה מידה של הפונט", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "מחיקת המשתמש נכשלה", "ToastUserDeleteSuccess": "המשתמש נמחק בהצלחה" -} \ No newline at end of file +} diff --git a/client/strings/hi.json b/client/strings/hi.json index 3ec029e9..44e2d745 100644 --- a/client/strings/hi.json +++ b/client/strings/hi.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folders", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "फुहारा परिवार", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Failed to delete user", "ToastUserDeleteSuccess": "User deleted" -} \ No newline at end of file +} diff --git a/client/strings/hr.json b/client/strings/hr.json index 0bbd2f84..7b77a43e 100644 --- a/client/strings/hr.json +++ b/client/strings/hr.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Folderi", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Font family", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Neuspješno brisanje korisnika", "ToastUserDeleteSuccess": "Korisnik obrisan" -} \ No newline at end of file +} diff --git a/client/strings/hu.json b/client/strings/hu.json index ff70d1a8..920adb33 100644 --- a/client/strings/hu.json +++ b/client/strings/hu.json @@ -307,6 +307,7 @@ "LabelFolder": "Mappa", "LabelFolders": "Mappák", "LabelFontBold": "Félkövér", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Betűtípus család", "LabelFontItalic": "Dőlt", "LabelFontScale": "Betűméret skála", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Felhasználó törlése sikertelen", "ToastUserDeleteSuccess": "Felhasználó törölve" -} \ No newline at end of file +} diff --git a/client/strings/it.json b/client/strings/it.json index 505f52a9..cfb2e123 100644 --- a/client/strings/it.json +++ b/client/strings/it.json @@ -307,6 +307,7 @@ "LabelFolder": "Cartella", "LabelFolders": "Cartelle", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Font family", "LabelFontItalic": "Italic", "LabelFontScale": "Dimensione Font", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Errore eliminazione utente", "ToastUserDeleteSuccess": "Utente eliminato" -} \ No newline at end of file +} diff --git a/client/strings/lt.json b/client/strings/lt.json index 317be06c..a85de1fe 100644 --- a/client/strings/lt.json +++ b/client/strings/lt.json @@ -307,6 +307,7 @@ "LabelFolder": "Aplankas", "LabelFolders": "Aplankai", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Famiglia di font", "LabelFontItalic": "Italic", "LabelFontScale": "Šrifto mastelis", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Nepavyko ištrinti naudotojo", "ToastUserDeleteSuccess": "Naudotojas ištrintas" -} \ No newline at end of file +} diff --git a/client/strings/nl.json b/client/strings/nl.json index b1ba56fe..59dc9696 100644 --- a/client/strings/nl.json +++ b/client/strings/nl.json @@ -307,6 +307,7 @@ "LabelFolder": "Map", "LabelFolders": "Mappen", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Lettertypefamilie", "LabelFontItalic": "Italic", "LabelFontScale": "Lettertype schaal", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Verwijderen gebruiker mislukt", "ToastUserDeleteSuccess": "Gebruiker verwijderd" -} \ No newline at end of file +} diff --git a/client/strings/no.json b/client/strings/no.json index 05817dc1..5b05a8a3 100644 --- a/client/strings/no.json +++ b/client/strings/no.json @@ -307,6 +307,7 @@ "LabelFolder": "Mappe", "LabelFolders": "Mapper", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Fontfamilie", "LabelFontItalic": "Italic", "LabelFontScale": "Font størrelse", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Misslykkes å slette bruker", "ToastUserDeleteSuccess": "Bruker slettet" -} \ No newline at end of file +} diff --git a/client/strings/pl.json b/client/strings/pl.json index 6f82b70a..89eab666 100644 --- a/client/strings/pl.json +++ b/client/strings/pl.json @@ -307,6 +307,7 @@ "LabelFolder": "Folder", "LabelFolders": "Foldery", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Rodzina czcionek", "LabelFontItalic": "Italic", "LabelFontScale": "Font scale", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Nie udało się usunąć użytkownika", "ToastUserDeleteSuccess": "Użytkownik usunięty" -} \ No newline at end of file +} diff --git a/client/strings/pt-br.json b/client/strings/pt-br.json index f0422b38..f9473756 100644 --- a/client/strings/pt-br.json +++ b/client/strings/pt-br.json @@ -307,6 +307,7 @@ "LabelFolder": "Pasta", "LabelFolders": "Pastas", "LabelFontBold": "Negrito", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Família de fonte", "LabelFontItalic": "Itálico", "LabelFontScale": "Escala de fonte", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Prefixos de ordenação atualizados ({0} item(ns))", "ToastUserDeleteFailed": "Falha ao apagar usuário", "ToastUserDeleteSuccess": "Usuário apagado" -} \ No newline at end of file +} diff --git a/client/strings/ru.json b/client/strings/ru.json index f7224579..5b113661 100644 --- a/client/strings/ru.json +++ b/client/strings/ru.json @@ -307,6 +307,7 @@ "LabelFolder": "Папка", "LabelFolders": "Папки", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Семейство шрифтов", "LabelFontItalic": "Italic", "LabelFontScale": "Масштаб шрифта", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Не удалось удалить пользователя", "ToastUserDeleteSuccess": "Пользователь удален" -} \ No newline at end of file +} diff --git a/client/strings/sv.json b/client/strings/sv.json index 31170499..ac704e32 100644 --- a/client/strings/sv.json +++ b/client/strings/sv.json @@ -307,6 +307,7 @@ "LabelFolder": "Mapp", "LabelFolders": "Mappar", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Teckensnittsfamilj", "LabelFontItalic": "Italic", "LabelFontScale": "Teckensnittsskala", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Misslyckades med att ta bort användaren", "ToastUserDeleteSuccess": "Användaren borttagen" -} \ No newline at end of file +} diff --git a/client/strings/uk.json b/client/strings/uk.json index 53e309ea..9ce7defb 100644 --- a/client/strings/uk.json +++ b/client/strings/uk.json @@ -307,6 +307,7 @@ "LabelFolder": "Тека", "LabelFolders": "Теки", "LabelFontBold": "Жирний", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Гарнітура", "LabelFontItalic": "Курсив", "LabelFontScale": "Розмір шрифту", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Префікси сортування оновлено ({0})", "ToastUserDeleteFailed": "Не вдалося видалити користувача", "ToastUserDeleteSuccess": "Користувача видалено" -} \ No newline at end of file +} diff --git a/client/strings/vi-vn.json b/client/strings/vi-vn.json index 6b1d092e..49abf0d5 100644 --- a/client/strings/vi-vn.json +++ b/client/strings/vi-vn.json @@ -307,6 +307,7 @@ "LabelFolder": "Thư Mục", "LabelFolders": "Các Thư Mục", "LabelFontBold": "Đậm", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "Gia đình font", "LabelFontItalic": "Nghiêng", "LabelFontScale": "Tỷ lệ font", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "Xóa người dùng thất bại", "ToastUserDeleteSuccess": "Người dùng đã được xóa" -} \ No newline at end of file +} diff --git a/client/strings/zh-cn.json b/client/strings/zh-cn.json index 5bfbb163..a563bee3 100644 --- a/client/strings/zh-cn.json +++ b/client/strings/zh-cn.json @@ -307,6 +307,7 @@ "LabelFolder": "文件夹", "LabelFolders": "文件夹", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "字体系列", "LabelFontItalic": "斜体", "LabelFontScale": "字体比例", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "删除用户失败", "ToastUserDeleteSuccess": "用户已删除" -} \ No newline at end of file +} diff --git a/client/strings/zh-tw.json b/client/strings/zh-tw.json index b322f393..5883ddbd 100644 --- a/client/strings/zh-tw.json +++ b/client/strings/zh-tw.json @@ -307,6 +307,7 @@ "LabelFolder": "資料夾", "LabelFolders": "資料夾", "LabelFontBold": "Bold", + "LabelFontBoldness": "Font Boldness", "LabelFontFamily": "字體系列", "LabelFontItalic": "斜體", "LabelFontScale": "字體比例", @@ -817,4 +818,4 @@ "ToastSortingPrefixesUpdateSuccess": "Sorting prefixes updated ({0} items)", "ToastUserDeleteFailed": "刪除使用者失敗", "ToastUserDeleteSuccess": "使用者已刪除" -} \ No newline at end of file +} From 9c7569fa7acd50e611f670d56cd89712d5d6da02 Mon Sep 17 00:00:00 2001 From: advplyr Date: Fri, 7 Jun 2024 16:43:12 -0500 Subject: [PATCH 5/5] Map localStorage ereaderSettings onto defaults --- client/components/readers/Reader.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/components/readers/Reader.vue b/client/components/readers/Reader.vue index 718ed542..919c2f3e 100644 --- a/client/components/readers/Reader.vue +++ b/client/components/readers/Reader.vue @@ -386,7 +386,12 @@ export default { try { const settings = localStorage.getItem('ereaderSettings') if (settings) { - this.ereaderSettings = JSON.parse(settings) + const _ereaderSettings = JSON.parse(settings) + for (const key in this.ereaderSettings) { + if (_ereaderSettings[key] !== undefined) { + this.ereaderSettings[key] = _ereaderSettings[key] + } + } this.settingsUpdated() } } catch (error) {