diff --git a/Cargo.lock b/Cargo.lock index 958d959..b44b181 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -510,7 +510,7 @@ checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" dependencies = [ "camino", "cargo-platform", - "semver 1.0.18", + "semver 1.0.19", "serde", "serde_json", ] @@ -2864,7 +2864,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.18", + "semver 1.0.19", ] [[package]] @@ -3002,9 +3002,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918" +checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0" dependencies = [ "serde", ] @@ -3932,7 +3932,7 @@ dependencies = [ [[package]] name = "websurfx" -version = "0.22.0" +version = "0.23.0" dependencies = [ "actix-cors", "actix-files", diff --git a/Cargo.toml b/Cargo.toml index eb31f59..579d677 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "websurfx" -version = "0.22.0" +version = "0.23.0" edition = "2021" description = "An open-source alternative to Searx that provides clean, ad-free, and organic results with incredible speed while keeping privacy and security in mind." repository = "https://github.com/neon-mmd/websurfx" diff --git a/public/images/no_selection.png b/public/images/no_selection.png new file mode 100644 index 0000000..f646ad6 Binary files /dev/null and b/public/images/no_selection.png differ diff --git a/public/static/themes/simple.css b/public/static/themes/simple.css index 340e58a..62ff0ea 100644 --- a/public/static/themes/simple.css +++ b/public/static/themes/simple.css @@ -155,7 +155,8 @@ body { height: 1.2rem; } .results .result_disallowed, -.results .result_filtered { +.results .result_filtered, +.results .result_engine_not_selected { display: flex; justify-content: center; align-items: center; @@ -166,18 +167,21 @@ body { } .results .result_disallowed .user_query, -.results .result_filtered .user_query { +.results .result_filtered .user_query, +.results .result_engine_not_selected .user_query { color: var(--background-color); font-weight: 300; } .results .result_disallowed img, -.results .result_filtered img { +.results .result_filtered img, +.results .result_engine_not_selected img { width: 30rem; } .results .result_disallowed div, -.results .result_filtered div { +.results .result_filtered div, +.results .result_engine_not_selected div { display: flex; flex-direction: column; gap: 1rem; diff --git a/public/templates/search.html b/public/templates/search.html index 8953b59..c6c9d6a 100644 --- a/public/templates/search.html +++ b/public/templates/search.html @@ -45,6 +45,20 @@ Image of a paper inside a funnel + {{else}} {{#if noEnginesSelected}} +
+
+

+ No results could be fetched for your search "{{{this.pageQuery}}}" . +

+

Dear user,

+

+ No results could be retrieved from the upstream search engines as no + upstream search engines were selected from the settings page. +

+
+ Image of a white cross inside a red circle +
{{else}}

Your search - {{{this.pageQuery}}} - did not match any documents.

@@ -56,7 +70,7 @@ Man fishing gif
- {{/if}} {{/if}} {{/if}} + {{/if}} {{/if}} {{/if}} {{/if}}