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.
Files changed (119) hide show
  1. package/lib/base.d.ts +1 -0
  2. package/lib/common/event-store.d.ts +1 -0
  3. package/lib/electron/app.d.ts +1 -0
  4. package/lib/electron/app.js +140 -0
  5. package/lib/electron/default-options.d.ts +2 -0
  6. package/lib/electron/default-options.js +25 -0
  7. package/lib/electron/env.d.ts +5 -0
  8. package/lib/electron/env.js +13 -0
  9. package/lib/electron/index.d.ts +2 -0
  10. package/lib/electron/index.js +20 -0
  11. package/lib/electron/injections.d.ts +45 -0
  12. package/lib/electron/injections.js +689 -0
  13. package/lib/electron/main.d.ts +2 -0
  14. package/lib/electron/main.js +63 -0
  15. package/lib/electron/plugins/screenshot.d.ts +2 -0
  16. package/lib/electron/plugins/screenshot.js +49 -0
  17. package/lib/electron/preload.js +35 -0
  18. package/lib/electron/tools.d.ts +5 -0
  19. package/lib/electron/tools.js +57 -0
  20. package/lib/electron/window.d.ts +12 -0
  21. package/lib/electron/window.js +112 -0
  22. package/lib/fragments/control-bar/index.js +11 -1
  23. package/lib/fragments/share-screen-selection/selection-store.d.ts +1 -0
  24. package/lib/modules/action-bar/leave/assign-host.d.ts +1 -0
  25. package/lib/modules/action-bar/leave/leave-meeting.d.ts +1 -0
  26. package/lib/modules/action-bar/more/poppover-content.d.ts +1 -0
  27. package/lib/modules/chat/chat-select/index.d.ts +1 -0
  28. package/lib/modules/chat/demo-wrapper.d.ts +1 -0
  29. package/lib/modules/device-pretest/audio-preview/speaker-control.d.ts +1 -0
  30. package/lib/modules/device-pretest/index.d.ts +1 -0
  31. package/lib/modules/device-pretest/settings/video-effect.d.ts +1 -0
  32. package/lib/modules/invite/voip-invite.d.ts +1 -0
  33. package/lib/modules/layout/components/Aside.d.ts +1 -0
  34. package/lib/modules/layout/member-window/index.d.ts +1 -0
  35. package/lib/modules/layout/store.d.ts +1 -0
  36. package/lib/modules/whiteboard/index.d.ts +1 -0
  37. package/lib/plugins/browser-runtime-plugin.js +0 -3
  38. package/lib/runtime.d.ts +86 -0
  39. package/package.json +4 -3
  40. package/installer/icons/favicon.ico +0 -0
  41. package/installer/icons/favicon.png +0 -0
  42. package/installer/mac/entitlements.mac.plist +0 -16
  43. package/lib/common/device-streams-store.d.ts +0 -34
  44. package/lib/common/device-streams-store.js +0 -403
  45. package/lib/fragments/participant/context.d.ts +0 -3
  46. package/lib/fragments/participant/context.js +0 -9
  47. package/lib/fragments/participant/index.css +0 -20
  48. package/lib/fragments/participant/index.d.ts +0 -9
  49. package/lib/fragments/participant/index.js +0 -90
  50. package/lib/fragments/participant/room-control-drop-menu/index.css +0 -19
  51. package/lib/fragments/participant/room-control-drop-menu/index.d.ts +0 -2
  52. package/lib/fragments/participant/room-control-drop-menu/index.js +0 -134
  53. package/lib/fragments/participant/store.d.ts +0 -34
  54. package/lib/fragments/participant/store.js +0 -326
  55. package/lib/fragments/participant/view.d.ts +0 -2
  56. package/lib/fragments/participant/view.js +0 -86
  57. package/lib/fragments/state-bar/index.d.ts +0 -9
  58. package/lib/fragments/state-bar/index.js +0 -68
  59. package/lib/fragments/type.d.ts +0 -2
  60. package/lib/fragments/type.js +0 -6
  61. package/lib/modules/connection-gateway/components/computer/menu.d.ts +0 -0
  62. package/lib/modules/connection-gateway/components/computer/menu.js +0 -1
  63. package/lib/modules/device-settings/audio-settings/audio-settings.d.ts +0 -4
  64. package/lib/modules/device-settings/audio-settings/audio-settings.js +0 -297
  65. package/lib/modules/device-settings/audio-settings/index.css +0 -139
  66. package/lib/modules/device-settings/audio-settings/microphone-detection.d.ts +0 -2
  67. package/lib/modules/device-settings/audio-settings/microphone-detection.js +0 -68
  68. package/lib/modules/device-settings/audio-settings/speaker-detection.d.ts +0 -2
  69. package/lib/modules/device-settings/audio-settings/speaker-detection.js +0 -72
  70. package/lib/modules/device-settings/common/advance-link.d.ts +0 -3
  71. package/lib/modules/device-settings/common/advance-link.js +0 -27
  72. package/lib/modules/device-settings/common/index.css +0 -26
  73. package/lib/modules/device-settings/common/useNamespace.d.ts +0 -15
  74. package/lib/modules/device-settings/common/useNamespace.js +0 -66
  75. package/lib/modules/device-settings/context.d.ts +0 -3
  76. package/lib/modules/device-settings/context.js +0 -9
  77. package/lib/modules/device-settings/dialog-wrapper.d.ts +0 -2
  78. package/lib/modules/device-settings/dialog-wrapper.js +0 -110
  79. package/lib/modules/device-settings/general-settings/general-settings.d.ts +0 -4
  80. package/lib/modules/device-settings/general-settings/general-settings.js +0 -66
  81. package/lib/modules/device-settings/general-settings/index.css +0 -26
  82. package/lib/modules/device-settings/index.css +0 -109
  83. package/lib/modules/device-settings/index.d.ts +0 -21
  84. package/lib/modules/device-settings/index.dev.js +0 -112
  85. package/lib/modules/device-settings/index.js +0 -84
  86. package/lib/modules/device-settings/state/index.css +0 -211
  87. package/lib/modules/device-settings/state/index.d.ts +0 -4
  88. package/lib/modules/device-settings/state/index.js +0 -330
  89. package/lib/modules/device-settings/storage-settings/index.css +0 -91
  90. package/lib/modules/device-settings/storage-settings/storage-settings.d.ts +0 -3
  91. package/lib/modules/device-settings/storage-settings/storage-settings.js +0 -84
  92. package/lib/modules/device-settings/store.d.ts +0 -205
  93. package/lib/modules/device-settings/store.js +0 -1035
  94. package/lib/modules/device-settings/video-settings/camera-select.d.ts +0 -2
  95. package/lib/modules/device-settings/video-settings/camera-select.js +0 -51
  96. package/lib/modules/device-settings/video-settings/index.css +0 -327
  97. package/lib/modules/device-settings/video-settings/local-video-player.d.ts +0 -3
  98. package/lib/modules/device-settings/video-settings/local-video-player.js +0 -37
  99. package/lib/modules/device-settings/video-settings/mirror-toggle.d.ts +0 -2
  100. package/lib/modules/device-settings/video-settings/mirror-toggle.js +0 -62
  101. package/lib/modules/device-settings/video-settings/video-settings-basic.d.ts +0 -9
  102. package/lib/modules/device-settings/video-settings/video-settings-basic.js +0 -177
  103. package/lib/modules/device-settings/video-settings/video-settings.d.ts +0 -6
  104. package/lib/modules/device-settings/video-settings/video-settings.js +0 -185
  105. package/lib/modules/device-settings/view.d.ts +0 -10
  106. package/lib/modules/device-settings/view.js +0 -193
  107. package/lib/modules/layout/components/UserWindow.d.ts +0 -8
  108. package/lib/modules/layout/components/UserWindow.js +0 -513
  109. package/lib/modules/layout/hooks.d.ts +0 -14
  110. package/lib/modules/layout/hooks.js +0 -48
  111. package/lib/modules/share-screen/context.d.ts +0 -3
  112. package/lib/modules/share-screen/context.js +0 -9
  113. package/lib/modules/whiteboard/i18n/config.d.ts +0 -1
  114. package/lib/modules/whiteboard/i18n/config.js +0 -15
  115. package/lib/modules/whiteboard/i18n/en/index.d.ts +0 -32
  116. package/lib/modules/whiteboard/i18n/en/index.js +0 -38
  117. package/lib/modules/whiteboard/i18n/zh/index.d.ts +0 -32
  118. package/lib/modules/whiteboard/i18n/zh/index.js +0 -38
  119. /package/lib/{modules/device-settings/index.dev.d.ts → electron/preload.d.ts} +0 -0
