Matthieu Gautier
0d2b6b3344
Merge pull request #1030 from kiwix/cleanup_of_error_response_generation
2023-12-04 10:59:55 +01:00
Veloman Yunkan
5f27b4b651
Taking advantage of std::make_unique()
2023-11-29 21:32:16 +04:00
Veloman Yunkan
7a85c92025
Dropped root from HTTPErrorResponse & friends
2023-11-29 21:32:16 +04:00
Veloman Yunkan
6e2be481fd
Dropped the root param from ItemResponse::build()
2023-11-29 21:32:16 +04:00
Veloman Yunkan
db3b76247f
Last step of removing root from ContentResponse
2023-11-29 21:32:16 +04:00
Veloman Yunkan
6a651e04e5
1st step in removing root from ContentResponse
...
It turned out that ContentResponse::m_root is no longer used.
At this point, the root parameter is dropped only from the 3-ary variant
of ContentResponse::build(), so that its all call sites are
automatically discovered by the compiler (and updated manually).
Including the other (4-ary) variant of ContentResponse::build() in this
change might result in the semantic change of expressions like
`ContentResponse::build(x, y, z)` and failure to update them.
2023-11-29 21:32:16 +04:00
Veloman Yunkan
22ea3106c5
Passing only root location instead of the entire server
2023-11-29 21:32:16 +04:00
Veloman Yunkan
2d132d701e
Dropped the server param from Response::build*()
2023-11-29 21:32:16 +04:00
Veloman Yunkan
f81a5a1a4b
Moved verbosity control to Response::send()
...
It makes little sense to pass the verbosity control to the `Response`
constructor if it is used only in `Response::send()`.
2023-11-29 21:32:12 +04:00
Veloman Yunkan
3dce025f47
Deleted an unused function
2023-11-29 17:16:23 +04:00
Veloman Yunkan
e470c97f74
Got rid of InvalidUrlMsg
2023-11-29 15:42:21 +04:00
Veloman Yunkan
a7ea908bcd
HTTPErrorResponse no longer accepts std::strings
2023-11-29 15:35:53 +04:00
Veloman Yunkan
41f25083da
Replaced UrlNotFoundMsg with UrlNotFoundResponse
2023-11-29 14:31:38 +04:00
Veloman Yunkan
3188b0afe6
Translated a hard-coded error message
2023-11-29 14:18:06 +04:00
Kelson
f8aae395f3
Merge pull request #1018 from kiwix/ci-ios
...
Test iOS cross-compile in CI
2023-11-23 08:32:30 +01:00
renaud gaudin
c5088aad7b
fixed typo in deps filename to fetch
2023-11-23 07:33:51 +01:00
Emmanuel Engelhart
269a659160
Download proper deps file
2023-11-23 07:33:51 +01:00
Emmanuel Engelhart
7161df9e4c
Test iOS cross-compile in CI
2023-11-23 07:33:51 +01:00
Kelson
24faf84163
Merge pull request #1023 from kiwix/suggestions_with_control_characters
...
Control characters are escaped in suggestions JSON
2023-11-17 15:12:13 +01:00
Veloman Yunkan
571c09e00a
Control characters are escaped in suggestions JSON
...
According to the JSON spec, control characters from U+0000 through U+001F
must NOT appear in strings unescaped.
2023-11-17 14:55:01 +01:00
Kelson
a959800173
Merge pull request #1024 from kiwix/release-13.0.0
...
Release 13.0.0
2023-11-17 14:13:31 +01:00
Emmanuel Engelhart
b2196ee7a9
13.0.0 Changelog
2023-11-17 14:11:20 +01:00
Emmanuel Engelhart
aea51c21ff
Bump-up version to 13.0.0
2023-11-17 13:52:03 +01:00
Kelson
95d627afa1
Merge pull request #1022 from kiwix/viewer_toolbar_tweaks
...
Viewer toolbar improvements
2023-11-15 21:41:55 +01:00
Veloman Yunkan
183bdcf2c0
Updated tests depending on kiwix-serve resources
2023-11-15 16:35:06 +04:00
Veloman Yunkan
e1cf16ddea
Better behavior on narrow screens
...
On media (screens) narrower than 420 pixels, the toolbar buttons
are hidden. Before this change, when made visible they were laid out
in two rows. This change places them in a single row and provides
some vertical spacing from the search-box.
2023-11-15 16:08:41 +04:00
Veloman Yunkan
a74df86fcf
Continuity in responsive layout of the toolbar
...
Without this change, in the media width range [416, 420) the searchbox is
narrow while the toolbars button space is empty which doesn't look nice.
2023-11-15 15:45:28 +04:00
Veloman Yunkan
605c7f71e0
Right-aligned UI language selector button
2023-11-15 15:31:22 +04:00
Veloman Yunkan
f58d4a93e1
Viewer toolbar controls are now of the same height
2023-11-15 13:00:12 +04:00
Kelson
00032adce2
Merge pull request #1017 from kiwix/macos_13
...
Switch to macos-13.
2023-11-11 19:33:53 +01:00
Matthieu Gautier
f5e6502e04
Switch to macos-13.
2023-11-09 17:53:33 +01:00
Kelson
37274f7882
Merge pull request #1016 from kiwix/fix_query_with_dot
...
Do not index book's name as a phrase.
2023-11-08 17:31:15 +01:00
Matthieu Gautier
07ff4eab43
Do not index book's name as a phrase.
...
Fix #1004
2023-11-08 10:29:31 +01:00
Kelson
e89f4e2ac7
Merge pull request #1008 from kiwix/autocomplete_no_min
...
Add a non minified version of autoComplete.js
2023-11-07 20:41:59 +01:00
Matthieu Gautier
bcbdce6a9a
Add a small comment on `autoComplete.css` telling where it comes from.
2023-11-07 11:13:09 +01:00
Matthieu Gautier
0effcdb23f
Add unminified autoComplete.js and LICENSE file.
...
- LICENSE is the copy of LICENSE file in TarekRaafat/autoComplete.js
- autoComplete.js is
`https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.6/dist/autoComplete.js `
2023-11-07 11:07:56 +01:00
Matthieu Gautier
5c8dd0e8d3
Move `autoComplete.min.js` and `autoComplete.css` in a subdirectory.
...
This way we can easily identify which files is part of other project.
2023-11-07 11:04:27 +01:00
Matthieu Gautier
d2c031e047
Merge pull request #1013 from kiwix/add-fon-language-support
2023-11-07 08:29:25 +01:00
Emmanuel Engelhart
733b027c2f
Add support of Fon language (no supported in libicu)
2023-11-04 15:34:42 +01:00
Kelson
e8b8c18297
Merge pull request #1009 from kiwix/kiwix_frontend_style_cleanup
...
Kiwix frontend style cleanup
2023-11-04 15:20:45 +01:00
Veloman Yunkan
29c33a7ad6
More economic use of vertical space on the library page
2023-10-28 21:20:33 +04:00
Veloman Yunkan
fd504c1166
Matched viewer toolbar color to that of the library page
...
Attempts to use the same color for buttons yielded poor results: viewer
toolbar buttons don't look nice on the dark background used for the
filter controls on the library page, whereas the light background of the
viewer toolbar buttons doesn't play well with the filters on the library
page which seem to be designed around the contrast effect.
2023-10-28 21:20:33 +04:00
Veloman Yunkan
0c05af658d
Deduplicated styling of UI language selector
...
There was a slight difference (between index.css and taskbar.css) in the
margin values of the UI language selector button, however the values
taken from taskbar.css don't seem to have any visible impact on the
welcome/library page (controlled by index.css).
2023-10-28 21:20:33 +04:00
Veloman Yunkan
0c0b1f5971
Moved to kiwix.css some CSS with global effect
...
Moved from index.css into kiwix.css some CSS with global effect thus
making it apply to the viewer too.
Extra font-size directives in taskbar.css are needed to undo the effect
of 'font-size: 62.5%' now applied to the 'html' element type.
2023-10-28 21:20:33 +04:00
Veloman Yunkan
a65681d6f4
Shared styling of modal dialogs goes into kiwix.css
2023-10-28 21:20:33 +04:00
Veloman Yunkan
af27141320
Enter kiwix.css
...
The new file kiwix.css is intended to host the intersection of index.css
and taskbar.css. In this commit only font definitions have been moved
into it.
2023-10-28 21:20:33 +04:00
Veloman Yunkan
d2bb3d198c
Moved font definition from template to CSS
2023-10-28 21:20:33 +04:00
Matthieu Gautier
a5db4a1fd5
Merge pull request #1006 from kiwix/translatewiki
...
Localisation updates from https://translatewiki.net .
2023-10-24 15:33:21 +02:00
Matthieu Gautier
59f0070ecc
Add new translations to resource files.
2023-10-24 15:13:07 +02:00
translatewiki.net
bd818d33af
Localisation updates from https://translatewiki.net .
2023-10-23 13:10:04 +02:00