Improve Alpine.js component registration and toast functionality

Add more robust Alpine.js component registration with console logs and fallback mechanisms. Update toast container to use an empty x-data object, potentially simplifying its initialization.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: eff39de1-3afa-446d-a965-acaf61837fc7
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d6d61dac-164d-45dd-929f-7dcdfd771b64/eff39de1-3afa-446d-a965-acaf61837fc7/AvPcIbY
This commit is contained in:
pac7
2025-09-21 03:04:45 +00:00
committed by pacnpal
parent 4f14f5366f
commit 06e3efc603
2 changed files with 26 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ Matches React frontend toast functionality with Sonner-like behavior
<!-- Toast Container -->
<div
x-data="toast"
x-data="{}"
x-show="$store.toast.toasts.length > 0"
class="fixed top-4 right-4 z-50 space-y-2"
x-cloak