@@ -1,211 +0,0 @@
1
- .fcr-device-settings-state {
2
- padding-top: 10px;
3
- }
4
-
5
- .fcr-device-settings-state__tab-wrapper {
6
- display: flex;
7
- justify-content: center;
8
- margin-bottom: 15px;
9
- }
10
-
11
- .fcr-device-settings-state .fcr-device-settings-state-universal {
12
- }
13
-
14
- .fcr-device-settings-state-universal__cpu-wrapper {
15
- display: flex;
16
- column-gap: 10px;
17
- margin-bottom: 10px;
18
- }
19
-
20
- .fcr-device-settings-state-universal__cpu-wrapper .fcr-state-cpu-card {
21
- flex-basis: 0;
22
- flex-grow: 1;
23
- flex-shrink: 0;
24
- min-width: 0;
25
- }
26
-
27
- /* cpu card start */
28
- .fcr-state-cpu-card {
29
- border-radius: var(--fcr_cornerradius_s);
30
- background: var(--fcr_mobile_ui_scene_color_popup_block5);
31
- padding: 16px;
32
- }
33
-
34
- .fcr-state-cpu-card__header {
35
- display: flex;
36
- justify-content: space-between;
37
- align-items: center;
38
- margin-bottom: 12px;
39
- }
40
-
41
- .fcr-state-cpu-card__header-title {
42
- color: var(--fcr_ui_scene_icontext1);
43
- font-size: 13px;
44
- line-height: 13px;
45
- font-weight: 700;
46
- flex-shrink: 0;
47
- }
48
-
49
- .fcr-state-cpu-card__header-addition {
50
- text-align: right;
51
- margin-left: 12px;
52
- flex-grow: 1;
53
- min-width: 0;
54
- overflow: hidden;
55
- text-overflow: ellipsis;
56
- white-space: nowrap;
57
- color: var(--fcr_ui_scene_icontext2);
58
- font-size: 12px;
59
- line-height: 12px;
60
- }
61
-
62
- .fcr-state-cpu-card__progress {
63
- margin-bottom: 10px;
64
- }
65
-
66
- .fcr-state-cpu-card__progress .fcr-state-progress {
67
- position: relative;
68
- width: 100%;
69
- height: 8px;
70
- background: var(--fcr_mobile_ui_scene_fill3);
71
- border-radius: var(--fcr_cornerradius_round);
72
- overflow: hidden;
73
- }
74
-
75
- .fcr-state-progress .fcr-state-progress__rate-item {
76
- position: absolute;
77
- left: 0;
78
- height: 100%;
79
- border-radius: var(--fcr_cornerradius_round);
80
- }
81
- .fcr-state-progress .fcr-state-progress__rate-item:nth-child(1) {
82
- z-index: 99;
83
- background: var(--fcr_ui_scene_ramp_green6);
84
- }
85
- .fcr-state-progress .fcr-state-progress__rate-item:nth-child(2) {
86
- z-index: 98;
87
- background: var(--fcr_ui_scene_ramp_purple6);
88
- }
89
-
90
- .fcr-state-cpu-card__info {
91
- display: flex;
92
- align-items: center;
93
- height: 26px;
94
- }
95
-
96
- .fcr-state-cpu-card__info-icon {
97
- flex-shrink: 0;
98
- width: 8px;
99
- height: 8px;
100
- border-radius: 50%;
101
- background: var(--fcr_ui_scene_ramp_green6);
102
- }
103
- .fcr-state-cpu-card__info-icon--second {
104
- background: var(--fcr_ui_scene_ramp_purple6);
105
- }
106
-
107
- .fcr-state-cpu-card__info-title {
108
- margin-left: 6px;
109
- flex-grow: 1;
110
- font-size: 12px;
111
- line-height: 12px;
112
- color: var(--fcr_ui_scene_icontext2);
113
- }
114
-
115
- .fcr-state-cpu-card__info-data {
116
- flex-shrink: 0;
117
- margin-left: 4px;
118
- font-size: 12px;
119
- line-height: 12px;
120
- color: var(--fcr_ui_scene_icontext1);
121
- }
122
- /* cpu card end */
123
-
124
- /* data card start */
125
- .fcr-state-data-card {
126
- margin-bottom: 10px;
127
- border-radius: var(--fcr_cornerradius_s);
128
- background: var(--fcr_mobile_ui_scene_color_popup_block5);
129
- overflow: hidden;
130
- }
131
- .fcr-state-data-card:last-child {
132
- margin-bottom: 0;
133
- }
134
-
135
- .fcr-state-data-card__header {
136
- height: 32px;
137
- width: 100%;
138
- display: flex;
139
- align-items: center;
140
- padding: 0 12px;
141
- background: var(--fcr_mobile_ui_scene_color_popup_fill1);
142
- }
143
-
144
- .fcr-state-data-card__header-title {
145
- font-size: 13px;
146
- line-height: 13px;
147
- font-weight: 700;
148
- color: var(--fcr_ui_scene_icontext1);
149
- }
150
-
151
- .fcr-state-data-card__content {
152
- padding: 15px 12px 10px;
153
- display: flex;
154
- }
155
-
156
- .fcr-state-data-card__content-item {
157
- flex-basis: 0;
158
- flex-grow: 1;
159
- flex-shrink: 0;
160
- }
161
-
162
- .fcr-state-data-card__content-item-title {
163
- height: 26px;
164
- display: flex;
165
- align-items: center;
166
- font-size: 12px;
167
- line-height: 12px;
168
- font-weight: 300;
169
- color: var(--fcr_ui_scene_icontext1);
170
- }
171
-
172
- .fcr-state-data-card__content-item-text {
173
- height: 26px;
174
- display: flex;
175
- align-items: center;
176
- font-size: 12px;
177
- line-height: 12px;
178
- color: var(--fcr_ui_scene_icontext1);
179
- }
180
-
181
- .fcr-state-data-card__content-item-up {
182
- margin-left: -4px;
183
- height: 26px;
184
- display: flex;
185
- align-items: center;
186
- column-gap: 6px;
187
- }
188
-
189
- .fcr-state-data-card__item-up-text {
190
- font-size: 12px;
191
- line-height: 12px;
192
- color: var(--fcr_ui_scene_icontext1);
193
- }
194
-
195
- .fcr-state-data-card__content-item-down {
196
- margin-left: -4px;
197
- height: 26px;
198
- display: flex;
199
- align-items: center;
200
- column-gap: 6px;
201
- }
202
-
203
- .fcr-state-data-card__content-item-down > svg path {
204
- fill: var(--fcr_orange6);
205
- }
206
-
207
- .fcr-state-data-card__item-down-text {
208
- font-size: 12px;
209
- line-height: 12px;
210
- color: var(--fcr_ui_scene_icontext1);
211
- }
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import './index.css';
3
- export declare const State: FC;
4
- export default State;
@@ -1,330 +0,0 @@
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.object.define-properties.js");
7
- require("core-js/modules/es.object.define-property.js");
8
- require("core-js/modules/es.object.get-own-property-descriptor.js");
9
- require("core-js/modules/es.object.get-own-property-descriptors.js");
10
- require("core-js/modules/es.object.keys.js");
11
- require("core-js/modules/web.dom-collections.for-each.js");
12
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
13
- Object.defineProperty(exports, "__esModule", {
14
- value: true
15
- });
16
- exports["default"] = exports.State = void 0;
17
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
- var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
19
- require("core-js/modules/es.array.concat.js");
20
- require("core-js/modules/es.array.map.js");
21
- require("core-js/modules/es.array.push.js");
22
- require("core-js/modules/es.array.reduce.js");
23
- require("core-js/modules/es.date.to-json.js");
24
- require("core-js/modules/es.json.stringify.js");
25
- require("core-js/modules/es.number.to-fixed.js");
26
- require("core-js/modules/es.object.to-string.js");
27
- var _react = require("react");
28
- var _i18n = require("agora-ui-foundation/lib/i18n");
29
- var _mobxReact = require("mobx-react");
30
- var _context = require("../context");
31
- var _tabs = require("agora-ui-foundation/lib/components/tabs");
32
- require("./index.css");
33
- var _useNamespace = require("../common/useNamespace");
34
- var _icon = require("agora-ui-foundation/lib/components/icon");
35
- var _type = require("agora-ui-foundation/lib/components/icon/type");
36
- var _classnames = _interopRequireDefault(require("classnames"));
37
- var _constant = require("../../../utilities/constant");
38
- var _jsxRuntime = require("react/jsx-runtime");
39
- 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; }
40
- 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; }
41
- var formatSize = function formatSize(kbytes) {
42
- var mb = kbytes / 1024;
43
- if (mb < 1) {
44
- return "".concat(kbytes, " KB");
45
- }
46
- var gb = mb / 1024;
47
- if (gb < 1) {
48
- return "".concat(mb.toFixed(0), " MB");
49
- }
50
- return "".concat(gb.toFixed(1), " GB");
51
- };
52
- var State = exports.State = (0, _mobxReact.observer)(function () {
53
- var t = (0, _i18n.useI18n)();
54
- var ns = (0, _useNamespace.useNamespace)('device-settings-state');
55
- var tabs = [{
56
- label: '通用',
57
- key: 'universal'
58
- }, {
59
- label: 'audiovisual',
60
- key: 'audiovisual'
61
- }];
62
- var _useState = (0, _react.useState)('universal'),
63
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
64
- activeKey = _useState2[0],
65
- setActiveKey = _useState2[1];
66
- var handleChange = function handleChange(key) {
67
- setActiveKey(key);
68
- };
69
- var _useContext = (0, _react.useContext)(_context.StoreContext),
70
- networkState = _useContext.networkState,
71
- performanceState = _useContext.performanceState,
72
- microphoneVolumeDb = _useContext.microphoneVolumeDb,
73
- speakerVolumeDb = _useContext.speakerVolumeDb,
74
- maxVideoSendInfo = _useContext.maxVideoSendInfo,
75
- maxVideoReceiveInfo = _useContext.maxVideoReceiveInfo,
76
- sendScreenShareInfo = _useContext.sendScreenShareInfo,
77
- receiveScreenShareInfo = _useContext.receiveScreenShareInfo,
78
- systemMemorySize = _useContext.systemMemorySize,
79
- systemCpuDesc = _useContext.systemCpuDesc,
80
- isWifiConnected = _useContext.isWifiConnected;
81
-
82
- // useEffect(() => {
83
- // if (activeKey === 'universal') {
84
- // getSystemInformation();
85
- // } else {
86
- // clearGetSystemInfoInterval();
87
- // }
88
- // return () => clearGetSystemInfoInterval();
89
- // }, [activeKey]);
90
-
91
- var networkUIData = (0, _react.useMemo)(function () {
92
- return [{
93
- title: '带宽',
94
- up: "".concat(networkState.txKBitRate, " kbps"),
95
- down: "".concat(networkState.rxKBitRate, " kbps")
96
- }, {
97
- title: '丢包率',
98
- up: networkState.txPacketLoss === -1 ? '--' : "".concat(networkState.txPacketLoss, " %"),
99
- down: networkState.rxPacketLoss === -1 ? '--' : "".concat(networkState.rxPacketLoss, " %")
100
- }, {
101
- title: '网络',
102
- text: isWifiConnected ? 'Wi-Fi' : '有线网络'
103
- }, {
104
- title: '网络类型',
105
- text: 'WLAN'
106
- }];
107
- }, [JSON.stringify(networkState), isWifiConnected]);
108
- var audioData = (0, _react.useMemo)(function () {
109
- return [{
110
- title: 'bitrate',
111
- up: "".concat(networkState.txAudioKBitrate, " kbps"),
112
- down: "".concat(networkState.rxAudioKBitrate, " kbps")
113
- }, {
114
- title: 'Mic',
115
- text: "".concat(microphoneVolumeDb, " dB")
116
- }, {
117
- title: 'Speaker',
118
- text: "".concat(speakerVolumeDb, " dB")
119
- }];
120
- }, [microphoneVolumeDb, speakerVolumeDb, networkState.txAudioKBitrate, networkState.rxAudioKBitrate]);
121
- var videoData = (0, _react.useMemo)(function () {
122
- return [{
123
- title: '最大分辨率',
124
- up: maxVideoSendInfo ? "".concat(maxVideoSendInfo.dimensions.width, "*").concat(maxVideoSendInfo.dimensions.height) : '--',
125
- down: maxVideoReceiveInfo ? "".concat(maxVideoReceiveInfo.dimensions.width, "*").concat(maxVideoReceiveInfo.dimensions.height) : '--'
126
- }, {
127
- title: '帧率',
128
- up: maxVideoSendInfo ? "".concat(maxVideoSendInfo.sendFrameRate, " fps") : '--',
129
- down: maxVideoReceiveInfo ? "".concat(maxVideoReceiveInfo.frameRate, " fps") : '--'
130
- }, {
131
- title: '码率',
132
- up: maxVideoSendInfo ? "".concat(maxVideoSendInfo.sendBitrate, " kbps") : '--',
133
- down: maxVideoReceiveInfo ? "".concat(maxVideoReceiveInfo.receiveBitrate, " kbps") : '--'
134
- }];
135
- }, [JSON.stringify(maxVideoSendInfo), JSON.stringify(maxVideoReceiveInfo)]);
136
- var screenShareData = (0, _react.useMemo)(function () {
137
- return [{
138
- title: '分辨率',
139
- up: sendScreenShareInfo ? "".concat(sendScreenShareInfo.dimensions.width, "*").concat(sendScreenShareInfo.dimensions.height) : '--',
140
- down: receiveScreenShareInfo ? "".concat(receiveScreenShareInfo.dimensions.width, "*").concat(receiveScreenShareInfo.dimensions.height) : '--'
141
- }, {
142
- title: '帧率',
143
- up: sendScreenShareInfo ? "".concat(sendScreenShareInfo.sendFrameRate, " fps") : '--',
144
- down: receiveScreenShareInfo ? "".concat(receiveScreenShareInfo.frameRate, " fps") : '--'
145
- }, {
146
- title: '码率',
147
- up: sendScreenShareInfo ? "".concat(sendScreenShareInfo.sendBitrate, " kbps") : '--',
148
- down: receiveScreenShareInfo ? "".concat(receiveScreenShareInfo.receiveBitrate, " kbps") : '--'
149
- }];
150
- }, [JSON.stringify(sendScreenShareInfo), JSON.stringify(receiveScreenShareInfo)]);
151
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
152
- className: ns.b(),
153
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
154
- className: ns.e('tab-wrapper'),
155
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabs.FcrTabs, {
156
- items: tabs,
157
- activeKey: activeKey,
158
- onChange: handleChange
159
- })
160
- }), activeKey === 'universal' && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
161
- className: ns.b('universal'),
162
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
163
- className: ns.be('universal', 'cpu-wrapper'),
164
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(CPUCard, {
165
- title: "CPU",
166
- summary: systemCpuDesc,
167
- rates: [performanceState.cpuAppUsage, performanceState.cpuOtherAppUsage],
168
- data: ["".concat(performanceState.cpuAppUsage, " %"), "".concat(performanceState.cpuOtherAppUsage, " %")],
169
- id: _constant.HighlightElement.CPU_STATE
170
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(CPUCard, {
171
- title: "\u5185\u5B58",
172
- summary: formatSize(systemMemorySize),
173
- rates: [performanceState.memoryAppUsageRatio, performanceState.memoryOtherAppUsageRatio],
174
- data: [formatSize(performanceState.memoryAppUsageInKbytes), formatSize(performanceState.memoryOtherAppUsageInKbytes)],
175
- id: _constant.HighlightElement.MEMORY_STATE
176
- })]
177
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(DataCard, {
178
- title: "\u7F51\u7EDC",
179
- data: networkUIData,
180
- id: _constant.HighlightElement.NETWORK_STATE
181
- })]
182
- }), activeKey === 'audiovisual' && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
183
- className: ns.b('audiovisual'),
184
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(DataCard, {
185
- title: "Audio",
186
- data: audioData
187
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(DataCard, {
188
- title: "Video",
189
- data: videoData
190
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(DataCard, {
191
- title: "\u5C4F\u5E55\u5171\u4EAB",
192
- data: screenShareData
193
- })]
194
- })]
195
- });
196
- });
197
- var Progress = (0, _mobxReact.observer)(function (props) {
198
- var ns = (0, _useNamespace.useNamespace)('state-progress');
199
- var rates = (0, _react.useMemo)(function () {
200
- var _rates = [];
201
- props.rates.reduce(function (sum, item) {
202
- sum = sum + item;
203
- _rates.push(sum);
204
- return sum;
205
- }, 0);
206
- return _rates;
207
- }, [JSON.stringify(props.rates)]);
208
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
209
- className: ns.b(),
210
- children: rates.map(function (rate, i) {
211
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
212
- className: ns.e('rate-item'),
213
- style: {
214
- width: "".concat(rate, "%")
215
- }
216
- }, i);
217
- })
218
- });
219
- });
220
- var CPUCard = (0, _mobxReact.observer)(function (props) {
221
- var ns = (0, _useNamespace.useNamespace)('state-cpu-card');
222
- var rootProps = (0, _react.useMemo)(function () {
223
- var _rootProps = {};
224
- if (props.id) {
225
- _rootProps.id = props.id;
226
- }
227
- return _rootProps;
228
- }, [props.id]);
229
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
230
- className: ns.b()
231
- }, rootProps), {}, {
232
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
233
- className: ns.e('header'),
234
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
235
- className: ns.e('header-title'),
236
- children: props.title
237
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
238
- className: ns.e('header-addition'),
239
- children: props.summary
240
- })]
241
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
242
- className: ns.e('progress'),
243
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Progress, {
244
- rates: props.rates
245
- })
246
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
247
- className: ns.e('info'),
248
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
249
- className: ns.e('info-icon')
250
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
251
- className: ns.e('info-title'),
252
- children: "\u672C\u5E94\u7528"
253
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
254
- className: ns.e('info-data'),
255
- children: props.data.length >= 1 && props.data[0]
256
- })]
257
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
258
- className: ns.e('info'),
259
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
260
- className: (0, _classnames["default"])(ns.e('info-icon'), ns.em('info-icon', 'second'))
261
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
262
- className: ns.e('info-title'),
263
- children: "\u5176\u4ED6"
264
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
265
- className: ns.e('info-data'),
266
- children: props.data.length >= 2 && props.data[1]
267
- })]
268
- })]
269
- }));
270
- });
271
- var DataCard = (0, _mobxReact.observer)(function (props) {
272
- var ns = (0, _useNamespace.useNamespace)('state-data-card');
273
- var rootProps = (0, _react.useMemo)(function () {
274
- var _rootProps = {};
275
- if (props.id) {
276
- _rootProps.id = props.id;
277
- }
278
- return _rootProps;
279
- }, [props.id]);
280
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", _objectSpread(_objectSpread({
281
- className: ns.b()
282
- }, rootProps), {}, {
283
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
284
- className: ns.e('header'),
285
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
286
- className: ns.e('header-title'),
287
- children: props.title
288
- })
289
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
290
- className: ns.e('content'),
291
- children: props.data.map(function (item) {
292
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
293
- className: ns.e('content-item'),
294
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
295
- className: ns.e('content-item-title'),
296
- children: item.title
297
- }), item.text && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
298
- className: ns.e('content-item-text'),
299
- children: item.text
300
- }), item.up && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
301
- className: ns.e('content-item-up'),
302
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
303
- type: _type.FcrIconType.FCR_UPORDER,
304
- colors: {
305
- iconPrimary: 'var(--fcr_ui_scene_ramp_green6)'
306
- },
307
- size: 14
308
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
309
- className: ns.e('item-up-text'),
310
- children: item.up
311
- })]
312
- }), item.down && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
313
- className: ns.e('content-item-down'),
314
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
315
- type: _type.FcrIconType.FCR_REVERSEORDER,
316
- colors: {
317
- iconPrimary: 'var(--fcr_orange6)'
318
- },
319
- size: 14
320
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
321
- className: ns.e('item-down-text'),
322
- children: item.down
323
- })]
324
- })]
325
- });
326
- })
327
- })]
328
- }));
329
- });
330
- var _default = exports["default"] = State;
@@ -1,91 +0,0 @@
1
- .fcr-device-settings-storage {
2
- display: flex;
3
- flex-flow: column nowrap;
4
- align-items: stretch;
5
- gap: 10px;
6
- }
7
-
8
- .fcr-device-settings-storage__block {
9
- padding: 10px 12px 12px;
10
- display: flex;
11
- flex-flow: column nowrap;
12
- gap: 9px;
13
- border-radius: var(--fcr_cornerradius_s);
14
- background-color: var(--fcr_mobile_ui_scene_color_popup_block5);
15
- }
16
-
17
- .fcr-device-settings-storage__title {
18
- font-size: 13px;
19
- line-height: 1;
20
- font-weight: 700;
21
- color: var(--fcr_ui_scene_icontext1);
22
- }
23
-
24
- .fcr-device-settings-storage__row {
25
- display: flex;
26
- flex-flow: row nowrap;
27
- gap: 8px;
28
- }
29
-
30
- .fcr-device-settings-storage__input-wrapper {
31
- flex: 1;
32
- display: inline-flex;
33
- flex-flow: row nowrap;
34
- align-items: center;
35
- height: 32px;
36
- border: 0.5px solid var(--fcr_web_ui_scene_line4);
37
- padding: 1px 1px 1px 11px;
38
- border-radius: var(--fcr_cornerradius_xs);
39
- background-color: var(--fcr_ui_scene_input2);
40
- font-size: 12px;
41
- overflow: hidden;
42
- }
43
-
44
- .fcr-device-settings-storage__input {
45
- flex: 1;
46
- color: var(--fcr_ui_scene_icontext1);
47
- outline: none;
48
- background: none;
49
- font-size: inherit;
50
- }
51
-
52
- .fcr-device-settings-storage__input-btn {
53
- height: 28px;
54
- padding: 0 6px;
55
- color: var(--fcr_ui_scene_ramp_brand6);
56
- border-radius: var(--fcr_cornerradius_xxs);
57
- font-size: inherit;
58
- }
59
-
60
- .fcr-device-settings-storage__action-btn {
61
- border: 0.5px solid var(--fcr_web_ui_scene_line4);
62
- border-radius: var(--fcr_cornerradius_xs);
63
- padding: 0 20px;
64
- color: var(--fcr_ui_scene_icontext1);
65
- background-color: var(--fcr_web_ui_scene_fill2);
66
- }
67
-
68
- .fcr-device-settings-storage__input-btn:hover,
69
- .fcr-device-settings-storage__action-btn:hover {
70
- background-color: var(--fcr_web_ui_scene_hover);
71
- }
72
-
73
- .fcr-device-settings-storage__input-btn:disabled,
74
- .fcr-device-settings-storage__action-btn:disabled {
75
- background-color: var(--fcr_web_ui_scene_fill2);
76
- opacity: 0.5;
77
- cursor: default;
78
- }
79
-
80
- .fcr-device-settings-storage__footer {
81
- padding-top: 3px;
82
- font-size: 13px;
83
- line-height: 1;
84
- font-weight: 300;
85
- color: var(--fcr_ui_scene_icontext2);
86
- font-variant-numeric: tabular-nums;
87
- }
88
-
89
- .fcr-device-settings-storage__footer .highlight {
90
- color: var(--fcr_ui_scene_ramp_brand6);
91
- }
@@ -1,3 +0,0 @@
1
- import './index.css';
2
- export declare const StorageSettings: () => import("react/jsx-runtime").JSX.Element;
3
- export default StorageSettings;