c57b8a0c7c
Testing of HTTPErrorResponse translation
2024-01-09 20:44:44 +04:00
aee6c23082
Decoupled RequestContext from MHD_Connection
...
This will simplify testing of Response utilities.
2024-01-09 20:44:44 +04:00
af228bf45f
Dropped cookies from RequestContext
...
This should have been done in PR#997 in order to better guarantee
a lasting solution to issue#995.
2024-01-09 20:44:44 +04:00
b9323f17bb
Introduced testing of HTTP response utils
2024-01-09 20:44:44 +04:00
8993f99587
ParameterizedMessage is actually a class
2024-01-09 20:44:44 +04:00
96b6f41244
Added i18n unit test
2024-01-09 20:25:59 +04:00
3f0ea083e6
Moved microhttpd_wrapper.h under server/
2024-01-09 20:20:51 +04:00
9c5f5c7be0
Merge pull request #1036 from kiwix/fix_viewer_href
...
Get correct href value on `onClick` for "warc2zim" files.
2024-01-04 17:18:14 +01:00
9375f97b60
Get correct href value on onClick
for "warc2zim" files.
...
Next to come warc2zim archive will come with "wombat" embedded.
The purpose of wombat is to be an interface with js code to mask that
we are in a scrapped/zim context to the js.
So it rewrite the `.href` attributes to the original url (ie, an
absolute url to the original website), even if the local relative url
is valid.
Let's ask to wombat to not rewrite href in our special case.
2024-01-04 17:03:40 +01:00
2ad5e510c6
Merge pull request #1035 from kiwix/ghaction
...
Use kiwix-build's github action to download dependencies.
2023-12-20 11:53:26 +01:00
a2e56e2422
Make homebrew don't try to update installed dependencies.
2023-12-20 11:45:28 +01:00
8cc724b4a4
Use kiwix-build's github action to download dependencies.
2023-12-20 11:45:28 +01:00
fa212fd6ae
Merge pull request #1027 from kiwix/polish-apple-ci
...
Better use GitHub action .env directive
2023-12-04 22:39:45 +01:00
c0073b3bc7
Better use GitHub action .env directive
2023-12-04 20:51:46 +01:00
0d2b6b3344
Merge pull request #1030 from kiwix/cleanup_of_error_response_generation
2023-12-04 10:59:55 +01:00
5f27b4b651
Taking advantage of std::make_unique()
2023-11-29 21:32:16 +04:00
7a85c92025
Dropped root from HTTPErrorResponse & friends
2023-11-29 21:32:16 +04:00
6e2be481fd
Dropped the root param from ItemResponse::build()
2023-11-29 21:32:16 +04:00
db3b76247f
Last step of removing root from ContentResponse
2023-11-29 21:32:16 +04:00
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
22ea3106c5
Passing only root location instead of the entire server
2023-11-29 21:32:16 +04:00
2d132d701e
Dropped the server param from Response::build*()
2023-11-29 21:32:16 +04:00
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
3dce025f47
Deleted an unused function
2023-11-29 17:16:23 +04:00
e470c97f74
Got rid of InvalidUrlMsg
2023-11-29 15:42:21 +04:00
a7ea908bcd
HTTPErrorResponse no longer accepts std::strings
2023-11-29 15:35:53 +04:00
41f25083da
Replaced UrlNotFoundMsg with UrlNotFoundResponse
2023-11-29 14:31:38 +04:00
3188b0afe6
Translated a hard-coded error message
2023-11-29 14:18:06 +04:00
f8aae395f3
Merge pull request #1018 from kiwix/ci-ios
...
Test iOS cross-compile in CI
2023-11-23 08:32:30 +01:00
c5088aad7b
fixed typo in deps filename to fetch
2023-11-23 07:33:51 +01:00
269a659160
Download proper deps file
2023-11-23 07:33:51 +01:00
7161df9e4c
Test iOS cross-compile in CI
2023-11-23 07:33:51 +01:00
24faf84163
Merge pull request #1023 from kiwix/suggestions_with_control_characters
...
Control characters are escaped in suggestions JSON
13.0.0
2023-11-17 15:12:13 +01:00
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
a959800173
Merge pull request #1024 from kiwix/release-13.0.0
...
Release 13.0.0
2023-11-17 14:13:31 +01:00
b2196ee7a9
13.0.0 Changelog
2023-11-17 14:11:20 +01:00
aea51c21ff
Bump-up version to 13.0.0
2023-11-17 13:52:03 +01:00
95d627afa1
Merge pull request #1022 from kiwix/viewer_toolbar_tweaks
...
Viewer toolbar improvements
2023-11-15 21:41:55 +01:00
183bdcf2c0
Updated tests depending on kiwix-serve resources
2023-11-15 16:35:06 +04:00
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
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
605c7f71e0
Right-aligned UI language selector button
2023-11-15 15:31:22 +04:00
f58d4a93e1
Viewer toolbar controls are now of the same height
2023-11-15 13:00:12 +04:00
00032adce2
Merge pull request #1017 from kiwix/macos_13
...
Switch to macos-13.
2023-11-11 19:33:53 +01:00
f5e6502e04
Switch to macos-13.
2023-11-09 17:53:33 +01:00
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
07ff4eab43
Do not index book's name as a phrase.
...
Fix #1004
2023-11-08 10:29:31 +01:00
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
bcbdce6a9a
Add a small comment on autoComplete.css
telling where it comes from.
2023-11-07 11:13:09 +01:00
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