迁移好友面板脚本到Vite模块

This commit is contained in:
2026-04-25 03:58:26 +08:00
parent 0310798675
commit 1db22dc5de
3 changed files with 396 additions and 305 deletions
+11
View File
@@ -4,6 +4,7 @@ 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 { bindFriendPanelControls, closeFriendPanel, friendSearch, loadFriends, openFriendPanel } from "./chat-room/friend-panel.js";
export { closeChatImageLightbox, initChatImageLightboxEvents, openChatImageLightbox } from "./chat-room/lightbox.js";
export { bindMobileDrawerControls } from "./chat-room/mobile-drawer.js";
export { bindWelcomeMenuControls } from "./chat-room/welcome-menu.js";
@@ -36,6 +37,7 @@ 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 { bindFriendPanelControls, closeFriendPanel, friendSearch, loadFriends, openFriendPanel } from "./chat-room/friend-panel.js";
import { closeChatImageLightbox, initChatImageLightboxEvents, openChatImageLightbox } from "./chat-room/lightbox.js";
import { bindMobileDrawerControls } from "./chat-room/mobile-drawer.js";
import { bindWelcomeMenuControls } from "./chat-room/welcome-menu.js";
@@ -72,6 +74,11 @@ if (typeof window !== "undefined") {
applyFontSize,
bindChatFontSizeControl,
bindChatImageUploadControl,
bindFriendPanelControls,
closeFriendPanel,
friendSearch,
loadFriends,
openFriendPanel,
bindMobileDrawerControls,
bindWelcomeMenuControls,
CHAT_FONT_SIZE_STORAGE_KEY,
@@ -103,10 +110,14 @@ if (typeof window !== "undefined") {
window.closeChatImageLightbox = closeChatImageLightbox;
window.openChatImageLightbox = openChatImageLightbox;
window.closeFriendPanel = closeFriendPanel;
window.friendSearch = friendSearch;
window.openFriendPanel = openFriendPanel;
window.applyFontSize = applyFontSize;
bindGlobalDialogControls();
bindChatFontSizeControl();
bindChatImageUploadControl();
bindFriendPanelControls();
bindChatRightPanelControls();
bindMobileDrawerControls();
bindWelcomeMenuControls();