fcr-ui-scene 3.1.0 → 3.1.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/lib/base.d.ts +1 -0
- package/lib/common/event-store.d.ts +1 -0
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +140 -0
- package/lib/electron/default-options.d.ts +2 -0
- package/lib/electron/default-options.js +25 -0
- package/lib/electron/env.d.ts +5 -0
- package/lib/electron/env.js +13 -0
- package/lib/electron/index.d.ts +2 -0
- package/lib/electron/index.js +20 -0
- package/lib/electron/injections.d.ts +45 -0
- package/lib/electron/injections.js +689 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +63 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +35 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +57 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +112 -0
- package/lib/fragments/control-bar/index.js +11 -1
- package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -0
- package/lib/modules/action-bar/leave/assign-host.d.ts +1 -0
- package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -0
- package/lib/modules/action-bar/more/poppover-content.d.ts +1 -0
- package/lib/modules/chat/chat-select/index.d.ts +1 -0
- package/lib/modules/chat/demo-wrapper.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +1 -0
- package/lib/modules/device-pretest/index.d.ts +1 -0
- package/lib/modules/device-pretest/settings/video-effect.d.ts +1 -0
- package/lib/modules/invite/voip-invite.d.ts +1 -0
- package/lib/modules/layout/components/Aside.d.ts +1 -0
- package/lib/modules/layout/member-window/index.d.ts +1 -0
- package/lib/modules/layout/store.d.ts +1 -0
- package/lib/modules/whiteboard/index.d.ts +1 -0
- package/lib/plugins/browser-runtime-plugin.js +0 -3
- package/lib/runtime.d.ts +86 -0
- package/package.json +4 -3
- package/installer/icons/favicon.ico +0 -0
- package/installer/icons/favicon.png +0 -0
- package/installer/mac/entitlements.mac.plist +0 -16
- package/lib/common/device-streams-store.d.ts +0 -34
- package/lib/common/device-streams-store.js +0 -403
- package/lib/fragments/participant/context.d.ts +0 -3
- package/lib/fragments/participant/context.js +0 -9
- package/lib/fragments/participant/index.css +0 -20
- package/lib/fragments/participant/index.d.ts +0 -9
- package/lib/fragments/participant/index.js +0 -90
- package/lib/fragments/participant/room-control-drop-menu/index.css +0 -19
- package/lib/fragments/participant/room-control-drop-menu/index.d.ts +0 -2
- package/lib/fragments/participant/room-control-drop-menu/index.js +0 -134
- package/lib/fragments/participant/store.d.ts +0 -34
- package/lib/fragments/participant/store.js +0 -326
- package/lib/fragments/participant/view.d.ts +0 -2
- package/lib/fragments/participant/view.js +0 -86
- package/lib/fragments/state-bar/index.d.ts +0 -9
- package/lib/fragments/state-bar/index.js +0 -68
- package/lib/fragments/type.d.ts +0 -2
- package/lib/fragments/type.js +0 -6
- package/lib/modules/connection-gateway/components/computer/menu.d.ts +0 -0
- package/lib/modules/connection-gateway/components/computer/menu.js +0 -1
- package/lib/modules/device-settings/audio-settings/audio-settings.d.ts +0 -4
- package/lib/modules/device-settings/audio-settings/audio-settings.js +0 -297
- package/lib/modules/device-settings/audio-settings/index.css +0 -139
- package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +0 -2
- package/lib/modules/device-settings/audio-settings/microphone-detection.js +0 -68
- package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +0 -2
- package/lib/modules/device-settings/audio-settings/speaker-detection.js +0 -72
- package/lib/modules/device-settings/common/advance-link.d.ts +0 -3
- package/lib/modules/device-settings/common/advance-link.js +0 -27
- package/lib/modules/device-settings/common/index.css +0 -26
- package/lib/modules/device-settings/common/useNamespace.d.ts +0 -15
- package/lib/modules/device-settings/common/useNamespace.js +0 -66
- package/lib/modules/device-settings/context.d.ts +0 -3
- package/lib/modules/device-settings/context.js +0 -9
- package/lib/modules/device-settings/dialog-wrapper.d.ts +0 -2
- package/lib/modules/device-settings/dialog-wrapper.js +0 -110
- package/lib/modules/device-settings/general-settings/general-settings.d.ts +0 -4
- package/lib/modules/device-settings/general-settings/general-settings.js +0 -66
- package/lib/modules/device-settings/general-settings/index.css +0 -26
- package/lib/modules/device-settings/index.css +0 -109
- package/lib/modules/device-settings/index.d.ts +0 -21
- package/lib/modules/device-settings/index.dev.js +0 -112
- package/lib/modules/device-settings/index.js +0 -84
- package/lib/modules/device-settings/state/index.css +0 -211
- package/lib/modules/device-settings/state/index.d.ts +0 -4
- package/lib/modules/device-settings/state/index.js +0 -330
- package/lib/modules/device-settings/storage-settings/index.css +0 -91
- package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +0 -3
- package/lib/modules/device-settings/storage-settings/storage-settings.js +0 -84
- package/lib/modules/device-settings/store.d.ts +0 -205
- package/lib/modules/device-settings/store.js +0 -1035
- package/lib/modules/device-settings/video-settings/camera-select.d.ts +0 -2
- package/lib/modules/device-settings/video-settings/camera-select.js +0 -51
- package/lib/modules/device-settings/video-settings/index.css +0 -327
- package/lib/modules/device-settings/video-settings/local-video-player.d.ts +0 -3
- package/lib/modules/device-settings/video-settings/local-video-player.js +0 -37
- package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +0 -2
- package/lib/modules/device-settings/video-settings/mirror-toggle.js +0 -62
- package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +0 -9
- package/lib/modules/device-settings/video-settings/video-settings-basic.js +0 -177
- package/lib/modules/device-settings/video-settings/video-settings.d.ts +0 -6
- package/lib/modules/device-settings/video-settings/video-settings.js +0 -185
- package/lib/modules/device-settings/view.d.ts +0 -10
- package/lib/modules/device-settings/view.js +0 -193
- package/lib/modules/layout/components/UserWindow.d.ts +0 -8
- package/lib/modules/layout/components/UserWindow.js +0 -513
- package/lib/modules/layout/hooks.d.ts +0 -14
- package/lib/modules/layout/hooks.js +0 -48
- package/lib/modules/share-screen/context.d.ts +0 -3
- package/lib/modules/share-screen/context.js +0 -9
- package/lib/modules/whiteboard/i18n/config.d.ts +0 -1
- package/lib/modules/whiteboard/i18n/config.js +0 -15
- package/lib/modules/whiteboard/i18n/en/index.d.ts +0 -32
- package/lib/modules/whiteboard/i18n/en/index.js +0 -38
- package/lib/modules/whiteboard/i18n/zh/index.d.ts +0 -32
- package/lib/modules/whiteboard/i18n/zh/index.js +0 -38
- /package/lib/{modules/device-settings/index.dev.d.ts → electron/preload.d.ts} +0 -0
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = exports.VideoSettings = void 0;
|
|
8
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
require("core-js/modules/es.array.iterator.js");
|
|
12
|
-
require("core-js/modules/es.object.define-property.js");
|
|
13
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
14
|
-
require("core-js/modules/es.object.to-string.js");
|
|
15
|
-
require("core-js/modules/es.promise.js");
|
|
16
|
-
require("core-js/modules/es.string.iterator.js");
|
|
17
|
-
require("core-js/modules/es.weak-map.js");
|
|
18
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
19
|
-
var _checkbox = require("agora-ui-foundation/lib/components/checkbox");
|
|
20
|
-
var _dialog = require("agora-ui-foundation/lib/components/dialog");
|
|
21
|
-
require("agora-ui-foundation/lib/components/local-video-player/index.css");
|
|
22
|
-
var _mobxReact = require("mobx-react");
|
|
23
|
-
var _react = require("react");
|
|
24
|
-
var _useNamespace = require("../common/useNamespace");
|
|
25
|
-
var _context = require("../context");
|
|
26
|
-
require("./index.css");
|
|
27
|
-
var _videoEffect = require("../../device-pretest/settings/video-effect");
|
|
28
|
-
var _store = require("../store");
|
|
29
|
-
var _localVideoPlayer = require("agora-ui-foundation/lib/components/local-video-player");
|
|
30
|
-
var _virtualBackgroundSetting = require("../../device-pretest/settings/virtual-background-setting");
|
|
31
|
-
var _beauty = require("../../device-pretest/settings/beauty");
|
|
32
|
-
var _videoSettingsBasic = require("./video-settings-basic");
|
|
33
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
34
|
-
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); }
|
|
35
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(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; }
|
|
36
|
-
var LocalVideoPlayer = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
37
|
-
return Promise.resolve().then(function () {
|
|
38
|
-
return _interopRequireWildcard(require('agora-ui-foundation/lib/components/local-video-player'));
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
var VideoSettings = exports.VideoSettings = (0, _mobxReact.observer)(function () {
|
|
42
|
-
var ns = (0, _useNamespace.useNamespace)('device-settings-video');
|
|
43
|
-
var containerRef = (0, _react.useRef)(null);
|
|
44
|
-
var _useState = (0, _react.useState)(null),
|
|
45
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
46
|
-
containerDom = _useState2[0],
|
|
47
|
-
setContainerDom = _useState2[1];
|
|
48
|
-
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
49
|
-
config = _useContext.config,
|
|
50
|
-
toggleLocalMirror = _useContext.toggleLocalMirror,
|
|
51
|
-
isLocalMirrorEnabled = _useContext.isLocalMirrorEnabled,
|
|
52
|
-
isLocalEditBeautyOptions = _useContext.isLocalEditBeautyOptions,
|
|
53
|
-
setVideoOrientation = _useContext.setVideoOrientation,
|
|
54
|
-
setBeautyOptions = _useContext.setBeautyOptions,
|
|
55
|
-
currentBeautyKey = _useContext.currentBeautyKey,
|
|
56
|
-
beautyOptions = _useContext.beautyOptions,
|
|
57
|
-
toggleLocalMirrorPreview = _useContext.toggleLocalMirrorPreview,
|
|
58
|
-
cameraDeviceId = _useContext.cameraDeviceId,
|
|
59
|
-
cameraEnabled = _useContext.cameraEnabled,
|
|
60
|
-
startVideo = _useContext.startVideo,
|
|
61
|
-
stopVideo = _useContext.stopVideo,
|
|
62
|
-
showForceOpenEffectDialog = _useContext.showForceOpenEffectDialog,
|
|
63
|
-
handleForceOpenVideoEffect = _useContext.handleForceOpenVideoEffect,
|
|
64
|
-
handleCancelForceOpenVideoEffect = _useContext.handleCancelForceOpenVideoEffect,
|
|
65
|
-
currentVirtualBackgroundName = _useContext.currentVirtualBackgroundName,
|
|
66
|
-
enableVirtualBackground = _useContext.enableVirtualBackground,
|
|
67
|
-
setEditBeautyKey = _useContext.setEditBeautyKey,
|
|
68
|
-
enableBeautyEffect = _useContext.enableBeautyEffect,
|
|
69
|
-
setCameraDevice = _useContext.setCameraDevice,
|
|
70
|
-
cameraDeviceList = _useContext.cameraDeviceList,
|
|
71
|
-
enableBeauty = _useContext.enableBeauty;
|
|
72
|
-
var _useState3 = (0, _react.useState)(beautyOptions[currentBeautyKey] || _store.DEFAULT_BEAUTY_VALUE),
|
|
73
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
74
|
-
currentEditValue = _useState4[0],
|
|
75
|
-
setCurrentEditValue = _useState4[1];
|
|
76
|
-
var _useState5 = (0, _react.useState)(_localVideoPlayer.VideoViewType.SELFIE_VIEW),
|
|
77
|
-
_useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
|
|
78
|
-
currentVideoViewType = _useState6[0],
|
|
79
|
-
setCurrentVideoViewType = _useState6[1];
|
|
80
|
-
var currentBeautyKeyRef = (0, _react.useRef)(currentBeautyKey);
|
|
81
|
-
(0, _react.useEffect)(function () {
|
|
82
|
-
if (!isLocalMirrorEnabled) {
|
|
83
|
-
setCurrentVideoViewType(_localVideoPlayer.VideoViewType.SELFIE_VIEW);
|
|
84
|
-
}
|
|
85
|
-
}, [isLocalMirrorEnabled]);
|
|
86
|
-
(0, _react.useEffect)(function () {
|
|
87
|
-
setContainerDom(containerRef.current);
|
|
88
|
-
}, []);
|
|
89
|
-
(0, _react.useEffect)(function () {
|
|
90
|
-
setCurrentEditValue(beautyOptions[currentBeautyKey] || _store.DEFAULT_BEAUTY_VALUE);
|
|
91
|
-
currentBeautyKeyRef.current = currentBeautyKey;
|
|
92
|
-
}, [currentBeautyKey]);
|
|
93
|
-
var handleBeautyValueChange = function handleBeautyValueChange(value) {
|
|
94
|
-
setCurrentEditValue(value);
|
|
95
|
-
setBeautyOptions((0, _defineProperty2["default"])({}, currentBeautyKeyRef.current, value));
|
|
96
|
-
};
|
|
97
|
-
var handleResetBeautyValueChange = function handleResetBeautyValueChange() {
|
|
98
|
-
setCurrentEditValue(_store.DEFAULT_BEAUTY_VALUE);
|
|
99
|
-
setBeautyOptions((0, _defineProperty2["default"])({}, currentBeautyKeyRef.current, _store.DEFAULT_BEAUTY_VALUE));
|
|
100
|
-
};
|
|
101
|
-
var handleVideoViewChange = function handleVideoViewChange(key) {
|
|
102
|
-
toggleLocalMirrorPreview(key === _localVideoPlayer.VideoViewType.SELFIE_VIEW);
|
|
103
|
-
setCurrentVideoViewType(key);
|
|
104
|
-
};
|
|
105
|
-
var _useState7 = (0, _react.useState)('basic'),
|
|
106
|
-
_useState8 = (0, _slicedToArray2["default"])(_useState7, 2),
|
|
107
|
-
activeTab = _useState8[0],
|
|
108
|
-
setActiveTab = _useState8[1];
|
|
109
|
-
var handleActiveTab = function handleActiveTab(tabKey) {
|
|
110
|
-
setActiveTab(tabKey);
|
|
111
|
-
};
|
|
112
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
113
|
-
className: ns.b(),
|
|
114
|
-
ref: containerRef,
|
|
115
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
116
|
-
fallback: 'loading...',
|
|
117
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(LocalVideoPlayer, {
|
|
118
|
-
isLocalMirrorEnabled: isLocalMirrorEnabled,
|
|
119
|
-
userName: (config === null || config === void 0 ? void 0 : config.userName) || '',
|
|
120
|
-
isLocalEditBeautyOptions: isLocalEditBeautyOptions,
|
|
121
|
-
handleResetBeautyValueChange: handleResetBeautyValueChange,
|
|
122
|
-
currentEditValue: currentEditValue,
|
|
123
|
-
containerDom: containerDom,
|
|
124
|
-
handleBeautyValueChange: handleBeautyValueChange,
|
|
125
|
-
setVideoOrientation: setVideoOrientation,
|
|
126
|
-
cameraDeviceId: cameraDeviceId,
|
|
127
|
-
cameraEnabled: cameraEnabled,
|
|
128
|
-
startLocalVideo: function startLocalVideo(view) {
|
|
129
|
-
startVideo(isLocalMirrorEnabled, view);
|
|
130
|
-
},
|
|
131
|
-
stopLocalVideo: stopVideo,
|
|
132
|
-
currentVideoViewType: currentVideoViewType,
|
|
133
|
-
handleVideoViewChange: handleVideoViewChange
|
|
134
|
-
})
|
|
135
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_videoEffect.VideoEffect, {
|
|
136
|
-
currentTab: activeTab,
|
|
137
|
-
handleActiveTab: handleActiveTab,
|
|
138
|
-
tabContents: {
|
|
139
|
-
'basic': /*#__PURE__*/(0, _jsxRuntime.jsx)(_videoSettingsBasic.VideoSettingsBasic, {
|
|
140
|
-
cameraDeviceId: cameraDeviceId !== null && cameraDeviceId !== void 0 ? cameraDeviceId : '',
|
|
141
|
-
setCameraDevice: setCameraDevice,
|
|
142
|
-
cameraDeviceList: cameraDeviceList
|
|
143
|
-
}),
|
|
144
|
-
'virtual-background': /*#__PURE__*/(0, _jsxRuntime.jsx)(_virtualBackgroundSetting.VirtualBackgroundSetting, {
|
|
145
|
-
currentVirtualBackgroundName: currentVirtualBackgroundName,
|
|
146
|
-
enableVirtualBackground: enableVirtualBackground
|
|
147
|
-
}),
|
|
148
|
-
'beauty-filter': /*#__PURE__*/(0, _jsxRuntime.jsx)(_beauty.Beauty, {
|
|
149
|
-
enableBeauty: enableBeauty,
|
|
150
|
-
setEditBeautyKey: setEditBeautyKey,
|
|
151
|
-
currentBeautyKey: currentBeautyKey,
|
|
152
|
-
enableBeautyEffect: enableBeautyEffect,
|
|
153
|
-
beautySettingOption: beautyOptions
|
|
154
|
-
})
|
|
155
|
-
},
|
|
156
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
-
className: ns.e('mirror-video'),
|
|
158
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.FcrCheckbox, {
|
|
159
|
-
label: "\u955C\u50CF\u6211\u7684\u89C6\u9891",
|
|
160
|
-
checked: isLocalMirrorEnabled,
|
|
161
|
-
onChange: function onChange(enable) {
|
|
162
|
-
toggleLocalMirror(enable);
|
|
163
|
-
if (enable) {
|
|
164
|
-
setCurrentVideoViewType(_localVideoPlayer.VideoViewType.SELFIE_VIEW);
|
|
165
|
-
} else {
|
|
166
|
-
setCurrentVideoViewType(_localVideoPlayer.VideoViewType.CAMERA_VIEW);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
})
|
|
170
|
-
})
|
|
171
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_dialog.FcrBasicConfirmDialog, {
|
|
172
|
-
visible: showForceOpenEffectDialog,
|
|
173
|
-
onOk: handleForceOpenVideoEffect,
|
|
174
|
-
getContainer: function getContainer() {
|
|
175
|
-
return containerRef.current;
|
|
176
|
-
},
|
|
177
|
-
onCancel: handleCancelForceOpenVideoEffect,
|
|
178
|
-
title: "\u8BBE\u5907\u6027\u80FD\u8FC7\u4F4E\uFF0C\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u7279\u6548",
|
|
179
|
-
text: "\u4F60\u7684\u8BBE\u5907\u6027\u80FD\u8BC4\u5206\u4F4E\u4E8E\u6700\u4F73\u4F53\u9A8C\u7684\u8981\u6C42\uFF0C\u5982\u679C\u542F\u7528\u5F53\u524D\u529F\u80FD\u53EF\u80FD\u4F1A\u5BFC\u81F4\u8BBE\u5907\u53D1\u70ED\u548C\u5361\u987F",
|
|
180
|
-
cancelText: "\u53D6\u6D88",
|
|
181
|
-
okText: "\u786E\u5B9A\u5F00\u542F"
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
var _default = exports["default"] = VideoSettings;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
import './state/index.css';
|
|
4
|
-
import './video-settings/index.css';
|
|
5
|
-
import './audio-settings/index.css';
|
|
6
|
-
import './storage-settings/index.css';
|
|
7
|
-
import 'agora-ui-foundation/lib/components/tabs/index.css';
|
|
8
|
-
import 'agora-ui-foundation/lib/components/volume-indicator/index.css';
|
|
9
|
-
import 'agora-ui-foundation/lib/components/slider/index.css';
|
|
10
|
-
export declare const DeviceSettingsView: FC;
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.DeviceSettingsView = void 0;
|
|
8
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
require("core-js/modules/es.array.iterator.js");
|
|
11
|
-
require("core-js/modules/es.object.define-property.js");
|
|
12
|
-
require("core-js/modules/es.object.get-own-property-descriptor.js");
|
|
13
|
-
require("core-js/modules/es.object.to-string.js");
|
|
14
|
-
require("core-js/modules/es.promise.js");
|
|
15
|
-
require("core-js/modules/es.string.iterator.js");
|
|
16
|
-
require("core-js/modules/es.weak-map.js");
|
|
17
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
18
|
-
var _react = require("react");
|
|
19
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
20
|
-
var _env = require("agora-foundation/lib/utilities/env");
|
|
21
|
-
var _i18n = require("agora-ui-foundation/lib/i18n");
|
|
22
|
-
var _icon = require("agora-ui-foundation/lib/components/icon");
|
|
23
|
-
var _type = require("agora-ui-foundation/lib/components/icon/type");
|
|
24
|
-
var _useNamespace = require("./common/useNamespace");
|
|
25
|
-
var _mobxReact = require("mobx-react");
|
|
26
|
-
var _context = require("./context");
|
|
27
|
-
var _store = require("./store");
|
|
28
|
-
require("./index.css");
|
|
29
|
-
require("./state/index.css");
|
|
30
|
-
require("./video-settings/index.css");
|
|
31
|
-
require("./audio-settings/index.css");
|
|
32
|
-
require("./storage-settings/index.css");
|
|
33
|
-
require("agora-ui-foundation/lib/components/tabs/index.css");
|
|
34
|
-
require("agora-ui-foundation/lib/components/volume-indicator/index.css");
|
|
35
|
-
require("agora-ui-foundation/lib/components/slider/index.css");
|
|
36
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
37
|
-
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); }
|
|
38
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != (0, _typeof2["default"])(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; } // import { State } from './state';
|
|
39
|
-
// import { AudioSettings } from './audio-settings/audio-settings';
|
|
40
|
-
// import { VideoSettings } from './video-settings/video-settings';
|
|
41
|
-
// import { StorageSettings } from './storage-settings/storage-settings';
|
|
42
|
-
// import { State } from './state';
|
|
43
|
-
var State = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
44
|
-
return Promise.resolve().then(function () {
|
|
45
|
-
return _interopRequireWildcard(require('./state'));
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
var AudioSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
49
|
-
return Promise.resolve().then(function () {
|
|
50
|
-
return _interopRequireWildcard(require('./audio-settings/audio-settings'));
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
var VideoSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
54
|
-
return Promise.resolve().then(function () {
|
|
55
|
-
return _interopRequireWildcard(require('./video-settings/video-settings'));
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
var StorageSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
59
|
-
return Promise.resolve().then(function () {
|
|
60
|
-
return _interopRequireWildcard(require('./storage-settings/storage-settings'));
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
var GeneralSettings = /*#__PURE__*/(0, _react.lazy)(function () {
|
|
64
|
-
return Promise.resolve().then(function () {
|
|
65
|
-
return _interopRequireWildcard(require('./general-settings/general-settings'));
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
var tabContents = (0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])((0, _defineProperty2["default"])({}, _store.DeviceSettingTab.GENERAL, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
69
|
-
fallback: 'loading...',
|
|
70
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(GeneralSettings, {})
|
|
71
|
-
})), _store.DeviceSettingTab.AUDIO, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
72
|
-
fallback: 'loading...',
|
|
73
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AudioSettings, {})
|
|
74
|
-
})), _store.DeviceSettingTab.VIDEO, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
75
|
-
fallback: 'loading...',
|
|
76
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(VideoSettings, {})
|
|
77
|
-
})), _store.DeviceSettingTab.STORAGE, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
78
|
-
fallback: 'loading...',
|
|
79
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StorageSettings, {})
|
|
80
|
-
})), _store.DeviceSettingTab.STATE, /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Suspense, {
|
|
81
|
-
fallback: 'loading...',
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(State, {})
|
|
83
|
-
}));
|
|
84
|
-
var DeviceSettingsView = exports.DeviceSettingsView = (0, _mobxReact.observer)(function () {
|
|
85
|
-
var _useContext = (0, _react.useContext)(_context.StoreContext),
|
|
86
|
-
dialogConfig = _useContext.dialogConfig,
|
|
87
|
-
setDialogConfig = _useContext.setDialogConfig;
|
|
88
|
-
var t = (0, _i18n.useI18n)();
|
|
89
|
-
var ns = (0, _useNamespace.useNamespace)('device-settings');
|
|
90
|
-
var getListItemCls = function getListItemCls(tabKey) {
|
|
91
|
-
return (0, _classnames["default"])(ns.e('nav-list-item'), ns.is('active', dialogConfig.activeTab === tabKey));
|
|
92
|
-
};
|
|
93
|
-
var getSurroundingCls = function getSurroundingCls(color) {
|
|
94
|
-
return (0, _classnames["default"])(ns.e('surrounding'), ns.em('surrounding', color));
|
|
95
|
-
};
|
|
96
|
-
var tabClickHandler = function tabClickHandler(tabKey) {
|
|
97
|
-
return function () {
|
|
98
|
-
setDialogConfig({
|
|
99
|
-
activeTab: tabKey
|
|
100
|
-
});
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
104
|
-
className: ns.b(),
|
|
105
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
106
|
-
className: ns.e('nav'),
|
|
107
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("ul", {
|
|
108
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
109
|
-
className: getListItemCls(_store.DeviceSettingTab.GENERAL),
|
|
110
|
-
onClick: tabClickHandler(_store.DeviceSettingTab.GENERAL),
|
|
111
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
-
className: getSurroundingCls('orange'),
|
|
113
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
114
|
-
type: _type.FcrIconType.FCR_SETTING,
|
|
115
|
-
colors: {
|
|
116
|
-
iconPrimary: 'white'
|
|
117
|
-
},
|
|
118
|
-
size: 24
|
|
119
|
-
})
|
|
120
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
121
|
-
children: "\u5E38\u89C4\u8BBE\u7F6E"
|
|
122
|
-
})]
|
|
123
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
124
|
-
className: getListItemCls(_store.DeviceSettingTab.AUDIO),
|
|
125
|
-
onClick: tabClickHandler(_store.DeviceSettingTab.AUDIO),
|
|
126
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
127
|
-
className: getSurroundingCls('green'),
|
|
128
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
129
|
-
type: _type.FcrIconType.FCR_MUTE,
|
|
130
|
-
colors: {
|
|
131
|
-
iconPrimary: 'white'
|
|
132
|
-
},
|
|
133
|
-
size: 24
|
|
134
|
-
})
|
|
135
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
136
|
-
children: t('device_option_voice')
|
|
137
|
-
})]
|
|
138
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
139
|
-
className: getListItemCls(_store.DeviceSettingTab.VIDEO),
|
|
140
|
-
onClick: tabClickHandler(_store.DeviceSettingTab.VIDEO),
|
|
141
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
142
|
-
className: getSurroundingCls('purple'),
|
|
143
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
144
|
-
type: _type.FcrIconType.FCR_CAMERA,
|
|
145
|
-
colors: {
|
|
146
|
-
iconPrimary: 'white'
|
|
147
|
-
},
|
|
148
|
-
size: 24
|
|
149
|
-
})
|
|
150
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
151
|
-
children: t('device_option_video')
|
|
152
|
-
})]
|
|
153
|
-
}), (0, _env.isElectron)() && /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
154
|
-
className: getListItemCls(_store.DeviceSettingTab.STORAGE),
|
|
155
|
-
onClick: tabClickHandler(_store.DeviceSettingTab.STORAGE),
|
|
156
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
157
|
-
className: getSurroundingCls('storage'),
|
|
158
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
159
|
-
style: {
|
|
160
|
-
width: 24,
|
|
161
|
-
height: 22,
|
|
162
|
-
borderRadius: 6,
|
|
163
|
-
display: 'inline-block'
|
|
164
|
-
}
|
|
165
|
-
})
|
|
166
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
167
|
-
children: t('device_option_storage')
|
|
168
|
-
})]
|
|
169
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
170
|
-
className: getListItemCls(_store.DeviceSettingTab.STATE),
|
|
171
|
-
onClick: tabClickHandler(_store.DeviceSettingTab.STATE),
|
|
172
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
173
|
-
className: getSurroundingCls('blue'),
|
|
174
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
|
|
175
|
-
type: _type.FcrIconType.FCR_COMPUTERDATA,
|
|
176
|
-
colors: {
|
|
177
|
-
iconPrimary: 'white'
|
|
178
|
-
},
|
|
179
|
-
size: 24
|
|
180
|
-
})
|
|
181
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
182
|
-
children: "\u8D28\u91CF\u7EDF\u8BA1"
|
|
183
|
-
})]
|
|
184
|
-
})]
|
|
185
|
-
})
|
|
186
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
187
|
-
className: (0, _classnames["default"])(ns.e('tab-content-wrapper'), ns.is('tab-content-video-wrapper', dialogConfig.activeTab === 'video'), {
|
|
188
|
-
'is-electron': (0, _env.isElectron)()
|
|
189
|
-
}),
|
|
190
|
-
children: tabContents[dialogConfig.activeTab]
|
|
191
|
-
})]
|
|
192
|
-
});
|
|
193
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { LayoutType } from '../type';
|
|
2
|
-
export interface UserWindowProps {
|
|
3
|
-
id: string;
|
|
4
|
-
type: LayoutType;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const UserWindow: ({ type, id, width, height }: UserWindowProps) => import("react/jsx-runtime").JSX.Element | null;
|