tuikit-atomicx-vue3 4.4.0 → 4.5.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/.eslintrc.cjs +6 -2
- package/dist/DurationSelector.vue_vue_type_script_setup_true_lang-RndH6NtJ.js +54 -0
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-D9jiYNFu.js → MessageInput.vue_vue_type_script_setup_true_lang-jPzZ5INK.js} +31 -29
- package/dist/TimezoneSelector.vue_vue_type_script_setup_true_lang-C-lovW-l.js +62 -0
- package/dist/baseComp/AudioIcon.js +7 -7
- package/dist/baseComp/Input/InputH5.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputPC.vue.d.ts +1 -1
- package/dist/baseComp/Input/InputWX.vue.d.ts +1 -1
- package/dist/baseComp/Input/index.d.ts +15 -15
- package/dist/changeNameCardDialog.vue_vue_type_script_setup_true_lang-a4FmKskP.js +41 -0
- package/dist/chat/index.d.ts +490 -475
- package/dist/components/AudioSetting/AudioMediaControl.js +23 -23
- package/dist/components/AudioSetting/AudioRequestDialog.js +86 -2
- package/dist/components/AudioSetting/AudioSettingTab.js +32 -33
- package/dist/components/AudioSetting/MicrophoneSelect.js +14 -15
- package/dist/components/AudioSetting/SpeakerSelect.js +16 -17
- package/dist/components/AudioSetting/index.js +29 -3
- package/dist/components/AudioSettingPanel/MicrophoneSelect.js +61 -0
- package/dist/components/AudioSettingPanel/MicrophoneSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.js +61 -0
- package/dist/components/AudioSettingPanel/SpeakerSelect.vue.d.ts +29 -0
- package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/en-US/index.js +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +12 -6
- package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +12 -6
- package/dist/components/AudioSettingPanel/index.d.ts +49 -2
- package/dist/components/AudioSettingPanel/index.js +127 -94
- package/dist/components/AudioSettingPanel/index.vue.d.ts +49 -1
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +5 -4
- package/dist/components/BarrageInput/TextEditor/TextEditor.vue.d.ts +1 -1
- package/dist/components/BarrageInput/index.d.ts +6 -6
- package/dist/components/BarrageList/BarrageList.js +7 -7
- package/dist/components/BarrageList/BarrageListH5.js +7 -7
- package/dist/components/BarrageList/BarrageListState.d.ts +5 -27
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +4 -4
- package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +11 -11
- package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +1 -1
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +4 -4
- package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +1 -1
- package/dist/components/CameraButton/index.js +7 -7
- package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +2 -1
- package/dist/components/ChatSetting/SettingItem/SettingItem.vue.d.ts +2 -2
- package/dist/components/ConversationList/ConversationActions/ConversationActions.js +49 -51
- package/dist/components/ConversationList/ConversationList.vue.d.ts +190 -190
- package/dist/components/ConversationList/ConversationPreview/ConversationPreview.vue.d.ts +82 -82
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.js +31 -29
- package/dist/components/ConversationList/ConversationPreview/ConversationPreviewUI.vue.d.ts +16 -16
- package/dist/components/ConversationList/ConversationSearch/ConversationSearch.vue.d.ts +36 -36
- package/dist/components/ConversationList/index.d.ts +442 -442
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.js +257 -0
- package/dist/components/FreeBeautyPanel/FreeBeautyPanel.vue.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/en-US/index.js +19 -0
- package/dist/components/FreeBeautyPanel/i18n/index.d.ts +4 -0
- package/dist/components/FreeBeautyPanel/i18n/index.js +6 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.d.ts +15 -0
- package/dist/components/FreeBeautyPanel/i18n/zh-CN/index.js +19 -0
- package/dist/components/FreeBeautyPanel/index.d.ts +6 -0
- package/dist/components/FreeBeautyPanel/index.js +10 -0
- package/dist/components/LiveMonitorView/LiveMonitorView.js +11 -11
- package/dist/components/LiveScenePanel/index.d.ts +1 -2
- package/dist/components/LiveScenePanel/index.js +44 -43
- package/dist/components/LiveView/DefaultStreamViewUI.js +10 -10
- package/dist/components/LiveView/PlayerControl/AudioControl.js +97 -93
- package/dist/components/LiveView/PlayerControl/AudioControl.vue.d.ts +10 -6
- package/dist/components/LiveView/PlayerControl/MultiResolution.js +58 -64
- package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +1 -7
- package/dist/components/LiveView/PlayerControl/PlayerControl.js +82 -83
- package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +6 -6
- package/dist/components/LiveView/PlayerControl/PlayerControlState.js +153 -194
- package/dist/components/LiveView/index.d.ts +37 -2
- package/dist/components/LiveView/index.js +29 -29
- package/dist/components/MessageInput/AudioCallPicker/AudioCallPicker.js +63 -65
- package/dist/components/MessageInput/MessageInput.js +1 -1
- package/dist/components/MessageInput/MessageInput.vue.d.ts +4 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.d.ts +2 -1
- package/dist/components/MessageInput/TextEditor/EditorCore.js +47 -61
- package/dist/components/MessageInput/TextEditor/TextEditor.vue.d.ts +5 -1
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.d.ts +19 -0
- package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +74 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.d.ts +2 -0
- package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +62 -0
- package/dist/components/MessageInput/TextEditor/index.js +48 -39
- package/dist/components/MessageInput/VideoCallPicker/VideoCallPicker.js +67 -69
- package/dist/components/MessageInput/i18n/index.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.d.ts +4 -0
- package/dist/components/MessageInput/i18n/zh-CN.js +5 -1
- package/dist/components/MessageInput/index.d.ts +60 -30
- package/dist/components/MessageInput/index.js +1 -1
- package/dist/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.js +18 -18
- package/dist/components/MessageList/Message/GroupTipMessage/index.js +13 -13
- package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +63 -69
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +48 -53
- package/dist/components/MessageList/Message/VideoMessage/VideoMessage.vue.d.ts +8 -8
- package/dist/components/MessageList/i18n/en-US.d.ts +65 -1
- package/dist/components/MessageList/i18n/en-US.js +66 -2
- package/dist/components/MessageList/i18n/index.d.ts +128 -0
- package/dist/components/MessageList/i18n/index.js +6 -6
- package/dist/components/MessageList/i18n/zh-CN.d.ts +65 -1
- package/dist/components/MessageList/i18n/zh-CN.js +64 -0
- package/dist/components/MicButton/index.js +13 -13
- package/dist/components/RoomParticipantList/ParticipantAction.js +78 -0
- package/dist/components/RoomParticipantList/ParticipantAction.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/ParticipantItem.js +82 -0
- package/dist/components/RoomParticipantList/ParticipantItem.vue.d.ts +27 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.js +75 -0
- package/dist/components/RoomParticipantList/PendingParticipantItem.vue.d.ts +16 -0
- package/dist/components/RoomParticipantList/RoomAction.js +89 -0
- package/dist/components/RoomParticipantList/RoomAction.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/en-US/index.js +69 -0
- package/dist/components/RoomParticipantList/i18n/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/i18n/index.js +6 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.d.ts +66 -0
- package/dist/components/RoomParticipantList/i18n/zh-CN/index.js +69 -0
- package/dist/components/RoomParticipantList/index.d.ts +2 -0
- package/dist/components/RoomParticipantList/index.js +171 -0
- package/dist/components/RoomParticipantList/index.vue.d.ts +2 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.d.ts +15 -0
- package/dist/components/RoomParticipantList/useParticpantAction/index.js +71 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAdminAction.js +36 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useAudioAction.js +42 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useKickAction.js +34 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useMessageAction.js +31 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.js +4 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue.d.ts +17 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.js +61 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.d.ts +11 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.js +54 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.d.ts +19 -0
- package/dist/components/RoomParticipantList/useParticpantAction/useVideoAction.js +40 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/index.js +20 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomAudioAction.js +51 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.d.ts +8 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomScreenAction.js +60 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.d.ts +5 -0
- package/dist/components/RoomParticipantList/useRoomAction/useRoomVideoAction.js +50 -0
- package/dist/components/RoomParticipantView/StreamPlay.js +74 -0
- package/dist/components/RoomParticipantView/StreamPlay.vue.d.ts +66 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.d.ts +56 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.js +94 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.d.ts +58 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.js +97 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.d.ts +46 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/StreamPlayer.js +100 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.d.ts +92 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.js +177 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.d.ts +119 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/index.js +298 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.d.ts +14 -0
- package/dist/components/RoomParticipantView/StreamPlayManager/types.js +4 -0
- package/dist/components/RoomParticipantView/index.d.ts +99 -0
- package/dist/components/RoomParticipantView/index.js +32 -0
- package/dist/components/RoomParticipantView/index.vue.d.ts +34 -0
- package/dist/components/RoomView/ArrowStroke.js +43 -0
- package/dist/components/RoomView/ArrowStroke.vue.d.ts +20 -0
- package/dist/components/RoomView/GridLayout.js +119 -0
- package/dist/components/RoomView/GridLayout.vue.d.ts +20 -0
- package/dist/components/RoomView/SpeakerLayout.js +141 -0
- package/dist/components/RoomView/SpeakerLayout.vue.d.ts +32 -0
- package/dist/components/RoomView/index.d.ts +52 -0
- package/dist/components/RoomView/index.js +49 -0
- package/dist/components/RoomView/index.vue.d.ts +46 -0
- package/dist/components/RoomView/useRoomToolbar.d.ts +5 -0
- package/dist/components/RoomView/useRoomToolbar.js +36 -0
- package/dist/components/RoomView/useRoomView.d.ts +13 -0
- package/dist/components/RoomView/useRoomView.js +40 -0
- package/dist/components/RoomView/useStreamItemDimensions.d.ts +30 -0
- package/dist/components/RoomView/useStreamItemDimensions.js +57 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.js +162 -0
- package/dist/components/ScheduleRoomPanel/Datepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/DurationSelector.vue.d.ts +39 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.js +113 -0
- package/dist/components/ScheduleRoomPanel/RoomDetail.vue.d.ts +31 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.js +281 -0
- package/dist/components/ScheduleRoomPanel/RoomEdit.vue.d.ts +23 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.js +110 -0
- package/dist/components/ScheduleRoomPanel/RoomShare.vue.d.ts +16 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +385 -0
- package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.vue.d.ts +40 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.js +345 -0
- package/dist/components/ScheduleRoomPanel/ScheduledRoomList.vue.d.ts +8 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.js +65 -0
- package/dist/components/ScheduleRoomPanel/Timepicker.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.js +4 -0
- package/dist/components/ScheduleRoomPanel/TimezoneSelector.vue.d.ts +18 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/en-US/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.d.ts +4 -0
- package/dist/components/ScheduleRoomPanel/i18n/index.js +6 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.d.ts +108 -0
- package/dist/components/ScheduleRoomPanel/i18n/zh-CN/index.js +111 -0
- package/dist/components/ScheduleRoomPanel/index.d.ts +34 -0
- package/dist/components/ScheduleRoomPanel/index.js +12 -0
- package/dist/components/ScheduleRoomPanel/type.d.ts +7 -0
- package/dist/components/ScheduleRoomPanel/type.js +1 -0
- package/dist/components/ScheduleRoomPanel/utils.d.ts +46 -0
- package/dist/components/ScheduleRoomPanel/utils.js +123 -0
- package/dist/components/Search/Search.vue.d.ts +12 -12
- package/dist/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.js +172 -174
- package/dist/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.js +58 -60
- package/dist/components/Search/SearchAdvanced/SearchAdvanced.js +28 -30
- package/dist/components/Search/SearchAdvanced/SearchTab/SearchTab.js +22 -24
- package/dist/components/Search/SearchAdvanced/Slider/Slider.js +26 -28
- package/dist/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.js +133 -135
- package/dist/components/Search/SearchBar/SearchBar.js +56 -58
- package/dist/components/Search/index.d.ts +18 -18
- package/dist/components/StreamMixer/LocalMixer/index.js +25 -22
- package/dist/components/StreamMixer/index.d.ts +1 -2
- package/dist/components/StreamMixer/index.js +9 -8
- package/dist/components/StreamView/Layout/CustomLayout.js +53 -53
- package/dist/components/StreamView/Layout/CustomLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/FloatLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/GridLayout.js +47 -51
- package/dist/components/StreamView/Layout/GridLayout.vue.d.ts +1 -2
- package/dist/components/StreamView/Layout/MeetingLayout.js +10 -10
- package/dist/components/StreamView/Layout/MeetingLayout.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamList/index.vue.d.ts +1 -1
- package/dist/components/StreamView/common/StreamRegion/StreamRegionPC.vue.d.ts +2 -2
- package/dist/components/StreamView/index.d.ts +90 -3
- package/dist/components/StreamView/index.js +4 -4
- package/dist/components/StreamView/index.vue.d.ts +1 -1
- package/dist/components/StreamView/manager/mediaManager.js +9 -9
- package/dist/components/UIKitModal/UIKitModal.d.ts +7 -0
- package/dist/components/UIKitModal/UIKitModal.js +156 -0
- package/dist/components/UIKitModal/index.d.ts +2 -0
- package/dist/components/UIKitModal/index.js +6 -0
- package/dist/components/UIKitModal/index.vue.d.ts +45 -0
- package/dist/components/UIKitModal/type.d.ts +21 -0
- package/dist/components/UIKitModal/type.js +1 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/en-US/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.d.ts +4 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/index.js +6 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.d.ts +17 -0
- package/dist/components/UIKitModal/useRoomModal/i18n/zh-CN/index.js +21 -0
- package/dist/components/UIKitModal/useRoomModal/index.d.ts +6 -0
- package/dist/components/UIKitModal/useRoomModal/index.js +11 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.d.ts +21 -0
- package/dist/components/UIKitModal/useRoomModal/useRoomModal.js +79 -0
- package/dist/components/UserList/AllUserActions/indexH5.js +21 -21
- package/dist/components/UserList/AllUserActions/useIndexHooks.d.ts +0 -2
- package/dist/components/UserList/AllUserActions/useIndexHooks.js +24 -25
- package/dist/components/UserList/UserItem/UserInfo/index.js +19 -19
- package/dist/components/UserPicker/UserPicker.js +1 -2
- package/dist/components/UserPicker/components/SelectedPanel/SelectedPanel.js +19 -18
- package/dist/components/UserPicker/hooks/useSearchFilter.d.ts +2 -2
- package/dist/components/UserPicker/hooks/useSearchFilter.js +39 -31
- package/dist/components/UserPicker/i18n/en-US.d.ts +1 -0
- package/dist/components/UserPicker/i18n/en-US.js +2 -1
- package/dist/components/UserPicker/i18n/index.d.ts +2 -0
- package/dist/components/UserPicker/i18n/zh-CN.d.ts +1 -0
- package/dist/components/UserPicker/i18n/zh-CN.js +2 -1
- package/dist/components/UserPicker/index.d.ts +2 -2
- package/dist/components/UserPicker/type.d.ts +1 -1
- package/dist/components/VideoSetting/CameraSelect.js +6 -7
- package/dist/components/VideoSetting/VideoMediaControl.js +45 -44
- package/dist/components/VideoSetting/VideoPreview.js +24 -25
- package/dist/components/VideoSetting/VideoProfile.js +22 -23
- package/dist/components/VideoSetting/VideoSettingTab.js +24 -24
- package/dist/components/VideoSetting/index.js +32 -3
- package/dist/components/VideoSettingPanel/CameraSelect.js +28 -25
- package/dist/components/VideoSettingPanel/VideoPreview.js +13 -13
- package/dist/components/VideoSettingPanel/VideoProfile.js +27 -27
- package/dist/components/VideoSettingPanel/i18n/en-US/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/en-US/index.js +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.d.ts +13 -10
- package/dist/components/VideoSettingPanel/i18n/zh-CN/index.js +13 -10
- package/dist/components/VideoSettingPanel/index.d.ts +9 -0
- package/dist/components/VideoSettingPanel/index.js +56 -44
- package/dist/components/VideoSettingPanel/index.vue.d.ts +9 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.js +169 -0
- package/dist/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue.d.ts +33 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/en-US/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.d.ts +4 -0
- package/dist/components/VirtualBackgroundPanel/i18n/index.js +6 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.d.ts +10 -0
- package/dist/components/VirtualBackgroundPanel/i18n/zh-CN/index.js +14 -0
- package/dist/components/VirtualBackgroundPanel/index.d.ts +20 -0
- package/dist/components/VirtualBackgroundPanel/index.js +10 -0
- package/dist/hooks/useRoomActions/index.d.ts +1 -1
- package/dist/hooks/useRoomActions/index.js +10 -11
- package/dist/hooks/useRoomActions/useRoomAudioAction.d.ts +1 -3
- package/dist/hooks/useRoomActions/useRoomAudioAction.js +30 -31
- package/dist/hooks/useRoomActions/useRoomScreenAction.d.ts +0 -2
- package/dist/hooks/useRoomActions/useRoomScreenAction.js +20 -20
- package/dist/hooks/useRoomActions/useRoomVideoAction.d.ts +1 -8
- package/dist/hooks/useRoomActions/useRoomVideoAction.js +26 -28
- package/dist/hooks/useRoomEngine.d.ts +2 -2
- package/dist/hooks/useUserActions/index.d.ts +7 -23
- package/dist/hooks/useUserActions/index.js +11 -11
- package/dist/hooks/useUserActions/useChangeNameCardAction/index.d.ts +1 -9
- package/dist/hooks/useUserActions/useKickUserAction.d.ts +1 -9
- package/dist/hooks/useUserActions/useSeatAction.d.ts +1 -1
- package/dist/hooks/useUserActions/useSeatAction.js +3 -3
- package/dist/hooks/useUserActions/useTransferOwnerAction.d.ts +2 -10
- package/dist/hooks/useUserActions/useTransferOwnerAction.js +22 -20
- package/dist/hooks/useUserActions/useVideoAction.d.ts +1 -9
- package/dist/index-7vNB_Vx8.js +64 -0
- package/dist/{index-BfIEeWMg.js → index-Do-2CngU.js} +1894 -1759
- package/dist/{index-DTi1fL-x.js → index-ZILx4LYk.js} +1210 -1512
- package/dist/index.d.ts +3 -6
- package/dist/index.js +255 -194
- package/dist/report/MetricsKey.d.ts +27 -14
- package/dist/report/MetricsKey.js +1 -1
- package/dist/report/dataReport.js +12 -8
- package/dist/states/ASRState/ASRState.d.ts +61 -0
- package/dist/states/ASRState/ASRState.js +79 -0
- package/dist/states/ASRState/index.d.ts +1 -0
- package/dist/states/ASRState/index.js +4 -0
- package/dist/states/BarrageState/BarrageState.d.ts +70 -44
- package/dist/states/BarrageState/BarrageState.js +29 -31
- package/dist/states/BarrageState/index.js +2 -3
- package/dist/states/BattleState/BattleState.d.ts +101 -5
- package/dist/states/C2CSettingState/C2CSettingState.d.ts +107 -0
- package/dist/states/CoGuestState.d.ts +53 -1
- package/dist/states/CoGuestState.js +15 -15
- package/dist/states/CoHostState/CoHostState.d.ts +120 -0
- package/dist/states/ContactListState/ContactListState.d.ts +56 -0
- package/dist/states/ConversationListState/ConversationListState.d.ts +36 -0
- package/dist/states/DeviceState/DeviceState.d.ts +68 -10
- package/dist/states/DeviceState/DeviceState.js +233 -189
- package/dist/states/DeviceState/mediaAbality.d.ts +2 -0
- package/dist/states/DeviceState/mediaAbality.js +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.d.ts +11 -0
- package/dist/states/FreeBeautyState/FreeBeautyState.js +103 -0
- package/dist/states/FreeBeautyState/index.d.ts +1 -0
- package/dist/states/FreeBeautyState/index.js +4 -0
- package/dist/states/GroupSettingState/GroupSettingState.d.ts +59 -0
- package/dist/states/LiveAudienceState.d.ts +42 -4
- package/dist/states/LiveListState/LiveListState.d.ts +2 -2
- package/dist/states/LiveListState/LiveListState.js +5 -5
- package/dist/states/LiveMonitorState/index.d.ts +42 -0
- package/dist/states/LiveMonitorState/player/adapters/trtc.js +6 -6
- package/dist/states/LiveSeatState/index.d.ts +58 -8
- package/dist/states/LiveSeatState/index.js +20 -18
- package/dist/states/LiveSeatState/seatManager.d.ts +293 -6
- package/dist/states/LiveSeatState/seatManager.js +283 -0
- package/dist/states/LiveSeatState/store.d.ts +0 -2
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +13 -13
- package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +7 -7
- package/dist/states/LiveSeatState/usePlayStream/index.d.ts +4 -7
- package/dist/states/LiveSeatState/usePlayStream/index.js +65 -54
- package/dist/states/LoginState.d.ts +45 -0
- package/dist/states/MessageActionState/MessageActionState.d.ts +36 -2
- package/dist/states/MessageActionState/MessageActionState.js +142 -22
- package/dist/states/MessageListState/MessageListState.d.ts +39 -0
- package/dist/states/RoomParticipantState/callEventManager.d.ts +10 -0
- package/dist/states/RoomParticipantState/callEventManager.js +49 -0
- package/dist/states/RoomParticipantState/common.d.ts +14 -0
- package/dist/states/RoomParticipantState/common.js +76 -0
- package/dist/states/RoomParticipantState/index.d.ts +4 -0
- package/dist/states/RoomParticipantState/index.js +93 -0
- package/dist/states/RoomParticipantState/participantEventManager.d.ts +66 -0
- package/dist/states/RoomParticipantState/participantEventManager.js +326 -0
- package/dist/states/RoomParticipantState/participantManager.d.ts +311 -0
- package/dist/states/RoomParticipantState/participantManager.js +440 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.d.ts +7 -0
- package/dist/states/RoomParticipantState/scheduleEventManager.js +37 -0
- package/dist/states/RoomParticipantState/store.d.ts +38 -0
- package/dist/states/RoomParticipantState/store.js +102 -0
- package/dist/states/RoomState/callManager.d.ts +43 -0
- package/dist/states/RoomState/callManager.js +208 -0
- package/dist/states/RoomState/common.d.ts +25 -0
- package/dist/states/RoomState/common.js +101 -0
- package/dist/states/RoomState/index.d.ts +8 -0
- package/dist/states/RoomState/index.js +52 -0
- package/dist/states/RoomState/roomManager.d.ts +35 -0
- package/dist/states/RoomState/roomManager.js +129 -0
- package/dist/states/RoomState/scheduleManager.d.ts +48 -0
- package/dist/states/RoomState/scheduleManager.js +174 -0
- package/dist/states/RoomState/store.d.ts +103 -0
- package/dist/states/RoomState/store.js +12 -0
- package/dist/states/SearchState.d.ts +47 -0
- package/dist/states/SeatStore.d.ts +59 -52
- package/dist/states/UIKitModalState/UIKitModalState.d.ts +17 -0
- package/dist/states/UIKitModalState/UIKitModalState.js +63 -0
- package/dist/states/UIKitModalState/index.d.ts +1 -0
- package/dist/states/UIKitModalState/index.js +4 -0
- package/dist/states/UserState/index.js +22 -28
- package/dist/states/UserState/store.d.ts +1 -1
- package/dist/states/UserState/store.js +55 -62
- package/dist/states/UserState/userManager.d.ts +2 -2
- package/dist/states/UserState/userManager.js +23 -25
- package/dist/states/VideoMixerState/VideoMixerState.d.ts +57 -1
- package/dist/states/VideoMixerState/VideoMixerState.js +91 -90
- package/dist/states/VideoMixerState/index.d.ts +1 -0
- package/dist/states/VideoMixerState/index.js +2 -1
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.d.ts +52 -0
- package/dist/states/VirtualBackgroundState/VirtualBackgroundState.js +99 -0
- package/dist/states/VirtualBackgroundState/index.d.ts +1 -0
- package/dist/states/VirtualBackgroundState/index.js +4 -0
- package/dist/styles/index.css +1 -1
- package/dist/subEntry/common/base.d.ts +5 -0
- package/dist/subEntry/common/base.js +21 -0
- package/dist/subEntry/common/index.d.ts +2 -0
- package/dist/subEntry/common/index.js +29 -0
- package/dist/subEntry/common/rtc.d.ts +4 -0
- package/dist/subEntry/common/rtc.js +10 -0
- package/dist/subEntry/live/index.d.ts +4 -0
- package/dist/subEntry/live/index.js +200 -0
- package/dist/subEntry/live/live.d.ts +21 -0
- package/dist/subEntry/live/live.js +45 -0
- package/dist/{rtc → subEntry/live}/server.d.ts +1 -1
- package/dist/{rtc → subEntry/live}/server.js +4 -4
- package/dist/subEntry/room/index.d.ts +4 -0
- package/dist/subEntry/room/index.js +180 -0
- package/dist/subEntry/room/room.d.ts +11 -0
- package/dist/subEntry/room/room.js +25 -0
- package/dist/subEntry/room/server.d.ts +19 -0
- package/dist/subEntry/room/server.js +97 -0
- package/dist/types/asr.d.ts +29 -0
- package/dist/types/asr.js +4 -0
- package/dist/types/barrage.d.ts +83 -0
- package/dist/types/barrage.js +4 -0
- package/dist/types/beauty.d.ts +9 -0
- package/dist/types/beauty.js +4 -0
- package/dist/types/device.d.ts +0 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.js +125 -108
- package/dist/types/participant.d.ts +243 -0
- package/dist/types/participant.js +10 -0
- package/dist/types/room.d.ts +202 -55
- package/dist/types/room.js +5 -3
- package/dist/types/virtualBackground.d.ts +14 -0
- package/dist/types/virtualBackground.js +5 -0
- package/dist/utils/call.d.ts +1 -1
- package/dist/utils/call.js +78 -79
- package/dist/utils/compare.d.ts +10 -0
- package/dist/utils/compare.js +12 -0
- package/package.json +11 -7
- package/src/baseComp/AudioIcon.vue +11 -3
- package/src/components/AudioSetting/AudioMediaControl.vue +10 -9
- package/src/components/AudioSetting/AudioRequestDialog.vue +11 -11
- package/src/components/AudioSetting/AudioSettingTab.vue +14 -14
- package/src/components/AudioSetting/MicrophoneSelect.vue +11 -11
- package/src/components/AudioSetting/SpeakerSelect.vue +10 -11
- package/src/components/AudioSetting/index.ts +1 -1
- package/src/components/AudioSetting/index.vue +4 -7
- package/src/components/AudioSettingPanel/MicrophoneSelect.vue +77 -0
- package/src/components/AudioSettingPanel/SpeakerSelect.vue +78 -0
- package/src/components/AudioSettingPanel/i18n/en-US/index.ts +12 -6
- package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +12 -6
- package/src/components/AudioSettingPanel/index.ts +3 -1
- package/src/components/AudioSettingPanel/index.vue +150 -122
- package/src/components/BarrageList/BarrageList.vue +1 -1
- package/src/components/BarrageList/BarrageListH5.vue +1 -1
- package/src/components/BarrageList/BarrageListState.ts +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +1 -1
- package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +2 -2
- package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +1 -1
- package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +5 -0
- package/src/components/ConversationList/ConversationActions/ConversationActions.vue +1 -7
- package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue +3 -3
- package/src/components/FreeBeautyPanel/FreeBeautyPanel.vue +618 -0
- package/src/components/FreeBeautyPanel/i18n/en-US/index.ts +16 -0
- package/src/components/FreeBeautyPanel/i18n/index.ts +4 -0
- package/src/components/FreeBeautyPanel/i18n/zh-CN/index.ts +16 -0
- package/src/components/FreeBeautyPanel/index.ts +11 -0
- package/src/components/LiveScenePanel/index.ts +4 -1
- package/src/components/LiveView/PlayerControl/AudioControl.vue +72 -80
- package/src/components/LiveView/PlayerControl/MultiResolution.vue +29 -26
- package/src/components/LiveView/PlayerControl/PlayerControl.vue +10 -36
- package/src/components/LiveView/PlayerControl/PlayerControlState.ts +108 -286
- package/src/components/LiveView/index.ts +2 -1
- package/src/components/MessageInput/AudioCallPicker/AudioCallPicker.vue +8 -6
- package/src/components/MessageInput/MessageInput.vue +2 -0
- package/src/components/MessageInput/TextEditor/EditorCore.ts +13 -26
- package/src/components/MessageInput/TextEditor/TextEditor.vue +23 -2
- package/src/components/MessageInput/TextEditor/extensions/characterCountExtension.ts +159 -0
- package/src/components/MessageInput/TextEditor/extensions/imageExtension.ts +79 -0
- package/src/components/MessageInput/VideoCallPicker/VideoCallPicker.vue +8 -6
- package/src/components/MessageInput/i18n/zh-CN.ts +4 -0
- package/src/components/MessageInput/types.d.ts +1 -0
- package/src/components/MessageList/Message/CustomMessage/CallMessage/CallMessage.vue +4 -2
- package/src/components/MessageList/Message/GroupTipMessage/GroupTipMessage.vue +5 -4
- package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +8 -8
- package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +46 -43
- package/src/components/MessageList/Message/VideoMessage/index.ts +1 -1
- package/src/components/MessageList/i18n/en-US.ts +66 -0
- package/src/components/MessageList/i18n/index.ts +4 -4
- package/src/components/MessageList/i18n/zh-CN.ts +66 -0
- package/src/components/RoomParticipantList/ParticipantAction.vue +196 -0
- package/src/components/RoomParticipantList/ParticipantItem.vue +205 -0
- package/src/components/RoomParticipantList/PendingParticipantItem.vue +142 -0
- package/src/components/RoomParticipantList/RoomAction.vue +141 -0
- package/src/components/RoomParticipantList/i18n/en-US/index.ts +74 -0
- package/src/components/RoomParticipantList/i18n/index.ts +2 -0
- package/src/components/RoomParticipantList/i18n/zh-CN/index.ts +74 -0
- package/src/components/RoomParticipantList/index.ts +10 -0
- package/src/components/RoomParticipantList/index.vue +285 -0
- package/src/components/RoomParticipantList/useParticpantAction/index.ts +94 -0
- package/src/components/RoomParticipantList/useParticpantAction/useAdminAction.ts +56 -0
- package/src/components/RoomParticipantList/useParticpantAction/useAudioAction.ts +66 -0
- package/src/components/RoomParticipantList/useParticpantAction/useKickAction.ts +46 -0
- package/src/components/RoomParticipantList/useParticpantAction/useMessageAction.ts +42 -0
- package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/changeNameCardDialog.vue +51 -0
- package/src/components/RoomParticipantList/useParticpantAction/useNameCardAction/index.ts +80 -0
- package/src/components/RoomParticipantList/useParticpantAction/useTransferOwnerAction.ts +77 -0
- package/src/components/RoomParticipantList/useParticpantAction/useVideoAction.ts +59 -0
- package/src/components/RoomParticipantList/useRoomAction/index.ts +23 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomAudioAction.ts +67 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomScreenAction.ts +69 -0
- package/src/components/RoomParticipantList/useRoomAction/useRoomVideoAction.ts +66 -0
- package/src/components/RoomParticipantView/StreamPlay.vue +127 -0
- package/src/components/RoomParticipantView/StreamPlayManager/LazyLoadManager.ts +174 -0
- package/src/components/RoomParticipantView/StreamPlayManager/README.md +768 -0
- package/src/components/RoomParticipantView/StreamPlayManager/StreamInfoManager.ts +209 -0
- package/src/components/RoomParticipantView/StreamPlayManager/StreamPlayer.ts +183 -0
- package/src/components/RoomParticipantView/StreamPlayManager/VideoQualityManager.ts +357 -0
- package/src/components/RoomParticipantView/StreamPlayManager/index.ts +501 -0
- package/src/components/RoomParticipantView/StreamPlayManager/types.ts +13 -0
- package/src/components/RoomParticipantView/index.ts +5 -0
- package/src/components/RoomParticipantView/index.vue +43 -0
- package/src/components/RoomView/ArrowStroke.vue +265 -0
- package/src/components/RoomView/GridLayout.vue +236 -0
- package/src/components/RoomView/SpeakerLayout.vue +400 -0
- package/src/components/RoomView/index.ts +5 -0
- package/src/components/RoomView/index.vue +58 -0
- package/src/components/RoomView/useRoomToolbar.ts +97 -0
- package/src/components/RoomView/useRoomView.ts +48 -0
- package/src/components/RoomView/useStreamItemDimensions.ts +162 -0
- package/src/components/ScheduleRoomPanel/Datepicker.vue +332 -0
- package/src/components/ScheduleRoomPanel/DurationSelector.vue +92 -0
- package/src/components/ScheduleRoomPanel/RoomDetail.vue +240 -0
- package/src/components/ScheduleRoomPanel/RoomEdit.vue +473 -0
- package/src/components/ScheduleRoomPanel/RoomShare.vue +216 -0
- package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +625 -0
- package/src/components/ScheduleRoomPanel/ScheduledRoomList.vue +622 -0
- package/src/components/ScheduleRoomPanel/Timepicker.vue +86 -0
- package/src/components/ScheduleRoomPanel/TimezoneSelector.vue +70 -0
- package/src/components/ScheduleRoomPanel/i18n/en-US/index.ts +116 -0
- package/src/components/ScheduleRoomPanel/i18n/index.ts +4 -0
- package/src/components/ScheduleRoomPanel/i18n/zh-CN/index.ts +116 -0
- package/src/components/ScheduleRoomPanel/index.ts +14 -0
- package/src/components/ScheduleRoomPanel/type.ts +7 -0
- package/src/components/ScheduleRoomPanel/utils.ts +281 -0
- package/src/components/Search/SearchAdvanced/DateRangePicker/DateRangePicker.scss +1 -4
- package/src/components/Search/SearchAdvanced/MessageAdvanced/MessageAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchAdvanced.scss +1 -4
- package/src/components/Search/SearchAdvanced/SearchTab/SearchTab.scss +1 -4
- package/src/components/Search/SearchAdvanced/Slider/Slider.scss +1 -4
- package/src/components/Search/SearchAdvanced/UserAdvanced/UserAdvanced.scss +1 -4
- package/src/components/Search/SearchBar/SearchBar.scss +3 -6
- package/src/components/StreamMixer/LocalMixer/index.vue +6 -1
- package/src/components/StreamMixer/index.ts +4 -1
- package/src/components/StreamView/Layout/CustomLayout.vue +40 -36
- package/src/components/StreamView/Layout/GridLayout.vue +31 -40
- package/src/components/StreamView/Layout/MeetingLayout.vue +34 -35
- package/src/components/StreamView/index.ts +5 -3
- package/src/components/StreamView/manager/mediaManager.ts +1 -2
- package/src/components/UIKitModal/UIKitModal.ts +71 -0
- package/src/components/UIKitModal/index.scss +134 -0
- package/src/components/UIKitModal/index.ts +2 -0
- package/src/components/UIKitModal/index.vue +160 -0
- package/src/components/UIKitModal/type.ts +24 -0
- package/src/components/UIKitModal/useRoomModal/i18n/en-US/index.ts +19 -0
- package/src/components/UIKitModal/useRoomModal/i18n/index.ts +4 -0
- package/src/components/UIKitModal/useRoomModal/i18n/zh-CN/index.ts +18 -0
- package/src/components/UIKitModal/useRoomModal/index.ts +11 -0
- package/src/components/UIKitModal/useRoomModal/useRoomModal.ts +103 -0
- package/src/components/UserList/AllUserActions/indexH5.vue +3 -3
- package/src/components/UserList/AllUserActions/useIndexHooks.ts +1 -1
- package/src/components/UserList/UserItem/UserInfo/index.vue +17 -12
- package/src/components/UserPicker/UserPicker.vue +1 -1
- package/src/components/UserPicker/components/SelectedPanel/SelectedPanel.vue +1 -0
- package/src/components/UserPicker/hooks/useSearchFilter.ts +27 -18
- package/src/components/UserPicker/i18n/en-US.ts +1 -0
- package/src/components/UserPicker/i18n/zh-CN.ts +1 -0
- package/src/components/UserPicker/type.ts +1 -1
- package/src/components/VideoSetting/CameraSelect.vue +11 -11
- package/src/components/VideoSetting/VideoMediaControl.vue +22 -21
- package/src/components/VideoSetting/VideoPreview.vue +14 -8
- package/src/components/VideoSetting/VideoProfile.vue +13 -15
- package/src/components/VideoSetting/VideoSettingTab.vue +9 -9
- package/src/components/VideoSettingPanel/CameraSelect.vue +8 -3
- package/src/components/VideoSettingPanel/VideoPreview.vue +4 -4
- package/src/components/VideoSettingPanel/VideoProfile.vue +6 -6
- package/src/components/VideoSettingPanel/i18n/en-US/index.ts +13 -10
- package/src/components/VideoSettingPanel/i18n/zh-CN/index.ts +13 -10
- package/src/components/VideoSettingPanel/index.ts +2 -2
- package/src/components/VideoSettingPanel/index.vue +73 -74
- package/src/components/VirtualBackgroundPanel/VirtualBackgroundPanel.vue +337 -0
- package/src/components/VirtualBackgroundPanel/assets/blurred-background.png +0 -0
- package/src/components/VirtualBackgroundPanel/assets/close-virtual-background.png +0 -0
- package/src/components/VirtualBackgroundPanel/i18n/en-US/index.ts +11 -0
- package/src/components/VirtualBackgroundPanel/i18n/index.ts +4 -0
- package/src/components/VirtualBackgroundPanel/i18n/zh-CN/index.ts +11 -0
- package/src/components/VirtualBackgroundPanel/index.ts +11 -0
- package/src/hooks/useRoomActions/index.ts +3 -2
- package/src/hooks/useRoomActions/useRoomAudioAction.ts +11 -12
- package/src/hooks/useRoomActions/useRoomScreenAction.ts +12 -13
- package/src/hooks/useRoomActions/useRoomVideoAction.ts +10 -13
- package/src/hooks/useRoomEngine.ts +3 -2
- package/src/hooks/useUserActions/index.ts +38 -43
- package/src/hooks/useUserActions/useSeatAction.ts +10 -10
- package/src/hooks/useUserActions/useTransferOwnerAction.ts +10 -10
- package/src/index.ts +7 -9
- package/src/report/MetricsKey.ts +28 -14
- package/src/report/dataReport.ts +13 -9
- package/src/subEntry/common/base.ts +6 -0
- package/src/subEntry/common/index.ts +2 -0
- package/src/subEntry/common/rtc.ts +5 -0
- package/src/subEntry/live/index.ts +8 -0
- package/src/subEntry/live/live.ts +23 -0
- package/src/{rtc → subEntry/live}/server.ts +3 -3
- package/src/subEntry/room/index.ts +8 -0
- package/src/subEntry/room/room.ts +12 -0
- package/src/subEntry/room/server.ts +123 -0
- package/src/types/asr.ts +31 -0
- package/src/types/barrage.ts +86 -0
- package/src/types/beauty.ts +10 -0
- package/src/types/device.ts +3 -5
- package/src/types/index.ts +9 -3
- package/src/types/participant.ts +155 -0
- package/src/types/room.ts +122 -57
- package/src/types/user.ts +2 -0
- package/src/types/virtualBackground.ts +17 -0
- package/src/utils/call.ts +25 -26
- package/src/utils/compare.ts +34 -0
- package/tsconfig.eslint.json +15 -0
- package/tsconfig.json +7 -1
- package/dist/AudioRequestDialog.vue_vue_type_script_setup_true_lang-DESfuJPj.js +0 -89
- package/dist/index-DTq2ybsB.js +0 -33
- package/dist/index.vue_vue_type_script_setup_true_lang-DZIBxSQ7.js +0 -32
- package/dist/rtc/index.d.ts +0 -501
- package/dist/rtc/index.js +0 -67
- package/dist/states/RoomState.d.ts +0 -173
- package/dist/states/RoomState.js +0 -272
- package/src/rtc/index.ts +0 -100
package/src/components/ConversationList/ConversationPreview/ConversationPreviewTimestamp.vue
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script lang="ts" setup>
|
|
8
|
+
import { computed } from 'vue';
|
|
8
9
|
import { useUIKit } from '@tencentcloud/uikit-base-component-vue3';
|
|
9
10
|
import { getTimeStamp } from '../../../utils/time';
|
|
10
11
|
import type { ConversationModel } from '../../../types';
|
|
@@ -15,11 +16,10 @@ const props = defineProps<{
|
|
|
15
16
|
|
|
16
17
|
const { language } = useUIKit();
|
|
17
18
|
|
|
18
|
-
const time = getTimeStamp({
|
|
19
|
+
const time = computed(() => getTimeStamp({
|
|
19
20
|
time: Number(props.conversation?.lastMessage?.lastTime || 0) * 1000,
|
|
20
21
|
language: language.value,
|
|
21
|
-
}) || '';
|
|
22
|
-
|
|
22
|
+
}) || '');
|
|
23
23
|
</script>
|
|
24
24
|
|
|
25
25
|
<style lang="scss" module>
|
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="free-beauty">
|
|
3
|
+
<div class="free-beauty-container">
|
|
4
|
+
<div id="test-preview" class="test-preview">
|
|
5
|
+
<div class="test-preview-control">
|
|
6
|
+
<div class="reset" @click="handleShowResetDialog">
|
|
7
|
+
<IconReset />
|
|
8
|
+
<span class="text">{{ t('FreeBeauty.Reset') }}</span>
|
|
9
|
+
</div>
|
|
10
|
+
<div v-if="isShowDegree" class="degree">
|
|
11
|
+
<span class="text">{{ t('FreeBeauty.Degree') }}</span>
|
|
12
|
+
<TUISlider v-model="sliderValue" class="slider" />
|
|
13
|
+
<span class="text-value">{{ sliderValue }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
<div
|
|
16
|
+
class="compare"
|
|
17
|
+
@mousedown="handleMouseDown"
|
|
18
|
+
@mouseup="handleMouseUp"
|
|
19
|
+
>
|
|
20
|
+
<IconCompare size="20" />
|
|
21
|
+
<span class="text">{{ t('FreeBeauty.Compare') }}</span>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div v-if="isLoading" class="mask" />
|
|
25
|
+
<div v-if="isLoading" class="spinner" />
|
|
26
|
+
</div>
|
|
27
|
+
<div class="setting">
|
|
28
|
+
<div class="setting-header">
|
|
29
|
+
{{ t('FreeBeauty.Beauty Effects') }}
|
|
30
|
+
</div>
|
|
31
|
+
<div class="setting-container">
|
|
32
|
+
<div
|
|
33
|
+
v-for="item in beautyOptionList"
|
|
34
|
+
:key="item.value"
|
|
35
|
+
:class="[
|
|
36
|
+
'setting-item',
|
|
37
|
+
selectBasicBeautyItem === item.value ? 'active' : '',
|
|
38
|
+
]"
|
|
39
|
+
@click="onBeautyPropertyClick(item.value)"
|
|
40
|
+
>
|
|
41
|
+
<i class="setting-item-icon">
|
|
42
|
+
<TUIIcon :icon="item.icon" size="32" />
|
|
43
|
+
</i>
|
|
44
|
+
<span class="setting-item-text">{{ t(item.text) }}</span>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="footer">
|
|
49
|
+
<TUIButton
|
|
50
|
+
type="primary"
|
|
51
|
+
@click="saveFreeBeautySetting"
|
|
52
|
+
>
|
|
53
|
+
{{ t('FreeBeauty.Save') }}
|
|
54
|
+
</TUIButton>
|
|
55
|
+
<TUIButton @click="cancelFreeBeautySetting">
|
|
56
|
+
{{
|
|
57
|
+
t('FreeBeauty.Cancel')
|
|
58
|
+
}}
|
|
59
|
+
</TUIButton>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<TUIDialog
|
|
63
|
+
:visible="isResetDialogVisible"
|
|
64
|
+
:title="t('FreeBeauty.Sure you want to reset the beauty effect?')"
|
|
65
|
+
:cancel-text="t('FreeBeauty.Cancel')"
|
|
66
|
+
:confirm-text="t('FreeBeauty.Confirm')"
|
|
67
|
+
@confirm="resetBeautyProperties"
|
|
68
|
+
@cancel="handleHideResetDialog"
|
|
69
|
+
@close="handleHideResetDialog"
|
|
70
|
+
>
|
|
71
|
+
<span>
|
|
72
|
+
{{ t('FreeBeauty.All beauty parameters will revert to default after reset') }}
|
|
73
|
+
</span>
|
|
74
|
+
</TUIDialog>
|
|
75
|
+
</div>
|
|
76
|
+
</template>
|
|
77
|
+
|
|
78
|
+
<script lang="ts" setup>
|
|
79
|
+
import { ref, watch, nextTick, onMounted } from 'vue';
|
|
80
|
+
import {
|
|
81
|
+
TUIIcon,
|
|
82
|
+
IconReset,
|
|
83
|
+
IconCompare,
|
|
84
|
+
IconCloseBeauty,
|
|
85
|
+
IconSmootherBeauty,
|
|
86
|
+
IconWhiteningBeauty,
|
|
87
|
+
IconRuddyBeauty,
|
|
88
|
+
TUIDialog,
|
|
89
|
+
useUIKit,
|
|
90
|
+
TUISlider,
|
|
91
|
+
TUIButton,
|
|
92
|
+
TUIToast,
|
|
93
|
+
} from '@tencentcloud/uikit-base-component-vue3';
|
|
94
|
+
import { useDeviceState } from '../../states/DeviceState';
|
|
95
|
+
import { useFreeBeautyState } from '../../states/FreeBeautyState';
|
|
96
|
+
import type { FreeBeautyConfig } from '../../types';
|
|
97
|
+
|
|
98
|
+
// Utility function for throttling
|
|
99
|
+
function throttle<T extends (...args: any[]) => any>(
|
|
100
|
+
func: T,
|
|
101
|
+
delay: number,
|
|
102
|
+
): (...args: Parameters<T>) => void {
|
|
103
|
+
let timeoutId: ReturnType<typeof setTimeout> | null = null;
|
|
104
|
+
let lastExecTime = 0;
|
|
105
|
+
|
|
106
|
+
return (...args: Parameters<T>) => {
|
|
107
|
+
const currentTime = Date.now();
|
|
108
|
+
|
|
109
|
+
if (currentTime - lastExecTime > delay) {
|
|
110
|
+
func(...args);
|
|
111
|
+
lastExecTime = currentTime;
|
|
112
|
+
} else {
|
|
113
|
+
if (timeoutId) {
|
|
114
|
+
clearTimeout(timeoutId);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
timeoutId = setTimeout(() => {
|
|
118
|
+
func(...args);
|
|
119
|
+
lastExecTime = Date.now();
|
|
120
|
+
timeoutId = null;
|
|
121
|
+
}, delay - (currentTime - lastExecTime));
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Hooks and composables
|
|
127
|
+
const {
|
|
128
|
+
isCameraTesting,
|
|
129
|
+
isCameraTestLoading,
|
|
130
|
+
startCameraTest,
|
|
131
|
+
stopCameraTest,
|
|
132
|
+
} = useDeviceState();
|
|
133
|
+
|
|
134
|
+
const { beautyConfig, setFreeBeauty, saveBeautySetting } = useFreeBeautyState();
|
|
135
|
+
const { t } = useUIKit();
|
|
136
|
+
const emit = defineEmits(['close']);
|
|
137
|
+
|
|
138
|
+
// State references
|
|
139
|
+
const isResetDialogVisible = ref(false);
|
|
140
|
+
const isShowDegree = ref(false);
|
|
141
|
+
const isLoading = ref(false);
|
|
142
|
+
const isBeautyStarted = ref(false);
|
|
143
|
+
const sliderValue = ref(0);
|
|
144
|
+
|
|
145
|
+
// Beauty configuration
|
|
146
|
+
const freeBeautyConfig = ref<FreeBeautyConfig>({
|
|
147
|
+
beautyLevel: 0,
|
|
148
|
+
whitenessLevel: 0,
|
|
149
|
+
ruddinessLevel: 0,
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
// Beauty option types
|
|
153
|
+
enum BeautyOptionType {
|
|
154
|
+
Close = 'close',
|
|
155
|
+
Smoother = 'smoother',
|
|
156
|
+
Whitening = 'whitening',
|
|
157
|
+
Ruddy = 'ruddy',
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// UI state for selected beauty options
|
|
161
|
+
const selectBasicBeautyItem = ref<BeautyOptionType>(BeautyOptionType.Close);
|
|
162
|
+
const appliedBasicBeautyItem = ref<BeautyOptionType>(BeautyOptionType.Close);
|
|
163
|
+
|
|
164
|
+
// Beauty options configuration
|
|
165
|
+
const beautyOptionList: {
|
|
166
|
+
value: BeautyOptionType;
|
|
167
|
+
text: string;
|
|
168
|
+
icon: any;
|
|
169
|
+
}[] = [
|
|
170
|
+
{ value: BeautyOptionType.Close, text: 'FreeBeauty.Close', icon: IconCloseBeauty },
|
|
171
|
+
{
|
|
172
|
+
value: BeautyOptionType.Smoother,
|
|
173
|
+
text: 'FreeBeauty.Smoother',
|
|
174
|
+
icon: IconSmootherBeauty,
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
value: BeautyOptionType.Whitening,
|
|
178
|
+
text: 'FreeBeauty.Whitening',
|
|
179
|
+
icon: IconWhiteningBeauty,
|
|
180
|
+
},
|
|
181
|
+
{ value: BeautyOptionType.Ruddy, text: 'FreeBeauty.Ruddy', icon: IconRuddyBeauty },
|
|
182
|
+
];
|
|
183
|
+
|
|
184
|
+
// Throttled version of startBeautyTest to prevent excessive calls
|
|
185
|
+
const throttleStartBeautyTest = throttle(startBeautyTest, 300);
|
|
186
|
+
|
|
187
|
+
// Watchers
|
|
188
|
+
watch(sliderValue, async (newValue) => {
|
|
189
|
+
updateBeautyConfigByType(selectBasicBeautyItem.value, newValue);
|
|
190
|
+
throttleStartBeautyTest();
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
// Helper functions
|
|
194
|
+
/**
|
|
195
|
+
* Update beauty configuration based on beauty type and value
|
|
196
|
+
*/
|
|
197
|
+
function updateBeautyConfigByType(type: BeautyOptionType, value: number) {
|
|
198
|
+
switch (type) {
|
|
199
|
+
case BeautyOptionType.Smoother:
|
|
200
|
+
freeBeautyConfig.value.beautyLevel = value;
|
|
201
|
+
break;
|
|
202
|
+
case BeautyOptionType.Whitening:
|
|
203
|
+
freeBeautyConfig.value.whitenessLevel = value;
|
|
204
|
+
break;
|
|
205
|
+
case BeautyOptionType.Ruddy:
|
|
206
|
+
freeBeautyConfig.value.ruddinessLevel = value;
|
|
207
|
+
break;
|
|
208
|
+
default:
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Check if any beauty effect is active
|
|
215
|
+
*/
|
|
216
|
+
function isBeautyActive(): boolean {
|
|
217
|
+
return !(
|
|
218
|
+
freeBeautyConfig.value.beautyLevel === 0
|
|
219
|
+
&& freeBeautyConfig.value.whitenessLevel === 0
|
|
220
|
+
&& freeBeautyConfig.value.ruddinessLevel === 0
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Restore beauty settings from saved configuration
|
|
226
|
+
*/
|
|
227
|
+
function restoreBeautySettings() {
|
|
228
|
+
freeBeautyConfig.value = { ...beautyConfig.value };
|
|
229
|
+
|
|
230
|
+
// Determine the active beauty option based on restored values
|
|
231
|
+
if (freeBeautyConfig.value.beautyLevel > 0) {
|
|
232
|
+
selectBasicBeautyItem.value = BeautyOptionType.Smoother;
|
|
233
|
+
sliderValue.value = freeBeautyConfig.value.beautyLevel;
|
|
234
|
+
isShowDegree.value = true;
|
|
235
|
+
} else if (freeBeautyConfig.value.whitenessLevel > 0) {
|
|
236
|
+
selectBasicBeautyItem.value = BeautyOptionType.Whitening;
|
|
237
|
+
sliderValue.value = freeBeautyConfig.value.whitenessLevel;
|
|
238
|
+
isShowDegree.value = true;
|
|
239
|
+
} else if (freeBeautyConfig.value.ruddinessLevel > 0) {
|
|
240
|
+
selectBasicBeautyItem.value = BeautyOptionType.Ruddy;
|
|
241
|
+
sliderValue.value = freeBeautyConfig.value.ruddinessLevel;
|
|
242
|
+
isShowDegree.value = true;
|
|
243
|
+
} else {
|
|
244
|
+
selectBasicBeautyItem.value = BeautyOptionType.Close;
|
|
245
|
+
sliderValue.value = 0;
|
|
246
|
+
isShowDegree.value = false;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// Save the currently applied beauty option
|
|
250
|
+
appliedBasicBeautyItem.value = selectBasicBeautyItem.value;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Reset all beauty properties to default values
|
|
255
|
+
*/
|
|
256
|
+
function resetBeautyProperties() {
|
|
257
|
+
stopBeautyTest();
|
|
258
|
+
freeBeautyConfig.value.beautyLevel = 0;
|
|
259
|
+
freeBeautyConfig.value.whitenessLevel = 0;
|
|
260
|
+
freeBeautyConfig.value.ruddinessLevel = 0;
|
|
261
|
+
sliderValue.value = 0;
|
|
262
|
+
isResetDialogVisible.value = false;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Reset beauty configuration to default
|
|
267
|
+
*/
|
|
268
|
+
function resetBeautyConfig() {
|
|
269
|
+
freeBeautyConfig.value.beautyLevel = 0;
|
|
270
|
+
freeBeautyConfig.value.whitenessLevel = 0;
|
|
271
|
+
freeBeautyConfig.value.ruddinessLevel = 0;
|
|
272
|
+
sliderValue.value = 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Get slider value based on selected beauty option
|
|
277
|
+
*/
|
|
278
|
+
function getSliderValueByType(type: BeautyOptionType): number {
|
|
279
|
+
switch (type) {
|
|
280
|
+
case BeautyOptionType.Smoother:
|
|
281
|
+
return freeBeautyConfig.value.beautyLevel;
|
|
282
|
+
case BeautyOptionType.Whitening:
|
|
283
|
+
return freeBeautyConfig.value.whitenessLevel;
|
|
284
|
+
case BeautyOptionType.Ruddy:
|
|
285
|
+
return freeBeautyConfig.value.ruddinessLevel;
|
|
286
|
+
default:
|
|
287
|
+
return 0;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// Event handlers
|
|
292
|
+
function onBeautyPropertyClick(option: BeautyOptionType) {
|
|
293
|
+
switch (option) {
|
|
294
|
+
case BeautyOptionType.Close:
|
|
295
|
+
if (isBeautyStarted.value) {
|
|
296
|
+
stopBeautyTest();
|
|
297
|
+
}
|
|
298
|
+
resetBeautyConfig();
|
|
299
|
+
break;
|
|
300
|
+
case BeautyOptionType.Smoother:
|
|
301
|
+
case BeautyOptionType.Whitening:
|
|
302
|
+
case BeautyOptionType.Ruddy:
|
|
303
|
+
sliderValue.value = getSliderValueByType(option);
|
|
304
|
+
break;
|
|
305
|
+
default:
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
selectBasicBeautyItem.value = option;
|
|
310
|
+
isShowDegree.value = option !== BeautyOptionType.Close;
|
|
311
|
+
isLoading.value = false;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
async function closeBeautySettingPanel() {
|
|
315
|
+
await stopCameraTestFunction();
|
|
316
|
+
onBeautyPropertyClick(appliedBasicBeautyItem.value);
|
|
317
|
+
selectBasicBeautyItem.value = appliedBasicBeautyItem.value;
|
|
318
|
+
emit('close');
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
async function startCameraTestFunction() {
|
|
322
|
+
try {
|
|
323
|
+
await startCameraTest({ view: 'test-preview' });
|
|
324
|
+
} catch (error) {
|
|
325
|
+
console.error('Failed to start camera test:', error);
|
|
326
|
+
TUIToast.error({ message: t('FreeBeauty.CameraTestFailed') });
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
async function stopCameraTestFunction() {
|
|
331
|
+
try {
|
|
332
|
+
if (isCameraTesting.value || isCameraTestLoading.value) {
|
|
333
|
+
await stopCameraTest();
|
|
334
|
+
}
|
|
335
|
+
} catch (error) {
|
|
336
|
+
console.error('Failed to stop camera test:', error);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
async function startBeautyTest() {
|
|
341
|
+
try {
|
|
342
|
+
setFreeBeauty(freeBeautyConfig.value);
|
|
343
|
+
isBeautyStarted.value = isBeautyActive();
|
|
344
|
+
} catch (error) {
|
|
345
|
+
console.error('Failed to apply beauty:', error);
|
|
346
|
+
TUIToast.error({ message: t('FreeBeauty.ApplyFailed') });
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function stopBeautyTest() {
|
|
351
|
+
const config = { beautyLevel: 0, whitenessLevel: 0, ruddinessLevel: 0 };
|
|
352
|
+
setFreeBeauty(config);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function saveFreeBeautySetting() {
|
|
356
|
+
appliedBasicBeautyItem.value = selectBasicBeautyItem.value;
|
|
357
|
+
saveBeautySetting();
|
|
358
|
+
closeBeautySettingPanel();
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function cancelFreeBeautySetting() {
|
|
362
|
+
freeBeautyConfig.value = { ...beautyConfig.value };
|
|
363
|
+
closeBeautySettingPanel();
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function handleShowResetDialog() {
|
|
367
|
+
isResetDialogVisible.value = true;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
function handleHideResetDialog() {
|
|
371
|
+
isResetDialogVisible.value = false;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
function handleMouseDown() {
|
|
375
|
+
stopBeautyTest();
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function handleMouseUp() {
|
|
379
|
+
startBeautyTest();
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// Lifecycle hooks
|
|
383
|
+
onMounted(async () => {
|
|
384
|
+
isLoading.value = true;
|
|
385
|
+
try {
|
|
386
|
+
await nextTick();
|
|
387
|
+
|
|
388
|
+
// Restore beauty settings
|
|
389
|
+
restoreBeautySettings();
|
|
390
|
+
|
|
391
|
+
await startCameraTestFunction();
|
|
392
|
+
|
|
393
|
+
// Apply beauty effects if any are active
|
|
394
|
+
if (isShowDegree.value) {
|
|
395
|
+
startBeautyTest();
|
|
396
|
+
}
|
|
397
|
+
} catch (error) {
|
|
398
|
+
console.error('Failed to initialize beauty:', error);
|
|
399
|
+
TUIToast.error({ message: t('FreeBeauty.InitializeFailed') });
|
|
400
|
+
} finally {
|
|
401
|
+
isLoading.value = false;
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
</script>
|
|
405
|
+
|
|
406
|
+
<style lang="scss">
|
|
407
|
+
.free-beauty {
|
|
408
|
+
.beauty-dialog {
|
|
409
|
+
width: 600px;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
</style>
|
|
413
|
+
|
|
414
|
+
<style lang="scss" scoped>
|
|
415
|
+
.free-beauty {
|
|
416
|
+
width: 100%;
|
|
417
|
+
.free-beauty-container {
|
|
418
|
+
display: flex;
|
|
419
|
+
flex-direction: column;
|
|
420
|
+
align-items: center;
|
|
421
|
+
justify-content: center;
|
|
422
|
+
width: 100%;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.test-preview {
|
|
426
|
+
position: relative;
|
|
427
|
+
box-sizing: border-box;
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
justify-content: center;
|
|
431
|
+
height: 310px;
|
|
432
|
+
width: 100%;
|
|
433
|
+
overflow: hidden;
|
|
434
|
+
border-radius: 8px;
|
|
435
|
+
background-color: var(--uikit-color-black-1);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.test-preview-control {
|
|
439
|
+
position: absolute;
|
|
440
|
+
bottom: 8px;
|
|
441
|
+
display: flex;
|
|
442
|
+
width: 100%;
|
|
443
|
+
justify-content: space-between;
|
|
444
|
+
gap: 30px;
|
|
445
|
+
box-sizing: border-box;
|
|
446
|
+
padding: 0 6px;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.reset,
|
|
450
|
+
.compare,
|
|
451
|
+
.degree {
|
|
452
|
+
z-index: 4;
|
|
453
|
+
display: flex;
|
|
454
|
+
align-items: center;
|
|
455
|
+
justify-content: center;
|
|
456
|
+
height: 30px;
|
|
457
|
+
padding: 4px 12px;
|
|
458
|
+
cursor: pointer;
|
|
459
|
+
border-radius: 6px;
|
|
460
|
+
color: var(--uikit-color-white-1);
|
|
461
|
+
background-color: var(--uikit-color-black-5);
|
|
462
|
+
box-sizing: border-box;
|
|
463
|
+
|
|
464
|
+
.text {
|
|
465
|
+
margin-left: 4px;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.degree {
|
|
470
|
+
flex: 2;
|
|
471
|
+
cursor: default;
|
|
472
|
+
max-width: 260px;
|
|
473
|
+
|
|
474
|
+
.slider {
|
|
475
|
+
margin-left: 12px;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.text-value {
|
|
479
|
+
width: 20px;
|
|
480
|
+
margin-left: 10px;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.reset {
|
|
485
|
+
flex: 1;
|
|
486
|
+
max-width: 76px;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.compare {
|
|
490
|
+
flex: 1;
|
|
491
|
+
max-width: 76px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.setting {
|
|
495
|
+
display: flex;
|
|
496
|
+
flex-direction: column;
|
|
497
|
+
align-items: center;
|
|
498
|
+
margin-top: 10px;
|
|
499
|
+
border-radius: 8px;
|
|
500
|
+
width: 100%;
|
|
501
|
+
border: 1px solid var(--stroke-color-primary);
|
|
502
|
+
|
|
503
|
+
&-header {
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: center;
|
|
507
|
+
width: 100%;
|
|
508
|
+
font-size: 14px;
|
|
509
|
+
font-style: normal;
|
|
510
|
+
font-weight: 500;
|
|
511
|
+
line-height: 44px;
|
|
512
|
+
color: var(--text-color-link);
|
|
513
|
+
background-color: var(--bg-color-dialog-module);
|
|
514
|
+
border-bottom: 1px solid var(--stroke-color-primary);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
&-container {
|
|
518
|
+
display: flex;
|
|
519
|
+
width: 100%;
|
|
520
|
+
padding: 20px;
|
|
521
|
+
gap: 20px;
|
|
522
|
+
box-sizing: border-box;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
&-item {
|
|
526
|
+
display: flex;
|
|
527
|
+
flex-direction: column;
|
|
528
|
+
justify-content: center;
|
|
529
|
+
font-size: 12px;
|
|
530
|
+
text-align: center;
|
|
531
|
+
cursor: pointer;
|
|
532
|
+
border: 1px solid transparent;
|
|
533
|
+
border-radius: 8px;
|
|
534
|
+
color: var(--text-color-secondary);
|
|
535
|
+
|
|
536
|
+
&-icon {
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
justify-content: center;
|
|
540
|
+
width: 54px;
|
|
541
|
+
height: 54px;
|
|
542
|
+
overflow: hidden;
|
|
543
|
+
border-radius: 8px;
|
|
544
|
+
background-color: var(--bg-color-dialog);
|
|
545
|
+
border: 1px solid var(--stroke-color-primary);
|
|
546
|
+
margin: auto;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
&-text {
|
|
550
|
+
padding: 3px 0;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
&-item.active {
|
|
555
|
+
background-color: var(--button-color-primary-default);
|
|
556
|
+
border: 1px solid var(--button-color-primary-default);
|
|
557
|
+
.setting-item-text {
|
|
558
|
+
color: var(--text-color-button);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.spinner {
|
|
564
|
+
position: absolute;
|
|
565
|
+
top: 50%;
|
|
566
|
+
left: 50%;
|
|
567
|
+
z-index: 3;
|
|
568
|
+
width: 40px;
|
|
569
|
+
height: 40px;
|
|
570
|
+
border: 4px solid var(--uikit-color-white-2);
|
|
571
|
+
border-radius: 50%;
|
|
572
|
+
transform: translate(-50%, -50%);
|
|
573
|
+
animation: spin 1s linear infinite;
|
|
574
|
+
border-top: 4px solid var(--text-color-link);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.mask {
|
|
578
|
+
position: absolute;
|
|
579
|
+
z-index: 2;
|
|
580
|
+
width: 100%;
|
|
581
|
+
height: 100%;
|
|
582
|
+
background-color: var(--uikit-color-black-1);
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
@keyframes spin {
|
|
586
|
+
0% {
|
|
587
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
100% {
|
|
591
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
.footer {
|
|
596
|
+
display: flex;
|
|
597
|
+
gap: 1rem;
|
|
598
|
+
align-items: center;
|
|
599
|
+
justify-content: center;
|
|
600
|
+
padding: 1rem;
|
|
601
|
+
margin-top: 10px;
|
|
602
|
+
width: 100%;
|
|
603
|
+
border-radius: 8px;
|
|
604
|
+
color: var(--text-color-button);
|
|
605
|
+
|
|
606
|
+
.mirror-container {
|
|
607
|
+
position: absolute;
|
|
608
|
+
left: 24px;
|
|
609
|
+
display: flex;
|
|
610
|
+
color: var(--text-color-secondary);
|
|
611
|
+
|
|
612
|
+
.mirror-text {
|
|
613
|
+
margin-left: 4px;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
</style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const resource = {
|
|
2
|
+
// FreeBeauty
|
|
3
|
+
'FreeBeauty.Save': 'Save',
|
|
4
|
+
'FreeBeauty.Cancel': 'Cancel',
|
|
5
|
+
'FreeBeauty.Reset': 'Reset',
|
|
6
|
+
'FreeBeauty.Confirm': 'Confirm',
|
|
7
|
+
'FreeBeauty.Degree': 'Degree',
|
|
8
|
+
'FreeBeauty.Compare': 'Compare',
|
|
9
|
+
'FreeBeauty.Beauty Effects': 'Beauty Effects',
|
|
10
|
+
'FreeBeauty.Close': 'Close',
|
|
11
|
+
'FreeBeauty.Smoother': 'Smoother',
|
|
12
|
+
'FreeBeauty.Whitening': 'Whitening',
|
|
13
|
+
'FreeBeauty.Ruddy': 'Ruddy',
|
|
14
|
+
'FreeBeauty.Sure you want to reset the beauty effect?': 'Sure you want to reset the beauty effect?',
|
|
15
|
+
'FreeBeauty.All beauty parameters will revert to default after reset': 'All beauty parameters will revert to default after reset',
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const resource = {
|
|
2
|
+
// FreeBeauty
|
|
3
|
+
'FreeBeauty.Save': '保存',
|
|
4
|
+
'FreeBeauty.Cancel': '取消',
|
|
5
|
+
'FreeBeauty.Reset': '重置',
|
|
6
|
+
'FreeBeauty.Confirm': '确定',
|
|
7
|
+
'FreeBeauty.Degree': '程度',
|
|
8
|
+
'FreeBeauty.Compare': '对比',
|
|
9
|
+
'FreeBeauty.Beauty Effects': '美颜效果',
|
|
10
|
+
'FreeBeauty.Close': '关闭',
|
|
11
|
+
'FreeBeauty.Smoother': '磨皮',
|
|
12
|
+
'FreeBeauty.Whitening': '美白',
|
|
13
|
+
'FreeBeauty.Ruddy': '红润',
|
|
14
|
+
'FreeBeauty.Sure you want to reset the beauty effect?': '确定要重置美颜效果吗?',
|
|
15
|
+
'FreeBeauty.All beauty parameters will revert to default after reset': '重置后所有美颜参数将恢复默认值',
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { addI18n } from '../../i18n';
|
|
2
|
+
import FreeBeautyPanelComponent from './FreeBeautyPanel.vue';
|
|
3
|
+
import { enResource, zhResource } from './i18n';
|
|
4
|
+
|
|
5
|
+
const FreeBeautyPanel = FreeBeautyPanelComponent;
|
|
6
|
+
|
|
7
|
+
addI18n('en-US', { translation: enResource });
|
|
8
|
+
addI18n('zh-CN', { translation: zhResource });
|
|
9
|
+
export {
|
|
10
|
+
FreeBeautyPanel,
|
|
11
|
+
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import LiveScenePanel from './index.vue';
|
|
2
1
|
import { addI18n } from '../../i18n';
|
|
3
2
|
import { enResource, zhResource } from './i18n';
|
|
3
|
+
import LiveScenePanelComp from './index.vue';
|
|
4
|
+
|
|
4
5
|
addI18n('en-US', { translation: enResource });
|
|
5
6
|
addI18n('zh-CN', { translation: zhResource });
|
|
6
7
|
|
|
8
|
+
const LiveScenePanel = LiveScenePanelComp;
|
|
9
|
+
|
|
7
10
|
export { LiveScenePanel };
|