From 614f76760e1cead0086d4107e71425f8c544504c Mon Sep 17 00:00:00 2001 From: trpyn Date: Mon, 9 Nov 2026 22:18:52 +0100 Subject: [PATCH] add autocomplete on search bar for usability --- bazaar/static/css/project.css | 34 +++++++++ bazaar/static/sass/project.scss | 40 +++++++++++ bazaar/templates/front/index.html | 115 +++++++++++++++++++++++++++++- requirements/base.txt | 6 +- 4 files changed, 190 insertions(+), 5 deletions(-) diff --git a/bazaar/static/css/project.css b/bazaar/static/css/project.css index 4d7394c..614fdf8 100644 --- a/bazaar/static/css/project.css +++ b/bazaar/static/css/project.css @@ -7354,3 +7354,37 @@ samp { width: 100%; overflow-x: auto; white-space: nowrap; } + +.autocomplete { + position: relative; + display: inline-block; + flex: 1 1 auto; + width: 1%; } + +.autocomplete .form-control { + width: 100%; + border-top-right-radius: 0; + border-bottom-right-radius: 0; } + +.autocomplete-items { + text-align: left; + position: absolute; + border: 1px solid #d4d4d4; + border-top: none; + z-index: 99; + top: 100%; + left: 0; + right: 0; } + +.autocomplete-items div { + padding: 10px; + cursor: pointer; + background-color: #fff; + border-bottom: 1px solid #d4d4d4; } + +.autocomplete-items div:hover { + background-color: #e9e9e9; } + +.autocomplete-active { + background-color: #cbb4f6 !important; + color: #ffffff; } diff --git a/bazaar/static/sass/project.scss b/bazaar/static/sass/project.scss index 5263e5f..7c07d03 100644 --- a/bazaar/static/sass/project.scss +++ b/bazaar/static/sass/project.scss @@ -127,4 +127,44 @@ samp { width: 100%; overflow-x: auto; white-space: nowrap; +} + +.autocomplete { + position: relative; + display: inline-block; + flex: 1 1 auto; + width: 1%; +} + +.autocomplete .form-control { + width: 100%; + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} + +.autocomplete-items { + text-align: left; + position: absolute; + border: 1px solid #d4d4d4; + border-top: none; + z-index: 99; + top: 100%; + left: 0; + right: 0; +} + +.autocomplete-items div { + padding: 10px; + cursor: pointer; + background-color: #fff; + border-bottom: 1px solid #d4d4d4; +} + +.autocomplete-items div:hover { + background-color: #e9e9e9; +} + +.autocomplete-active { + background-color: #d1c0ee !important; + color: #ffffff; } \ No newline at end of file diff --git a/bazaar/templates/front/index.html b/bazaar/templates/front/index.html index 11a530f..fd759e6 100644 --- a/bazaar/templates/front/index.html +++ b/bazaar/templates/front/index.html @@ -46,9 +46,13 @@

Mobile threat intelligence for the masses

{% if q %} - +
+ +
{% else %} - +
+ +
{% endif %}
@@ -168,4 +172,111 @@

No results

{% endif %}
+ + {% endblock whole_content %} diff --git a/requirements/base.txt b/requirements/base.txt index 61041cc..0e3ab0f 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -29,7 +29,7 @@ django-q2==1.9.0 elasticsearch==8.19.3 elasticsearch-dsl==8.15.4 #quark-engine==26.6.1 -quark-engine @ git+https://github.com/trpyn/quark-engine.git +quark-engine @ git+https://github.com/ev-flow/quark-engine.git androguard==4.1.4 django-minio-storage==0.5.9 dhash==1.4 @@ -38,7 +38,7 @@ google-play-scraper==1.2.7 gpapi==0.4.4 requests==2.33.0 dexofuzzy==2.0.0 -AndroCFG @ git+https://github.com/U039b/AndroCFG.git +AndroCFG @ git+https://github.com/Pithus/AndroCFG.git vt-py==0.22.0 scipy==1.17.0 numpy==2.4.1 @@ -59,4 +59,4 @@ apkid==3.1.0 yara-python-dex==1.0.7 # MISP -pymisp==2.5 \ No newline at end of file +pymisp==2.5