fcr-ui-scene 3.8.0-alpha → 3.8.1-alpha
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.js +2 -2
- package/lib/electron/bootstrap-sdk.js +6 -6
- package/lib/electron/exit-codes.js +11 -11
- package/lib/electron/hang-detection/manager.js +4 -4
- package/lib/electron/ipc-protocol.js +12 -12
- package/lib/electron/process-manager/event-manager.js +30 -30
- package/lib/electron/process-manager/index.js +88 -88
- package/lib/electron/process-manager/state-manager.js +57 -57
- package/lib/electron/process-manager/types.js +16 -16
- package/lib/electron/sdk-helper.js +3 -3
- package/lib/electron/window-proxy/browser-window-proxy.js +13 -13
- package/lib/electron/window-proxy/main-process-handler.js +14 -14
- package/lib/fragments/annotation/style.css +9 -9
- package/lib/fragments/annotation/toolbar/components/item/style.css +45 -45
- package/lib/fragments/annotation/toolbar/components/panel/style.css +24 -24
- package/lib/fragments/annotation/toolbar/components/tips/style.css +19 -19
- package/lib/fragments/annotation/toolbar/style.css +55 -55
- package/lib/fragments/whiteboard/cursor.css +77 -77
- package/lib/fragments/whiteboard/store.js +1 -1
- package/lib/fragments/whiteboard/style.css +4 -4
- package/lib/global.css +62 -62
- package/lib/global.d.ts +27 -27
- package/lib/modules/action-bar/components/chat/index.css +88 -88
- package/lib/modules/action-bar/components/more/index.css +114 -114
- package/lib/modules/action-bar/components/notification-bar/components/interpreter/index.css +58 -58
- package/lib/modules/action-bar/components/notification-bar/components/virtual-image/index.css +56 -56
- package/lib/modules/action-bar/components/notification-bar/index.css +74 -74
- package/lib/modules/action-bar/components/participants/index.css +21 -21
- package/lib/modules/action-bar/components/record/index.css +39 -39
- package/lib/modules/action-bar/components/trigger-output-language/index.css +86 -86
- package/lib/modules/action-bar/components/trigger-subscribe-language/guide-tooltip/index.css +22 -22
- package/lib/modules/action-bar/index.css +358 -358
- package/lib/modules/action-bar/main-scene/view.js +3 -3
- package/lib/modules/audio-stream/index.js +3 -3
- package/lib/modules/caption/draggable-container/index.css +10 -10
- package/lib/modules/caption/draggable-container/index.js +34 -12
- package/lib/modules/caption/store.d.ts +1 -4
- package/lib/modules/caption/store.js +10 -18
- package/lib/modules/caption/view.css +158 -158
- package/lib/modules/caption/view.js +16 -27
- package/lib/modules/chat/components/chat-bar/index.css +89 -89
- package/lib/modules/chat/components/chat-select/index.css +185 -185
- package/lib/modules/chat/index.css +124 -124
- package/lib/modules/chat/store.d.ts +1 -0
- package/lib/modules/chat/store.js +2 -2
- package/lib/modules/components/apps/app-item/index.css +49 -49
- package/lib/modules/components/apps/index.css +9 -9
- package/lib/modules/components/caption-menu/index.css +58 -58
- package/lib/modules/components/caption-menu/index.d.ts +2 -0
- package/lib/modules/components/caption-menu/index.js +13 -10
- package/lib/modules/components/caption-menu/participants-privilege-control-options.js +5 -19
- package/lib/modules/components/caption-menu/steps/index.css +73 -73
- package/lib/modules/components/caption-menu/translation-setting-options.js +31 -24
- package/lib/modules/components/control-bar/components/loading/index.css +76 -76
- package/lib/modules/components/control-bar/components/progress/style.css +51 -51
- package/lib/modules/components/control-bar/components/switch-theme/index.css +101 -101
- package/lib/modules/components/control-bar/index.css +99 -99
- package/lib/modules/components/device-control/index.css +177 -177
- package/lib/modules/components/leave-meeting/components/index.css +151 -151
- package/lib/modules/components/leave-meeting/style.css +9 -9
- package/lib/modules/components/member-window/components/member-actions/store.js +22 -22
- package/lib/modules/components/member-window/index.css +502 -502
- package/lib/modules/components/security-menu/index.css +42 -42
- package/lib/modules/components/tab-frame/index.css +40 -40
- package/lib/modules/components/toolbar/components/item/style.css +94 -94
- package/lib/modules/components/toolbar/components/panel/style.css +86 -86
- package/lib/modules/components/toolbar/style.css +85 -85
- package/lib/modules/connection-gateway/components/computer/index.css +12 -12
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.css +36 -36
- package/lib/modules/connection-gateway/components/phone/components/calling/index.css +72 -72
- package/lib/modules/connection-gateway/components/phone/components/remeber/index.css +10 -10
- package/lib/modules/connection-gateway/components/phone/components/useing/index.css +46 -46
- package/lib/modules/connection-gateway/components/phone/index.css +49 -49
- package/lib/modules/connection-gateway/index.css +6 -6
- package/lib/modules/control-bar/components/carmera/index.js +7 -39
- package/lib/modules/control-bar/components/cloud-recording-buttons.js +18 -33
- package/lib/modules/control-bar/components/meeting-details/index.css +133 -133
- package/lib/modules/control-bar/components/microphone/index.js +3 -43
- package/lib/modules/control-bar/components/more-actions/index.css +103 -103
- package/lib/modules/control-bar/components/share-audio/index.css +90 -90
- package/lib/modules/control-bar/components/share-audio/index.d.ts +2 -0
- package/lib/modules/control-bar/components/share-audio/index.js +4 -10
- package/lib/modules/control-bar/components/share-state-nav/index.css +79 -79
- package/lib/modules/control-bar/hooks.d.ts +1 -0
- package/lib/modules/control-bar/hooks.js +140 -1
- package/lib/modules/control-bar/index.css +340 -340
- package/lib/modules/control-bar/index.js +4 -4
- package/lib/modules/control-bar/store.d.ts +3 -4
- package/lib/modules/control-bar/store.js +37 -30
- package/lib/modules/control-bar/type.d.ts +3 -0
- package/lib/modules/control-bar/view.js +40 -57
- package/lib/modules/device-pretest/index.css +123 -123
- package/lib/modules/dialog/components/confirm/index.css +24 -24
- package/lib/modules/dialog/components/confirm/index.js +0 -1
- package/lib/modules/dialog/components/dialog-container/index.css +112 -112
- package/lib/modules/dialog/components/dialog-container/index.js +1 -0
- package/lib/modules/dialog/dialogs/confirm/index.css +24 -24
- package/lib/modules/dialog/dialogs/device-setting/index.css +26 -26
- package/lib/modules/dialog/dialogs/interpreter/index.css +30 -30
- package/lib/modules/dialog/dialogs/mute-all/index.css +20 -20
- package/lib/modules/dialog/dialogs/system-preference/index.css +52 -52
- package/lib/modules/dialog/dialogs/widget/index.js +4 -4
- package/lib/modules/dialog/index.css +56 -56
- package/lib/modules/event-toast/index.css +25 -25
- package/lib/modules/event-toast/index.js +7 -1
- package/lib/modules/interpreter/action/add-btn/index.css +4 -4
- package/lib/modules/interpreter/action/delete-btn/index.css +14 -14
- package/lib/modules/interpreter/action/switch-btn/index.css +3 -3
- package/lib/modules/interpreter/dialog-content/index.css +33 -33
- package/lib/modules/interpreter/footer/index.css +11 -11
- package/lib/modules/interpreter/index.css +4 -4
- package/lib/modules/interpreter/interpreter-list/index.css +8 -8
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +46 -46
- package/lib/modules/interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +46 -46
- package/lib/modules/interpreter/interpreter-list/interpreter-item/index.css +32 -32
- package/lib/modules/interpreter/loading-wrapper/index.css +53 -53
- package/lib/modules/invite/components/voip-invite.css +26 -26
- package/lib/modules/invite/index.css +331 -331
- package/lib/modules/layout/components/CommonVideoRenderer.js +4 -4
- package/lib/modules/layout/components/index.css +653 -653
- package/lib/modules/layout/index.css +59 -59
- package/lib/modules/layout/store.base.d.ts +1 -1
- package/lib/modules/layout/store.base.js +5 -5
- package/lib/modules/layout/store.electron.d.ts +0 -1
- package/lib/modules/layout/store.electron.js +37 -133
- package/lib/modules/layout/type.js +5 -5
- package/lib/modules/notification/index.css +77 -77
- package/lib/modules/notification/interpreter-status/index.css +76 -76
- package/lib/modules/participant/components/confirm-input/index.css +4 -4
- package/lib/modules/participant/components/participants/components/footer/components/drop-menu/index.css +83 -83
- package/lib/modules/participant/components/participants/components/render-user/components/attendee/index.css +87 -87
- package/lib/modules/participant/index.css +102 -102
- package/lib/modules/participant/store.base.js +183 -185
- package/lib/modules/pc-audio-connect/index.css +12 -12
- package/lib/modules/phone-audio-connect/components/callinfo/index.css +36 -36
- package/lib/modules/phone-audio-connect/components/calling/index.css +72 -72
- package/lib/modules/phone-audio-connect/components/remeber/index.css +10 -10
- package/lib/modules/phone-audio-connect/components/useing/index.css +46 -46
- package/lib/modules/phone-audio-connect/index.css +56 -56
- package/lib/modules/secondary-window/store.js +8 -10
- package/lib/modules/setting/audio-settings/index.css +195 -195
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.d.ts +28 -0
- package/lib/modules/setting/audio-whiteList/audio-device-adaptation.js +43 -7
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.d.ts +3 -14
- package/lib/modules/setting/audio-whiteList/audio-whiteList-manager.js +51 -30
- package/lib/modules/setting/caption_and_transcribing/index.css +88 -88
- package/lib/modules/setting/general-settings/index.css +41 -41
- package/lib/modules/setting/index.css +112 -112
- package/lib/modules/setting/index.js +4 -2
- package/lib/modules/setting/minutes-settings/index.css +65 -65
- package/lib/modules/setting/state/index.css +207 -207
- package/lib/modules/setting/storage-settings/index.css +91 -91
- package/lib/modules/setting/store.base.d.ts +5 -3
- package/lib/modules/setting/store.base.js +64 -43
- package/lib/modules/setting/store.electron.d.ts +1 -1
- package/lib/modules/setting/store.electron.js +3 -7
- package/lib/modules/setting/translate-settings/index.css +47 -47
- package/lib/modules/setting/video-settings/index.css +357 -357
- package/lib/modules/setting/view.js +3 -2
- package/lib/modules/share-screen/components/control-bar/index.css +75 -75
- package/lib/modules/share-screen/components/selection/index.css +73 -73
- package/lib/modules/share-screen/components/share-state-bar/index.css +76 -76
- package/lib/modules/share-screen/index.js +10 -10
- package/lib/modules/share-screen/store.base.js +2 -2
- package/lib/modules/share-screen/store.electron.js +51 -23
- package/lib/modules/state-bar/assets/fcr_grid_big.svg +3 -3
- package/lib/modules/state-bar/assets/fcr_listontop_big.svg +3 -3
- package/lib/modules/state-bar/index.css +706 -706
- package/lib/modules/state-bar/main-scene/store.base.js +2 -2
- package/lib/modules/state-bar/meeting-detail.css +137 -137
- package/lib/modules/state-bar/meeting-network-state.css +150 -150
- package/lib/modules/state-bar/waiting-scene/store.base.js +2 -2
- package/lib/modules/subtitles-history/components/list-item.js +4 -7
- package/lib/modules/subtitles-history/components/settings/index.css +5 -5
- package/lib/modules/subtitles-history/index.css +129 -129
- package/lib/modules/subtitles-history/store.base.d.ts +3 -1
- package/lib/modules/subtitles-history/store.base.js +11 -1
- package/lib/modules/video-window/components/members/index.css +51 -51
- package/lib/modules/video-window/components/speaking/index.css +86 -86
- package/lib/modules/video-window/components/topControl/index.css +35 -35
- package/lib/modules/video-window/index.css +21 -21
- package/lib/modules/video-window/popover-watcher.js +3 -3
- package/lib/modules/video-window/store.js +10 -10
- package/lib/modules/waiting-room-layout/index.css +96 -96
- package/lib/modules/whiteboard/components/control-bar/index.css +52 -52
- package/lib/modules/whiteboard/components/loading/index.css +76 -76
- package/lib/modules/whiteboard/components/multi-window/index.css +63 -63
- package/lib/modules/whiteboard/components/pagination/index.css +228 -228
- package/lib/modules/whiteboard/components/progress/style.css +51 -51
- package/lib/modules/whiteboard/components/switch-theme/index.css +99 -99
- package/lib/modules/whiteboard/components/toolbar/style.css +591 -591
- package/lib/modules/whiteboard/style.css +140 -140
- package/lib/modules/widget/index.css +9 -9
- package/lib/object-manager.js +8 -8
- package/lib/plugins/module-dev-plugin.js +11 -11
- package/lib/providers/ability-provider.js +17 -17
- package/lib/providers/board-share/struct.js +6 -6
- package/lib/providers/dialog/provider.base.js +2 -2
- package/lib/providers/dialog/type.js +3 -3
- package/lib/providers/multi-display-provider.js +4 -4
- package/lib/providers/privilege-provider.js +7 -7
- package/lib/providers/screen-share/provider.base.d.ts +2 -13
- package/lib/providers/screen-share/provider.base.js +28 -35
- package/lib/providers/screen-share/provider.electron.d.ts +0 -5
- package/lib/providers/screen-share/provider.electron.js +31 -18
- package/lib/providers/screen-share/stream-state-sync.js +18 -18
- package/lib/providers/screen-share/struct.js +24 -24
- package/lib/providers/screen-share/type.d.ts +0 -16
- package/lib/providers/stt-provider/stt-provider.d.ts +3 -4
- package/lib/providers/stt-provider/stt-provider.js +145 -146
- package/lib/providers/stt-provider/type.d.ts +2 -10
- package/lib/providers/stt-provider/type.js +3 -3
- package/lib/providers/window/main-window.js +2 -2
- package/lib/providers/window/provider.js +5 -5
- package/lib/providers/window/renderer-window.js +2 -2
- package/lib/schema.js +26 -26
- package/lib/shared-data/meeting-time.js +8 -8
- package/lib/shared-data/setting.js +3 -3
- package/lib/translations/enUS.d.ts +12 -1
- package/lib/translations/enUS.js +22 -19
- package/lib/translations/zhCN.d.ts +12 -1
- package/lib/translations/zhCN.js +20 -17
- package/lib/type.js +21 -21
- package/lib/ui-scene-switch.js +2 -2
- package/lib/utilities/constant.js +6 -6
- package/lib/utilities/renderer.js +8 -8
- package/lib/utilities/shared-storage.js +2 -2
- package/lib/utilities/tools.js +14 -14
- package/package.json +78 -79
- package/public/assets/fcr_chat_reddot.svg +5 -5
- package/public/assets/fcr_grid_big.svg +3 -3
- package/public/assets/fcr_leave2.svg +58 -58
- package/public/assets/fcr_listontop_big.svg +3 -3
- package/public/assets/step-gradient.svg +10 -10
- package/public/fragment.html +10 -10
- package/public/index.html +183 -183
- package/public/meeting-manager.js +405 -405
|
@@ -77,6 +77,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
77
77
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
78
78
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
79
79
|
var _logger = require("../../../utilities/logger");
|
|
80
|
+
var _type = require("../../../type");
|
|
80
81
|
var _audioDeviceAdaptation = require("./audio-device-adaptation");
|
|
81
82
|
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; }
|
|
82
83
|
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; }
|
|
@@ -87,15 +88,11 @@ var STORAGE_KEY_WHITE_LIST_INITIALIZED = 'fcr_whitelist_device_initialized';
|
|
|
87
88
|
var DEFAULT_DEVICE_ID = 'default_device_id';
|
|
88
89
|
// Default values for non-white list devices
|
|
89
90
|
var DEFAULT_AUDIO_AGC = false;
|
|
90
|
-
var
|
|
91
|
+
var DEFAULT_AUDIO_ECHO_CANCELLATION = true;
|
|
92
|
+
var DEFAULT_NOISE_REDUCE_LEVEL = _type.FcrUIAiDenoiseLevel.LOW;
|
|
91
93
|
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* Includes audio echo cancellation, automatic gain control, noise reduction and other audio processing parameters
|
|
95
|
-
*/
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The manager delegates device operations and settings management to the implementing class
|
|
94
|
+
/**
|
|
95
|
+
* The manager delegates device operations and settings management to the implementing class
|
|
99
96
|
*/
|
|
100
97
|
var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PURE__*/function () {
|
|
101
98
|
function AudioDeviceWhiteListManager(delegate) {
|
|
@@ -109,6 +106,7 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
109
106
|
(0, _defineProperty2["default"])(this, "_whiteListDeviceUsed", new Set());
|
|
110
107
|
// Current device ID (microphone)
|
|
111
108
|
(0, _defineProperty2["default"])(this, "_currentDeviceId", null);
|
|
109
|
+
(0, _defineProperty2["default"])(this, "_delegate", null);
|
|
112
110
|
this._delegate = delegate;
|
|
113
111
|
this._whiteListDeviceIds = (0, _toConsumableArray2["default"])(_audioDeviceAdaptation.AUDIO_DEVICE_WHITE_LIST_CONFIG.whiteListDeviceIds);
|
|
114
112
|
this._whiteListConfig = {
|
|
@@ -122,8 +120,12 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
122
120
|
return (0, _createClass2["default"])(AudioDeviceWhiteListManager, [{
|
|
123
121
|
key: "_initialize",
|
|
124
122
|
value: function _initialize() {
|
|
123
|
+
var _this$_delegate;
|
|
125
124
|
this._initializeDeviceConfigsFromList();
|
|
126
|
-
var currentMicrophoneId = this._delegate.getMicrophoneId();
|
|
125
|
+
var currentMicrophoneId = (_this$_delegate = this._delegate) === null || _this$_delegate === void 0 ? void 0 : _this$_delegate.getMicrophoneId();
|
|
126
|
+
if (!currentMicrophoneId) {
|
|
127
|
+
this.logger.warn('[AudioDeviceWhiteList] Current microphone ID is null');
|
|
128
|
+
}
|
|
127
129
|
var microphoneIdentifier = currentMicrophoneId ? this._getDeviceIdentifierFromList(currentMicrophoneId, 'microphone') : '';
|
|
128
130
|
var microphoneDeviceId = microphoneIdentifier || DEFAULT_DEVICE_ID;
|
|
129
131
|
if (currentMicrophoneId && !microphoneIdentifier) {
|
|
@@ -174,29 +176,37 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
174
176
|
this._applyDeviceConfig(deviceId);
|
|
175
177
|
this._currentDeviceId = deviceId;
|
|
176
178
|
}
|
|
179
|
+
}, {
|
|
180
|
+
key: "_createDeviceConfig",
|
|
181
|
+
value: function _createDeviceConfig(deviceId) {
|
|
182
|
+
var specificConfig = (0, _audioDeviceAdaptation.getDeviceSpecificConfig)(deviceId);
|
|
183
|
+
if (specificConfig) {
|
|
184
|
+
this.logger.info("[AudioDeviceWhiteList] Using specific config for device: ".concat(deviceId));
|
|
185
|
+
return _objectSpread({}, specificConfig);
|
|
186
|
+
}
|
|
187
|
+
return {
|
|
188
|
+
audioEchoCancellation: DEFAULT_AUDIO_ECHO_CANCELLATION,
|
|
189
|
+
audioAgc: DEFAULT_AUDIO_AGC,
|
|
190
|
+
noiseReduce: DEFAULT_NOISE_REDUCE_LEVEL
|
|
191
|
+
};
|
|
192
|
+
}
|
|
177
193
|
|
|
178
|
-
/**
|
|
179
|
-
* Get device 3A configuration (use current settings if not exists)
|
|
194
|
+
/**
|
|
195
|
+
* Get device 3A configuration (use current settings if not exists)
|
|
180
196
|
*/
|
|
181
197
|
}, {
|
|
182
198
|
key: "_getDeviceConfig",
|
|
183
199
|
value: function _getDeviceConfig(deviceId) {
|
|
184
200
|
if (!this._deviceConfigs.has(deviceId)) {
|
|
185
|
-
var
|
|
186
|
-
var currentSetting = this._delegate.getCurrentSetting();
|
|
187
|
-
var config = {
|
|
188
|
-
audioEchoCancellation: (_currentSetting$audio = currentSetting.audioEchoCancellation) !== null && _currentSetting$audio !== void 0 ? _currentSetting$audio : false,
|
|
189
|
-
audioAgc: DEFAULT_AUDIO_AGC,
|
|
190
|
-
noiseReduce: (_currentSetting$noise = currentSetting.noiseReduce) !== null && _currentSetting$noise !== void 0 ? _currentSetting$noise : DEFAULT_NOISE_REDUCE_LEVEL
|
|
191
|
-
};
|
|
201
|
+
var config = this._createDeviceConfig(deviceId);
|
|
192
202
|
this._deviceConfigs.set(deviceId, config);
|
|
193
203
|
this.logger.info("[AudioDeviceWhiteList] Created config for device: ".concat(deviceId), config);
|
|
194
204
|
}
|
|
195
205
|
return this._deviceConfigs.get(deviceId);
|
|
196
206
|
}
|
|
197
207
|
|
|
198
|
-
/**
|
|
199
|
-
* Update device 3A configuration (save for both white list and non-white list devices)
|
|
208
|
+
/**
|
|
209
|
+
* Update device 3A configuration (save for both white list and non-white list devices)
|
|
200
210
|
*/
|
|
201
211
|
}, {
|
|
202
212
|
key: "updateDeviceConfig",
|
|
@@ -218,8 +228,12 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
218
228
|
}, {
|
|
219
229
|
key: "_applyAudioConfig",
|
|
220
230
|
value: function _applyAudioConfig(config) {
|
|
231
|
+
if (!this._delegate) {
|
|
232
|
+
this.logger.warn('[AudioDeviceWhiteList] Delegate is null');
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
221
235
|
this._delegate.enableAudioEchoCancellation(config.audioEchoCancellation);
|
|
222
|
-
this._delegate.
|
|
236
|
+
this._delegate.enableAudioGainControl(config.audioAgc);
|
|
223
237
|
this._delegate.setNoiseLevel(config.noiseReduce);
|
|
224
238
|
|
|
225
239
|
// Update UI settings
|
|
@@ -252,7 +266,11 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
252
266
|
}, {
|
|
253
267
|
key: "_getDeviceIdentifierFromList",
|
|
254
268
|
value: function _getDeviceIdentifierFromList(deviceId, deviceType) {
|
|
255
|
-
var
|
|
269
|
+
var _this$_delegate2;
|
|
270
|
+
var deviceList = (_this$_delegate2 = this._delegate) === null || _this$_delegate2 === void 0 ? void 0 : _this$_delegate2.getMicrophoneList();
|
|
271
|
+
if (!deviceList) {
|
|
272
|
+
return '';
|
|
273
|
+
}
|
|
256
274
|
var device = deviceList.find(function (d) {
|
|
257
275
|
return d.deviceId === deviceId;
|
|
258
276
|
});
|
|
@@ -269,7 +287,12 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
269
287
|
}, {
|
|
270
288
|
key: "_initializeDeviceConfigsFromList",
|
|
271
289
|
value: function _initializeDeviceConfigsFromList() {
|
|
272
|
-
var
|
|
290
|
+
var _this$_delegate3;
|
|
291
|
+
var microphoneList = (_this$_delegate3 = this._delegate) === null || _this$_delegate3 === void 0 ? void 0 : _this$_delegate3.getMicrophoneList();
|
|
292
|
+
if (!microphoneList) {
|
|
293
|
+
this.logger.warn('[AudioDeviceWhiteList] Microphone list is null');
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
273
296
|
this._updateDeviceConfigs(microphoneList);
|
|
274
297
|
this.logger.info("[AudioDeviceWhiteList] Initialized ".concat(this._deviceConfigs.size, " device configs"));
|
|
275
298
|
}
|
|
@@ -299,17 +322,11 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
299
322
|
}, {
|
|
300
323
|
key: "_createConfigForDevice",
|
|
301
324
|
value: function _createConfigForDevice(deviceIdentifier) {
|
|
302
|
-
var _currentSetting$audio2, _currentSetting$noise2;
|
|
303
325
|
var isWhiteListDevice = this._isDeviceInWhiteList(deviceIdentifier);
|
|
304
326
|
if (isWhiteListDevice) {
|
|
305
327
|
return _objectSpread({}, this._whiteListConfig);
|
|
306
328
|
}
|
|
307
|
-
|
|
308
|
-
return {
|
|
309
|
-
audioEchoCancellation: (_currentSetting$audio2 = currentSetting.audioEchoCancellation) !== null && _currentSetting$audio2 !== void 0 ? _currentSetting$audio2 : false,
|
|
310
|
-
audioAgc: DEFAULT_AUDIO_AGC,
|
|
311
|
-
noiseReduce: (_currentSetting$noise2 = currentSetting.noiseReduce) !== null && _currentSetting$noise2 !== void 0 ? _currentSetting$noise2 : DEFAULT_NOISE_REDUCE_LEVEL
|
|
312
|
-
};
|
|
329
|
+
return this._createDeviceConfig(deviceIdentifier);
|
|
313
330
|
}
|
|
314
331
|
}, {
|
|
315
332
|
key: "_loadFromLocalStorage",
|
|
@@ -348,6 +365,10 @@ var AudioDeviceWhiteListManager = exports.AudioDeviceWhiteListManager = /*#__PUR
|
|
|
348
365
|
key: "release",
|
|
349
366
|
value: function release() {
|
|
350
367
|
this._saveToLocalStorage();
|
|
368
|
+
this._deviceConfigs.clear();
|
|
369
|
+
this._whiteListDeviceUsed.clear();
|
|
370
|
+
this._currentDeviceId = null;
|
|
371
|
+
this._delegate = null;
|
|
351
372
|
}
|
|
352
373
|
}]);
|
|
353
374
|
}();
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
.fcr-caption-and-transcribing-settings__basic-form {
|
|
2
|
-
margin-top: 10px;
|
|
3
|
-
margin-bottom: 10px;
|
|
4
|
-
border-radius: var(--fcr_cornerradius_s);
|
|
5
|
-
width: 100%;
|
|
6
|
-
padding: 10px;
|
|
7
|
-
background: var(--fcr_mobile_ui_scene_color_popup_block5);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.fcr-caption-and-transcribing-settings__basic-form:first-child {
|
|
11
|
-
margin-top: 0px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.fcr-caption-and-transcribing-settings__basic-form .fcr-checkbox {
|
|
15
|
-
height: 32px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.fcr-caption-and-transcribing-settings__basic-form.fcr-video-settings__max-person-form {
|
|
19
|
-
padding: 5px 10px;
|
|
20
|
-
}
|
|
21
|
-
.fcr-caption-and-transcribing-settings__basic-form
|
|
22
|
-
.fcr-caption-and-transcribing-settings__spotlight-label {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
gap: 5px;
|
|
27
|
-
}
|
|
28
|
-
.fcr-caption-and-transcribing-settings__section-group {
|
|
29
|
-
display: flex;
|
|
30
|
-
gap: 10px;
|
|
31
|
-
height: 32px;
|
|
32
|
-
}
|
|
33
|
-
.fcr-caption-and-transcribing-settings__section-title {
|
|
34
|
-
font-size: 13px;
|
|
35
|
-
font-weight: 700;
|
|
36
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
37
|
-
margin-bottom: 10px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.fcr-caption-and-transcribing-settings__section-group-language .fcr-radio-label {
|
|
41
|
-
line-height: 16px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.fcr-caption-and-transcribing-settings__message-container {
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: start;
|
|
47
|
-
gap: 10px;
|
|
48
|
-
background: var(--fcr_ui_scene_black6);
|
|
49
|
-
/* height: 67px; */
|
|
50
|
-
padding-top: 15px;
|
|
51
|
-
padding-right: 20px;
|
|
52
|
-
padding-bottom: 15px;
|
|
53
|
-
padding-left: 20px;
|
|
54
|
-
border-radius: var(--fcr_cornerradius_xs);
|
|
55
|
-
margin-top: 13px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.fcr-caption-and-transcribing-settings__message-content {
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
gap: 5px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.fcr-caption-and-transcribing-settings__message-container .fcr-avatar {
|
|
65
|
-
border-radius: var(--fcr_cornerradius_xs);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.fcr-caption-and-transcribing-settings__message-content-original-text {
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
font-weight: 400;
|
|
71
|
-
color: var(--fcr_ui_scene_white10);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.fcr-caption-and-transcribing-settings__message-content-translated-text {
|
|
75
|
-
font-size: 14px;
|
|
76
|
-
font-weight: 400;
|
|
77
|
-
color: var(--fcr_ui_scene_ramp_2yellow6, rgba(255, 199, 0, 1));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.fcr-caption-and-transcribing-settings__translation-setting-description {
|
|
81
|
-
font-weight: 400;
|
|
82
|
-
color: var(--fcr_ui_scene_icontext2, rgba(120, 118, 118, 0.8));
|
|
83
|
-
font-size: 12px;
|
|
84
|
-
line-height: 140%;
|
|
85
|
-
letter-spacing: 0px;
|
|
86
|
-
vertical-align: middle;
|
|
87
|
-
margin-bottom: 4px;
|
|
88
|
-
}
|
|
1
|
+
.fcr-caption-and-transcribing-settings__basic-form {
|
|
2
|
+
margin-top: 10px;
|
|
3
|
+
margin-bottom: 10px;
|
|
4
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
5
|
+
width: 100%;
|
|
6
|
+
padding: 10px;
|
|
7
|
+
background: var(--fcr_mobile_ui_scene_color_popup_block5);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-caption-and-transcribing-settings__basic-form:first-child {
|
|
11
|
+
margin-top: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.fcr-caption-and-transcribing-settings__basic-form .fcr-checkbox {
|
|
15
|
+
height: 32px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fcr-caption-and-transcribing-settings__basic-form.fcr-video-settings__max-person-form {
|
|
19
|
+
padding: 5px 10px;
|
|
20
|
+
}
|
|
21
|
+
.fcr-caption-and-transcribing-settings__basic-form
|
|
22
|
+
.fcr-caption-and-transcribing-settings__spotlight-label {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: 5px;
|
|
27
|
+
}
|
|
28
|
+
.fcr-caption-and-transcribing-settings__section-group {
|
|
29
|
+
display: flex;
|
|
30
|
+
gap: 10px;
|
|
31
|
+
height: 32px;
|
|
32
|
+
}
|
|
33
|
+
.fcr-caption-and-transcribing-settings__section-title {
|
|
34
|
+
font-size: 13px;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
37
|
+
margin-bottom: 10px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.fcr-caption-and-transcribing-settings__section-group-language .fcr-radio-label {
|
|
41
|
+
line-height: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.fcr-caption-and-transcribing-settings__message-container {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: start;
|
|
47
|
+
gap: 10px;
|
|
48
|
+
background: var(--fcr_ui_scene_black6);
|
|
49
|
+
/* height: 67px; */
|
|
50
|
+
padding-top: 15px;
|
|
51
|
+
padding-right: 20px;
|
|
52
|
+
padding-bottom: 15px;
|
|
53
|
+
padding-left: 20px;
|
|
54
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
55
|
+
margin-top: 13px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.fcr-caption-and-transcribing-settings__message-content {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: 5px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.fcr-caption-and-transcribing-settings__message-container .fcr-avatar {
|
|
65
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.fcr-caption-and-transcribing-settings__message-content-original-text {
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
color: var(--fcr_ui_scene_white10);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.fcr-caption-and-transcribing-settings__message-content-translated-text {
|
|
75
|
+
font-size: 14px;
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
color: var(--fcr_ui_scene_ramp_2yellow6, rgba(255, 199, 0, 1));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.fcr-caption-and-transcribing-settings__translation-setting-description {
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
color: var(--fcr_ui_scene_icontext2, rgba(120, 118, 118, 0.8));
|
|
83
|
+
font-size: 12px;
|
|
84
|
+
line-height: 140%;
|
|
85
|
+
letter-spacing: 0px;
|
|
86
|
+
vertical-align: middle;
|
|
87
|
+
margin-bottom: 4px;
|
|
88
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
.fcr-general-settings__basic-form {
|
|
2
|
-
margin-top: 10px;
|
|
3
|
-
margin-bottom: 10px;
|
|
4
|
-
border-radius: var(--fcr_cornerradius_s);
|
|
5
|
-
width: 100%;
|
|
6
|
-
padding: 10px;
|
|
7
|
-
background: var(--fcr_mobile_ui_scene_color_popup_block5);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.fcr-general-settings__basic-form:first-child {
|
|
11
|
-
margin-top: 0px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.fcr-general-settings__basic-form .fcr-checkbox {
|
|
15
|
-
height: 32px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.fcr-general-settings__basic-form.fcr-video-settings__max-person-form {
|
|
19
|
-
padding: 5px 10px;
|
|
20
|
-
}
|
|
21
|
-
.fcr-general-settings__basic-form .fcr-general-settings__spotlight-label {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
gap: 5px;
|
|
26
|
-
}
|
|
27
|
-
.fcr-general-settings__section-group {
|
|
28
|
-
display: flex;
|
|
29
|
-
gap: 10px;
|
|
30
|
-
height: 32px;
|
|
31
|
-
}
|
|
32
|
-
.fcr-general-settings__section-title {
|
|
33
|
-
font-size: 13px;
|
|
34
|
-
font-weight: 700;
|
|
35
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
36
|
-
margin-bottom: 10px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.fcr-general-settings__section-group-language .fcr-radio-label {
|
|
40
|
-
line-height: 16px;
|
|
41
|
-
}
|
|
1
|
+
.fcr-general-settings__basic-form {
|
|
2
|
+
margin-top: 10px;
|
|
3
|
+
margin-bottom: 10px;
|
|
4
|
+
border-radius: var(--fcr_cornerradius_s);
|
|
5
|
+
width: 100%;
|
|
6
|
+
padding: 10px;
|
|
7
|
+
background: var(--fcr_mobile_ui_scene_color_popup_block5);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.fcr-general-settings__basic-form:first-child {
|
|
11
|
+
margin-top: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.fcr-general-settings__basic-form .fcr-checkbox {
|
|
15
|
+
height: 32px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.fcr-general-settings__basic-form.fcr-video-settings__max-person-form {
|
|
19
|
+
padding: 5px 10px;
|
|
20
|
+
}
|
|
21
|
+
.fcr-general-settings__basic-form .fcr-general-settings__spotlight-label {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
gap: 5px;
|
|
26
|
+
}
|
|
27
|
+
.fcr-general-settings__section-group {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: 10px;
|
|
30
|
+
height: 32px;
|
|
31
|
+
}
|
|
32
|
+
.fcr-general-settings__section-title {
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
36
|
+
margin-bottom: 10px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fcr-general-settings__section-group-language .fcr-radio-label {
|
|
40
|
+
line-height: 16px;
|
|
41
|
+
}
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
.fcr-device-settings__dialog .fcr-dialog-body {
|
|
2
|
-
padding: 0;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.fcr-device-settings__dialog .fcr-dialog-content {
|
|
6
|
-
overflow-y: hidden;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.fcr-device-settings__dialog-header {
|
|
10
|
-
position: relative;
|
|
11
|
-
height: 46px;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: center;
|
|
14
|
-
align-items: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.fcr-device-settings__dialog-title {
|
|
18
|
-
font-size: 14px;
|
|
19
|
-
line-height: 100%;
|
|
20
|
-
font-weight: 800;
|
|
21
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.fcr-device-settings__dialog-close {
|
|
25
|
-
position: absolute;
|
|
26
|
-
right: 12px;
|
|
27
|
-
top: calc(50% - 7px);
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.fcr-device-settings {
|
|
32
|
-
border-top: 1px solid var(--fcr_ui_scene_line1);
|
|
33
|
-
display: flex;
|
|
34
|
-
width: 100%;
|
|
35
|
-
min-width: 580px;
|
|
36
|
-
height: 100%;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.fcr-device-settings__nav {
|
|
40
|
-
flex: 0 0 190px;
|
|
41
|
-
border-right: 1px solid var(--fcr_ui_scene_line1);
|
|
42
|
-
padding: 10px 6px 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.fcr-device-settings__nav-list-item {
|
|
46
|
-
border-radius: var(--fcr_cornerradius_xs);
|
|
47
|
-
width: 100%;
|
|
48
|
-
height: 44px;
|
|
49
|
-
padding: 0px 14px;
|
|
50
|
-
white-space: nowrap;
|
|
51
|
-
font-size: 14px;
|
|
52
|
-
line-height: 1;
|
|
53
|
-
color: var(--fcr_ui_scene_icontext1);
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
transition: all 0.2s ease;
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
column-gap: 12px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/* TODO: hover 样式 */
|
|
62
|
-
.fcr-device-settings__nav-list-item:hover {
|
|
63
|
-
color: var(--fcr_web_ui_scene_mainicon2);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.fcr-device-settings__nav-list-item.is-active {
|
|
67
|
-
color: var(--fcr_web_ui_scene_mainicon2);
|
|
68
|
-
background: var(--fcr_web_ui_scene_hover);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.fcr-device-settings__surrounding {
|
|
72
|
-
border-radius: var(--fcr_cornerradius_xs);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* TODO: css 变量 */
|
|
76
|
-
.fcr-device-settings__surrounding--green {
|
|
77
|
-
background: #83bc53;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* TODO: css 变量 */
|
|
81
|
-
.fcr-device-settings__surrounding--purple {
|
|
82
|
-
background: #7c79ff;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* TODO: css 变量 */
|
|
86
|
-
.fcr-device-settings__surrounding--storage {
|
|
87
|
-
background: #6fcfa2;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.fcr-device-settings__surrounding--blue {
|
|
91
|
-
background: #5765ff;
|
|
92
|
-
}
|
|
93
|
-
.fcr-device-settings__surrounding--orange {
|
|
94
|
-
background: var(--fcr_orange6);
|
|
95
|
-
}
|
|
96
|
-
.fcr-device-settings__tab-content-wrapper {
|
|
97
|
-
flex: 1 1 auto;
|
|
98
|
-
padding: 15px 15px 0px;
|
|
99
|
-
overflow-y: auto;
|
|
100
|
-
display: flex;
|
|
101
|
-
flex-direction: column;
|
|
102
|
-
width: 100%;
|
|
103
|
-
height: 100%;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.fcr-device-settings__tab-content-wrapper.is-tab-content-video-wrapper {
|
|
107
|
-
overflow: hidden;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/* .fcr-device-settings__tab-content-wrapper.is-electron {
|
|
111
|
-
height: auto;
|
|
112
|
-
} */
|
|
1
|
+
.fcr-device-settings__dialog .fcr-dialog-body {
|
|
2
|
+
padding: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.fcr-device-settings__dialog .fcr-dialog-content {
|
|
6
|
+
overflow-y: hidden;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fcr-device-settings__dialog-header {
|
|
10
|
+
position: relative;
|
|
11
|
+
height: 46px;
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fcr-device-settings__dialog-title {
|
|
18
|
+
font-size: 14px;
|
|
19
|
+
line-height: 100%;
|
|
20
|
+
font-weight: 800;
|
|
21
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.fcr-device-settings__dialog-close {
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 12px;
|
|
27
|
+
top: calc(50% - 7px);
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fcr-device-settings {
|
|
32
|
+
border-top: 1px solid var(--fcr_ui_scene_line1);
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 100%;
|
|
35
|
+
min-width: 580px;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fcr-device-settings__nav {
|
|
40
|
+
flex: 0 0 190px;
|
|
41
|
+
border-right: 1px solid var(--fcr_ui_scene_line1);
|
|
42
|
+
padding: 10px 6px 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.fcr-device-settings__nav-list-item {
|
|
46
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 44px;
|
|
49
|
+
padding: 0px 14px;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
line-height: 1;
|
|
53
|
+
color: var(--fcr_ui_scene_icontext1);
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition: all 0.2s ease;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
column-gap: 12px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* TODO: hover 样式 */
|
|
62
|
+
.fcr-device-settings__nav-list-item:hover {
|
|
63
|
+
color: var(--fcr_web_ui_scene_mainicon2);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.fcr-device-settings__nav-list-item.is-active {
|
|
67
|
+
color: var(--fcr_web_ui_scene_mainicon2);
|
|
68
|
+
background: var(--fcr_web_ui_scene_hover);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.fcr-device-settings__surrounding {
|
|
72
|
+
border-radius: var(--fcr_cornerradius_xs);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* TODO: css 变量 */
|
|
76
|
+
.fcr-device-settings__surrounding--green {
|
|
77
|
+
background: #83bc53;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* TODO: css 变量 */
|
|
81
|
+
.fcr-device-settings__surrounding--purple {
|
|
82
|
+
background: #7c79ff;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* TODO: css 变量 */
|
|
86
|
+
.fcr-device-settings__surrounding--storage {
|
|
87
|
+
background: #6fcfa2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.fcr-device-settings__surrounding--blue {
|
|
91
|
+
background: #5765ff;
|
|
92
|
+
}
|
|
93
|
+
.fcr-device-settings__surrounding--orange {
|
|
94
|
+
background: var(--fcr_orange6);
|
|
95
|
+
}
|
|
96
|
+
.fcr-device-settings__tab-content-wrapper {
|
|
97
|
+
flex: 1 1 auto;
|
|
98
|
+
padding: 15px 15px 0px;
|
|
99
|
+
overflow-y: auto;
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
width: 100%;
|
|
103
|
+
height: 100%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.fcr-device-settings__tab-content-wrapper.is-tab-content-video-wrapper {
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* .fcr-device-settings__tab-content-wrapper.is-electron {
|
|
111
|
+
height: auto;
|
|
112
|
+
} */
|
|
@@ -87,9 +87,11 @@ var SettingUIModule = exports.SettingUIModule = /*#__PURE__*/function (_UIModule
|
|
|
87
87
|
onExitRoom: function onExitRoom() {
|
|
88
88
|
_this.store.handleExitRoom();
|
|
89
89
|
},
|
|
90
|
-
onRoutingChanged: function onRoutingChanged() {
|
|
90
|
+
onRoutingChanged: function onRoutingChanged(roomControl) {
|
|
91
|
+
var _roomControl$getRoomI;
|
|
92
|
+
var roomType = (_roomControl$getRoomI = roomControl.getRoomInfo()) === null || _roomControl$getRoomI === void 0 ? void 0 : _roomControl$getRoomI.roomType;
|
|
91
93
|
_this.store.handleExitRoom(true);
|
|
92
|
-
_this.store.handleJoinRoom();
|
|
94
|
+
_this.store.handleJoinRoom(roomType);
|
|
93
95
|
},
|
|
94
96
|
onLocalUserKickedOut: function onLocalUserKickedOut() {
|
|
95
97
|
_this.store.handleExitRoom();
|