fcr-ui-scene 3.2.0 → 3.3.1
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/dist/electron/app.js +148 -0
- package/dist/electron/bootstrap-dev.js +51 -0
- package/dist/electron/bootstrap-sdk.js +56 -0
- package/dist/electron/default-options.js +25 -0
- package/dist/electron/env.js +13 -0
- package/dist/electron/index.js +20 -0
- package/dist/electron/injections.js +702 -0
- package/dist/electron/logger.js +66 -0
- package/dist/electron/main.js +67 -0
- package/dist/electron/plugins/meeting-state.js +39 -0
- package/dist/electron/plugins/screenshot.js +49 -0
- package/dist/electron/preload.js +36 -0
- package/dist/electron/tools.js +66 -0
- package/dist/electron/window.js +124 -0
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +16 -0
- package/lib/common/device-store.d.ts +1 -1
- package/lib/common/device-store.js +11 -3
- package/lib/common/event-store.d.ts +17 -1
- package/lib/common/event-store.js +38 -5
- package/lib/common/room-store.d.ts +55 -0
- package/lib/common/room-store.js +395 -0
- package/lib/common/security-store.d.ts +14 -4
- package/lib/common/security-store.js +149 -30
- package/lib/creator.js +2 -0
- package/lib/electron/app.js +8 -0
- 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 +57 -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 +2 -1
- package/lib/electron/injections.js +6 -6
- package/lib/electron/main.js +4 -16
- 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/fragments/control-bar/control-bar-store.d.ts +34 -1
- package/lib/fragments/control-bar/control-bar-store.js +371 -79
- package/lib/fragments/control-bar/device/index.js +5 -3
- package/lib/fragments/control-bar/index.css +15 -10
- package/lib/fragments/control-bar/index.js +18 -0
- 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 +72 -37
- package/lib/fragments/control-bar/security-content/index.css +10 -0
- package/lib/fragments/control-bar/security-content/index.js +40 -18
- package/lib/fragments/control-bar/view.js +8 -2
- package/lib/login-confirm-dialog.d.ts +12 -0
- package/lib/login-confirm-dialog.js +80 -0
- package/lib/modules/Interpreter/add-button/index.css +4 -0
- package/lib/modules/Interpreter/add-button/index.d.ts +11 -0
- package/lib/modules/Interpreter/add-button/index.js +41 -0
- package/lib/modules/Interpreter/config.d.ts +16 -0
- package/lib/modules/Interpreter/config.js +17 -0
- package/lib/modules/Interpreter/constant.d.ts +44 -0
- package/lib/modules/Interpreter/constant.js +60 -0
- package/lib/modules/Interpreter/context.d.ts +2 -0
- package/lib/modules/Interpreter/context.js +9 -0
- package/lib/modules/Interpreter/dialog-content/index.css +33 -0
- package/lib/modules/Interpreter/dialog-content/index.d.ts +8 -0
- package/lib/modules/Interpreter/dialog-content/index.js +34 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/interpreter-btn/index.js +56 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.d.ts +5 -0
- package/lib/modules/Interpreter/footer/components/set-btn/index.js +46 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/footer/components/tooltip-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/footer/index.css +10 -0
- package/lib/modules/Interpreter/footer/index.d.ts +3 -0
- package/lib/modules/Interpreter/footer/index.js +35 -0
- package/lib/modules/Interpreter/index.css +8 -0
- package/lib/modules/Interpreter/index.d.ts +21 -0
- package/lib/modules/Interpreter/index.js +110 -0
- package/lib/modules/Interpreter/interpreter-list/index.css +21 -0
- package/lib/modules/Interpreter/interpreter-list/index.d.ts +3 -0
- package/lib/modules/Interpreter/interpreter-list/index.js +65 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +31 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.js +141 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ar.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_cn.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_de.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_en.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_es.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_fr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_hi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_id.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_it.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_jp.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ko.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ms.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_pt.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_ru.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_th.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_tr.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/images/fcr_vi.png +0 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.d.ts +11 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig/index.js +119 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +41 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +12 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +118 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.css +34 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +8 -0
- package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.js +65 -0
- package/lib/modules/Interpreter/loading-wrapper/index.css +53 -0
- package/lib/modules/Interpreter/loading-wrapper/index.d.ts +6 -0
- package/lib/modules/Interpreter/loading-wrapper/index.js +28 -0
- package/lib/modules/Interpreter/store.d.ts +82 -0
- package/lib/modules/Interpreter/store.js +1382 -0
- package/lib/modules/Interpreter/view.d.ts +3 -0
- package/lib/modules/Interpreter/view.js +32 -0
- package/lib/modules/action-bar/Interpreter/index.d.ts +6 -0
- package/lib/modules/action-bar/Interpreter/index.js +44 -0
- package/lib/modules/action-bar/action-bar-collapes-items.js +5 -5
- package/lib/modules/action-bar/apps/appitems.d.ts +2 -0
- package/lib/modules/action-bar/apps/appitems.js +40 -0
- package/lib/modules/action-bar/apps/index.css +6 -0
- package/lib/modules/action-bar/apps/index.d.ts +4 -0
- package/lib/modules/action-bar/apps/index.js +58 -0
- package/lib/modules/action-bar/chat/index.js +5 -5
- package/lib/modules/action-bar/device/index.css +7 -2
- package/lib/modules/action-bar/device/index.js +4 -4
- package/lib/modules/action-bar/index.css +59 -12
- package/lib/modules/action-bar/index.d.ts +3 -2
- package/lib/modules/action-bar/index.dev.js +1 -1
- package/lib/modules/action-bar/index.js +21 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +3 -0
- package/lib/modules/action-bar/leave/assign-host.js +2 -4
- package/lib/modules/action-bar/leave/index.js +29 -6
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +11 -0
- package/lib/modules/action-bar/leave/leave-meeting.js +25 -16
- package/lib/modules/action-bar/more/poppover-content.js +4 -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 +16 -22
- package/lib/modules/action-bar/security/drop-menu.js +90 -13
- package/lib/modules/action-bar/store.d.ts +38 -6
- package/lib/modules/action-bar/store.js +487 -95
- package/lib/modules/action-bar/switch-input-language-room/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-input-language-room/index.css +86 -0
- package/lib/modules/action-bar/switch-input-language-room/index.d.ts +17 -0
- package/lib/modules/action-bar/switch-input-language-room/index.js +145 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.d.ts +1 -0
- package/lib/modules/action-bar/switch-output-language-room/drop-menu.js +197 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.css +18 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/guide-tooltip/index.js +59 -0
- package/lib/modules/action-bar/switch-output-language-room/index.d.ts +12 -0
- package/lib/modules/action-bar/switch-output-language-room/index.js +238 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.css +54 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.d.ts +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/interpreter/index.js +94 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.css +8 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.d.ts +4 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/components/virtual-image/index.js +31 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/dome.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png +0 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.css +71 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.d.ts +2 -0
- package/lib/modules/action-bar/switch-output-language-room/notification-bar/index.js +82 -0
- package/lib/modules/action-bar/view.js +65 -42
- package/lib/modules/chat/chat-bar/index.js +39 -27
- package/lib/modules/chat/chat-select/index.css +14 -4
- package/lib/modules/chat/chat.d.ts +1 -2
- package/lib/modules/chat/chat.js +184 -105
- package/lib/modules/chat/index.css +49 -0
- package/lib/modules/chat/index.d.ts +2 -2
- package/lib/modules/chat/index.dev.js +1 -1
- package/lib/modules/chat/index.js +13 -8
- package/lib/modules/chat/message-list.js +59 -48
- package/lib/modules/chat/store.d.ts +48 -2
- package/lib/modules/chat/store.js +258 -45
- package/lib/modules/connection-gateway/index.d.ts +2 -1
- package/lib/modules/connection-gateway/store.d.ts +6 -3
- package/lib/modules/connection-gateway/store.js +5 -1
- package/lib/modules/device-pretest/audio-preview/speaker-control.js +1 -1
- package/lib/modules/device-pretest/index.css +0 -4
- package/lib/modules/device-pretest/settings/beauty.js +17 -6
- package/lib/modules/device-pretest/store.js +7 -11
- package/lib/modules/dialog/components/Interpreter/electron.d.ts +2 -0
- package/lib/modules/dialog/components/Interpreter/electron.js +72 -0
- package/lib/modules/dialog/components/Interpreter/index.css +30 -0
- package/lib/modules/dialog/components/Interpreter/index.d.ts +4 -0
- package/lib/modules/dialog/components/Interpreter/index.js +61 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/Interpreter/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/chat/electron.js +2 -1
- package/lib/modules/dialog/components/confirm/electron.js +5 -3
- package/lib/modules/dialog/components/connection-gateway/electron.js +3 -1
- package/lib/modules/dialog/components/connection-gateway/index.css +0 -2
- package/lib/modules/dialog/components/device-setting/electron.js +3 -1
- package/lib/modules/dialog/components/device-setting/index.css +0 -1
- 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 +2 -1
- 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/switch-language-channels/electron.d.ts +2 -0
- package/lib/modules/dialog/components/switch-language-channels/electron.js +72 -0
- package/lib/modules/dialog/components/switch-language-channels/index.css +30 -0
- package/lib/modules/dialog/components/switch-language-channels/index.d.ts +4 -0
- package/lib/modules/dialog/components/switch-language-channels/index.js +63 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.css +36 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.d.ts +3 -0
- package/lib/modules/dialog/components/switch-language-channels/user-queue/index.js +47 -0
- package/lib/modules/dialog/components/whiteboard/index.js +2 -1
- package/lib/modules/dialog/dialogs.js +17 -13
- package/lib/modules/dialog/index.css +2 -0
- package/lib/modules/dialog/store.d.ts +4 -0
- package/lib/modules/dialog/store.js +16 -2
- 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/invite/index.css +4 -4
- package/lib/modules/invite/pstn-invite.js +1 -0
- package/lib/modules/layout/components/Gallery.js +7 -1
- package/lib/modules/layout/components/Layout.js +82 -57
- package/lib/modules/layout/components/index.css +33 -6
- package/lib/modules/layout/index.css +30 -0
- package/lib/modules/layout/member-window/index.js +9 -3
- package/lib/modules/layout/store.d.ts +19 -2
- package/lib/modules/layout/store.js +177 -70
- package/lib/modules/layout/video-window-datasource.d.ts +1 -1
- package/lib/modules/layout/video-window-datasource.js +1 -1
- package/lib/modules/live-streaming/index.dev.js +1 -1
- package/lib/modules/notification/context.d.ts +2 -0
- package/lib/modules/notification/context.js +9 -0
- package/lib/modules/notification/index.css +58 -0
- package/lib/modules/notification/index.d.ts +15 -0
- package/lib/modules/notification/index.js +51 -0
- package/lib/modules/notification/interpreter-status/index.css +72 -0
- package/lib/modules/notification/interpreter-status/index.d.ts +3 -0
- package/lib/modules/notification/interpreter-status/index.js +59 -0
- package/lib/modules/notification/store.d.ts +16 -0
- package/lib/modules/notification/store.js +127 -0
- package/lib/modules/notification/view.d.ts +10 -0
- package/lib/modules/notification/view.js +116 -0
- package/lib/modules/participant/attendee/index.d.ts +12 -3
- package/lib/modules/participant/attendee/index.js +132 -30
- package/lib/modules/participant/index.css +20 -0
- package/lib/modules/participant/index.d.ts +5 -2
- package/lib/modules/participant/index.dev.js +1 -1
- package/lib/modules/participant/index.js +27 -0
- package/lib/modules/participant/room-control-drop-menu/index.css +37 -0
- package/lib/modules/participant/store.d.ts +30 -5
- package/lib/modules/participant/store.js +347 -74
- package/lib/modules/participant/view.js +133 -34
- package/lib/modules/setting/index.css +1 -5
- package/lib/modules/setting/index.dev.js +1 -1
- package/lib/modules/setting/store.d.ts +2 -2
- package/lib/modules/setting/store.js +3 -8
- package/lib/modules/setting/translate-settings/translate-settings.js +1 -1
- package/lib/modules/setting/video-settings/index.css +9 -6
- package/lib/modules/share-screen/index.d.ts +2 -0
- package/lib/modules/share-screen/index.dev.js +3 -2
- package/lib/modules/share-screen/selection/index.css +2 -0
- package/lib/modules/share-screen/store.d.ts +6 -3
- package/lib/modules/share-screen/store.js +170 -129
- 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 +1 -1
- package/lib/modules/state-bar/meeting-detail.css +6 -4
- package/lib/modules/state-bar/meeting-details.js +32 -5
- 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 +3 -5
- package/lib/modules/state-bar/store.d.ts +5 -2
- package/lib/modules/state-bar/store.js +32 -5
- package/lib/modules/state-bar/view.js +7 -10
- package/lib/modules/video-window/index.css +1 -0
- package/lib/modules/video-window/store.d.ts +2 -2
- package/lib/modules/video-window/store.js +14 -11
- 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 +0 -6
- package/lib/modules/whiteboard/components/control-bar/index.css +3 -0
- package/lib/modules/whiteboard/components/multi-window/index.js +6 -1
- package/lib/modules/whiteboard/components/progress/electron.js +2 -1
- 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 +20 -15
- package/lib/modules/whiteboard/components/switch-theme/item.d.ts +1 -0
- package/lib/modules/whiteboard/components/switch-theme/item.js +9 -2
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +14 -10
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +1 -0
- package/lib/modules/whiteboard/components/toolbar/store.js +3 -0
- package/lib/modules/whiteboard/context.d.ts +4 -0
- package/lib/modules/whiteboard/context.js +4 -2
- package/lib/modules/whiteboard/index.js +22 -6
- package/lib/plugins/browser-runtime-plugin.js +4 -1
- package/lib/plugins/module-dev-plugin.js +8 -6
- package/lib/runtime.d.ts +2 -1
- package/lib/translations/enUS.d.ts +449 -6
- package/lib/translations/enUS.js +485 -32
- package/lib/translations/zhCN.d.ts +447 -6
- package/lib/translations/zhCN.js +468 -17
- package/lib/type.d.ts +6 -2
- package/lib/ui-manager.d.ts +7 -3
- package/lib/ui-manager.js +576 -139
- package/lib/ui-scene.d.ts +1 -0
- package/lib/ui-scene.js +26 -21
- package/lib/utilities/constant.d.ts +43 -4
- package/lib/utilities/constant.js +41 -1
- package/lib/utilities/parameters.js +2 -2
- package/lib/utilities/renderer.d.ts +1 -0
- package/lib/utilities/renderer.js +6 -2
- package/package.json +14 -14
- package/public/assets/fcr_defaultpage.png +0 -0
- package/public/assets/login_confirm.png +0 -0
- package/public/index.html +34 -11
- package/dist/132.js +0 -2
- package/dist/132.js.LICENSE.txt +0 -311
- package/dist/651.js +0 -2
- package/dist/651.js.LICENSE.txt +0 -1
- package/dist/73.js +0 -1
- package/dist/index.html +0 -13
- package/dist/main.da7c203ab32d15742cfe.css +0 -11760
- package/dist/main.js +0 -2
- package/dist/main.js.LICENSE.txt +0 -254
- package/dist/worker-entry.worker.js.LICENSE.txt +0 -13
- 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 -278
|
@@ -0,0 +1,238 @@
|
|
|
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.SwitchOutputLanguageRoom = exports.CLOSE_ALL_LANGUAGE_ROOM = void 0;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.array.for-each.js");
|
|
11
|
+
require("core-js/modules/es.array.iterator.js");
|
|
12
|
+
require("core-js/modules/es.array.map.js");
|
|
13
|
+
require("core-js/modules/es.array.push.js");
|
|
14
|
+
require("core-js/modules/es.object.to-string.js");
|
|
15
|
+
require("core-js/modules/es.set.js");
|
|
16
|
+
require("core-js/modules/es.string.iterator.js");
|
|
17
|
+
require("core-js/modules/esnext.async-iterator.for-each.js");
|
|
18
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
19
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
20
|
+
require("core-js/modules/esnext.iterator.for-each.js");
|
|
21
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
22
|
+
require("core-js/modules/esnext.set.add-all.js");
|
|
23
|
+
require("core-js/modules/esnext.set.delete-all.js");
|
|
24
|
+
require("core-js/modules/esnext.set.difference.v2.js");
|
|
25
|
+
require("core-js/modules/esnext.set.difference.js");
|
|
26
|
+
require("core-js/modules/esnext.set.every.js");
|
|
27
|
+
require("core-js/modules/esnext.set.filter.js");
|
|
28
|
+
require("core-js/modules/esnext.set.find.js");
|
|
29
|
+
require("core-js/modules/esnext.set.intersection.v2.js");
|
|
30
|
+
require("core-js/modules/esnext.set.intersection.js");
|
|
31
|
+
require("core-js/modules/esnext.set.is-disjoint-from.v2.js");
|
|
32
|
+
require("core-js/modules/esnext.set.is-disjoint-from.js");
|
|
33
|
+
require("core-js/modules/esnext.set.is-subset-of.v2.js");
|
|
34
|
+
require("core-js/modules/esnext.set.is-subset-of.js");
|
|
35
|
+
require("core-js/modules/esnext.set.is-superset-of.v2.js");
|
|
36
|
+
require("core-js/modules/esnext.set.is-superset-of.js");
|
|
37
|
+
require("core-js/modules/esnext.set.join.js");
|
|
38
|
+
require("core-js/modules/esnext.set.map.js");
|
|
39
|
+
require("core-js/modules/esnext.set.reduce.js");
|
|
40
|
+
require("core-js/modules/esnext.set.some.js");
|
|
41
|
+
require("core-js/modules/esnext.set.symmetric-difference.v2.js");
|
|
42
|
+
require("core-js/modules/esnext.set.symmetric-difference.js");
|
|
43
|
+
require("core-js/modules/esnext.set.union.v2.js");
|
|
44
|
+
require("core-js/modules/esnext.set.union.js");
|
|
45
|
+
require("core-js/modules/web.dom-collections.for-each.js");
|
|
46
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
47
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
48
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
49
|
+
var _item = require("../item");
|
|
50
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
51
|
+
var _react = require("react");
|
|
52
|
+
var _context = require("../context");
|
|
53
|
+
var _mobxReact = require("mobx-react");
|
|
54
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
55
|
+
var _radio = require("agora-ui-foundation/lib/components/radio");
|
|
56
|
+
var _guideTooltip = require("./guide-tooltip");
|
|
57
|
+
var _store = require("../store");
|
|
58
|
+
var _useLanguageConfig = require("../../Interpreter/interpreter-list/interpreter-item/components/pick-language/useLanguageConfig");
|
|
59
|
+
var _loadingWrapper = require("../../Interpreter/loading-wrapper");
|
|
60
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
61
|
+
var useChangeOutputRoomTool = function useChangeOutputRoomTool() {
|
|
62
|
+
var _useState = (0, _react.useState)(false),
|
|
63
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
64
|
+
loading = _useState2[0],
|
|
65
|
+
setLoading = _useState2[1];
|
|
66
|
+
var _useState3 = (0, _react.useState)(true),
|
|
67
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
68
|
+
mainRoomState = _useState4[0],
|
|
69
|
+
setMainRoomState = _useState4[1];
|
|
70
|
+
var _useState5 = (0, _react.useState)(closeAlllanguageBtn.value),
|
|
71
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
72
|
+
languageRoomState = _useState6[0],
|
|
73
|
+
setLanguageRoomState = _useState6[1];
|
|
74
|
+
return {
|
|
75
|
+
mainRoomState: mainRoomState,
|
|
76
|
+
setMainRoomState: setMainRoomState,
|
|
77
|
+
languageRoomState: languageRoomState,
|
|
78
|
+
setLanguageRoomState: setLanguageRoomState,
|
|
79
|
+
loading: loading,
|
|
80
|
+
setLoading: setLoading
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
var OutputByMainRoom = function OutputByMainRoom(_ref) {
|
|
84
|
+
var changeOutputRoomTool = _ref.changeOutputRoomTool;
|
|
85
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
86
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
87
|
+
changeOutputByMainRoom = _useContext.changeOutputByMainRoom;
|
|
88
|
+
var mainRoomState = changeOutputRoomTool.mainRoomState,
|
|
89
|
+
setMainRoomState = changeOutputRoomTool.setMainRoomState;
|
|
90
|
+
var label = '同时收听原声';
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_radio.FcrRadio, {
|
|
92
|
+
name: "speaker",
|
|
93
|
+
styleType: "transparent",
|
|
94
|
+
checked: mainRoomState,
|
|
95
|
+
label: label,
|
|
96
|
+
onClick: function onClick() {
|
|
97
|
+
var open = !mainRoomState;
|
|
98
|
+
changeOutputByMainRoom({
|
|
99
|
+
event: open ? _store.EventType.START : _store.EventType.STOP
|
|
100
|
+
});
|
|
101
|
+
setMainRoomState(open);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
};
|
|
105
|
+
var CLOSE_ALL_LANGUAGE_ROOM = exports.CLOSE_ALL_LANGUAGE_ROOM = 'CLOSE_ALL_LANGUAGE_ROOM';
|
|
106
|
+
var closeAlllanguageBtn = {
|
|
107
|
+
text: '关闭',
|
|
108
|
+
value: CLOSE_ALL_LANGUAGE_ROOM
|
|
109
|
+
};
|
|
110
|
+
var OutputByLanguageRoom = function OutputByLanguageRoom(_ref2) {
|
|
111
|
+
var changeOutputRoomTool = _ref2.changeOutputRoomTool;
|
|
112
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
113
|
+
var _useContext2 = (0, _react.useContext)(_context.ActionBarContext),
|
|
114
|
+
interpreterUsers = _useContext2.interpreterUsers,
|
|
115
|
+
changeOutputLanguage = _useContext2.changeOutputLanguage;
|
|
116
|
+
var languageRoomState = changeOutputRoomTool.languageRoomState,
|
|
117
|
+
setLanguageRoomState = changeOutputRoomTool.setLanguageRoomState,
|
|
118
|
+
setLoading = changeOutputRoomTool.setLoading;
|
|
119
|
+
var getLanguageConfig = (0, _useLanguageConfig.useLanguageConfig)();
|
|
120
|
+
var languageRoomOptions = (0, _react.useMemo)(function () {
|
|
121
|
+
var languageRoomList = [];
|
|
122
|
+
interpreterUsers === null || interpreterUsers === void 0 || interpreterUsers.forEach(function (ele) {
|
|
123
|
+
languageRoomList.push(ele.sourceLanguage, ele.targetLanguage);
|
|
124
|
+
});
|
|
125
|
+
var languageBtnList = (0, _toConsumableArray2["default"])(new Set(languageRoomList)).map(function (ele) {
|
|
126
|
+
return {
|
|
127
|
+
text: getLanguageConfig(ele).text,
|
|
128
|
+
value: ele
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
return [closeAlllanguageBtn].concat((0, _toConsumableArray2["default"])(languageBtnList));
|
|
132
|
+
}, [interpreterUsers]);
|
|
133
|
+
var handleChange = function handleChange(language) {
|
|
134
|
+
setLoading(true);
|
|
135
|
+
changeOutputLanguage({
|
|
136
|
+
language: language,
|
|
137
|
+
orgLanguage: languageRoomState,
|
|
138
|
+
callback: function callback() {
|
|
139
|
+
setLanguageRoomState(language);
|
|
140
|
+
setLoading(false);
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
(0, _react.useEffect)(function () {
|
|
145
|
+
// setLanguageRoomState(closeAlllanguageBtn.value);
|
|
146
|
+
// handleChange(closeAlllanguageBtn.value)
|
|
147
|
+
}, []);
|
|
148
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
149
|
+
children: languageRoomOptions.map(function (languageRoom) {
|
|
150
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_radio.FcrRadio, {
|
|
152
|
+
name: "mic",
|
|
153
|
+
styleType: "transparent",
|
|
154
|
+
checked: languageRoomState === languageRoom.value,
|
|
155
|
+
label: languageRoom.text,
|
|
156
|
+
onChange: function onChange(v) {
|
|
157
|
+
if (v) {
|
|
158
|
+
handleChange(languageRoom.value);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
}, languageRoom.value);
|
|
163
|
+
})
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
var AudioDeviceListPopoverContent = function AudioDeviceListPopoverContent(props) {
|
|
167
|
+
var changeOutputRoomTool = props.changeOutputRoomTool;
|
|
168
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_loadingWrapper.LoadingWrapper, {
|
|
169
|
+
loading: changeOutputRoomTool.loading,
|
|
170
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
171
|
+
className: "fcr-device-popover-content",
|
|
172
|
+
onClick: function onClick(e) {
|
|
173
|
+
e.stopPropagation();
|
|
174
|
+
},
|
|
175
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
176
|
+
className: "fcr-device-popover-content-device-list",
|
|
177
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
178
|
+
className: "fcr-device-popover-content-device",
|
|
179
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
180
|
+
className: "fcr-device-popover-content-device-options",
|
|
181
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OutputByLanguageRoom, {
|
|
182
|
+
changeOutputRoomTool: changeOutputRoomTool
|
|
183
|
+
})
|
|
184
|
+
})
|
|
185
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
186
|
+
className: "fcr-device-popover-content-device",
|
|
187
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
188
|
+
className: "fcr-device-popover-content-device-options",
|
|
189
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(OutputByMainRoom, {
|
|
190
|
+
changeOutputRoomTool: changeOutputRoomTool
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
})]
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
var SwitchOutputLanguageRoom = exports.SwitchOutputLanguageRoom = (0, _mobxReact.observer)(function (_ref3) {
|
|
199
|
+
var id = _ref3.id,
|
|
200
|
+
order = _ref3.order;
|
|
201
|
+
var _useContext3 = (0, _react.useContext)(_context.ActionBarContext),
|
|
202
|
+
interpreterState = _useContext3.interpreterState;
|
|
203
|
+
var transI18n = (0, _i18n.useI18n)();
|
|
204
|
+
var title = '同声传译';
|
|
205
|
+
var content = '正在进行同声传译,可在这里进行选择收听';
|
|
206
|
+
var guideContent = '正在进行同声传译,可选择不同的语言频道收听';
|
|
207
|
+
var changeOutputRoomTool = useChangeOutputRoomTool();
|
|
208
|
+
if (!interpreterState) {
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_guideTooltip.GuideTooltip, {
|
|
212
|
+
content: content,
|
|
213
|
+
guideContent: guideContent,
|
|
214
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
215
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_item.ActionBarItemWithPopover, {
|
|
216
|
+
popoverProps: {
|
|
217
|
+
trigger: 'click',
|
|
218
|
+
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(AudioDeviceListPopoverContent, {
|
|
219
|
+
changeOutputRoomTool: changeOutputRoomTool
|
|
220
|
+
}),
|
|
221
|
+
overlayClassName: 'attendee__footer-more-actions',
|
|
222
|
+
overlayInnerStyle: {
|
|
223
|
+
boxShadow: 'var(--fcr_web_light_dropup_m)',
|
|
224
|
+
border: 'none',
|
|
225
|
+
width: '256px'
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
id: id,
|
|
229
|
+
order: order,
|
|
230
|
+
icon: _type.FcrIconType.FCR_INTERPRETATION2,
|
|
231
|
+
title: title,
|
|
232
|
+
iconColors: {
|
|
233
|
+
iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
|
|
234
|
+
}
|
|
235
|
+
})
|
|
236
|
+
})
|
|
237
|
+
});
|
|
238
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
.interpreter-notification {
|
|
2
|
+
width: 270px;
|
|
3
|
+
background: var(--fcr_ui_scene_ramp_purple6);
|
|
4
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
5
|
+
position: relative;
|
|
6
|
+
z-index: 9999;
|
|
7
|
+
bottom: 8px;
|
|
8
|
+
right: calc(52px - 15px);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.interpreter-notification .interpreter-notification-inner {
|
|
12
|
+
width: 270px;
|
|
13
|
+
padding: 10px 15px;
|
|
14
|
+
border-radius: var(--fcr_cornerradius_l);
|
|
15
|
+
border-bottom-right-radius: 0;
|
|
16
|
+
background: var(--fcr_ui_scene_white10);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.interpreter-notification .interpreter-notification-header {
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
align-items: center;
|
|
23
|
+
margin-bottom: 10px;
|
|
24
|
+
color: var(--fcr_ui_scene_black10);
|
|
25
|
+
font-size: 14px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.interpreter-notification .interpreter-notification-content {
|
|
29
|
+
font-size: 13px;
|
|
30
|
+
line-height: 1.5;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.interpreter-notification .interpreter-notification-backtext {
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
line-height: 1.5;
|
|
36
|
+
padding: 6px 15px;
|
|
37
|
+
color: var(--fcr_ui_scene_white10);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.interpreter-notification .interpreter-notification-close {
|
|
41
|
+
width: 18px;
|
|
42
|
+
height: 18px;
|
|
43
|
+
border-radius: 50%;
|
|
44
|
+
background: #d9d9d9;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: -23px;
|
|
47
|
+
top: 0;
|
|
48
|
+
text-align: center;
|
|
49
|
+
line-height: 16px;
|
|
50
|
+
}
|
|
51
|
+
.interpreter-notification .interpreter-notification-close:hover {
|
|
52
|
+
background-color: var(--fcr_ui_scene_white10);
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import { FcrInterpreterUserInfo } from 'fcr-core/lib/room-control/interpreter-control/types';
|
|
3
|
+
export default function interpreterNotification(props: {
|
|
4
|
+
offline: FcrInterpreterUserInfo[] | undefined;
|
|
5
|
+
reenter: FcrInterpreterUserInfo[] | undefined;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
onAssign?: () => void;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,94 @@
|
|
|
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"] = interpreterNotification;
|
|
9
|
+
require("core-js/modules/es.array.concat.js");
|
|
10
|
+
require("core-js/modules/es.array.join.js");
|
|
11
|
+
require("core-js/modules/es.array.map.js");
|
|
12
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
13
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
14
|
+
require("core-js/modules/web.timers.js");
|
|
15
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
16
|
+
var _react = require("react");
|
|
17
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
18
|
+
require("./index.css");
|
|
19
|
+
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
function interpreterNotification(props) {
|
|
22
|
+
var onClose = props.onClose,
|
|
23
|
+
onAssign = props.onAssign,
|
|
24
|
+
_props$offline = props.offline,
|
|
25
|
+
offline = _props$offline === void 0 ? [] : _props$offline,
|
|
26
|
+
_props$reenter = props.reenter,
|
|
27
|
+
reenter = _props$reenter === void 0 ? [] : _props$reenter;
|
|
28
|
+
var _useState = (0, _react.useState)(5),
|
|
29
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
30
|
+
second = _useState2[0],
|
|
31
|
+
setSecond = _useState2[1];
|
|
32
|
+
var text = (0, _react.useMemo)(function () {
|
|
33
|
+
return "\u7FFB\u8BD1\u5B98 ".concat(offline.map(function (interpreter) {
|
|
34
|
+
return interpreter.userName;
|
|
35
|
+
}).join('、'), " \u5DF2\u79BB\u5F00\u4F1A\u8BAE\u5BA4\uFF0C\u8BF7\u91CD\u65B0\u5206\u914D\u7FFB\u8BD1\u5B98");
|
|
36
|
+
}, [offline]);
|
|
37
|
+
var reEnterText = (0, _react.useMemo)(function () {
|
|
38
|
+
return "".concat(reenter.map(function (interpreter) {
|
|
39
|
+
return interpreter.userName;
|
|
40
|
+
}).join('、'), " \u5DF2\u91CD\u65B0\u8FDB\u5165\u4F1A\u8BAE\u5BA4");
|
|
41
|
+
}, [reenter]);
|
|
42
|
+
(0, _react.useEffect)(function () {
|
|
43
|
+
if (second === 0) {
|
|
44
|
+
if (offline.length === 0) {
|
|
45
|
+
onClose && onClose();
|
|
46
|
+
}
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
var timer = setInterval(function () {
|
|
50
|
+
setSecond(function (second) {
|
|
51
|
+
return second - 1;
|
|
52
|
+
});
|
|
53
|
+
}, 1000);
|
|
54
|
+
return function () {
|
|
55
|
+
clearInterval(timer);
|
|
56
|
+
};
|
|
57
|
+
}, [second]);
|
|
58
|
+
(0, _react.useEffect)(function () {
|
|
59
|
+
reenter.length > 0 && setSecond(5);
|
|
60
|
+
}, [reEnterText]);
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
62
|
+
className: "interpreter-notification",
|
|
63
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
64
|
+
className: "interpreter-notification-close",
|
|
65
|
+
onClick: onClose,
|
|
66
|
+
children: "\xD7"
|
|
67
|
+
}), second > 0 && reenter.length > 0 && offline.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
68
|
+
className: "interpreter-notification-backtext",
|
|
69
|
+
children: [reEnterText, "(", second, "s)"]
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
71
|
+
className: "interpreter-notification-inner",
|
|
72
|
+
children: [offline.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
73
|
+
className: "interpreter-notification-header",
|
|
74
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
75
|
+
children: "\u7FFB\u8BD1\u5B98\u79BB\u7EBF"
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
77
|
+
preIcon: _type.FcrIconType.FCR_SETTING,
|
|
78
|
+
preIconProps: {
|
|
79
|
+
colors: {
|
|
80
|
+
iconPrimary: 'var(--fcr_ui_scene_white10)'
|
|
81
|
+
},
|
|
82
|
+
size: 18
|
|
83
|
+
},
|
|
84
|
+
size: "XXS",
|
|
85
|
+
onClick: onAssign,
|
|
86
|
+
children: "\u53BB\u5206\u914D"
|
|
87
|
+
})]
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
89
|
+
className: "interpreter-notification-content",
|
|
90
|
+
children: offline.length > 0 ? text : "".concat(reEnterText, "(").concat(second, "s)")
|
|
91
|
+
})]
|
|
92
|
+
})]
|
|
93
|
+
});
|
|
94
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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"] = VirtualImage;
|
|
9
|
+
var _tooltip = require("agora-ui-foundation/lib/components/tooltip");
|
|
10
|
+
var _dome = _interopRequireDefault(require("../../dome.png"));
|
|
11
|
+
require("./index.css");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function VirtualImage(props) {
|
|
14
|
+
var _onClick = props.onClick;
|
|
15
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltip.FcrToolTip, {
|
|
16
|
+
mouseEnterDelay: 0,
|
|
17
|
+
trigger: "hover",
|
|
18
|
+
placement: "topRight",
|
|
19
|
+
content: "2\u79CD\u8BED\u8A00\u90FD\u9700\u652F\u6301\u8F93\u51FA,\u975E\u5355\u5411\u8F93\u51FA",
|
|
20
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
21
|
+
onClick: function onClick() {
|
|
22
|
+
return _onClick();
|
|
23
|
+
},
|
|
24
|
+
className: "interpreter-virtual-image",
|
|
25
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
26
|
+
className: "notification-icon",
|
|
27
|
+
src: _dome["default"]
|
|
28
|
+
})
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
Binary file
|
package/lib/modules/action-bar/switch-output-language-room/notification-bar/fcr_translateswitch.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.notification-bar {
|
|
2
|
+
position: absolute;
|
|
3
|
+
right: 20px;
|
|
4
|
+
bottom: 52px;
|
|
5
|
+
z-index: 9999;
|
|
6
|
+
/* height: 60px; */
|
|
7
|
+
/* display: flex;
|
|
8
|
+
justify-content:space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
background: var(--fcr_ui_scene_white8); */
|
|
11
|
+
/* border-radius: 30px; */
|
|
12
|
+
/* padding: 5px; */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.notification-icon {
|
|
16
|
+
width: 48px;
|
|
17
|
+
height: 45px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.notification-action {
|
|
21
|
+
/* width: 50%; */
|
|
22
|
+
height: 100%;
|
|
23
|
+
padding: 3px;
|
|
24
|
+
}
|
|
25
|
+
.notification-action-bg {
|
|
26
|
+
display: flex;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
height: 100%;
|
|
30
|
+
width: 100%;
|
|
31
|
+
padding: 8.5px 19.5px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.notification-action-icon {
|
|
35
|
+
width: 25px;
|
|
36
|
+
height: 25px;
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
background: rgba(63, 59, 83, 1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.notification-action__checked {
|
|
42
|
+
border-radius: 25px;
|
|
43
|
+
border: 1px solid var(--fcr_ui_scene_card3);
|
|
44
|
+
border-radius: 25px;
|
|
45
|
+
}
|
|
46
|
+
.notification-action__checked .notification-action-bg {
|
|
47
|
+
border-radius: 25px;
|
|
48
|
+
background: linear-gradient(
|
|
49
|
+
180deg,
|
|
50
|
+
#00cae0 0%,
|
|
51
|
+
#15d5ea 4.76%,
|
|
52
|
+
#6ae7f5 8.48%,
|
|
53
|
+
#64e8f7 25.6%,
|
|
54
|
+
#64e8f7 48%,
|
|
55
|
+
#00cae0 77.38%,
|
|
56
|
+
#00cae0 100%
|
|
57
|
+
);
|
|
58
|
+
box-shadow: 0px 4px 4px 0px rgba(4, 173, 191, 1) inset;
|
|
59
|
+
}
|
|
60
|
+
.notification-action__checked .notification-action-icon {
|
|
61
|
+
background: rgba(217, 217, 217, 1);
|
|
62
|
+
}
|
|
63
|
+
.notification-action-text {
|
|
64
|
+
color: var(--fcr_ui_scene_black10);
|
|
65
|
+
font-size: 20px;
|
|
66
|
+
margin-left: 8px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.notification-action__checked .notification-action-text {
|
|
70
|
+
color: var(--fcr_ui_scene_white10);
|
|
71
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.NotificationBar = void 0;
|
|
9
|
+
require("core-js/modules/es.array.filter.js");
|
|
10
|
+
require("core-js/modules/es.array.includes.js");
|
|
11
|
+
require("core-js/modules/es.array.map.js");
|
|
12
|
+
require("core-js/modules/es.object.to-string.js");
|
|
13
|
+
require("core-js/modules/es.string.includes.js");
|
|
14
|
+
require("core-js/modules/esnext.async-iterator.filter.js");
|
|
15
|
+
require("core-js/modules/esnext.async-iterator.map.js");
|
|
16
|
+
require("core-js/modules/esnext.iterator.constructor.js");
|
|
17
|
+
require("core-js/modules/esnext.iterator.filter.js");
|
|
18
|
+
require("core-js/modules/esnext.iterator.map.js");
|
|
19
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
20
|
+
var _react = require("react");
|
|
21
|
+
require("./index.css");
|
|
22
|
+
var _interpreter = _interopRequireDefault(require("./components/interpreter"));
|
|
23
|
+
var _virtualImage = _interopRequireDefault(require("./components/virtual-image"));
|
|
24
|
+
var _context = require("../../context");
|
|
25
|
+
var _mobxReact = require("mobx-react");
|
|
26
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
+
var NotificationBar = exports.NotificationBar = (0, _mobxReact.observer)(function () {
|
|
28
|
+
var _useContext = (0, _react.useContext)(_context.ActionBarContext),
|
|
29
|
+
openInterpreterDialog = _useContext.openInterpreterDialog,
|
|
30
|
+
users = _useContext.users,
|
|
31
|
+
interpreterUsers = _useContext.interpreterUsers;
|
|
32
|
+
var _useState = (0, _react.useState)(false),
|
|
33
|
+
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
34
|
+
showNotification = _useState2[0],
|
|
35
|
+
setShowNotification = _useState2[1];
|
|
36
|
+
var shareScreenBarRef = (0, _react.useRef)(null);
|
|
37
|
+
var _useState3 = (0, _react.useState)([]),
|
|
38
|
+
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
39
|
+
interpreterOffline = _useState4[0],
|
|
40
|
+
setInterpreterOffline = _useState4[1];
|
|
41
|
+
var _useState5 = (0, _react.useState)([]),
|
|
42
|
+
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
43
|
+
reEnterInterperter = _useState6[0],
|
|
44
|
+
setReEnterInterperter = _useState6[1];
|
|
45
|
+
(0, _react.useEffect)(function () {
|
|
46
|
+
var offline = (interpreterUsers === null || interpreterUsers === void 0 ? void 0 : interpreterUsers.filter(function (user) {
|
|
47
|
+
return !users.map(function (u) {
|
|
48
|
+
return u.userId;
|
|
49
|
+
}).includes(user.userId);
|
|
50
|
+
})) || [];
|
|
51
|
+
setInterpreterOffline(offline);
|
|
52
|
+
if (offline.length > 0) {
|
|
53
|
+
setShowNotification(true);
|
|
54
|
+
}
|
|
55
|
+
}, [users, interpreterUsers]);
|
|
56
|
+
(0, _react.useEffect)(function () {
|
|
57
|
+
var reEnter = (interpreterOffline === null || interpreterOffline === void 0 ? void 0 : interpreterOffline.filter(function (user) {
|
|
58
|
+
return users.map(function (u) {
|
|
59
|
+
return u.userId;
|
|
60
|
+
}).includes(user.userId);
|
|
61
|
+
})) || [];
|
|
62
|
+
setReEnterInterperter(reEnter);
|
|
63
|
+
}, [users]);
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
65
|
+
className: "notification-bar",
|
|
66
|
+
ref: shareScreenBarRef,
|
|
67
|
+
children: [showNotification && /*#__PURE__*/(0, _jsxRuntime.jsx)(_interpreter["default"], {
|
|
68
|
+
offline: interpreterOffline,
|
|
69
|
+
reenter: reEnterInterperter,
|
|
70
|
+
onClose: function onClose() {
|
|
71
|
+
return setShowNotification(!showNotification);
|
|
72
|
+
},
|
|
73
|
+
onAssign: function onAssign() {
|
|
74
|
+
openInterpreterDialog();
|
|
75
|
+
}
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_virtualImage["default"], {
|
|
77
|
+
onClick: function onClick() {
|
|
78
|
+
return setShowNotification(!showNotification);
|
|
79
|
+
}
|
|
80
|
+
})]
|
|
81
|
+
});
|
|
82
|
+
});
|