Skip to content

Commit 123cd2c

Browse files
committed
New: Show library in header path
1 parent 4c7bf2c commit 123cd2c

20 files changed

+47
-18
lines changed

languages/ca.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "Obrir directament en continuar llegint en lloc de la llista de fitxers",
244244
"useTheFirstImageAsPoster": "Utilitzar la primera imatge com a pòster (Només si no n'hi ha cap actualment)",
245245
"showFullPathLibrary": "Mostrar la ruta completa a l'obrir els còmics de la biblioteca",
246-
"showFullPathOpened": "Mostrar la ruta completa a l'obrir un arxiu o carpeta"
246+
"showFullPathOpened": "Mostrar la ruta completa a l'obrir un arxiu o carpeta",
247+
"showLibraryPath": "Mostra la biblioteca a la ruta de la capçalera"
247248
},
248249
"startupBehavior": {
249250
"main": "Comportament d'inici",

languages/cs.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/de.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "Open directly in continue reading instead of the file list",
244244
"useTheFirstImageAsPoster": "Use the first image as a poster (Only if there is none currently)",
245245
"showFullPathLibrary": "Show full path when opening library comics",
246-
"showFullPathOpened": "Show full path when opening a file or folder"
246+
"showFullPathOpened": "Show full path when opening a file or folder",
247+
"showLibraryPath": "Show library in header path"
247248
},
248249
"startupBehavior": {
249250
"main": "Startup behavior",

languages/es.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "Abrir directamente en continuar leyendo en lugar de la lista de archivos",
244244
"useTheFirstImageAsPoster": "Utilizar la primera imagen como póster (Solo si no hay ninguno actualmente)",
245245
"showFullPathLibrary": "Mostrar la ruta completa al abrir los cómics de la biblioteca",
246-
"showFullPathOpened": "Mostrar la ruta completa al abrir un archivo o carpeta"
246+
"showFullPathOpened": "Mostrar la ruta completa al abrir un archivo o carpeta",
247+
"showLibraryPath": "Mostrar la biblioteca en la ruta del encabezado"
247248
},
248249
"startupBehavior": {
249250
"main": "Comportamiento de inicio",

languages/fr.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/hu.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/it.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/ja.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/ko.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/pt-br.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/ru.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

languages/sv.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "Öppna den senaste läsningen direkt i stället för fillistan",
244244
"useTheFirstImageAsPoster": "Använd den första bilden som affisch (endast om det inte redan finns någon)",
245245
"showFullPathLibrary": "Visa fullständig filväg när du öppnar serietidningar i biblioteket",
246-
"showFullPathOpened": "Visa fullständig filväg när en fil eller mapp öppnas"
246+
"showFullPathOpened": "Visa fullständig filväg när en fil eller mapp öppnas",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "Startbeteende",

languages/th.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "เปิดไปอ่านต่อโดยตรงแทนที่จะเป็นรายการไฟล์",
244244
"useTheFirstImageAsPoster": "ใช้ภาพแรกเป็นภาพปก (กรณีที่ที่อยู่ปัจจุบันไม่ม่)",
245245
"showFullPathLibrary": "แสดงที่ตั้งแบบเต็มเมื่อเปิดห้องสมุดคอมมิกส์",
246-
"showFullPathOpened": "แสดงที่ตั้งแบบเต็มเมื่อเปิดไฟล์หรือโฟลเดอร์"
246+
"showFullPathOpened": "แสดงที่ตั้งแบบเต็มเมื่อเปิดไฟล์หรือโฟลเดอร์",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "การกระทำเมื่อเริ่มต้น",

languages/vi.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "Mở trực tiếp vào đọc tiếp thay cho danh sách tệp",
244244
"useTheFirstImageAsPoster": "Dùng ảnh đầu tiên làm ảnh bìa (chỉ khi chưa cài đặt ảnh bìa)",
245245
"showFullPathLibrary": "Hiển thị đường dẫn đầy đủ khi mở truyện trong thư viện",
246-
"showFullPathOpened": "Hiển thị đường dẫn đầy đủ khi mở tệp tin hoặc thư mục"
246+
"showFullPathOpened": "Hiển thị đường dẫn đầy đủ khi mở tệp tin hoặc thư mục",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "Tùy chọn khởi động",

languages/zh-hans.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "直接在继续阅读中打开而不是文件列表",
244244
"useTheFirstImageAsPoster": "使用第一张图片作为海报(当前没有海报时)",
245245
"showFullPathLibrary": "打开库时显示漫画完整路径",
246-
"showFullPathOpened": "打开文件或文件夹时显示完整路径"
246+
"showFullPathOpened": "打开文件或文件夹时显示完整路径",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "启动行为",

languages/zh-hant.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@
243243
"whenOpenFolderContinueReading": "",
244244
"useTheFirstImageAsPoster": "",
245245
"showFullPathLibrary": "",
246-
"showFullPathOpened": ""
246+
"showFullPathOpened": "",
247+
"showLibraryPath": ""
247248
},
248249
"startupBehavior": {
249250
"main": "",

scripts/dom.js

+3
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,9 @@ function headerPath(path, mainPath, windowTitle = false)
10161016
path.push({name: metadataPathName({path: _path, name: files[i]}, true), path: _path, mainPath: mainPath});
10171017
}
10181018

1019+
if(config.showLibraryPath)
1020+
path.unshift({name: language.global.library, path: '', mainPath: ''});
1021+
10191022
let len = path.length;
10201023

10211024
if(len > 0)

scripts/storage.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var changes = 84; // Update this if readingPagesConfig is updated
1+
var changes = 85; // Update this if readingPagesConfig is updated
22

33
var readingPagesConfig = {
44
readingConfigName: '',
@@ -102,6 +102,7 @@ var storageDefault = {
102102
},
103103
showFullPathLibrary: false,
104104
showFullPathOpened: false,
105+
showLibraryPath: false,
105106
...readingPagesConfig,
106107
readingMagnifyingGlass: false,
107108
readingMagnifyingGlassZoom: 2,

templates/settings.content.right.html

+8
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,14 @@ <h2 class="headline-small">{{language.settings.navigation.main}}</h2>
218218
</div>
219219
</div>
220220

221+
<div class="menu-simple-text gamepad-item">
222+
<span>{{language.settings.navigation.showLibraryPath}}</span>
223+
<div class="switch{{#if config.showLibraryPath}} a{{/if}}" on="settings.set('showLibraryPath', true)" off="settings.set('showLibraryPath', false)">
224+
<div></div>
225+
<svg viewBox="0 0 52 32"><path d="M 8,0 C 3.58,0 0,3.58 0,8 0,12.42 3.58,16 8,16 8,16 8,16 8,16 12.42,16 16,12.42 16,8 16,3.58 12.42,0 8,0 8,0 8,0 8,0 Z"></path></svg>
226+
</div>
227+
</div>
228+
221229
<h2 class="headline-small">{{language.settings.navigation.folders}}</h2>
222230

223231
<div class="menu-simple-text gamepad-item">

0 commit comments

Comments
 (0)