Skip to content

Commit

Permalink
update setup.html and popover
Browse files Browse the repository at this point in the history
*add opacity delay animation for popover to avoid seeing them if not wanted on mouse move
*add missing setup.html css for flash message
*add flash message script
  • Loading branch information
syrk4web committed Dec 26, 2023
1 parent 3321190 commit 38eb98c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 1,129 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
location ~ ^/.well-known/acme-challenge/ {
root /var/tmp/bunkerweb/lets-encrypt;
auth_basic off;
}
}
1 change: 0 additions & 1 deletion src/common/core/misc/jobs/default-server-cert.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
status = 0

try:

cert_path = Path(sep, "var", "cache", "bunkerweb", "default-server-cert")
cert_path.mkdir(parents=True, exist_ok=True)
if not cert_path.joinpath("cert.pem").is_file():
Expand Down
2 changes: 1 addition & 1 deletion src/ui/static/css/dashboard.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/ui/static/js/utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ class Popover {
const btn = el.closest("svg");
//toggle curr popover
const popover = btn.parentElement.querySelector(`[data-popover-content]`);
popover.classList.add("transition-all", "delay-200", "opacity-0");
popover.classList.remove("hidden");
setTimeout(() => {
popover.classList.remove("opacity-0");
}, 10);
}

hidePopover(el) {
const btn = el.closest("svg");
//toggle curr popover
const popover = btn.parentElement.querySelector(`[data-popover-content]`);
popover.classList.add("hidden");
popover.classList.remove("transition-all", "delay-200");
}
}

Expand Down
Loading

0 comments on commit 38eb98c

Please sign in to comment.