Nikhil Tanwar
37aadb86fb
language/category filtering in /nojs endpoint
...
Adds language and category filter in /nojs.
Unlike the main page, the filtering is only done after user submits the form.
2023-03-29 19:02:58 +05:30
Nikhil Tanwar
f843ea48f0
Add Results label
...
Shows "x results" label where x = number of books based on filters
2023-03-29 19:02:58 +05:30
Nikhil Tanwar
a48e2e6f06
Add search form for /nojs endpoint
...
Adds an html form to search books by the q= parameter
2023-03-29 19:02:58 +05:30
Nikhil Tanwar
0f7e11bd86
Add download-links to tiles in /nojs
...
The download-link links to /nojs/download/<bookname> for all 4 types of downloads.
2023-03-29 19:02:56 +05:30
Nikhil Tanwar
dbded6eee2
Add links to content for tiles in /nojs
...
If the tiles are now clicked, they redirect to main page of book.
2023-03-28 21:50:47 +05:30
Nikhil Tanwar
c1d7cc37fd
Add tags in tiles for /nojs endpoint
...
Adds span elements for tags
2023-03-28 21:49:31 +05:30
Nikhil Tanwar
6071b98fb7
Import book tiles
...
Tries to copy the same design of tiles as main page with javascript enabled
2023-03-28 21:49:31 +05:30
Nikhil Tanwar
dca47d35f7
Introduce /nojs endpoint
...
Adds /nojs endpoint for fallback.
Currently, it serves an HTML with book names in library
2023-03-28 20:25:44 +05:30
Nikhil Tanwar
d8656ec149
Introduce HTMLDumper
...
HTMLDumper class will be used to dump library in HTML format. It inherits from LibraryDumper
2023-03-28 20:25:44 +05:30
Nikhil Tanwar
f1873876b2
Extract LibraryDumper from OPDSDumper
...
This change creates a new common class for dumping the library into various formats: LibraryDumper
2023-03-28 20:25:44 +05:30
Kelson
cb20317047
Merge pull request #920 from kiwix/iconFeedToolTip
...
Parameterised feed tool tip
2023-03-27 22:26:44 +02:00
Nikhil Tanwar
ae58f009fb
Feed tooltip based on filters
...
The feed logo tooltip text is now based on filters.
If no filters are set, it shows "All entries"
2023-03-27 23:59:15 +05:30
Nikhil Tanwar
d7a3a417e1
Use SVG files for feed logo & ui language selector
...
Added new, better proportioned SVG files.
2023-03-26 19:58:50 +05:30
Kelson
68c6c93945
Merge pull request #910 from kiwix/minor_ui_language_selection_improvements
...
Minor UI language selection improvements
2023-03-20 17:29:37 +01:00
Veloman Yunkan
4c256e97c7
Minor UI language selection improvements
...
Added cursor type and hints to the UI language selection button. The
hints are always in English since seeing a hint in an unfamiliar language
doesn't help and English is the current lingua franca.
2023-03-19 17:00:28 +01:00
Kelson
7478217ad4
Merge pull request #909 from Bigguysahaj/main
...
Changed word "language" to "category" in README.mdS
2023-03-18 06:55:46 +01:00
bigguysahaj
ea33a3b65e
Changed word "language" to "category" in README.mdS
2023-03-18 06:55:12 +01:00
Kelson
f4e8f688ad
Merge pull request #919 from kiwix/new-ci-container-images
...
Bump-up CI base container images to r36
2023-03-16 17:23:20 +01:00
Emmanuel Engelhart
4c4969d95a
Use Codecov action
2023-03-16 14:35:20 +01:00
Emmanuel Engelhart
676a5d11f5
Bump-up CI base container images to r36
2023-03-16 13:44:07 +01:00
Matthieu Gautier
6b57ad89b7
Merge pull request #907 from kiwix/hash
2023-03-15 17:13:24 +01:00
Nikhil Tanwar
174deddf35
Use fragment value instead of search query for filters
...
The filters are now taken from window.location.hash (instead of window.location.search).
This change will help in caching of the page better.
2023-03-15 17:05:27 +01:00
Veloman Yunkan
782a25bba8
Merge pull request #905 from kiwix/translatewiki
...
Localisation updates from https://translatewiki.net .
2023-03-13 16:28:27 +04:00
translatewiki.net
24ed5491fd
Localisation updates from https://translatewiki.net .
2023-03-13 13:06:23 +01:00
Matthieu Gautier
88de978a9c
Merge pull request #904 from kiwix/support_for_multilang_zims
2023-03-08 15:30:59 +01:00
Veloman Yunkan
eb002ae306
Deprecated Book::getLanguage()
...
Introduced `Book::getCommaSeparatedLanguages()` instead.
2023-03-08 15:24:53 +01:00
Veloman Yunkan
2550306052
One more usage of Book::getLanguages()
...
`Book::getLanguages()` is used instead of `Book::getLanguage()` when
determining the set of languages for a collection of books.
2023-03-08 15:24:53 +01:00
Veloman Yunkan
51fcb90dc0
Library::updateBookDB() uses Book::getLanguages()
2023-03-08 15:24:53 +01:00
Veloman Yunkan
b1ad319d52
Enter Book::getLanguages()
2023-03-08 15:24:53 +01:00
Veloman Yunkan
12826a57bd
Less verbose book creation in unit-tests
2023-03-08 15:24:53 +01:00
Veloman Yunkan
5bda7fd45c
Support for multilang ZIMs
2023-03-08 15:24:53 +01:00
Matthieu Gautier
30725136c8
Merge pull request #906 from kiwix/pseudosafe_iframe
2023-03-07 17:06:54 +01:00
Veloman Yunkan
571b6089a4
A pseudosafe iframe
...
This prevents scripts running inside an iframe from inadvertently
manipulating the top browsing context. However a malicious script could
still remove the sandboxing imposed on it (because the combination of
"allow-same-origin" and "allow-scripts" is vulnerable).
2023-03-06 18:17:52 +04:00
Veloman Yunkan
32b4bca745
Merge pull request #896 from kiwix/stickyNav
...
Stick kiwixNav on top
2023-03-06 15:56:42 +04:00
Nikhil Tanwar
f838314435
Auto hiding of kiwixNav on scroll for mobile devices
...
Since kiwixNav is sticky for larger screens now, the tiles area on mobile devices is incredibly low.
This change hides kiwixNav if the screen is scrolled.
2023-03-03 02:47:18 +05:30
Nikhil Tanwar
08d6376eed
Economical space usage in search form
...
No pre defined height for devices with with max-width 590px now. The previous height took a good amount of space on some devices.
2023-03-02 12:45:25 +05:30
Nikhil Tanwar
3cdc6c41c4
Stick kiwixNav on top
...
The filters menu will always stay on top now.
2023-03-02 12:45:25 +05:30
Veloman Yunkan
973ac28dcb
Merge pull request #901 from kiwix/translatewiki
...
Localisation updates from https://translatewiki.net .
2023-03-01 19:26:40 +04:00
Veloman Yunkan
a855b422c7
Updated the list of translations
2023-03-01 19:16:30 +04:00
Veloman Yunkan
28673c1bb8
Handling of translation jsons w/o the language name
...
If a translation JSON file doesn't contain the 'name' (self-name)
attribute of the translation language then that language is not included
in the list of languages available in the UI language selector.
2023-03-01 19:16:06 +04:00
translatewiki.net
df4b16e485
Localisation updates from https://translatewiki.net .
2023-02-27 13:05:55 +01:00
Matthieu Gautier
936707f73b
Merge pull request #846 from kiwix/frontend_i18n
2023-02-22 15:44:56 +01:00
Veloman Yunkan
9e2a601d52
Translated filter-by-tag messages
2023-02-22 18:02:48 +04:00
Veloman Yunkan
1d074cda40
Changed the UI language selector in ZIM viewer
...
The UI language selector in the viewer is now the same as on the welcome
page. This comes with some (mostly CSS) code duplication.
2023-02-22 18:02:41 +04:00
Veloman Yunkan
5850e0d489
The OPDS feed icon is never hidden
2023-02-22 18:01:28 +04:00
Veloman Yunkan
904615a51a
Modal language selector on the welcome page
...
The language selector on the welcome page has been replaced with
a smaller button that opens a modal language selector. Though the
code for introducing such a modal language selector has been added
in i18n.js, its appearance relies on styles defined in index.css.
Once this new UI for changing the UI language is approved, it must be
used in the ZIM viewer too.
Known issues:
- selecting the language with arrow keys (using the keyboard only,
without pressing space first, so that the full list of languages is
shown) doesn't work because as soon as the current language is changed
the modal language selector disappears.
2023-02-22 18:01:21 +04:00
Veloman Yunkan
763fb86ad0
userlang query param is removed from the URL
...
If the userlang query param is present in the URL it is used to set the
UI language and then is removed from the URL.
Unlike the ZIM viewer, changing the UI language on the welcome page
isn't recorded in the navigation history (and probably it should work
the same way in the ZIM viewer where the appearance of the web page is
affected by the UI language changes to a significantly smaller extent).
2023-02-22 17:59:37 +04:00
Veloman Yunkan
fbf6d97f5e
Translation of the library OPDS feed link hints
2023-02-22 17:59:18 +04:00
Veloman Yunkan
c85466995d
Added a TTL parameter to setCookie()
2023-02-22 17:58:57 +04:00
Veloman Yunkan
514d6e6514
Added UI language selector on the welcome page
...
Also:
- Moved the language selector to the right hand side on the ZIM viewer
page (to be consistent with the welcome page)
2023-02-22 17:58:46 +04:00