fcr-ui-scene 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/132.js +2 -0
- package/dist/132.js.LICENSE.txt +311 -0
- package/dist/651.js +2 -0
- package/dist/651.js.LICENSE.txt +1 -0
- package/dist/73.js +1 -0
- package/dist/index.html +13 -0
- package/dist/main.da7c203ab32d15742cfe.css +11760 -0
- package/dist/main.js +2 -0
- package/dist/main.js.LICENSE.txt +254 -0
- package/dist/worker-entry.worker.js.LICENSE.txt +13 -0
- package/lib/base.js +16 -0
- package/lib/common/device-store.d.ts +3 -4
- package/lib/common/device-store.js +167 -83
- package/lib/common/device-stream-store.d.ts +3 -2
- package/lib/common/device-stream-store.js +94 -72
- package/lib/common/event-store.d.ts +3 -1
- package/lib/common/event-store.js +5 -0
- package/lib/common/security-store.d.ts +6 -16
- package/lib/common/security-store.js +136 -101
- package/lib/electron/app.d.ts +1 -0
- package/lib/electron/app.js +148 -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 +44 -0
- package/lib/electron/injections.js +705 -0
- package/lib/electron/logger.d.ts +6 -0
- package/lib/electron/logger.js +66 -0
- package/lib/electron/main.d.ts +2 -0
- package/lib/electron/main.js +79 -0
- package/lib/electron/plugins/screenshot.d.ts +2 -0
- package/lib/electron/plugins/screenshot.js +49 -0
- package/lib/electron/preload.js +36 -0
- package/lib/electron/tools.d.ts +5 -0
- package/lib/electron/tools.js +66 -0
- package/lib/electron/window.d.ts +12 -0
- package/lib/electron/window.js +124 -0
- package/lib/fragments/control-bar/context.d.ts +0 -1
- package/lib/fragments/control-bar/control-bar-store.js +23 -2
- package/lib/fragments/control-bar/device/index.js +7 -0
- package/lib/fragments/control-bar/index.js +11 -1
- package/lib/fragments/control-bar/more-actions/index.js +5 -0
- package/lib/fragments/control-bar/security-content/index.js +3 -0
- package/lib/fragments/live-streaming/context.d.ts +0 -1
- package/lib/fragments/live-streaming/store.js +27 -17
- package/lib/fragments/share-screen-selection/context.d.ts +0 -1
- package/lib/fragments/share-screen-selection/selection-store.js +34 -33
- package/lib/fragments/share-screen-selection/view.js +7 -0
- package/lib/fragments/toolbar/components/color-picker/components/color.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/components/panel.js +4 -0
- package/lib/fragments/toolbar/components/color-picker/components/picker.js +2 -0
- package/lib/fragments/toolbar/components/color-picker/index.js +5 -1
- package/lib/fragments/toolbar/components/color-picker.js +3 -1
- package/lib/fragments/toolbar/components/eraser-picker.js +4 -13
- package/lib/fragments/toolbar/components/extension-toolbar-item.js +5 -0
- package/lib/fragments/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/fragments/toolbar/components/pen-picker.js +2 -0
- package/lib/fragments/toolbar/components/screen-capture-picker.js +2 -0
- package/lib/fragments/toolbar/components/shape-picker.js +2 -0
- package/lib/fragments/toolbar/hooks.d.ts +1 -1
- package/lib/fragments/toolbar/hooks.js +13 -8
- package/lib/fragments/toolbar/store.d.ts +4 -4
- package/lib/fragments/toolbar/store.js +20 -2
- package/lib/fragments/toolbar/view.js +2 -0
- package/lib/global.d.ts +1 -0
- package/lib/hooks/meeting-time.d.ts +2 -2
- package/lib/modules/action-bar/action-bar-collapes-items.js +9 -0
- package/lib/modules/action-bar/chat/index.js +1 -1
- package/lib/modules/action-bar/context.d.ts +0 -1
- package/lib/modules/action-bar/device/index.d.ts +2 -2
- package/lib/modules/action-bar/device/index.js +2 -0
- package/lib/modules/action-bar/index.css +4 -0
- package/lib/modules/action-bar/index.d.ts +2 -2
- package/lib/modules/action-bar/index.dev.js +7 -6
- package/lib/modules/action-bar/item-placement.d.ts +1 -2
- package/lib/modules/action-bar/item.js +5 -0
- package/lib/modules/action-bar/leave/assign-host.js +5 -3
- package/lib/modules/action-bar/leave/index.js +6 -1
- package/lib/modules/action-bar/more/poppover-content.js +10 -0
- package/lib/modules/action-bar/screen-share/submenu.js +1 -0
- package/lib/modules/action-bar/security/drop-menu.js +34 -1
- package/lib/modules/action-bar/security/index.js +1 -1
- package/lib/modules/action-bar/settings/index.js +1 -1
- package/lib/modules/action-bar/store.d.ts +9 -17
- package/lib/modules/action-bar/store.js +67 -49
- package/lib/modules/audio-stream/index.js +12 -6
- package/lib/modules/chat/chat-bar/index.js +7 -0
- package/lib/modules/chat/chat-select/index.css +5 -0
- package/lib/modules/chat/chat-select/index.js +29 -3
- package/lib/modules/chat/chat.d.ts +1 -1
- package/lib/modules/chat/chat.js +28 -4
- package/lib/modules/chat/contex.d.ts +0 -1
- package/lib/modules/chat/index.d.ts +3 -3
- package/lib/modules/chat/index.dev.js +3 -3
- package/lib/modules/chat/index.js +19 -3
- package/lib/modules/chat/message-list.js +24 -3
- package/lib/modules/chat/store.d.ts +3 -3
- package/lib/modules/chat/store.js +45 -79
- package/lib/modules/chat/util.js +1 -1
- package/lib/modules/connection-gateway/components/phone/components/callinfo/index.js +2 -0
- package/lib/modules/connection-gateway/components/phone/index.js +2 -0
- package/lib/modules/connection-gateway/index.d.ts +2 -2
- package/lib/modules/connection-gateway/index.js +2 -0
- package/lib/modules/connection-gateway/store.d.ts +1 -2
- package/lib/modules/connection-gateway/store.js +41 -14
- package/lib/modules/device-pretest/audio-preview/microphone-detection.d.ts +1 -0
- package/lib/modules/device-pretest/audio-preview/microphone-detection.js +3 -2
- package/lib/modules/device-pretest/context.d.ts +0 -1
- package/lib/modules/device-pretest/index.js +2 -1
- package/lib/modules/device-pretest/settings/beauty.js +2 -0
- package/lib/modules/device-pretest/settings/video-settings-basic.js +1 -0
- package/lib/modules/device-pretest/settings/virtual-background-setting.js +2 -0
- package/lib/modules/device-pretest/store.js +28 -9
- package/lib/modules/dialog/components/chat/electron.js +1 -1
- package/lib/modules/dialog/components/chat/index.js +1 -1
- package/lib/modules/dialog/components/confirm/electron.js +2 -2
- package/lib/modules/dialog/components/confirm/index.js +16 -2
- package/lib/modules/dialog/components/connection-gateway/electron.js +1 -1
- package/lib/modules/dialog/components/device-setting/electron.d.ts +2 -0
- package/lib/modules/dialog/components/device-setting/electron.js +72 -0
- package/lib/modules/dialog/components/device-setting/index.css +27 -0
- package/lib/modules/dialog/components/device-setting/index.d.ts +4 -0
- package/lib/modules/dialog/components/device-setting/index.js +60 -0
- package/lib/modules/dialog/components/participant/electron.js +6 -1
- package/lib/modules/dialog/components/share-screen-selection/index.js +1 -1
- package/lib/modules/dialog/context.d.ts +0 -1
- package/lib/modules/dialog/dialogs.d.ts +0 -2
- package/lib/modules/dialog/dialogs.js +46 -91
- package/lib/modules/dialog/index.css +5 -6
- package/lib/modules/dialog/index.d.ts +1 -1
- package/lib/modules/dialog/index.js +17 -0
- package/lib/modules/dialog/store.d.ts +2 -2
- package/lib/modules/dialog/store.js +36 -7
- package/lib/modules/dialog/view.js +2 -0
- package/lib/modules/event-toast/context.d.ts +0 -1
- package/lib/modules/event-toast/store.js +16 -0
- package/lib/modules/invite/context.d.ts +0 -1
- package/lib/modules/invite/index.d.ts +2 -2
- package/lib/modules/invite/pstn-invite.js +3 -1
- package/lib/modules/invite/store.d.ts +2 -2
- package/lib/modules/invite/store.js +27 -7
- package/lib/modules/invite/voip-invite.js +1 -1
- package/lib/modules/layout/components/Aside.js +4 -1
- package/lib/modules/layout/components/Carousel.js +6 -5
- package/lib/modules/layout/components/Gallery.js +9 -8
- package/lib/modules/layout/components/index.css +11 -1
- package/lib/modules/layout/components/index.js +3 -0
- package/lib/modules/layout/context.d.ts +0 -1
- package/lib/modules/layout/index.dev.js +11 -11
- package/lib/modules/layout/index.js +0 -6
- package/lib/modules/layout/member-window/index.css +5 -5
- package/lib/modules/layout/member-window/index.d.ts +7 -6
- package/lib/modules/layout/member-window/index.js +50 -10
- package/lib/modules/layout/store.d.ts +44 -49
- package/lib/modules/layout/store.js +406 -338
- package/lib/modules/layout/type.d.ts +2 -1
- package/lib/modules/layout/video-window-datasource.d.ts +14 -8
- package/lib/modules/layout/video-window-datasource.js +129 -78
- package/lib/modules/live-streaming/context.d.ts +0 -1
- package/lib/modules/live-streaming/index.d.ts +2 -2
- package/lib/modules/live-streaming/index.dev.js +4 -3
- package/lib/modules/live-streaming/store.d.ts +2 -2
- package/lib/modules/live-streaming/store.js +32 -11
- package/lib/modules/participant/attendee/index.js +10 -0
- package/lib/modules/participant/attendee/participants-more-action.js +5 -2
- package/lib/modules/participant/context.d.ts +0 -1
- package/lib/modules/participant/index.d.ts +3 -3
- package/lib/modules/participant/index.dev.js +13 -11
- package/lib/modules/participant/member-list-data-source.d.ts +3 -3
- package/lib/modules/participant/member-list-data-source.js +29 -3
- package/lib/modules/participant/room-control-drop-menu/index.js +35 -1
- package/lib/modules/participant/store.d.ts +31 -31
- package/lib/modules/participant/store.js +203 -157
- package/lib/modules/participant/view.d.ts +6 -6
- package/lib/modules/participant/view.js +5 -0
- package/lib/modules/setting/audio-settings/audio-settings.js +16 -12
- package/lib/modules/setting/audio-settings/index.css +2 -2
- package/lib/modules/setting/context.d.ts +0 -1
- package/lib/modules/setting/general-settings/general-settings.js +2 -1
- package/lib/modules/setting/general-settings/index.css +2 -2
- package/lib/modules/setting/index.d.ts +2 -2
- package/lib/modules/setting/index.dev.js +13 -11
- package/lib/modules/setting/index.js +16 -0
- package/lib/modules/setting/minutes-settings/index.css +65 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.d.ts +4 -0
- package/lib/modules/setting/minutes-settings/minutes-settings.js +159 -0
- package/lib/modules/setting/state/index.css +0 -4
- package/lib/modules/setting/state/index.js +11 -1
- package/lib/modules/setting/storage-settings/storage-settings.js +1 -1
- package/lib/modules/setting/store.d.ts +6 -4
- package/lib/modules/setting/store.js +68 -40
- package/lib/modules/setting/translate-settings/index.css +45 -0
- package/lib/modules/setting/translate-settings/language-select.d.ts +12 -0
- package/lib/modules/{device-settings/video-settings/camera-select.js → setting/translate-settings/language-select.js} +16 -17
- package/lib/modules/setting/translate-settings/translate-settings.d.ts +4 -0
- package/lib/modules/setting/translate-settings/translate-settings.js +139 -0
- package/lib/modules/setting/video-settings/index.css +7 -1
- package/lib/modules/setting/video-settings/video-settings-basic.js +3 -2
- package/lib/modules/setting/video-settings/video-settings.js +5 -1
- package/lib/modules/setting/view.js +34 -2
- package/lib/modules/share-screen/index.d.ts +2 -2
- package/lib/modules/share-screen/index.dev.js +14 -12
- package/lib/modules/share-screen/index.js +2 -0
- package/lib/modules/share-screen/selection/index.js +44 -6
- package/lib/modules/share-screen/share-state-bar/index.css +49 -11
- package/lib/modules/share-screen/share-state-bar/index.d.ts +0 -1
- package/lib/modules/share-screen/share-state-bar/index.js +51 -20
- package/lib/modules/share-screen/store.d.ts +18 -11
- package/lib/modules/share-screen/store.js +656 -570
- package/lib/modules/state-bar/context.d.ts +0 -1
- package/lib/modules/state-bar/index.d.ts +1 -1
- package/lib/modules/state-bar/index.dev.js +11 -9
- package/lib/modules/state-bar/layout-config.js +2 -0
- package/lib/modules/state-bar/live-streaming-state.js +3 -0
- package/lib/modules/state-bar/recording.js +6 -6
- package/lib/modules/state-bar/store.d.ts +4 -4
- package/lib/modules/state-bar/store.js +50 -5
- package/lib/modules/state-bar/view.js +3 -2
- package/lib/modules/video-window/context.d.ts +0 -1
- package/lib/modules/video-window/deviceState/index.d.ts +3 -3
- package/lib/modules/video-window/members/index.js +7 -4
- package/lib/modules/video-window/store.d.ts +3 -2
- package/lib/modules/video-window/store.js +35 -6
- package/lib/modules/video-window/topControl/index.js +7 -0
- package/lib/modules/video-window/view.js +2 -0
- package/lib/modules/whiteboard/app.js +2 -2
- package/lib/modules/whiteboard/components/control-bar/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/control-bar/store.js +29 -29
- package/lib/modules/whiteboard/components/loading/index.js +2 -2
- package/lib/modules/whiteboard/components/multi-window/index.js +2 -2
- package/lib/modules/whiteboard/components/pagination/store.d.ts +0 -1
- package/lib/modules/whiteboard/components/progress/electron.js +1 -1
- package/lib/modules/whiteboard/components/progress/style.css +4 -3
- package/lib/modules/whiteboard/components/switch-theme/index.js +9 -2
- package/lib/modules/whiteboard/components/switch-theme/item.js +2 -0
- package/lib/modules/whiteboard/components/switch-theme/libs.d.ts +2 -1
- package/lib/modules/whiteboard/components/switch-theme/libs.js +21 -20
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/components/panel.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/color-picker/index.js +3 -1
- package/lib/modules/whiteboard/components/toolbar/components/eraser-picker.js +11 -9
- package/lib/modules/whiteboard/components/toolbar/components/extra-tool-picker.js +4 -0
- package/lib/modules/whiteboard/components/toolbar/components/move-handle.js +5 -0
- package/lib/modules/whiteboard/components/toolbar/components/pen-picker.js +2 -0
- package/lib/modules/whiteboard/components/toolbar/components/shape-picker.js +4 -2
- package/lib/modules/whiteboard/components/toolbar/hooks/index.d.ts +3 -3
- package/lib/modules/whiteboard/components/toolbar/hooks/index.js +16 -11
- package/lib/modules/whiteboard/components/toolbar/index.js +9 -0
- package/lib/modules/whiteboard/components/toolbar/store.d.ts +7 -7
- package/lib/modules/whiteboard/components/toolbar/store.js +22 -4
- package/lib/modules/whiteboard/context.d.ts +3 -3
- package/lib/modules/whiteboard/context.js +2 -2
- package/lib/modules/whiteboard/index.d.ts +6 -7
- package/lib/modules/whiteboard/index.js +292 -253
- package/lib/modules/whiteboard/type.d.ts +4 -12
- package/lib/modules/whiteboard/type.js +6 -16
- package/lib/modules/whiteboard/utils.d.ts +1 -0
- package/lib/modules/whiteboard/utils.js +12 -1
- package/lib/plugins/browser-runtime-plugin.js +2 -4
- package/lib/plugins/module-dev-plugin.js +4 -4
- package/lib/plugins/multi-lang-plugin.d.ts +1 -5
- package/lib/plugins/multi-lang-plugin.js +2 -0
- package/lib/runtime.d.ts +84 -0
- package/lib/translations/enUS.d.ts +148 -1
- package/lib/translations/enUS.js +156 -7
- package/lib/translations/zhCN.d.ts +148 -1
- package/lib/translations/zhCN.js +152 -3
- package/lib/ui-manager.d.ts +2 -2
- package/lib/ui-manager.js +37 -20
- package/lib/ui-scene.js +6 -1
- package/lib/utilities/board-context.d.ts +0 -1
- package/lib/utilities/constant.d.ts +4 -1
- package/lib/utilities/constant.js +3 -0
- package/lib/utilities/copyText.js +1 -1
- package/lib/utilities/extract.js +26 -3
- package/lib/utilities/hooks.js +2 -0
- package/lib/utilities/renderer-event.js +28 -0
- package/lib/utilities/renderer.js +9 -4
- package/lib/utilities/tools.js +5 -2
- package/lib/utilities/ui-resources.d.ts +2 -2
- package/lib/utilities/ui-resources.js +20 -3
- package/lib/utilities/video-track-render-context.d.ts +0 -1
- package/package.json +10 -8
- 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/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,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,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
|
-
}
|