enhance settings filter + fix modal height + changelog

This commit is contained in:
Jordan Blasenhauer 2024-03-07 16:27:00 +01:00
parent 47e4fb2254
commit 66f9864394
3 changed files with 32 additions and 18 deletions

View file

@ -8,13 +8,20 @@
- [BUGFIX] Fix ModSecurity FP on antibot page
- [BUGFIX] Fix Whitelist core plugin missing a check for empty server_name in multisite mode
- [BUGFIX] Fix Templator missing some common configs
- [BUGFIX] Database update with external plugins reupload
- [LINUX] Add logrotate support for the logs
- [UI] Add bans management page in the web UI
- [UI] New : add bans management page in the web UI
- [UI] New : some core plugins pages in the web UI
- [UI] General : enhance the Content-Security-Policy header in the web UI
- [UI] General : dark mode enhancement
- [UI] General : add visual feedback when filtering is matching nothing
- [UI] Add blocked requests page in the web UI
- [UI] Add the possibility to clone a service in the web UI
- [UI] Add the possibility to set a service as draft in the web UI
- [UI] Enhance the Content-Security-Policy header in the web UI
- [UI] Add some core plugins pages in the web UI
- [UI] Global config / service page : remove tabs for select and enhance filtering (plugin name includes)
- [UI] Service page : add the possibility to clone a service in the web UI
- [UI] Service page : add the possibility to set a service as draft in the web UI
- [UI] Service page : add services filter when at least 4 services
- [UI] Configs page : add path filtering related to config presence
- [UI] Pro license : add home card, show pro plugis on menu and plugins page, resume in account page, alert in case issue with license usage
- [FEATURE] Add setting REDIS_SSL_VERIFY to activate/disable the SSL certificate verification when using Redis
- [FEATURE] Add Redis Sentinel fallback to master automatically if no slaves are available
- [FEATURE] Add Redis Sentinel support for bwcli

View file

@ -215,14 +215,18 @@ class FilterSettings {
}
} catch (err) {}
});
//case no setting match, hidden tab and content
//case no setting match, check if match at least tab name
//if not, hide tab
if (settingCount === hiddenCount) {
const tabName = tab.getAttribute(`data-tab-select-handler`);
tab.classList.add("!hidden");
const tabTxt = tab.textContent.trim().toLowerCase();
if (!tabTxt.includes(inpValue)) {
tab.classList.add("!hidden");
this.contentContainer
.querySelector(`[data-plugin-item=${tabName}]`)
.classList.add("hidden");
this.contentContainer
.querySelector(`[data-plugin-item=${tabName}]`)
.classList.add("hidden");
}
}
});

View file

@ -3,7 +3,7 @@
data-services-modal
class="dark:brightness-110 hidden w-screen h-screen fixed bg-gray-600/50 z-[1001] top-0 left-0 justify-center items-center">
<div data-services-modal-card
class="overflow-y-auto mx-0 sm:mx-6 lg:mx-8 my-3 px-3 sm:px-4 pt-4 pb-8 w-full h-fit sm:min-w-[500px] max-w-[1000px] max-h-[95vh] md:max-h-[90vh] flex flex-col break-words bg-white shadow-xl dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
class="overflow-y-auto mx-0 sm:mx-6 lg:mx-8 my-3 px-3 sm:px-4 pt-4 pb-8 w-full sm:min-w-[500px] max-w-[1000px] max-h-[95vh] md:max-h-[90vh] flex flex-col break-words bg-white shadow-xl dark:bg-slate-850 dark:shadow-dark-xl rounded-2xl bg-clip-border">
<div class="w-full flex justify-between items-start mb-2">
<div class="flex flex-col sm:flex-row justify-start items-start sm:items-center">
<p data-services-modal-title
@ -94,14 +94,17 @@
{% include "settings_plugins.html" %}
<!-- action button -->
<div class="w-full justify-center flex mt-10">
<button data-services-modal-close
type="button"
class="close-btn mb-4 mr-3 text-base">Close</button>
<button data-services-modal-submit type="submit" class="mb-4 valid-btn">Save</button>
<div class="w-full flex-col items-center justify-center flex mt-10">
<div class="flex justify-center">
<button data-services-modal-close
type="button"
class="close-btn mb-4 mr-3 text-base">Close</button>
<button data-services-modal-submit type="submit" class="mb-4 valid-btn">Save</button>
</div>
<!-- end action button-->
<p data-services-modal-error-msg class="hidden text-red-500 font-bold dark:opacity-80 mb-0 text-center"></p>
</div>
<!-- end action button-->
<p data-services-modal-error-msg class="hidden text-red-500 font-bold dark:opacity-80 mb-0 text-center"></p>
</form>
<!-- end new and edit form -->
<!-- delete form-->