[mirotalksfu] - fix typo

هذا الالتزام موجود في:
Miroslav Pejic
2025-08-07 15:04:23 +02:00
الأصل 13b3315682
التزام 6f95621467
5 ملفات معدلة مع 14 إضافات و8 حذوفات

عرض الملف

@@ -284,9 +284,11 @@ COPYRIGHT_TEXT=MiroTalk SFU, all rights reserved # Copyright text
# Active Rooms # Active Rooms
SHOW_ACTIVE_ROOMS=false # Show active rooms feature (true|false) SHOW_ACTIVE_ROOMS=false # Show active rooms feature (true|false)
# Main Control Buttons # Popup Configuration
SHOW_SHARE_ROOM_POPUP=true # Show share room popup (true|false) SHOW_SHARE_ROOM_POPUP=true # Show share room popup (true|false)
SHOW_SHARE_ROOM_QR_ON_HOVER=true # Show share room QR popup on mouse hover (true|false) SHOW_SHARE_ROOM_QR_ON_HOVER=true # Show share room QR popup on mouse hover (true|false)
# Main Control Buttons
SHOW_SHARE_BUTTON=true # Show share button (true|false) SHOW_SHARE_BUTTON=true # Show share button (true|false)
SHOW_HIDE_ME=true # Show hide me button (true|false) SHOW_HIDE_ME=true # Show hide me button (true|false)
SHOW_FULLSCREEN_BUTTON=true # Show fullscreen button (true|false) SHOW_FULLSCREEN_BUTTON=true # Show fullscreen button (true|false)

عرض الملف

@@ -1118,10 +1118,13 @@ module.exports = {
* Organized by component/functionality area * Organized by component/functionality area
*/ */
buttons: { buttons: {
// Main control buttons visible in the UI // Popup Configuration
main: { popup: {
shareRoomPopup: process.env.SHOW_SHARE_ROOM_POPUP !== 'false', shareRoomPopup: process.env.SHOW_SHARE_ROOM_POPUP !== 'false',
shareRoomQrOnHover: process.env.SHOW_SHARE_ROOM_QR_ON_HOVER !== 'false', shareRoomQrOnHover: process.env.SHOW_SHARE_ROOM_QR_ON_HOVER !== 'false',
},
// Main control buttons visible in the UI
main: {
shareButton: process.env.SHOW_SHARE_BUTTON !== 'false', shareButton: process.env.SHOW_SHARE_BUTTON !== 'false',
hideMeButton: process.env.SHOW_HIDE_ME !== 'false', hideMeButton: process.env.SHOW_HIDE_ME !== 'false',
fullScreenButton: process.env.SHOW_FULLSCREEN_BUTTON !== 'false', fullScreenButton: process.env.SHOW_FULLSCREEN_BUTTON !== 'false',
@@ -1143,7 +1146,6 @@ module.exports = {
exitButton: process.env.SHOW_EXIT_BUTTON !== 'false', exitButton: process.env.SHOW_EXIT_BUTTON !== 'false',
extraButton: process.env.SHOW_EXTRA_BUTTON !== 'false', extraButton: process.env.SHOW_EXTRA_BUTTON !== 'false',
}, },
// Settings panel buttons and options // Settings panel buttons and options
settings: { settings: {
fileSharing: process.env.ENABLE_FILE_SHARING !== 'false', fileSharing: process.env.ENABLE_FILE_SHARING !== 'false',

عرض الملف

@@ -1853,11 +1853,11 @@ function handleButtons() {
shareRoom(true); shareRoom(true);
}; };
shareButton.onmouseenter = () => { shareButton.onmouseenter = () => {
if (isMobileDevice || !BUTTONS.main.shareRoomQrOnHover) return; if (isMobileDevice || !BUTTONS.popup.shareRoomQrOnHover) return;
show(qrRoomPopupContainer); show(qrRoomPopupContainer);
}; };
shareButton.onmouseleave = () => { shareButton.onmouseleave = () => {
if (isMobileDevice || !BUTTONS.main.shareRoomQrOnHover) return; if (isMobileDevice || !BUTTONS.popup.shareRoomQrOnHover) return;
hide(qrRoomPopupContainer); hide(qrRoomPopupContainer);
}; };
hideMeButton.onclick = (e) => { hideMeButton.onclick = (e) => {

عرض الملف

@@ -739,7 +739,7 @@ class RoomClient {
console.log('07.2 Participants Count ---->', participantsCount); console.log('07.2 Participants Count ---->', participantsCount);
if (BUTTONS.main.shareRoomPopup && notify && participantsCount == 1) { if (BUTTONS.popup.shareRoomPopup && notify && participantsCount == 1) {
shareRoom(); shareRoom();
} else { } else {
if (this.isScreenAllowed) { if (this.isScreenAllowed) {

عرض الملف

@@ -14,9 +14,11 @@ const isRulesActive = true;
* Ensure that any changes made here are also reflected in the configuration file to maintain synchronization. * Ensure that any changes made here are also reflected in the configuration file to maintain synchronization.
*/ */
let BUTTONS = { let BUTTONS = {
main: { popup: {
shareRoomPopup: true, shareRoomPopup: true,
shareRoomQrOnHover: true, shareRoomQrOnHover: true,
},
main: {
shareButton: true, // for quest, presenter default true shareButton: true, // for quest, presenter default true
hideMeButton: true, hideMeButton: true,
fullScreenButton: true, fullScreenButton: true,