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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fcr-ui-scene",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"repository": "ssh://git@git.agoralab.co/aduc/fcr-ui-scene-desktop.git",
|
|
6
6
|
"author": "agora.io",
|
|
@@ -8,18 +8,22 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"prepare": "husky",
|
|
10
10
|
"dev": "agora-tc-dev-server",
|
|
11
|
-
"dev-electron": "agora-tc-dev-server --electron",
|
|
11
|
+
"dev-electron": "agora-tc-dev-server --electron --main lib/electron/bootstrap-dev",
|
|
12
12
|
"test-browser": "agora-tc-test-karma-browser",
|
|
13
13
|
"test-electron": "agora-tc-test-karma-electron",
|
|
14
14
|
"build": "agora-tc-transpile",
|
|
15
|
-
"bundle": "agora-tc-bundle --entry src/index",
|
|
16
|
-
"build-electron-mac": "agora-tc-pack-sdk --platform darwin --arch x64",
|
|
15
|
+
"bundle": "agora-tc-bundle --entry src/index && agora-tc-transpile --src ./src/electron --out dist/electron --transpile-only",
|
|
16
|
+
"build-electron-mac": "CSC_IDENTITY_AUTO_DISCOVERY=false agora-tc-pack-sdk --platform darwin --arch x64",
|
|
17
17
|
"build-electron-win": "agora-tc-pack-sdk --platform win32 --arch x64"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"@electron/remote": "2.0.1",
|
|
20
21
|
"@react-spring/web": "^9.7.3",
|
|
21
22
|
"@use-gesture/react": "^10.3.1",
|
|
23
|
+
"agora-electron-sdk": "4.3.2-build.90-rc.1",
|
|
22
24
|
"classnames": "^2.5.1",
|
|
25
|
+
"core-js": "^3.33.3",
|
|
26
|
+
"dayjs": "^1.10.4",
|
|
23
27
|
"js-md5": "^0.8.3",
|
|
24
28
|
"lodash": "^4.17.21",
|
|
25
29
|
"mobx": "^6.12.3",
|
|
@@ -30,18 +34,17 @@
|
|
|
30
34
|
"react-rnd": "^10.4.1",
|
|
31
35
|
"react-use-measure": "^2.1.1",
|
|
32
36
|
"react-virtualized": "^9.22.5",
|
|
33
|
-
"dayjs": "^1.10.4",
|
|
34
|
-
"@electron/remote": "2.0.1",
|
|
35
|
-
"core-js": "^3.33.3",
|
|
36
|
-
"agora-electron-sdk": "4.3.2-build.90-rc.1",
|
|
37
37
|
"tinycolor2": "^1.6.0",
|
|
38
38
|
"electron-screenshots": "^0.5.26",
|
|
39
39
|
"pidusage": "^3.0.2",
|
|
40
40
|
"systeminformation": "^5.22.11",
|
|
41
|
-
"jszip": "^3.10.1"
|
|
41
|
+
"jszip": "^3.10.1",
|
|
42
|
+
"winston": "^3.16.0",
|
|
43
|
+
"agora-foundation": "^3.3.0",
|
|
44
|
+
"agora-ui-foundation": "^3.3.0",
|
|
45
|
+
"agora-edu-core": "^3.3.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"electron": "24.8.8",
|
|
45
48
|
"@babel/core": "^7.23.5",
|
|
46
49
|
"@babel/plugin-proposal-decorators": "^7.23.5",
|
|
47
50
|
"@babel/plugin-transform-runtime": "^7.13.15",
|
|
@@ -55,17 +58,15 @@
|
|
|
55
58
|
"@types/react-virtualized": "^9.21.30",
|
|
56
59
|
"@types/tinycolor2": "^1.4.6",
|
|
57
60
|
"core-js": "^3.33.3",
|
|
61
|
+
"electron": "24.8.8",
|
|
58
62
|
"husky": "^9.0.11",
|
|
59
63
|
"lint-staged": "^15.2.2",
|
|
60
64
|
"prettier": "^3.2.5",
|
|
61
65
|
"react-hot-loader": "^4.13.1",
|
|
62
|
-
"tslib": "^2.6.2"
|
|
66
|
+
"tslib": "^2.6.2",
|
|
67
|
+
"agora-toolchain": "^3.3.0"
|
|
63
68
|
},
|
|
64
69
|
"lint-staged": {
|
|
65
70
|
"*.{ts,tsx,html,css}": "prettier --write"
|
|
66
|
-
},
|
|
67
|
-
"agora_electron": {
|
|
68
|
-
"electron_version": "24.8.8",
|
|
69
|
-
"prebuilt": true
|
|
70
71
|
}
|
|
71
|
-
}
|
|
72
|
+
}
|
|
Binary file
|
|
Binary file
|
package/public/index.html
CHANGED
|
@@ -3,24 +3,42 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<title
|
|
6
|
+
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
7
7
|
</head>
|
|
8
|
+
|
|
8
9
|
<body>
|
|
9
10
|
<div id="root"></div>
|
|
10
11
|
</body>
|
|
11
12
|
<script>
|
|
12
13
|
(async () => {
|
|
13
14
|
const launchOptions = await window.runtime.getLaunchOptions();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
let launchOptionsObj = launchOptions;
|
|
16
|
+
try {
|
|
17
|
+
launchOptionsObj = JSON.parse(launchOptions);
|
|
18
|
+
} catch (e) {
|
|
19
|
+
console.error('Failed to parse launch options', e);
|
|
20
|
+
}
|
|
21
|
+
const { appId, userId, parameters, ...others } = launchOptionsObj;
|
|
22
|
+
const uiScene = new FcrUIScene.FcrUISceneCreator({
|
|
23
|
+
appId,
|
|
24
|
+
userId,
|
|
25
|
+
parameters,
|
|
26
|
+
}).launch(
|
|
27
|
+
others,
|
|
28
|
+
() => {
|
|
29
|
+
window.runtime.quitApp();
|
|
30
|
+
},
|
|
31
|
+
() => {},
|
|
32
|
+
() => {
|
|
33
|
+
window.runtime.quitApp();
|
|
34
|
+
},
|
|
35
|
+
document.getElementById('root'),
|
|
36
|
+
);
|
|
37
|
+
uiScene.addObserver({
|
|
38
|
+
onExited: (reason) => {
|
|
39
|
+
window.runtime.quitApp();
|
|
40
|
+
},
|
|
41
|
+
});
|
|
24
42
|
})();
|
|
25
43
|
</script>
|
|
26
44
|
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.fcr-beauty-setting__card-container__wrapper-highlight {
|
|
2
|
-
background-color: var(--fcr_ui_scene_ramp_brand6);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.fcr-beauty-setting__card-container__wrapper-disable {
|
|
6
|
-
background-color: var(--fcr_ui_scene_ramp_brand1);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.fcr-beauty-setting__card-title-disable {
|
|
10
|
-
color: var(--fcr_ui_scene_icontext3);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.fcr-beauty-setting__card.fcr-beauty-setting__card__content-disable {
|
|
14
|
-
cursor: not-allowed;
|
|
15
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ParticipantType } from '../../../utilities/constant';
|
|
2
|
-
import { FcrUserRole } from '../../../type';
|
|
3
|
-
interface ParticipantsMoreActionsProps {
|
|
4
|
-
isMe?: boolean;
|
|
5
|
-
userId: string;
|
|
6
|
-
hasVideo: boolean;
|
|
7
|
-
hasAudio: boolean;
|
|
8
|
-
onParticipantsButtonClick: (action: ParticipantType, userId: string) => void;
|
|
9
|
-
userName: string;
|
|
10
|
-
userRole: FcrUserRole;
|
|
11
|
-
isPin: boolean;
|
|
12
|
-
hasPinnedStream: boolean;
|
|
13
|
-
allowedOperations: string[];
|
|
14
|
-
audioDeviceType: string;
|
|
15
|
-
userType?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare const ParticipantsMoreActions: (props: ParticipantsMoreActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
require("core-js/modules/es.object.define-property.js");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ParticipantsMoreActions = void 0;
|
|
8
|
-
require("core-js/modules/es.array.filter.js");
|
|
9
|
-
require("core-js/modules/es.array.includes.js");
|
|
10
|
-
require("core-js/modules/es.object.to-string.js");
|
|
11
|
-
require("core-js/modules/es.string.includes.js");
|
|
12
|
-
var _dropMenu = require("agora-ui-foundation/lib/components/drop-menu");
|
|
13
|
-
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
14
|
-
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
15
|
-
var _cameraState = require("agora-ui-foundation/lib/components/room-screen-share-state-bar/camera-state");
|
|
16
|
-
var _constant = require("../../../utilities/constant");
|
|
17
|
-
var _type2 = require("../../../type");
|
|
18
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
19
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
var ParticipantsMoreActions = exports.ParticipantsMoreActions = function ParticipantsMoreActions(props) {
|
|
21
|
-
var t = (0, _i18n.useI18n)();
|
|
22
|
-
var isMe = props.isMe,
|
|
23
|
-
userId = props.userId,
|
|
24
|
-
hasVideo = props.hasVideo,
|
|
25
|
-
hasAudio = props.hasAudio,
|
|
26
|
-
onParticipantsButtonClick = props.onParticipantsButtonClick,
|
|
27
|
-
userName = props.userName,
|
|
28
|
-
userRole = props.userRole,
|
|
29
|
-
isPin = props.isPin,
|
|
30
|
-
hasPinnedStream = props.hasPinnedStream,
|
|
31
|
-
allowedOperations = props.allowedOperations,
|
|
32
|
-
audioDeviceType = props.audioDeviceType,
|
|
33
|
-
userType = props.userType;
|
|
34
|
-
var disableOperationMenu = [{
|
|
35
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
36
|
-
type: _type.FcrIconType.FCR_LOWER_HAND,
|
|
37
|
-
size: 20,
|
|
38
|
-
colors: {
|
|
39
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext1)',
|
|
40
|
-
iconSecondary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
41
|
-
}
|
|
42
|
-
}),
|
|
43
|
-
title: t('fmt_attendies_button_handsdown'),
|
|
44
|
-
key: 'put_down_hand',
|
|
45
|
-
type: 'disabled',
|
|
46
|
-
onButtonClick: function onButtonClick() {
|
|
47
|
-
onParticipantsButtonClick(_constant.ParticipantType.STOP_RAISE_HAND, userId);
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
51
|
-
type: _type.FcrIconType.FCR_FOCUSONHIM,
|
|
52
|
-
size: 20,
|
|
53
|
-
colors: {
|
|
54
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
55
|
-
}
|
|
56
|
-
}),
|
|
57
|
-
title: t('fmt_attendies_options_setfocus'),
|
|
58
|
-
key: 'set_as_focus_video',
|
|
59
|
-
type: 'disabled',
|
|
60
|
-
onButtonClick: function onButtonClick() {
|
|
61
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_MAIN_SPEAKER, userId);
|
|
62
|
-
}
|
|
63
|
-
}, {
|
|
64
|
-
title: t('fmt_attendies_options_allowlocalrecord'),
|
|
65
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
66
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
67
|
-
size: 20,
|
|
68
|
-
colors: {
|
|
69
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
70
|
-
}
|
|
71
|
-
}),
|
|
72
|
-
key: 'allow_record_local_video',
|
|
73
|
-
type: 'disabled',
|
|
74
|
-
onButtonClick: function onButtonClick() {
|
|
75
|
-
onParticipantsButtonClick(_constant.ParticipantType.ALL_RECORDING_LOCAL_VIDEO, userId);
|
|
76
|
-
},
|
|
77
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
78
|
-
}, {
|
|
79
|
-
title: t('fmt_attendies_options_putinwaitingroom'),
|
|
80
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
81
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
82
|
-
size: 20,
|
|
83
|
-
colors: {
|
|
84
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
key: 'put_into_waiting_room',
|
|
88
|
-
type: 'disabled',
|
|
89
|
-
role: ['host'],
|
|
90
|
-
onButtonClick: function onButtonClick() {
|
|
91
|
-
onParticipantsButtonClick(_constant.ParticipantType.PUT_IN_WAITING_ROOM, userId);
|
|
92
|
-
},
|
|
93
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
94
|
-
}, {
|
|
95
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
96
|
-
type: _type.FcrIconType.FCR_RENAME,
|
|
97
|
-
size: 20,
|
|
98
|
-
colors: {
|
|
99
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
100
|
-
}
|
|
101
|
-
}),
|
|
102
|
-
title: t('fmt_attendies_button_rename'),
|
|
103
|
-
key: 'rename',
|
|
104
|
-
type: 'disabled',
|
|
105
|
-
onButtonClick: function onButtonClick() {
|
|
106
|
-
onParticipantsButtonClick(_constant.ParticipantType.RENAME, userId);
|
|
107
|
-
},
|
|
108
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
109
|
-
}];
|
|
110
|
-
var allOperationMenu = [{
|
|
111
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
112
|
-
isCameraMuted: true
|
|
113
|
-
}),
|
|
114
|
-
title: t('fmt_device_label_video_start'),
|
|
115
|
-
key: 'start_video',
|
|
116
|
-
type: 'primary',
|
|
117
|
-
canOperation: !hasVideo && userType !== 'phone',
|
|
118
|
-
onButtonClick: function onButtonClick() {
|
|
119
|
-
onParticipantsButtonClick(_constant.ParticipantType.UNMUTE_VIDEO, userId);
|
|
120
|
-
},
|
|
121
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
122
|
-
}, {
|
|
123
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
124
|
-
isCameraMuted: true
|
|
125
|
-
}),
|
|
126
|
-
title: t('fmt_sip_button_opencamera'),
|
|
127
|
-
key: 'request_start_video',
|
|
128
|
-
type: 'primary',
|
|
129
|
-
canOperation: !hasVideo && !isMe && userType !== 'phone',
|
|
130
|
-
onButtonClick: function onButtonClick() {
|
|
131
|
-
onParticipantsButtonClick(_constant.ParticipantType.UNMUTE_VIDEO, userId);
|
|
132
|
-
},
|
|
133
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
134
|
-
}, {
|
|
135
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_cameraState.CameraState, {
|
|
136
|
-
isCameraMuted: false
|
|
137
|
-
}),
|
|
138
|
-
title: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
139
|
-
style: {
|
|
140
|
-
color: 'var(--fcr_ui_scene_ramp_red6)'
|
|
141
|
-
},
|
|
142
|
-
children: t('fmt_device_label_video_stop')
|
|
143
|
-
}),
|
|
144
|
-
key: 'stop_video',
|
|
145
|
-
type: 'primary',
|
|
146
|
-
canOperation: hasVideo && userType !== 'phone',
|
|
147
|
-
onButtonClick: function onButtonClick() {
|
|
148
|
-
onParticipantsButtonClick(_constant.ParticipantType.MUTE_VIDEO, userId);
|
|
149
|
-
},
|
|
150
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
151
|
-
}, {
|
|
152
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
153
|
-
type: _type.FcrIconType.FCR_MOBILE_CHAT3,
|
|
154
|
-
size: 20,
|
|
155
|
-
colors: {
|
|
156
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
157
|
-
}
|
|
158
|
-
}),
|
|
159
|
-
title: t('fmt_attendies_label_privatechat'),
|
|
160
|
-
key: 'private_chat',
|
|
161
|
-
type: 'primary',
|
|
162
|
-
canOperation: !isMe && userType !== 'phone',
|
|
163
|
-
onButtonClick: function onButtonClick() {
|
|
164
|
-
onParticipantsButtonClick(_constant.ParticipantType.PRIVATE_CHAT, userId);
|
|
165
|
-
}
|
|
166
|
-
}, {
|
|
167
|
-
icon: isPin ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
168
|
-
type: _type.FcrIconType.FCR_UNPIN,
|
|
169
|
-
size: 20
|
|
170
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
171
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
172
|
-
size: 20,
|
|
173
|
-
colors: {
|
|
174
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
175
|
-
}
|
|
176
|
-
}),
|
|
177
|
-
title: isPin ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
178
|
-
style: {
|
|
179
|
-
color: 'var(--fcr_ui_scene_ramp_red6)'
|
|
180
|
-
},
|
|
181
|
-
children: t('fmt_attendies_options_cancelfixed')
|
|
182
|
-
}) : hasPinnedStream ? t('fmt_attendies_options_replacefixed') : t('fmt_attendies_options_fixfirst'),
|
|
183
|
-
key: 'pin',
|
|
184
|
-
type: 'primary',
|
|
185
|
-
canOperation: userType === 'normal' || userType === 'meeting-system' && hasVideo,
|
|
186
|
-
onButtonClick: function onButtonClick() {
|
|
187
|
-
onParticipantsButtonClick(isPin ? _constant.ParticipantType.REMOVE_PIN : _constant.ParticipantType.ADD_PIN, userId);
|
|
188
|
-
},
|
|
189
|
-
classNames: 'fcr-drop-menu-option-with-under-line'
|
|
190
|
-
}, {
|
|
191
|
-
title: t('fmt_attendies_options_sethost'),
|
|
192
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
193
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
194
|
-
size: 20,
|
|
195
|
-
colors: {
|
|
196
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
197
|
-
}
|
|
198
|
-
}),
|
|
199
|
-
key: 'set_as_host',
|
|
200
|
-
canOperation: userRole !== _type2.FcrUserRole.HOST && userType === 'normal',
|
|
201
|
-
onButtonClick: function onButtonClick() {
|
|
202
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_AS_HOST, userId);
|
|
203
|
-
}
|
|
204
|
-
}, {
|
|
205
|
-
title: t('fmt_attendies_options_setcohost'),
|
|
206
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
207
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
208
|
-
size: 20,
|
|
209
|
-
colors: {
|
|
210
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
211
|
-
}
|
|
212
|
-
}),
|
|
213
|
-
key: 'set_as_co_host',
|
|
214
|
-
type: 'primary',
|
|
215
|
-
canOperation: userRole !== _type2.FcrUserRole.COHOST && userType === 'normal',
|
|
216
|
-
onButtonClick: function onButtonClick() {
|
|
217
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_AS_CO_HOST, userId);
|
|
218
|
-
}
|
|
219
|
-
}, {
|
|
220
|
-
title: t('fmt_attendies_options_revokecohost'),
|
|
221
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
222
|
-
type: _type.FcrIconType.FCR_PINPAGE,
|
|
223
|
-
size: 20,
|
|
224
|
-
colors: {
|
|
225
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
226
|
-
}
|
|
227
|
-
}),
|
|
228
|
-
key: 'revoke_co_host',
|
|
229
|
-
type: 'danger',
|
|
230
|
-
canOperation: userRole === _type2.FcrUserRole.COHOST && userType === 'normal',
|
|
231
|
-
onButtonClick: function onButtonClick() {
|
|
232
|
-
onParticipantsButtonClick(_constant.ParticipantType.SET_AS_ATTENDEE, userId);
|
|
233
|
-
}
|
|
234
|
-
}, {
|
|
235
|
-
title: t('fmt_modules_tips_mergevideo'),
|
|
236
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
237
|
-
type: _type.FcrIconType.FCR_MOBILE_CAMERA2,
|
|
238
|
-
size: 20,
|
|
239
|
-
colors: {
|
|
240
|
-
iconPrimary: 'var(--fcr_ui_scene_icontext5)'
|
|
241
|
-
}
|
|
242
|
-
}),
|
|
243
|
-
key: 'merge_video',
|
|
244
|
-
type: 'primary',
|
|
245
|
-
canOperation: userType === 'phone',
|
|
246
|
-
onButtonClick: function onButtonClick() {
|
|
247
|
-
onParticipantsButtonClick(_constant.ParticipantType.MERGE_VIDEO, userId);
|
|
248
|
-
}
|
|
249
|
-
}, {
|
|
250
|
-
title: t('fmt_attendies_button_remove'),
|
|
251
|
-
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
252
|
-
type: _type.FcrIconType.FCR_SETTING_NONE,
|
|
253
|
-
size: 20,
|
|
254
|
-
colors: {
|
|
255
|
-
iconPrimary: 'var(--fcr_ui_scene_ramp_red6)'
|
|
256
|
-
}
|
|
257
|
-
}),
|
|
258
|
-
key: 'kick_out',
|
|
259
|
-
type: 'danger',
|
|
260
|
-
canOperation: true,
|
|
261
|
-
onButtonClick: function onButtonClick() {
|
|
262
|
-
onParticipantsButtonClick(_constant.ParticipantType.KICK_OUT, userId);
|
|
263
|
-
}
|
|
264
|
-
}];
|
|
265
|
-
var currentActions = allOperationMenu.filter(function (item) {
|
|
266
|
-
return allowedOperations.includes(item.key) && item.canOperation;
|
|
267
|
-
});
|
|
268
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
269
|
-
className: "participants-more-action",
|
|
270
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_dropMenu.FcrDropMenu, {
|
|
271
|
-
title: userName,
|
|
272
|
-
options: currentActions
|
|
273
|
-
})
|
|
274
|
-
});
|
|
275
|
-
};
|