迁移老虎机游戏脚本

This commit is contained in:
2026-04-25 14:16:13 +08:00
parent fdd20917a4
commit 55d3dd43ba
3 changed files with 397 additions and 257 deletions
+49
View File
@@ -1,5 +1,46 @@
// 聊天室 Vite 入口,集中导出从 Blade 内联脚本迁移出的纯前端工具。
/**
* 模块引用说明:
* - html.js:提供聊天内容通用 HTML 转义工具。
* - appointment-announcement.js:处理任命/撤销公告的大卡片和系统消息。
* - banner.js:提供 window.chatBanner 居中大卡片通知。
* - chat-bot.js:处理 AI 小班长发送消息和清空上下文。
* - dialog.js:提供 window.chatDialog 全局弹窗。
* - daily-sign-in.js:处理每日签到弹窗与补签入口。
* - font-size.js:处理聊天输入/消息字号设置。
* - image-upload.js:处理聊天图片上传入口。
* - composer.js:处理聊天输入框、发送按钮和快捷操作。
* - toast.js:提供 window.chatToast 右下角通知。
* - friend-panel.js:处理好友面板、搜索和好友快捷操作。
* - friend-notifications.js:监听好友通知和通用 BannerNotification。
* - lightbox.js:处理聊天图片预览灯箱。
* - mobile-drawer.js:处理移动端抽屉、房间列表和在线名单。
* - marriage-status.js:处理婚姻状态展示与用户名片联动。
* - toolbar.js:处理工具栏按钮和功能快捷入口。
* - user-target-actions.js:处理点击用户名切换私聊目标和打开名片。
* - welcome-menu.js:处理欢迎菜单交互。
* - admin-menu.js:处理聊天室管理菜单交互。
* - baccarat-loss-cover-admin.js:处理百家乐买单活动管理弹层。
* - baccarat-loss-cover.js:处理百家乐买单活动前台弹窗。
* - game-hall.js:处理娱乐大厅弹窗和游戏入口卡片。
* - game-bootstrap.js:提供非关键游戏延迟初始化工具。
* - game-panels.js:处理通用游戏面板关闭事件。
* - holiday-modal.js:处理节日福利弹窗和系统消息入口。
* - initial-state.js:恢复首屏历史消息、欢迎消息、入场特效和挂起婚姻事件。
* - bank-modal.js:处理银行弹窗、转账、排行和标签切换。
* - fishing.js:处理钓鱼入口与自动钓鱼相关交互。
* - profile-controls.js:处理用户资料和资料相关按钮。
* - shop-controls.js:处理商店弹窗的基础按钮事件。
* - slot-machine.js:提供老虎机 slotPanel/slotFab Alpine 组件。
* - vip-controls.js:处理 VIP 中心相关入口。
* - preferences-status.js:处理聊天偏好、屏蔽系统播报和静音状态。
* - right-panel.js:处理右侧在线用户列表和用户名交互。
* - rooms.js:处理房间在线状态渲染和跳转 URL。
* - reward-modal.js:处理职务奖励金币弹窗入口。
* - message-queue.js:提供聊天消息分批渲染队列。
*/
// 统一转发各子模块导出,方便测试或后续模块继续复用同一组工具。
export { escapeHtml, escapeHtmlWithLineBreaks } from "./chat-room/html.js";
export { bindAppointmentAnnouncementControls, showAppointmentBanner } from "./chat-room/appointment-announcement.js";
@@ -63,6 +104,7 @@ export {
export { bindFishingControls } from "./chat-room/fishing.js";
export { bindProfileControls } from "./chat-room/profile-controls.js";
export { bindShopControls } from "./chat-room/shop-controls.js";
export { bindSlotMachineControls, slotFab, slotPanel } from "./chat-room/slot-machine.js";
export { bindVipControls } from "./chat-room/vip-controls.js";
export {
BLOCKABLE_SYSTEM_SENDERS,
@@ -153,6 +195,7 @@ import {
import { bindFishingControls } from "./chat-room/fishing.js";
import { bindProfileControls } from "./chat-room/profile-controls.js";
import { bindShopControls } from "./chat-room/shop-controls.js";
import { bindSlotMachineControls, slotFab, slotPanel } from "./chat-room/slot-machine.js";
import { bindVipControls } from "./chat-room/vip-controls.js";
import {
BLOCKABLE_SYSTEM_SENDERS,
@@ -258,6 +301,9 @@ if (typeof window !== "undefined") {
bindMarriageStatusControls,
bindProfileControls,
bindShopControls,
bindSlotMachineControls,
slotFab,
slotPanel,
bindVipControls,
CHAT_FONT_SIZE_STORAGE_KEY,
restoreChatFontSize,
@@ -311,6 +357,8 @@ if (typeof window !== "undefined") {
window.switchTarget = switchTarget;
window.clearChatBotContext = clearChatBotContext;
window.sendToChatBot = sendToChatBot;
window.slotFab = slotFab;
window.slotPanel = slotPanel;
window.runFeatureShortcut = runFeatureShortcut;
window.runToolbarAction = runToolbarAction;
window.openHolidayRunFromSystemMessage = openHolidayRunFromSystemMessage;
@@ -362,6 +410,7 @@ if (typeof window !== "undefined") {
bindMarriageStatusControls();
bindProfileControls();
bindShopControls();
bindSlotMachineControls();
bindVipControls();
bindChatRightPanelControls();
bindRoomStatusControls();