迁移全局弹窗按钮事件绑定

This commit is contained in:
2026-04-25 03:54:23 +08:00
parent ef471ec68b
commit 04ee32e4d5
3 changed files with 44 additions and 2 deletions
+4
View File
@@ -1,6 +1,7 @@
// 聊天室 Vite 入口,集中导出从 Blade 内联脚本迁移出的纯前端工具。
export { escapeHtml, escapeHtmlWithLineBreaks } from "./chat-room/html.js";
export { bindGlobalDialogControls } from "./chat-room/dialog.js";
export { applyFontSize, bindChatFontSizeControl, CHAT_FONT_SIZE_STORAGE_KEY, restoreChatFontSize } from "./chat-room/font-size.js";
export { bindChatImageUploadControl } from "./chat-room/image-upload.js";
export { closeChatImageLightbox, initChatImageLightboxEvents, openChatImageLightbox } from "./chat-room/lightbox.js";
@@ -32,6 +33,7 @@ export {
export { createMessageQueue } from "./chat-room/message-queue.js";
import { escapeHtml, escapeHtmlWithLineBreaks } from "./chat-room/html.js";
import { bindGlobalDialogControls } from "./chat-room/dialog.js";
import { applyFontSize, bindChatFontSizeControl, CHAT_FONT_SIZE_STORAGE_KEY, restoreChatFontSize } from "./chat-room/font-size.js";
import { bindChatImageUploadControl } from "./chat-room/image-upload.js";
import { closeChatImageLightbox, initChatImageLightboxEvents, openChatImageLightbox } from "./chat-room/lightbox.js";
@@ -66,6 +68,7 @@ if (typeof window !== "undefined") {
window.ChatRoomTools = {
escapeHtml,
escapeHtmlWithLineBreaks,
bindGlobalDialogControls,
applyFontSize,
bindChatFontSizeControl,
bindChatImageUploadControl,
@@ -101,6 +104,7 @@ if (typeof window !== "undefined") {
window.closeChatImageLightbox = closeChatImageLightbox;
window.openChatImageLightbox = openChatImageLightbox;
window.applyFontSize = applyFontSize;
bindGlobalDialogControls();
bindChatFontSizeControl();
bindChatImageUploadControl();
bindChatRightPanelControls();