重构:全局自定义弹窗系统 window.chatDialog

- 新增 chat/partials/global-dialog.blade.php(全局弹窗 HTML + JS)
- 提供 chatDialog.alert() 和 chatDialog.confirm() 两个异步 API
- Alpine.js userCardComponent 的 $alert/$confirm 代理到全局 API
- toolbar 离开按钮统一改用 chatDialog.confirm(),移除独立 leave-confirm-modal
- 支持动态标题颜色、淡入动画,兼容 Chrome/Edge/Firefox
This commit is contained in:
2026-03-01 00:34:11 +08:00
parent e2ae4b34b3
commit 7ec0904c5c
4 changed files with 209 additions and 47 deletions
+3
View File
@@ -95,6 +95,9 @@
@include('chat.partials.right-panel')
</div>
{{-- ═══════════ 全局自定义弹窗(替代原生 alert/confirm,全页面可用) ═══════════ --}}
@include('chat.partials.global-dialog')
{{-- ═══════════ 聊天室交互脚本(独立文件维护) ═══════════ --}}
@include('chat.partials.user-actions')