fcr-ui-scene 3.1.1 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/base.d.ts +0 -1
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +4 -5
- package/lib/common/device-store.js +178 -86
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +20 -3
- package/lib/common/event-store.js +43 -5
- package/lib/common/security-store.d.ts +16 -16
- package/lib/common/security-store.js +278 -124
- package/lib/electron/app.js +13 -5
- package/lib/electron/bootstrap-dev.d.ts +1 -0
- package/lib/electron/bootstrap-dev.js +51 -0
- package/lib/electron/bootstrap-sdk.d.ts +1 -0
- package/lib/electron/bootstrap-sdk.js +56 -0
- package/lib/electron/bootstrap.d.ts +1 -0
- package/lib/electron/bootstrap.js +56 -0
- package/lib/electron/default-options.js +1 -1
- package/lib/electron/dev.d.ts +1 -0
- package/lib/electron/dev.js +51 -0
- package/lib/electron/injections.d.ts +3 -4
- package/lib/electron/injections.js +46 -33
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.js +15 -11
- package/lib/electron/plugins/meeting-state.d.ts +2 -0
- package/lib/electron/plugins/meeting-state.js +39 -0
- package/lib/electron/preload.js +2 -1
- package/lib/electron/tools.js +9 -0
- package/lib/electron/window.d.ts +1 -1
- package/lib/electron/window.js +14 -2
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +394 -81
- package/lib/fragments/control-bar/device/index.js +12 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +19 -1
- package/lib/fragments/control-bar/meeting-details/meeting-detail.css +109 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.d.ts +3 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details-portal.js +60 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.d.ts +2 -0
- package/lib/fragments/control-bar/meeting-details/meeting-details.js +179 -0
- package/lib/fragments/control-bar/more-actions/index.css +53 -0
- package/lib/fragments/control-bar/more-actions/index.js +77 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +43 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +14 -5
- package/lib/modules/action-bar/chat/index.js +6 -6
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +6 -4
- package/lib/modules/action-bar/index.css +63 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +8 -7
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -1
- package/lib/modules/action-bar/leave/assign-host.js +7 -7
- package/lib/modules/action-bar/leave/index.js +35 -7
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -1
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.d.ts +0 -1
- package/lib/modules/action-bar/more/poppover-content.js +14 -4
- package/lib/modules/action-bar/participants/index.css +12 -0
- package/lib/modules/action-bar/participants/index.js +21 -14
- package/lib/modules/action-bar/screen-share/index.js +5 -1
- package/lib/modules/action-bar/screen-share/submenu.js +17 -22
- package/lib/modules/action-bar/security/drop-menu.js +124 -14
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +45 -21
- package/lib/modules/action-bar/store.js +544 -134
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +46 -27
- package/lib/modules/chat/chat-select/index.css +19 -4
- package/lib/modules/chat/chat-select/index.d.ts +0 -1
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +2 -3
- package/lib/modules/chat/chat.js +210 -107
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/demo-wrapper.d.ts +0 -1
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +4 -4
- package/lib/modules/chat/index.js +32 -11
- package/lib/modules/chat/message-list.js +81 -49
- package/lib/modules/chat/store.d.ts +50 -4
- package/lib/modules/chat/store.js +303 -124
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +3 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +6 -4
- package/lib/modules/connection-gateway/store.js +46 -15
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +0 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/index.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +19 -6
- package/lib/modules/device-pretest/settings/video-effect.d.ts +0 -1
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +34 -19
- package/lib/modules/dialog/components/chat/electron.js +3 -2
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +7 -5
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +4 -2
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +74 -0
- package/lib/modules/dialog/components/device-setting/index.css +26 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.css +44 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/operation-waiting-room/index.js +156 -0
- package/lib/modules/dialog/components/participant/electron.js +8 -2
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +89 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.css +50 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +5 -0
- package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +90 -0
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +62 -103
- package/lib/modules/dialog/index.css +7 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +6 -2
- package/lib/modules/dialog/store.js +52 -9
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-notification/context.d.ts +2 -0
- package/lib/modules/event-notification/context.js +9 -0
- package/lib/modules/event-notification/index.css +58 -0
- package/lib/modules/event-notification/index.d.ts +13 -0
- package/lib/modules/event-notification/index.js +48 -0
- package/lib/modules/event-notification/store.d.ts +17 -0
- package/lib/modules/event-notification/store.js +133 -0
- package/lib/modules/event-notification/view.d.ts +5 -0
- package/lib/modules/event-notification/view.js +114 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.css +4 -4
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +4 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.d.ts +0 -1
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.d.ts +0 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +16 -9
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +42 -5
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -7
- package/lib/modules/layout/member-window/index.js +59 -13
- package/lib/modules/layout/store.d.ts +61 -50
- package/lib/modules/layout/store.js +517 -342
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +5 -4
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +142 -30
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +14 -12
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +59 -34
- package/lib/modules/participant/store.js +541 -222
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +138 -34
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +14 -12
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +7 -5
- package/lib/modules/setting/store.js +69 -46
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/setting/translate-settings/language-select.js +50 -0
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +15 -6
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +4 -2
- package/lib/modules/share-screen/index.dev.js +17 -14
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +23 -13
- package/lib/modules/share-screen/store.js +733 -606
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.css +2 -2
- package/lib/modules/state-bar/index.d.ts +2 -2
- package/lib/modules/state-bar/index.dev.js +12 -10
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +29 -3
- package/lib/modules/state-bar/meeting-network-state.css +14 -3
- package/lib/modules/state-bar/meeting-network-state.js +10 -4
- package/lib/modules/state-bar/recording.js +9 -11
- package/lib/modules/state-bar/store.d.ts +7 -5
- package/lib/modules/state-bar/store.js +68 -8
- package/lib/modules/state-bar/view.js +4 -8
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +5 -4
- package/lib/modules/video-window/store.js +49 -17
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/waiting-room-layout/context.d.ts +2 -0
- package/lib/modules/waiting-room-layout/context.js +9 -0
- package/lib/modules/waiting-room-layout/index.css +71 -0
- package/lib/modules/waiting-room-layout/index.d.ts +8 -0
- package/lib/modules/waiting-room-layout/index.js +47 -0
- package/lib/modules/waiting-room-layout/store.d.ts +30 -0
- package/lib/modules/waiting-room-layout/store.js +189 -0
- package/lib/modules/waiting-room-layout/type.d.ts +0 -0
- package/lib/modules/waiting-room-layout/type.js +1 -0
- package/lib/modules/waiting-room-layout/view.d.ts +3 -0
- package/lib/modules/waiting-room-layout/view.js +67 -0
- package/lib/modules/whiteboard/app.js +2 -8
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +8 -3
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +3 -2
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.css +4 -0
- package/lib/modules/whiteboard/components/switch-theme/index.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/index.js +29 -17
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +11 -2
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +18 -12
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +8 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +25 -4
- package/lib/modules/whiteboard/context.d.ts +7 -3
- package/lib/modules/whiteboard/context.js +6 -4
- package/lib/modules/whiteboard/index.d.ts +6 -8
- package/lib/modules/whiteboard/index.js +310 -255
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -1
- package/lib/plugins/module-dev-plugin.js +12 -10
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +3 -5
- package/lib/translations/enUS.d.ts +590 -0
- package/lib/translations/enUS.js +608 -6
- package/lib/translations/zhCN.d.ts +588 -0
- package/lib/translations/zhCN.js +604 -4
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +597 -143
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +32 -22
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +47 -5
- package/lib/utilities/constant.js +44 -1
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +15 -6
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +17 -16
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +29 -11
- package/lib/modules/device-pretest/settings/index.css +0 -15
- package/lib/modules/participant/attendee/participants-more-action.d.ts +0 -18
- package/lib/modules/participant/attendee/participants-more-action.js +0 -275
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.define-property.js");
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
10
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _mobxReact = require("mobx-react");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _context2 = require("../../context");
|
|
14
|
+
var _reactDom = require("react-dom");
|
|
15
|
+
var _renderer = require("../../../../utilities/renderer");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
var DialogContent = (0, _mobxReact.observer)(function (_ref) {
|
|
18
|
+
var children = _ref.children,
|
|
19
|
+
params = _ref.params;
|
|
20
|
+
var store = (0, _react.useContext)(_context2.StoreContext);
|
|
21
|
+
(0, _react.useEffect)(function () {
|
|
22
|
+
var node;
|
|
23
|
+
(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
24
|
+
var _ref3, x, y;
|
|
25
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
26
|
+
while (1) switch (_context.prev = _context.next) {
|
|
27
|
+
case 0:
|
|
28
|
+
_context.next = 2;
|
|
29
|
+
return store.setWorkArea();
|
|
30
|
+
case 2:
|
|
31
|
+
_context.t0 = _context.sent;
|
|
32
|
+
if (_context.t0) {
|
|
33
|
+
_context.next = 5;
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
_context.t0 = {
|
|
37
|
+
x: 0,
|
|
38
|
+
y: 0
|
|
39
|
+
};
|
|
40
|
+
case 5:
|
|
41
|
+
_ref3 = _context.t0;
|
|
42
|
+
x = _ref3.x;
|
|
43
|
+
y = _ref3.y;
|
|
44
|
+
window.runtime.openRendererWindow("operation-waiting-room-".concat(params.type), function (dom, browserWindow) {
|
|
45
|
+
node = dom;
|
|
46
|
+
browserWindow.focus(); // 这里打开的confirm dialog 不会走 openRendererWindow 中的 focus 逻辑,所以单独 focus 一下
|
|
47
|
+
|
|
48
|
+
browserWindow.setBounds({
|
|
49
|
+
width: 400,
|
|
50
|
+
height: 300
|
|
51
|
+
});
|
|
52
|
+
(0, _renderer.handleWillClose)(browserWindow, function () {
|
|
53
|
+
(0, _reactDom.unmountComponentAtNode)(node);
|
|
54
|
+
});
|
|
55
|
+
(0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context2.StoreContext.Provider, {
|
|
56
|
+
value: store,
|
|
57
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
children: children
|
|
59
|
+
})
|
|
60
|
+
}), dom);
|
|
61
|
+
}, {
|
|
62
|
+
frame: false,
|
|
63
|
+
fullscreen: false,
|
|
64
|
+
maximizable: false,
|
|
65
|
+
// TODO:
|
|
66
|
+
width: (params === null || params === void 0 ? void 0 : params.width) || 320,
|
|
67
|
+
height: (params === null || params === void 0 ? void 0 : params.height) || 168 + (params.closable || params.closable === undefined ? 16 : 0),
|
|
68
|
+
minWidth: 255,
|
|
69
|
+
minHeight: 160,
|
|
70
|
+
maxWidth: 620,
|
|
71
|
+
maxHeight: 700,
|
|
72
|
+
x: x + ((params === null || params === void 0 ? void 0 : params.x) || 0),
|
|
73
|
+
y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0),
|
|
74
|
+
transparent: true
|
|
75
|
+
});
|
|
76
|
+
case 9:
|
|
77
|
+
case "end":
|
|
78
|
+
return _context.stop();
|
|
79
|
+
}
|
|
80
|
+
}, _callee);
|
|
81
|
+
}))();
|
|
82
|
+
return function () {
|
|
83
|
+
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
84
|
+
window.runtime.closeRendererWindow("operation-waiting-room-".concat(params.type));
|
|
85
|
+
};
|
|
86
|
+
}, []);
|
|
87
|
+
return null;
|
|
88
|
+
});
|
|
89
|
+
var _default = exports["default"] = DialogContent;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.operate-waiting-room-dialog-content {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
background: white;
|
|
7
|
+
padding: 20px;
|
|
8
|
+
border-radius: 20px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.operate-waiting-room-dialog-title {
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
margin-bottom: 10px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.operate-waiting-room-dialog-tooltip {
|
|
18
|
+
margin-bottom: 10px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.operate-waiting-room-dialog-confirm {
|
|
22
|
+
display: flex;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.operate-waiting-room-dialog-btns {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
width: 100%;
|
|
29
|
+
margin-top: 10px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.operate-waiting-room-dialog-btns .fcr-button-normal {
|
|
33
|
+
width: 48%;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.operate-waiting-room-dialog-btns .fcr-button-white {
|
|
37
|
+
background-color: var(--fcr_ui_scene_btn2);
|
|
38
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
39
|
+
width: 48%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.operate-waiting-room-dialog-btns .fcr-button-white:hover {
|
|
43
|
+
background-color: var(--fcr_ui_scene_btn2) !important;
|
|
44
|
+
color: var(--fcr_ui_scene_icontext2) !important;
|
|
45
|
+
width: 48%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.operate-waiting-room-dialog-btns .fcr-button-danger {
|
|
49
|
+
width: 48%;
|
|
50
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.js");
|
|
4
|
+
require("core-js/modules/es.array.filter.js");
|
|
5
|
+
require("core-js/modules/es.array.for-each.js");
|
|
6
|
+
require("core-js/modules/es.array.iterator.js");
|
|
7
|
+
require("core-js/modules/es.array.push.js");
|
|
8
|
+
require("core-js/modules/es.object.define-properties.js");
|
|
9
|
+
require("core-js/modules/es.object.define-property.js");
|
|
10
|
+
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
11
|
+
require("core-js/modules/es.object.get-own-property-descriptors.js");
|
|
12
|
+
require("core-js/modules/es.object.keys.js");
|
|
13
|
+
require("core-js/modules/es.object.to-string.js");
|
|
14
|
+
require("core-js/modules/es.string.iterator.js");
|
|
15
|
+
require("core-js/modules/es.weak-map.js");
|
|
16
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
19
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
20
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
21
|
+
require("core-js/modules/esnext.weak-map.delete-all.js");
|
|
22
|
+
require("core-js/modules/esnext.weak-map.emplace.js");
|
|
23
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
24
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
25
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
26
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
27
|
+
Object.defineProperty(exports, "__esModule", {
|
|
28
|
+
value: true
|
|
29
|
+
});
|
|
30
|
+
exports.RemoveAdmitWaitingRoomDialog = void 0;
|
|
31
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
32
|
+
var _mobxReact = require("mobx-react");
|
|
33
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
34
|
+
var _context = require("../../context");
|
|
35
|
+
var _reactRnd = require("react-rnd");
|
|
36
|
+
var _electron = _interopRequireDefault(require("./electron"));
|
|
37
|
+
var _platform = require("../../../../utilities/platform");
|
|
38
|
+
require("./index.css");
|
|
39
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
40
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
41
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
42
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
43
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
44
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // import { ConfirmContentProps } from 'agora-ui-foundation/lib/components/confirm-content';
|
|
45
|
+
var RemoveAdmitWaitingRoomDialog = exports.RemoveAdmitWaitingRoomDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
46
|
+
var children = _ref.children,
|
|
47
|
+
params = _ref.params;
|
|
48
|
+
var store = (0, _react.useContext)(_context.StoreContext);
|
|
49
|
+
var containerWidth = window.innerWidth;
|
|
50
|
+
var containerHeight = window.innerHeight;
|
|
51
|
+
var _ref2 = (0, _env.isElectron)() ? window.runtime.browserWindow.getBounds() : {
|
|
52
|
+
x: document.body.offsetLeft,
|
|
53
|
+
y: document.body.offsetTop
|
|
54
|
+
},
|
|
55
|
+
offsetX = _ref2.x,
|
|
56
|
+
offsetY = _ref2.y;
|
|
57
|
+
var width = (params === null || params === void 0 ? void 0 : params.width) || 415;
|
|
58
|
+
var height = (params === null || params === void 0 ? void 0 : params.height) || 180;
|
|
59
|
+
var x = containerWidth / 2 - width / 2 + ((0, _platform.isWindows)() ? offsetX : 0);
|
|
60
|
+
var y = containerHeight / 2 - height / 2 + ((0, _platform.isWindows)() ? offsetY : 0);
|
|
61
|
+
if ((0, _env.isElectron)()) {
|
|
62
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron["default"], {
|
|
63
|
+
params: _objectSpread(_objectSpread({}, params), {}, {
|
|
64
|
+
x: x,
|
|
65
|
+
y: y
|
|
66
|
+
}),
|
|
67
|
+
children: children
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
71
|
+
value: store,
|
|
72
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRnd.Rnd, {
|
|
73
|
+
"default": {
|
|
74
|
+
x: x,
|
|
75
|
+
y: y,
|
|
76
|
+
width: width,
|
|
77
|
+
height: height
|
|
78
|
+
},
|
|
79
|
+
maxHeight: 700,
|
|
80
|
+
maxWidth: width,
|
|
81
|
+
minWidth: width,
|
|
82
|
+
minHeight: height,
|
|
83
|
+
bounds: '.fcr-confirm-dialog-wrapper_web',
|
|
84
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
85
|
+
className: "fcr-confirm-dialog-wrapper_web",
|
|
86
|
+
children: children
|
|
87
|
+
})
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
});
|
|
@@ -28,7 +28,7 @@ var ShareScreenSelectronDialog = exports.ShareScreenSelectronDialog = (0, _mobxR
|
|
|
28
28
|
_dialogs.dialogWindows["delete"](_constant.DialogKey.SHARE_SCREEN);
|
|
29
29
|
store.closeShareScreenDialog();
|
|
30
30
|
});
|
|
31
|
-
(0, _reactDom.render)(
|
|
31
|
+
(0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
32
32
|
value: store,
|
|
33
33
|
children: children
|
|
34
34
|
}), dom);
|
|
@@ -62,7 +62,8 @@ var WhiteboardElectronDialog = exports.WhiteboardElectronDialog = (0, _mobxReact
|
|
|
62
62
|
minWidth: 530,
|
|
63
63
|
minHeight: 500,
|
|
64
64
|
maxWidth: 1920,
|
|
65
|
-
maxHeight: 1080
|
|
65
|
+
maxHeight: 1080,
|
|
66
|
+
transparent: true
|
|
66
67
|
});
|
|
67
68
|
return function () {
|
|
68
69
|
_dialogs.dialogWindows["delete"](_constant.DialogKey.WHITEBOARD);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { DialogKey } from '../../utilities/constant';
|
|
3
3
|
export declare let dialogWindows: Map<DialogKey, Electron.BrowserWindow>;
|
|
4
|
-
export declare const DeviceSettingDialog: ({ children }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export declare const setDialogBounds: (browserWindow: Electron.BrowserWindow, currentDialogBounds: Partial<Electron.Rectangle>) => void;
|
|
6
5
|
export declare const LiveStreamingDialog: FC<PropsWithChildren<{
|
|
7
6
|
title: string;
|
|
8
7
|
}>>;
|
|
9
8
|
export declare const InviteDialog: FC<PropsWithChildren<{}>>;
|
|
10
9
|
export declare const VideoWindowDialog: ({ children }: PropsWithChildren<{}>) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
-
export default DeviceSettingDialog;
|
|
@@ -5,11 +5,25 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.setDialogBounds = exports.dialogWindows = exports
|
|
8
|
+
exports.setDialogBounds = exports.dialogWindows = exports.VideoWindowDialog = exports.LiveStreamingDialog = exports.InviteDialog = void 0;
|
|
9
9
|
require("core-js/modules/es.array.iterator.js");
|
|
10
10
|
require("core-js/modules/es.map.js");
|
|
11
11
|
require("core-js/modules/es.object.to-string.js");
|
|
12
12
|
require("core-js/modules/es.string.iterator.js");
|
|
13
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
14
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
15
|
+
require("core-js/modules/esnext.map.every.js");
|
|
16
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
17
|
+
require("core-js/modules/esnext.map.find.js");
|
|
18
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
19
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
20
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
21
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
22
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
23
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
24
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
25
|
+
require("core-js/modules/esnext.map.some.js");
|
|
26
|
+
require("core-js/modules/esnext.map.update.js");
|
|
13
27
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
14
28
|
var _windowHeader = require("agora-ui-foundation/lib/components/window-header");
|
|
15
29
|
var _react = require("react");
|
|
@@ -22,23 +36,11 @@ var _reactDom = require("react-dom");
|
|
|
22
36
|
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
23
37
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
38
|
var _constant = require("../../utilities/constant");
|
|
25
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
26
39
|
var _renderer = require("../../utilities/renderer");
|
|
27
40
|
var _videoTrackRenderContext = require("../../utilities/video-track-render-context");
|
|
28
41
|
var _type = require("./../video-window/type");
|
|
29
42
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
43
|
var dialogWindows = exports.dialogWindows = new Map();
|
|
31
|
-
var DeviceSettingDialog = exports.DeviceSettingDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
32
|
-
var children = _ref.children;
|
|
33
|
-
if ((0, _env.isElectron)()) {
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(DeviceSettingElectronDialog, {
|
|
35
|
-
children: children
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
39
|
-
children: children
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
44
|
var setDialogBounds = exports.setDialogBounds = function setDialogBounds(browserWindow, currentDialogBounds) {
|
|
43
45
|
browserWindow.setBounds(currentDialogBounds, true);
|
|
44
46
|
browserWindow.center();
|
|
@@ -48,64 +50,9 @@ var setDialogBounds = exports.setDialogBounds = function setDialogBounds(browser
|
|
|
48
50
|
});
|
|
49
51
|
browserWindow.setSkipTaskbar(false);
|
|
50
52
|
};
|
|
51
|
-
var
|
|
52
|
-
var children =
|
|
53
|
-
|
|
54
|
-
var t = (0, _i18n.useI18n)();
|
|
55
|
-
(0, _react.useEffect)(function () {
|
|
56
|
-
var node;
|
|
57
|
-
window.runtime.openRendererWindow('device-setting', function (dom, browserWindow) {
|
|
58
|
-
dialogWindows.set(_constant.DialogKey.DEVICE_SETTINGS, browserWindow);
|
|
59
|
-
node = dom;
|
|
60
|
-
if (store.currentDialogBounds.height) {
|
|
61
|
-
setDialogBounds(browserWindow, {
|
|
62
|
-
y: store.currentDialogBounds.y
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
(0, _renderer.handleWillClose)(browserWindow, function () {
|
|
66
|
-
(0, _reactDom.unmountComponentAtNode)(node);
|
|
67
|
-
dialogWindows["delete"](_constant.DialogKey.DEVICE_SETTINGS);
|
|
68
|
-
store.closeDeviceSettingFromDialog();
|
|
69
|
-
});
|
|
70
|
-
var handleCloseClick = function handleCloseClick() {
|
|
71
|
-
store.closeDeviceSettingFromDialog();
|
|
72
|
-
};
|
|
73
|
-
(0, _reactDom.render)( /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
74
|
-
className: "fcr-device-setting-dialog-wrapper",
|
|
75
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
76
|
-
showClose: true,
|
|
77
|
-
title: t('fmt_modules_labels_devicesettings'),
|
|
78
|
-
onClose: handleCloseClick,
|
|
79
|
-
type: _windowHeader.WindowType.WINDOW,
|
|
80
|
-
withWindowPopUpButton: false
|
|
81
|
-
}), children]
|
|
82
|
-
}), dom);
|
|
83
|
-
}, {
|
|
84
|
-
frame: false,
|
|
85
|
-
fullscreen: false,
|
|
86
|
-
maximizable: false,
|
|
87
|
-
// titleBarStyle: 'hidden',
|
|
88
|
-
trafficLightPosition: {
|
|
89
|
-
x: 10,
|
|
90
|
-
y: 60
|
|
91
|
-
},
|
|
92
|
-
width: 580,
|
|
93
|
-
height: 600,
|
|
94
|
-
minWidth: 580,
|
|
95
|
-
minHeight: 600,
|
|
96
|
-
maxWidth: 670,
|
|
97
|
-
maxHeight: 800
|
|
98
|
-
});
|
|
99
|
-
return function () {
|
|
100
|
-
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
101
|
-
window.runtime.closeRendererWindow('device-setting');
|
|
102
|
-
};
|
|
103
|
-
}, []);
|
|
104
|
-
return null;
|
|
105
|
-
});
|
|
106
|
-
var LiveStreamingDialogContent = (0, _mobxReact.observer)(function (_ref3) {
|
|
107
|
-
var children = _ref3.children,
|
|
108
|
-
title = _ref3.title;
|
|
53
|
+
var LiveStreamingDialogContent = (0, _mobxReact.observer)(function (_ref) {
|
|
54
|
+
var children = _ref.children,
|
|
55
|
+
title = _ref.title;
|
|
109
56
|
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
110
57
|
closeLiveStreamingDialog = _useContext.closeLiveStreamingDialog;
|
|
111
58
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -122,9 +69,9 @@ var LiveStreamingDialogContent = (0, _mobxReact.observer)(function (_ref3) {
|
|
|
122
69
|
})]
|
|
123
70
|
});
|
|
124
71
|
});
|
|
125
|
-
var LiveStreamingDialog = exports.LiveStreamingDialog = function LiveStreamingDialog(
|
|
126
|
-
var children =
|
|
127
|
-
title =
|
|
72
|
+
var LiveStreamingDialog = exports.LiveStreamingDialog = function LiveStreamingDialog(_ref2) {
|
|
73
|
+
var children = _ref2.children,
|
|
74
|
+
title = _ref2.title;
|
|
128
75
|
var defaultSize = {
|
|
129
76
|
x: (document.body.clientWidth - 440) / 2,
|
|
130
77
|
y: (document.body.clientHeight - 434) / 2,
|
|
@@ -144,15 +91,16 @@ var LiveStreamingDialog = exports.LiveStreamingDialog = function LiveStreamingDi
|
|
|
144
91
|
minWidth: 440,
|
|
145
92
|
minHeight: 434,
|
|
146
93
|
bounds: '.fcr-layout-content',
|
|
94
|
+
dragHandleClassName: "frc-window-header",
|
|
147
95
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(LiveStreamingDialogContent, {
|
|
148
96
|
title: title,
|
|
149
97
|
children: children
|
|
150
98
|
})
|
|
151
99
|
});
|
|
152
100
|
};
|
|
153
|
-
var LiveStreamingElectronDialog = (0, _mobxReact.observer)(function (
|
|
154
|
-
var children =
|
|
155
|
-
title =
|
|
101
|
+
var LiveStreamingElectronDialog = (0, _mobxReact.observer)(function (_ref3) {
|
|
102
|
+
var children = _ref3.children,
|
|
103
|
+
title = _ref3.title;
|
|
156
104
|
var store = (0, _react.useContext)(_context.StoreContext);
|
|
157
105
|
(0, _react.useEffect)(function () {
|
|
158
106
|
var node;
|
|
@@ -169,7 +117,7 @@ var LiveStreamingElectronDialog = (0, _mobxReact.observer)(function (_ref5) {
|
|
|
169
117
|
dialogWindows["delete"](_constant.DialogKey.LIVE_STREAMING);
|
|
170
118
|
store.closeLiveStreamingDialog();
|
|
171
119
|
});
|
|
172
|
-
(0, _reactDom.render)(
|
|
120
|
+
(0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_context.StoreContext.Provider, {
|
|
173
121
|
value: store,
|
|
174
122
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(LiveStreamingDialogContent, {
|
|
175
123
|
title: title,
|
|
@@ -182,7 +130,8 @@ var LiveStreamingElectronDialog = (0, _mobxReact.observer)(function (_ref5) {
|
|
|
182
130
|
maximizable: false,
|
|
183
131
|
width: 440,
|
|
184
132
|
height: 434,
|
|
185
|
-
y: store.currentDialogBounds.y
|
|
133
|
+
y: store.currentDialogBounds.y,
|
|
134
|
+
transparent: true
|
|
186
135
|
});
|
|
187
136
|
return function () {
|
|
188
137
|
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
@@ -191,8 +140,8 @@ var LiveStreamingElectronDialog = (0, _mobxReact.observer)(function (_ref5) {
|
|
|
191
140
|
}, []);
|
|
192
141
|
return null;
|
|
193
142
|
});
|
|
194
|
-
var InviteDialog = exports.InviteDialog = function InviteDialog(
|
|
195
|
-
var children =
|
|
143
|
+
var InviteDialog = exports.InviteDialog = function InviteDialog(_ref4) {
|
|
144
|
+
var children = _ref4.children;
|
|
196
145
|
var _useContext2 = (0, _react.useContext)(_context.StoreContext),
|
|
197
146
|
closeInviteDialog = _useContext2.closeInviteDialog;
|
|
198
147
|
if ((0, _env.isElectron)()) {
|
|
@@ -209,8 +158,8 @@ var InviteDialog = exports.InviteDialog = function InviteDialog(_ref6) {
|
|
|
209
158
|
children: children
|
|
210
159
|
});
|
|
211
160
|
};
|
|
212
|
-
var InviteElectronDialog = function InviteElectronDialog(
|
|
213
|
-
var children =
|
|
161
|
+
var InviteElectronDialog = function InviteElectronDialog(_ref5) {
|
|
162
|
+
var children = _ref5.children;
|
|
214
163
|
var _useContext3 = (0, _react.useContext)(_context.StoreContext),
|
|
215
164
|
closeInviteDialog = _useContext3.closeInviteDialog;
|
|
216
165
|
(0, _react.useEffect)(function () {
|
|
@@ -223,14 +172,15 @@ var InviteElectronDialog = function InviteElectronDialog(_ref7) {
|
|
|
223
172
|
dialogWindows["delete"](_constant.DialogKey.INVITE);
|
|
224
173
|
closeInviteDialog();
|
|
225
174
|
});
|
|
226
|
-
(0, _reactDom.render)(
|
|
175
|
+
(0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
227
176
|
className: (0, _classnames["default"])('invite-dialog'),
|
|
228
177
|
children: [(0, _env.getPlatform)() === _env.FcrApplicationPlatform.WINDOWS && /*#__PURE__*/(0, _jsxRuntime.jsx)(_windowHeader.FcrWindowHeader, {
|
|
229
178
|
type: _windowHeader.WindowType.WINDOW,
|
|
230
179
|
enableMaximize: false,
|
|
231
180
|
enableMinimize: false,
|
|
232
181
|
withWindowPopUpButton: false,
|
|
233
|
-
onClose: closeInviteDialog
|
|
182
|
+
onClose: closeInviteDialog,
|
|
183
|
+
showClose: true
|
|
234
184
|
}), children]
|
|
235
185
|
}), dom);
|
|
236
186
|
}, {
|
|
@@ -239,6 +189,7 @@ var InviteElectronDialog = function InviteElectronDialog(_ref7) {
|
|
|
239
189
|
x: 10,
|
|
240
190
|
y: 40
|
|
241
191
|
},
|
|
192
|
+
transparent: true,
|
|
242
193
|
maximizable: false,
|
|
243
194
|
minimizable: false,
|
|
244
195
|
fullscreenable: false,
|
|
@@ -255,8 +206,8 @@ var InviteElectronDialog = function InviteElectronDialog(_ref7) {
|
|
|
255
206
|
}, []);
|
|
256
207
|
return null;
|
|
257
208
|
};
|
|
258
|
-
var VideoWindowElectronDialog = (0, _mobxReact.observer)(function (
|
|
259
|
-
var children =
|
|
209
|
+
var VideoWindowElectronDialog = (0, _mobxReact.observer)(function (_ref6) {
|
|
210
|
+
var children = _ref6.children;
|
|
260
211
|
var store = (0, _react.useContext)(_context.StoreContext);
|
|
261
212
|
var _store$videoWindowBou = store.videoWindowBounds,
|
|
262
213
|
videoWindowHeight = _store$videoWindowBou.videoWindowHeight,
|
|
@@ -286,24 +237,33 @@ var VideoWindowElectronDialog = (0, _mobxReact.observer)(function (_ref8) {
|
|
|
286
237
|
(0, _renderer.handleWillClose)(browserWindow, function () {
|
|
287
238
|
(0, _reactDom.unmountComponentAtNode)(node);
|
|
288
239
|
dialogWindows["delete"](_constant.DialogKey.VIDEO_WINDOW);
|
|
289
|
-
browserWindow.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
240
|
+
if (!browserWindow.isDestroyed()) {
|
|
241
|
+
browserWindow.removeAllListeners('will-resize');
|
|
242
|
+
browserWindow.removeAllListeners('show');
|
|
243
|
+
browserWindow.setResizable(false);
|
|
244
|
+
browserWindow.setAspectRatio(0);
|
|
245
|
+
browserWindow.setMinimumSize(0, 0);
|
|
246
|
+
browserWindow.setMaximumSize(0, 0);
|
|
247
|
+
browserWindow.setBounds({
|
|
248
|
+
x: workareaX + workareaWidth - _type.DefaultVideoWindowWidth - 168,
|
|
249
|
+
y: workareaY + 80,
|
|
250
|
+
width: _type.DefaultVideoWindowWidth,
|
|
251
|
+
height: _type.DefaultVideoWindowHeight
|
|
252
|
+
});
|
|
253
|
+
}
|
|
300
254
|
});
|
|
301
255
|
if (browserWindow) {
|
|
302
256
|
browserWindow.addListener('will-resize', (0, _debounce["default"])(function (event, newBounds) {
|
|
303
257
|
handleBounds(newBounds);
|
|
304
258
|
}, 100));
|
|
259
|
+
browserWindow.addListener('show', function () {
|
|
260
|
+
browserWindow.setBounds({
|
|
261
|
+
x: workareaX + workareaWidth - _type.DefaultVideoWindowWidth - 168,
|
|
262
|
+
y: workareaY + 80
|
|
263
|
+
});
|
|
264
|
+
});
|
|
305
265
|
}
|
|
306
|
-
(0, _reactDom.render)(
|
|
266
|
+
(0, _reactDom.render)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_videoTrackRenderContext.FcrVideoTrackRenderContext.Provider, {
|
|
307
267
|
value: {
|
|
308
268
|
deviceStore: store.deviceStore,
|
|
309
269
|
streamControl: store.streamControl
|
|
@@ -364,13 +324,12 @@ var VideoWindowElectronDialog = (0, _mobxReact.observer)(function (_ref8) {
|
|
|
364
324
|
}, [videoWindowHeight, videoWindowPreviewType]);
|
|
365
325
|
return null;
|
|
366
326
|
});
|
|
367
|
-
var VideoWindowDialog = exports.VideoWindowDialog = (0, _mobxReact.observer)(function (
|
|
368
|
-
var children =
|
|
327
|
+
var VideoWindowDialog = exports.VideoWindowDialog = (0, _mobxReact.observer)(function (_ref7) {
|
|
328
|
+
var children = _ref7.children;
|
|
369
329
|
if ((0, _env.isElectron)()) {
|
|
370
330
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(VideoWindowElectronDialog, {
|
|
371
331
|
children: children
|
|
372
332
|
});
|
|
373
333
|
}
|
|
374
334
|
return null;
|
|
375
|
-
});
|
|
376
|
-
var _default = exports["default"] = DeviceSettingDialog;
|
|
335
|
+
});
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
box-shadow: var(--fcr_web_light_dropup);
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.fcr-livestreaming-dialog-wrapper .frc-window-header {
|
|
21
|
+
cursor: move;
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
.fcr-livestreaming-dialog-content {
|
|
20
25
|
flex: 1;
|
|
21
26
|
overflow: hidden;
|
|
@@ -36,6 +41,8 @@
|
|
|
36
41
|
.invite-dialog {
|
|
37
42
|
padding: 10px;
|
|
38
43
|
padding-bottom: 0px;
|
|
44
|
+
background-color: #fff;
|
|
45
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
.fcr-confirm-dialog-wrapper {
|
|
@@ -47,9 +54,3 @@
|
|
|
47
54
|
box-shadow: var(--fcr_web_light_dropup);
|
|
48
55
|
border: 1px solid var(--fcr_ui_scene_line1);
|
|
49
56
|
}
|
|
50
|
-
|
|
51
|
-
.fcr-device-setting-dialog-wrapper {
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: column;
|
|
54
|
-
height: 100%;
|
|
55
|
-
}
|
|
@@ -4,9 +4,9 @@ import { FcrUIEventStore } from '../../common/event-store';
|
|
|
4
4
|
import { FcrSecurityStore } from '../../common/security-store';
|
|
5
5
|
import { FcrUserInfo } from 'agora-edu-core/lib/type';
|
|
6
6
|
import { FcrStreamControl, FcrUserControl } from 'agora-edu-core';
|
|
7
|
-
import { FcrChatRoomControl } from 'agora-edu-core/lib/room-control/chatroom-control';
|
|
8
7
|
import { ConfirmContentProps } from 'agora-ui-foundation/lib/components/confirm-content';
|
|
9
8
|
import { FcrDeviceStore } from '../../common/device-store';
|
|
9
|
+
import { FcrChatRoomControl } from 'agora-edu-core/lib/room-control/chatroom-control/type';
|
|
10
10
|
export declare class DialogUIModule extends UIModule {
|
|
11
11
|
private _dialogs;
|
|
12
12
|
private _store;
|
|
@@ -12,6 +12,23 @@ require("core-js/modules/es.array.iterator.js");
|
|
|
12
12
|
require("core-js/modules/es.map.js");
|
|
13
13
|
require("core-js/modules/es.object.to-string.js");
|
|
14
14
|
require("core-js/modules/es.string.iterator.js");
|
|
15
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/esnext.map.delete-all.js");
|
|
19
|
+
require("core-js/modules/esnext.map.emplace.js");
|
|
20
|
+
require("core-js/modules/esnext.map.every.js");
|
|
21
|
+
require("core-js/modules/esnext.map.filter.js");
|
|
22
|
+
require("core-js/modules/esnext.map.find.js");
|
|
23
|
+
require("core-js/modules/esnext.map.find-key.js");
|
|
24
|
+
require("core-js/modules/esnext.map.includes.js");
|
|
25
|
+
require("core-js/modules/esnext.map.key-of.js");
|
|
26
|
+
require("core-js/modules/esnext.map.map-keys.js");
|
|
27
|
+
require("core-js/modules/esnext.map.map-values.js");
|
|
28
|
+
require("core-js/modules/esnext.map.merge.js");
|
|
29
|
+
require("core-js/modules/esnext.map.reduce.js");
|
|
30
|
+
require("core-js/modules/esnext.map.some.js");
|
|
31
|
+
require("core-js/modules/esnext.map.update.js");
|
|
15
32
|
require("core-js/modules/web.dom-collections.for-each.js");
|
|
16
33
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
17
34
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FcrStreamControl, FcrUserControl } from 'agora-edu-core';
|
|
2
|
-
import {
|
|
2
|
+
import { FcrUserInfo } from 'agora-edu-core/lib/type';
|
|
3
3
|
import { FcrUIEventStore } from '../../common/event-store';
|
|
4
4
|
import { FcrSecurityStore } from '../../common/security-store';
|
|
5
|
+
import { DialogKey } from '../../utilities/constant';
|
|
5
6
|
import { Rectangle } from 'electron';
|
|
6
|
-
import { FcrChatRoomControl } from 'agora-edu-core/lib/room-control/chatroom-control';
|
|
7
7
|
import { FcrDeviceStore } from '../../common/device-store';
|
|
8
8
|
import { AgoraRtcScreenCaptureType } from 'agora-rte-sdk/lib/core/rtc/type';
|
|
9
|
+
import { FcrChatRoomConnectionState, FcrChatRoomControl } from 'agora-edu-core/lib/room-control/chatroom-control/type';
|
|
9
10
|
export default class DialogStore {
|
|
10
11
|
protected logger: import("agora-foundation/lib/logger").Logger;
|
|
11
12
|
private _currentShareId;
|
|
@@ -72,6 +73,9 @@ export default class DialogStore {
|
|
|
72
73
|
closeShareScreenDialog(): void;
|
|
73
74
|
closeInviteDialog(): void;
|
|
74
75
|
moveParticipantFromDialogToAside(): void;
|
|
76
|
+
moveToMainRoomAllMember(isOperate: boolean): void;
|
|
77
|
+
closeWaitingRoomDialog(): void;
|
|
78
|
+
closeRemoveAdmitWaitingRoomDialog(dialogKey: DialogKey): void;
|
|
75
79
|
release(): void;
|
|
76
80
|
resizeVideoWindow(width: number, height: number): void;
|
|
77
81
|
setConnecorContainerBounds(payload: Partial<Rectangle>): void;
|