迁移聊天室大卡片通知脚本

This commit is contained in:
2026-04-25 13:54:00 +08:00
parent d4a6a799fe
commit a5c2022422
3 changed files with 219 additions and 170 deletions
+4
View File
@@ -2,6 +2,7 @@
// 统一转发各子模块导出,方便测试或后续模块继续复用同一组工具。
export { escapeHtml, escapeHtmlWithLineBreaks } from "./chat-room/html.js";
export { bindChatBanner } from "./chat-room/banner.js";
export { bindGlobalDialogControls } from "./chat-room/dialog.js";
export { bindDailySignInControls } from "./chat-room/daily-sign-in.js";
export { applyFontSize, bindChatFontSizeControl, CHAT_FONT_SIZE_STORAGE_KEY, restoreChatFontSize } from "./chat-room/font-size.js";
@@ -78,6 +79,7 @@ export {
export { createMessageQueue } from "./chat-room/message-queue.js";
import { escapeHtml, escapeHtmlWithLineBreaks } from "./chat-room/html.js";
import { bindChatBanner } from "./chat-room/banner.js";
import { bindGlobalDialogControls } from "./chat-room/dialog.js";
import { bindDailySignInControls } from "./chat-room/daily-sign-in.js";
import { applyFontSize, bindChatFontSizeControl, CHAT_FONT_SIZE_STORAGE_KEY, restoreChatFontSize } from "./chat-room/font-size.js";
@@ -158,6 +160,7 @@ if (typeof window !== "undefined") {
window.ChatRoomTools = {
escapeHtml,
escapeHtmlWithLineBreaks,
bindChatBanner,
bindGlobalDialogControls,
bindDailySignInControls,
applyFontSize,
@@ -269,6 +272,7 @@ if (typeof window !== "undefined") {
window.applyFontSize = applyFontSize;
// 页面加载后立即注册事件委托,具体业务逻辑仍由各子模块负责。
bindChatBanner();
bindGlobalDialogControls();
bindDailySignInControls();
bindChatFontSizeControl();