libkiwix/src
Veloman Yunkan 3b9f28b2b5 Applied cache-id to search_results.css
The story of search_results.css

static/skin/search_results.css was extracted from
static/templates/no_search_result.html before the latter was dropped.

static/templates/no_search_result.html in turn seems to be a copied and
edited version of static/templates/search_result.html.

In the context of exploratory work on the internationalization of
kiwix-serve (PR #679) I noticed duplication of inline CSS across those
two templates and intended to eliminated it. That goal was not fully
accomplished (static/templates/search_result.html remained untouched)
because by that time PR #679 grew too big and the efforts were diverted
into splitting it into smaller ones. Thus search_results.css slipped
into one of those small PRs, without making much sense because nothing
really justifies preserving custom CSS in the "Fulltext search unavailable"
error page.

At the same time, it served as the only case where a link to a cacheable
resource is generated in C++ code (rather than found in a template).
This poses certain problems to the handling of cache-ids. A workaround
is to expel the URL into a template so that it is processed by
`kiwix-resources`. This commit merely demonstrates that solution. But
whether it should be preserved (or rather the "Fulltext search
unavailable" page should be deprived of CSS) is questionable.
2022-05-02 20:37:22 +04:00
..
server Applied cache-id to search_results.css 2022-05-02 20:37:22 +04:00
tools Correctly detect the number of article for zim version <= 6 2022-04-06 17:21:14 +02:00
wrapper/java kiwix::Book::getCategory() 2021-03-17 14:09:48 +04:00
aria2.cpp Introduce kiwix::fileReadable 2022-01-05 20:16:38 +05:30
aria2.h Make aria2 secret a random value 2022-01-03 09:35:04 +01:00
book.cpp Correctly detect the number of article for zim version <= 6 2022-04-06 17:21:14 +02:00
bookmark.cpp Add bookmarks support. 2018-12-02 15:47:29 +01:00
config.h.in Better libkiwix version variable name 2021-12-13 18:22:40 +01:00
downloader.cpp Better error printing. 2020-08-28 15:27:03 +02:00
entry.cpp Deprecate `Entry` creation. 2022-01-13 14:23:29 +01:00
kiwixserve.cpp Move back used helper functions to the public API. 2021-07-07 14:43:13 +02:00
library.cpp Add a new private constructor not deprecated for Reader. 2022-01-18 12:22:11 +01:00
libxml_dumper.cpp Deprecate methods on Book. 2022-01-12 18:07:46 +01:00
manager.cpp Manager::reload() also removes books from Library 2021-11-30 18:20:27 +04:00
meson.build i18n data is kept in and generated from JSON files 2022-04-13 16:40:20 +02:00
microhttpd_wrapper.h Fix compilation with libmicrohttpd v0.97.1 2020-07-08 14:42:46 +02:00
name_mapper.cpp Renamed NameMapperProxy -> UpdatableNameMapper 2021-11-30 18:20:27 +04:00
opds_catalog.cpp OpdsCatalog::getSearchUrl() 2021-06-30 18:27:00 +02:00
opds_dumper.cpp kiwix::onlyAsNonEmptyMustacheValue() 2022-03-28 14:56:40 +02:00
reader.cpp Add a new private constructor not deprecated for Reader. 2022-01-18 12:22:11 +01:00
search_renderer.cpp Reuse constructor when creating the SearchRenderer with basic constructor. 2022-03-04 17:08:59 +01:00
searcher.cpp fixup! Searcher::add_reader() rejects duplicate readers 2021-12-16 16:51:03 +01:00
server.cpp Add method to change MHD_OPTION_PER_IP_CONNECTION_LIMIT 2022-02-05 18:31:42 +05:30
subprocess.cpp Do not add NULL at end of commandLine on Windows. 2018-10-31 13:56:42 +01:00
subprocess.h Do not add NULL at end of commandLine on Windows. 2018-10-31 13:56:42 +01:00
subprocess_unix.cpp Use c++11 std::thread instead of pthread. 2021-01-26 17:53:25 +01:00
subprocess_unix.h Use c++11 std::thread instead of pthread. 2021-01-26 17:53:25 +01:00
subprocess_windows.cpp Wait for waitingThread to exit before destroying the subprocess memory. 2020-08-26 12:26:04 +02:00
subprocess_windows.h Wait for waitingThread to exit before destroying the subprocess memory. 2020-08-26 12:26:04 +02:00
version.cpp New kiwix::getVersions() and printVersions() 2022-01-02 12:22:11 +01:00
xmlrpc.h Add missing include 2020-10-07 18:43:57 +02:00