迁移礼包红包脚本

This commit is contained in:
2026-04-25 18:22:27 +08:00
parent a5c43383e1
commit 8e57ad8a45
3 changed files with 709 additions and 522 deletions
+29
View File
@@ -46,6 +46,7 @@
* - right-panel.js:处理右侧在线用户列表和用户名交互。
* - rooms.js:处理房间在线状态渲染和跳转 URL。
* - reward-modal.js:处理职务奖励金币弹窗入口。
* - red-packet-panel.js:处理礼包红包发包、抢包、倒计时和广播监听。
* - message-queue.js:提供聊天消息分批渲染队列。
*/
@@ -196,6 +197,14 @@ export {
resolveRoomUrl,
} from "./chat-room/rooms.js";
export { bindRewardModalControls, openRewardModal } from "./chat-room/reward-modal.js";
export {
bindRedPacketPanelControls,
claimRedPacket,
closeRedPacketModal,
sendRedPacket,
showRedPacketModal,
updateRedPacketClaimsUI,
} from "./chat-room/red-packet-panel.js";
export { createMessageQueue } from "./chat-room/message-queue.js";
import { escapeHtml, escapeHtmlWithLineBreaks } from "./chat-room/html.js";
@@ -344,6 +353,14 @@ import {
resolveRoomUrl,
} from "./chat-room/rooms.js";
import { bindRewardModalControls, openRewardModal } from "./chat-room/reward-modal.js";
import {
bindRedPacketPanelControls,
claimRedPacket,
closeRedPacketModal,
sendRedPacket,
showRedPacketModal,
updateRedPacketClaimsUI,
} from "./chat-room/red-packet-panel.js";
import { createMessageQueue } from "./chat-room/message-queue.js";
if (typeof window !== "undefined") {
@@ -524,6 +541,12 @@ if (typeof window !== "undefined") {
resolveRoomUrl,
bindRewardModalControls,
openRewardModal,
bindRedPacketPanelControls,
claimRedPacket,
closeRedPacketModal,
sendRedPacket,
showRedPacketModal,
updateRedPacketClaimsUI,
createMessageQueue,
};
@@ -598,6 +621,11 @@ if (typeof window !== "undefined") {
window.switchVipTab = switchVipTab;
window.switchBankTab = switchBankTab;
window.toggleBankRankSort = toggleBankRankSort;
window.claimRedPacket = claimRedPacket;
window.closeRedPacketModal = closeRedPacketModal;
window.sendRedPacket = sendRedPacket;
window.showRedPacketModal = showRedPacketModal;
window.updateRedPacketClaimsUI = updateRedPacketClaimsUI;
window.applyFontSize = applyFontSize;
window.closeAvatarPicker = closeAvatarPicker;
window.closeSettingsModal = closeSettingsModal;
@@ -677,6 +705,7 @@ if (typeof window !== "undefined") {
bindChatRightPanelControls();
bindRoomStatusControls();
bindRewardModalControls();
bindRedPacketPanelControls();
bindMobileDrawerControls();
bindWelcomeMenuControls();
bindBlockMenuControls();