diff --git a/static/css/input.css b/static/css/input.css index 2407b62e..98ad1678 100644 --- a/static/css/input.css +++ b/static/css/input.css @@ -34,23 +34,3 @@ } @import "./daisyui-theme.css"; - -/* Loading Spinner - Benzene Ring */ -.benzene-spinner { - display: flex; - justify-content: center; - align-items: center; - padding: 2rem; -} - -.benzene-spinner svg { - width: 48px; - height: 48px; - animation: spin 3s linear infinite; -} - -@keyframes spin { - 100% { - transform: rotate(360deg); - } -} diff --git a/static/js/alpine/pagination.js b/static/js/alpine/pagination.js index e87687b6..aaa5d9ca 100644 --- a/static/js/alpine/pagination.js +++ b/static/js/alpine/pagination.js @@ -44,6 +44,7 @@ document.addEventListener('alpine:init', () => { this.isLoading = true; this.error = null; + this.$dispatch('loading-start'); try { const url = new URL(this.endpoint, window.location.origin); @@ -74,6 +75,7 @@ document.addEventListener('alpine:init', () => { this.error = `Unable to load ${this.endpoint}. Please try again.`; } finally { this.isLoading = false; + this.$dispatch('loading-end'); } }, diff --git a/static/js/alpine/pathway.js b/static/js/alpine/pathway.js new file mode 100644 index 00000000..99f65074 --- /dev/null +++ b/static/js/alpine/pathway.js @@ -0,0 +1,88 @@ +/** + * Pathway Viewer Alpine.js Component + * + * Provides reactive status management and polling for pathway predictions. + * Handles status updates, change detection, and update notices. + */ + +document.addEventListener('alpine:init', () => { + /** + * Pathway Viewer Component + * + * Usage: + *
No items found.