Skip to content

Commit

Permalink
New: Search and filter in library/browsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm committed Oct 5, 2023
1 parent 7507563 commit 8393903
Show file tree
Hide file tree
Showing 26 changed files with 802 additions and 12 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Buttons in library to go next and prev chapter [`c41ecde`](https://github.com/ollm/OpenComic/commit/c41ecde33a3b0b2361b9ccdcbec92d848b48077d)
- Adjust the brightness, saturation, contrast, sepia and colorize black and white images [`04b1caa`](https://github.com/ollm/OpenComic/commit/04b1caa5d28a468df6e94893bd943518da762030)
- Master folder support from settings [`9edd70e`](https://github.com/ollm/OpenComic/commit/9edd70ec871855cf2b43fa5cebea4bdf83baae7f)
- Ignore single folders
- Ignore single folders in browsing [`7507563`](https://github.com/ollm/OpenComic/commit/75075631fcad5fb269427c178e9bac86bc352971)
- Search and filter in library/browsing

##### 🐛 Bug Fixes

Expand Down
2 changes: 2 additions & 0 deletions languages/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "Afegir a la biblioteca",
"unsupportedFile": "L'arxiu no és compatible",
"reload": "Recarregar",
"search": "Cerca",
"filterCurrentPage": "Filtra la pàgina actual",
"language": "Idioma",
"settings": "Configuració",
"theme": "Tema",
Expand Down
2 changes: 2 additions & 0 deletions languages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Jazyk",
"settings": "",
"theme": "Vzhled",
Expand Down
2 changes: 2 additions & 0 deletions languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Sprache",
"settings": "",
"theme": "Thema",
Expand Down
2 changes: 2 additions & 0 deletions languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "Add to library",
"unsupportedFile": "The file is not supported",
"reload": "Reload",
"search": "Search",
"filterCurrentPage": "Filter current page",
"language": "Language",
"settings": "Settings",
"theme": "Theme",
Expand Down
2 changes: 2 additions & 0 deletions languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "Añadir a la biblioteca",
"unsupportedFile": "El archivo no es compatible",
"reload": "Recargar",
"search": "Buscar",
"filterCurrentPage": "Filtrar la página actual",
"language": "Idioma",
"settings": "Ajustes",
"theme": "Tema",
Expand Down
2 changes: 2 additions & 0 deletions languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Langues",
"settings": "",
"theme": "Theme",
Expand Down
2 changes: 2 additions & 0 deletions languages/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Nyelv",
"settings": "",
"theme": "Téma",
Expand Down
2 changes: 2 additions & 0 deletions languages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Lingua",
"settings": "",
"theme": "Tema",
Expand Down
2 changes: 2 additions & 0 deletions languages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "言語",
"settings": "",
"theme": "テーマ",
Expand Down
2 changes: 2 additions & 0 deletions languages/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Linguagem",
"settings": "",
"theme": "Tema",
Expand Down
2 changes: 2 additions & 0 deletions languages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Язык",
"settings": "",
"theme": "Тема",
Expand Down
2 changes: 2 additions & 0 deletions languages/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "Ngôn ngữ",
"settings": "",
"theme": "Chủ đề",
Expand Down
2 changes: 2 additions & 0 deletions languages/zh-hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "语言",
"settings": "",
"theme": "主题",
Expand Down
2 changes: 2 additions & 0 deletions languages/zh-hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"addToLibrary": "",
"unsupportedFile": "",
"reload": "",
"search": "",
"filterCurrentPage": "",
"language": "語言",
"settings": "",
"theme": "圖形介面",
Expand Down
6 changes: 4 additions & 2 deletions scripts/dom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const domPoster = require(p.join(appDir, 'scripts/dom/poster.js')),
domManager = require(p.join(appDir, 'scripts/dom/dom.js'));
domManager = require(p.join(appDir, 'scripts/dom/dom.js')),
search = require(p.join(appDir, 'scripts/dom/search.js'));

/*Page - Index*/

Expand Down Expand Up @@ -160,7 +161,7 @@ function addImageToDom(querySelector, path, animation = true)
let src = dom.queryAll('.fi-sha-'+querySelector+' img, .sha-'+querySelector+' img, img.fi-sha-'+querySelector).setAttribute('src', path);

let ri = dom.queryAll('.ri-sha-'+querySelector).setAttribute('src', path);
let cr = dom.queryAll('.continue-reading-sha-'+querySelector).css({backgroundImage: backgroundImage});
let cr = dom.queryAll('.continue-reading-sha-'+querySelector+', .search-result-sha-'+querySelector).css({backgroundImage: backgroundImage});

if(animation)
{
Expand Down Expand Up @@ -1433,6 +1434,7 @@ module.exports = {
indexPathControlUpdateLastComic: indexPathControlUpdateLastComic,
indexMainPathA: function(){return indexMainPathA},
currentPathScrollTop: function(){return currentPathScrollTop},
search: search,
this: domManager.this,
query: domManager.query,
queryAll: domManager.queryAll,
Expand Down

0 comments on commit 8393903

Please sign in to comment.