add log viewer for queues

This commit is contained in:
Saeed Vaziry
2024-03-16 12:20:32 +01:00
parent fd93f3dd47
commit 7a6dcb5654
13 changed files with 163 additions and 27 deletions

View File

@ -1,4 +1,4 @@
import Alpine from 'alpinejs';
import tippy from 'tippy.js';
Alpine.directive('clipboard', (el) => {
let text = el.textContent
@ -54,3 +54,18 @@ window.toastr.options = {
"positionClass": "toast-bottom-right",
"preventDuplicates": true,
}
import 'tippy.js/dist/tippy.css';
import Alpine from 'alpinejs';
document.body.addEventListener('htmx:afterSettle', (event) => {
tippy('[data-tooltip]', {
content(reference) {
return reference.getAttribute('data-tooltip');
},
});
});
tippy('[data-tooltip]', {
content(reference) {
return reference.getAttribute('data-tooltip');
},
});