From 4aabe0645850ee0136d41c1a27fda58239153cf0 Mon Sep 17 00:00:00 2001 From: Davide Arcuri Date: Thu, 21 Mar 2024 15:37:24 +0100 Subject: [PATCH] improve plugin install, regipy plugins --- orochi/templates/base.html | 12 +-- orochi/templates/website/index.html | 1 + orochi/templates/website/partial_folder.html | 2 +- orochi/templates/website/partial_info.html | 80 ++++++++++++++----- orochi/utils/plugin_install.py | 6 +- orochi/utils/volatility_dask_elk.py | 68 ++++++++++++---- orochi/website/forms.py | 34 +++++--- .../migrations/0054_dump_regipy_plugins.py | 25 ++++++ orochi/website/models.py | 3 + orochi/website/views.py | 6 +- requirements/base.txt | 2 +- 11 files changed, 184 insertions(+), 55 deletions(-) create mode 100644 orochi/website/migrations/0054_dump_regipy_plugins.py diff --git a/orochi/templates/base.html b/orochi/templates/base.html index ccba01be..70c59b71 100644 --- a/orochi/templates/base.html +++ b/orochi/templates/base.html @@ -204,12 +204,14 @@ // TASK STATUS setInterval(function () { - $.get("{% url 'website:dask_status' %}").done( - function (data) { + $.ajax({ + url: "{% url 'website:dask_status' %}", + success: function (data) { $("#tasks_running").html(data.running); - } - ) - }, 5000); + }, + timeout: 2000 + }); + }, 10000); // ABOUT $(document).on("click", "#about", function () { diff --git a/orochi/templates/website/index.html b/orochi/templates/website/index.html index 29beec51..1ea55af1 100644 --- a/orochi/templates/website/index.html +++ b/orochi/templates/website/index.html @@ -716,6 +716,7 @@
History Log
}); update_sidebar(); update_main_stage(); + selected_plugin = null; $.toast({ title: 'Index delete!', content: 'Index has been deleted successfully.', diff --git a/orochi/templates/website/partial_folder.html b/orochi/templates/website/partial_folder.html index d5bccc09..272ea6ec 100644 --- a/orochi/templates/website/partial_folder.html +++ b/orochi/templates/website/partial_folder.html @@ -4,7 +4,7 @@ {{ form.media }} {% csrf_token %}