fcr-ui-scene 3.2.0 → 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/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/security-store.d.ts +14 -4
- package/lib/common/security-store.js +149 -30
- 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 +1 -1
- package/lib/electron/injections.js +3 -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 +1 -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/action-bar/action-bar-collapes-items.js +5 -5
- 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/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/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/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/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 +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 +3 -5
- package/lib/modules/state-bar/store.d.ts +4 -2
- package/lib/modules/state-bar/store.js +18 -3
- package/lib/modules/state-bar/view.js +1 -6
- 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 +1 -1
- package/lib/plugins/module-dev-plugin.js +8 -6
- package/lib/runtime.d.ts +1 -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 +29 -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
|
@@ -384,21 +384,17 @@ var FcrPretestStore = exports.FcrPretestStore = /*#__PURE__*/function () {
|
|
|
384
384
|
}, {
|
|
385
385
|
key: "_handleCameraListUpdated",
|
|
386
386
|
value: function () {
|
|
387
|
-
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(cameraList
|
|
388
|
-
var previewCameraEnabled,
|
|
387
|
+
var _handleCameraListUpdated2 = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(cameraList) {
|
|
388
|
+
var previewCameraEnabled, cameraTrack;
|
|
389
389
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
390
390
|
while (1) switch (_context.prev = _context.next) {
|
|
391
391
|
case 0:
|
|
392
392
|
previewCameraEnabled = this.previewCameraEnabled;
|
|
393
|
-
if (
|
|
394
|
-
if (
|
|
395
|
-
deviceId = cameraList[0].deviceId;
|
|
396
|
-
this.setCameraId(deviceId);
|
|
393
|
+
if (cameraList.length > 0) {
|
|
394
|
+
if (previewCameraEnabled) {
|
|
397
395
|
cameraTrack = this._deviceStore.mediaControl.getCameraTrack(this._deviceStore.cameraId);
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
this._setPreviewCameraEnabled(true);
|
|
401
|
-
}
|
|
396
|
+
cameraTrack.start();
|
|
397
|
+
this._setPreviewCameraEnabled(true);
|
|
402
398
|
}
|
|
403
399
|
}
|
|
404
400
|
case 2:
|
|
@@ -407,7 +403,7 @@ var FcrPretestStore = exports.FcrPretestStore = /*#__PURE__*/function () {
|
|
|
407
403
|
}
|
|
408
404
|
}, _callee, this);
|
|
409
405
|
}));
|
|
410
|
-
function _handleCameraListUpdated(_x
|
|
406
|
+
function _handleCameraListUpdated(_x) {
|
|
411
407
|
return _handleCameraListUpdated2.apply(this, arguments);
|
|
412
408
|
}
|
|
413
409
|
return _handleCameraListUpdated;
|
|
@@ -48,7 +48,8 @@ var ChatElectronDialog = exports.ChatElectronDialog = (0, _mobxReact.observer)(f
|
|
|
48
48
|
fullscreen: false,
|
|
49
49
|
maximizable: false,
|
|
50
50
|
y: store.currentDialogBounds.y,
|
|
51
|
-
show: !(0, _platform.isWindows)()
|
|
51
|
+
show: !(0, _platform.isWindows)(),
|
|
52
|
+
transparent: true
|
|
52
53
|
});
|
|
53
54
|
return function () {
|
|
54
55
|
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
@@ -59,14 +59,16 @@ var ConfirmElectronDialog = (0, _mobxReact.observer)(function (_ref) {
|
|
|
59
59
|
frame: false,
|
|
60
60
|
fullscreen: false,
|
|
61
61
|
maximizable: false,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
// TODO:
|
|
63
|
+
width: (params === null || params === void 0 ? void 0 : params.width) || 320,
|
|
64
|
+
height: (params === null || params === void 0 ? void 0 : params.height) || 168 + (params.closable || params.closable === undefined ? 16 : 0),
|
|
64
65
|
minWidth: 255,
|
|
65
66
|
minHeight: 160,
|
|
66
67
|
maxWidth: 620,
|
|
67
68
|
maxHeight: 700,
|
|
68
69
|
x: x + ((params === null || params === void 0 ? void 0 : params.x) || 0),
|
|
69
|
-
y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0)
|
|
70
|
+
y: y + ((params === null || params === void 0 ? void 0 : params.y) || 0),
|
|
71
|
+
transparent: true
|
|
70
72
|
});
|
|
71
73
|
case 9:
|
|
72
74
|
case "end":
|
|
@@ -21,6 +21,7 @@ var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog =
|
|
|
21
21
|
(0, _react.useEffect)(function () {
|
|
22
22
|
var node;
|
|
23
23
|
window.runtime.openRendererWindow('connection-gateway', function (dom, browserWindow) {
|
|
24
|
+
browserWindow.webContents.insertCSS("\n ::-webkit-scrollbar {\n display: none;\n }\n ");
|
|
24
25
|
browserRef.current = browserWindow;
|
|
25
26
|
browserWindow.focus();
|
|
26
27
|
_dialogs.dialogWindows.set(_constant.DialogKey.CONNECTION_GATEWAY, browserWindow);
|
|
@@ -43,7 +44,8 @@ var ConnectionGatewayElectronDialog = exports.ConnectionGatewayElectronDialog =
|
|
|
43
44
|
x: 0,
|
|
44
45
|
y: 0
|
|
45
46
|
},
|
|
46
|
-
resizable: false
|
|
47
|
+
resizable: false,
|
|
48
|
+
transparent: true
|
|
47
49
|
});
|
|
48
50
|
return function () {
|
|
49
51
|
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
@@ -22,6 +22,7 @@ var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = (0, _mob
|
|
|
22
22
|
(0, _react.useEffect)(function () {
|
|
23
23
|
var node;
|
|
24
24
|
window.runtime.openRendererWindow('device-setting', function (dom, browserWindow) {
|
|
25
|
+
browserWindow.webContents.insertCSS("\n ::-webkit-scrollbar {\n display: none;\n }\n ");
|
|
25
26
|
_dialogs.dialogWindows.set(_constant.DialogKey.DEVICE_SETTINGS, browserWindow);
|
|
26
27
|
node = dom;
|
|
27
28
|
if (store.currentDialogBounds.height) {
|
|
@@ -61,7 +62,8 @@ var DeviceSettingElectronDialog = exports.DeviceSettingElectronDialog = (0, _mob
|
|
|
61
62
|
minWidth: 580,
|
|
62
63
|
minHeight: 600,
|
|
63
64
|
maxWidth: 670,
|
|
64
|
-
maxHeight: 800
|
|
65
|
+
maxHeight: 800,
|
|
66
|
+
transparent: true
|
|
65
67
|
});
|
|
66
68
|
return function () {
|
|
67
69
|
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
@@ -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 OperationWaitingRoomDialog = (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', function (dom, browserWindow) {
|
|
45
|
+
node = dom;
|
|
46
|
+
// browserWindow.focus(); // 这里打开的confirm dialog 不会走 openRendererWindow 中的 focus 逻辑,所以单独 focus 一下
|
|
47
|
+
|
|
48
|
+
browserWindow.setBounds({
|
|
49
|
+
width: 445,
|
|
50
|
+
height: 237
|
|
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');
|
|
85
|
+
};
|
|
86
|
+
}, []);
|
|
87
|
+
return null;
|
|
88
|
+
});
|
|
89
|
+
var _default = exports["default"] = OperationWaitingRoomDialog;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.close-waiting-room-dialog {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
text-align: center;
|
|
7
|
+
background-color: white;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.close-waiting-room-dialog .fcr-dialog-title {
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
margin-bottom: 10px;
|
|
16
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.close-waiting-room-dialog .fcr-dialog-content {
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
font-size: 13px;
|
|
22
|
+
margin-bottom: 10px;
|
|
23
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
24
|
+
width: 90%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.close-waiting-room-dialog button {
|
|
28
|
+
width: 100%;
|
|
29
|
+
margin-bottom: 10px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.close-waiting-room-dialog .fcr-button-white {
|
|
33
|
+
background-color: var(--fcr_ui_scene_btn2);
|
|
34
|
+
color: var(--fcr_ui_scene_icontext2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.close-waiting-room-dialog .fcr-button-white:hover {
|
|
38
|
+
background-color: var(--fcr_ui_scene_btn2) !important;
|
|
39
|
+
color: var(--fcr_ui_scene_icontext2) !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fcr-dialog-buttons {
|
|
43
|
+
width: 90%;
|
|
44
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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.OperationWaitingRoomDialog = void 0;
|
|
31
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
32
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
33
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
34
|
+
var _mobxReact = require("mobx-react");
|
|
35
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
36
|
+
var _context3 = require("../../context");
|
|
37
|
+
var _reactRnd = require("react-rnd");
|
|
38
|
+
var _electron = _interopRequireDefault(require("./electron"));
|
|
39
|
+
var _platform = require("../../../../utilities/platform");
|
|
40
|
+
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
41
|
+
var _button = require("agora-ui-foundation/lib/components/button");
|
|
42
|
+
require("./index.css");
|
|
43
|
+
var _env = require("agora-foundation/lib/utilities/env");
|
|
44
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
45
|
+
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); }
|
|
46
|
+
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; }
|
|
47
|
+
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; }
|
|
48
|
+
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';
|
|
49
|
+
var CloseWaitingRoomDialogContent = (0, _mobxReact.observer)(function (_ref) {
|
|
50
|
+
var totalWaitingRoomUser = _ref.totalWaitingRoomUser;
|
|
51
|
+
var t = (0, _i18n.useI18n)();
|
|
52
|
+
var _useContext = (0, _react.useContext)(_context3.StoreContext),
|
|
53
|
+
moveToMainRoomAllMember = _useContext.moveToMainRoomAllMember,
|
|
54
|
+
closeWaitingRoomDialog = _useContext.closeWaitingRoomDialog;
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
56
|
+
className: "close-waiting-room-dialog",
|
|
57
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
58
|
+
className: "fcr-dialog-title",
|
|
59
|
+
children: t('fmt_waitingroom_mobile_setting_popup_label_close')
|
|
60
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
61
|
+
className: "fcr-dialog-content",
|
|
62
|
+
children: t('fmt_waitingroom_mobile_setting_popup_label_choose', {
|
|
63
|
+
reason1: totalWaitingRoomUser
|
|
64
|
+
})
|
|
65
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
|
+
className: "fcr-dialog-buttons",
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
68
|
+
size: "S",
|
|
69
|
+
styleType: "normal",
|
|
70
|
+
shape: "rounded",
|
|
71
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
72
|
+
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
73
|
+
while (1) switch (_context.prev = _context.next) {
|
|
74
|
+
case 0:
|
|
75
|
+
moveToMainRoomAllMember(true);
|
|
76
|
+
closeWaitingRoomDialog();
|
|
77
|
+
case 2:
|
|
78
|
+
case "end":
|
|
79
|
+
return _context.stop();
|
|
80
|
+
}
|
|
81
|
+
}, _callee);
|
|
82
|
+
})),
|
|
83
|
+
children: t('fmt_waitingroom_mobile_setting_popup_button_admit_all')
|
|
84
|
+
})
|
|
85
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
|
+
className: "fcr-dialog-buttons",
|
|
87
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
|
|
88
|
+
size: "S",
|
|
89
|
+
shape: "rounded",
|
|
90
|
+
styleType: "white",
|
|
91
|
+
onClick: /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
92
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
93
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
94
|
+
case 0:
|
|
95
|
+
moveToMainRoomAllMember(false);
|
|
96
|
+
closeWaitingRoomDialog();
|
|
97
|
+
case 2:
|
|
98
|
+
case "end":
|
|
99
|
+
return _context2.stop();
|
|
100
|
+
}
|
|
101
|
+
}, _callee2);
|
|
102
|
+
})),
|
|
103
|
+
children: t('fmt_waitingroom_mobile_setting_popup_button_cancel')
|
|
104
|
+
})
|
|
105
|
+
})]
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
var OperationWaitingRoomDialog = exports.OperationWaitingRoomDialog = (0, _mobxReact.observer)(function (_ref4) {
|
|
109
|
+
var params = _ref4.params;
|
|
110
|
+
var store = (0, _react.useContext)(_context3.StoreContext);
|
|
111
|
+
var containerWidth = window.innerWidth;
|
|
112
|
+
var containerHeight = window.innerHeight;
|
|
113
|
+
var _ref5 = (0, _env.isElectron)() ? window.runtime.browserWindow.getBounds() : {
|
|
114
|
+
x: document.body.offsetLeft,
|
|
115
|
+
y: document.body.offsetTop
|
|
116
|
+
},
|
|
117
|
+
offsetX = _ref5.x,
|
|
118
|
+
offsetY = _ref5.y;
|
|
119
|
+
var width = (params === null || params === void 0 ? void 0 : params.width) || 415;
|
|
120
|
+
var height = (params === null || params === void 0 ? void 0 : params.height) || 180;
|
|
121
|
+
var x = containerWidth / 2 - width / 2 + ((0, _platform.isWindows)() ? offsetX : 0);
|
|
122
|
+
var y = containerHeight / 2 - height / 2 + ((0, _platform.isWindows)() ? offsetY : 0);
|
|
123
|
+
if ((0, _env.isElectron)()) {
|
|
124
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_electron["default"], {
|
|
125
|
+
params: _objectSpread(_objectSpread({}, params), {}, {
|
|
126
|
+
x: x,
|
|
127
|
+
y: y
|
|
128
|
+
}),
|
|
129
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseWaitingRoomDialogContent, {
|
|
130
|
+
totalWaitingRoomUser: params.totalWaitingRoomUser
|
|
131
|
+
})
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_context3.StoreContext.Provider, {
|
|
135
|
+
value: store,
|
|
136
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRnd.Rnd, {
|
|
137
|
+
"default": {
|
|
138
|
+
x: x,
|
|
139
|
+
y: y,
|
|
140
|
+
width: width,
|
|
141
|
+
height: height
|
|
142
|
+
},
|
|
143
|
+
maxHeight: 700,
|
|
144
|
+
maxWidth: width,
|
|
145
|
+
minWidth: width,
|
|
146
|
+
minHeight: height,
|
|
147
|
+
bounds: '.fcr-confirm-dialog-wrapper_web',
|
|
148
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
149
|
+
className: "fcr-confirm-dialog-wrapper_web",
|
|
150
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(CloseWaitingRoomDialogContent, {
|
|
151
|
+
totalWaitingRoomUser: params.totalWaitingRoomUser
|
|
152
|
+
})
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
});
|
|
156
|
+
});
|
|
@@ -79,7 +79,8 @@ var ParticipantElectronDialog = exports.ParticipantElectronDialog = (0, _mobxRea
|
|
|
79
79
|
maxHeight: 700,
|
|
80
80
|
y: store.currentDialogBounds.y,
|
|
81
81
|
center: true,
|
|
82
|
-
show: !(0, _platform.isWindows)()
|
|
82
|
+
show: !(0, _platform.isWindows)(),
|
|
83
|
+
transparent: true
|
|
83
84
|
}));
|
|
84
85
|
return function () {
|
|
85
86
|
node && (0, _reactDom.unmountComponentAtNode)(node);
|
|
@@ -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
|
+
}
|