@tencentcloud/roomkit-electron-vue3 2.3.3 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/Chat/ChatEditor/index.vue.mjs +1 -1
- package/es/components/Chat/ChatEditor/index.vue2.mjs +4 -4
- package/es/components/Chat/ChatEditor/useChatEditor.d.ts +1 -2
- package/es/components/Chat/ChatEditor/useChatEditor.mjs +4 -12
- package/es/components/ManageMember/MemberControl/index.vue.mjs +1 -1
- package/es/components/ManageMember/MemberControl/index.vue2.mjs +5 -4
- package/es/components/ManageMember/MemberControl/useMemberControlHooks.mjs +35 -12
- package/es/components/ManageMember/useIndexHooks.mjs +2 -1
- package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue.mjs +1 -1
- package/es/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.mjs +2 -2
- package/es/components/RoomFooter/EndControl/useEndControlHooks.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue.mjs +1 -1
- package/es/components/RoomFooter/VirtualBackground.vue2.mjs +87 -27
- package/es/components/RoomFooter/index/index.vue.mjs +1 -1
- package/es/components/RoomFooter/index/index.vue2.mjs +0 -2
- package/es/components/RoomHeader/RoomInfo/useRoomInfoHooks.mjs +2 -2
- package/es/components/RoomHeader/index/LayoutControl.vue.mjs +1 -1
- package/es/components/RoomHeader/index/LayoutControl.vue2.mjs +1 -3
- package/es/components/RoomHeader/index/NetworkInfo.vue.mjs +1 -1
- package/es/components/RoomHeader/index/NetworkInfo.vue2.mjs +0 -2
- package/es/components/common/base/MessageBox/index.mjs +3 -1
- package/es/conference.d.ts +1 -1
- package/es/conference.mjs +9 -0
- package/es/conference.vue.mjs +1 -1
- package/es/conference.vue2.mjs +1 -14
- package/es/constants/room.d.ts +3 -1
- package/es/extension/RoomMessageCard/RoomMessageCard.vue.mjs +1 -1
- package/es/extension/RoomMessageCard/RoomMessageCard.vue2.mjs +2 -2
- package/es/extension/chatExtension.mjs +4 -2
- package/es/hooks/useDeviceManager.d.ts +3 -1
- package/es/hooks/useMasterApplyControl.mjs +16 -10
- package/es/hooks/useRoomEngine.d.ts +3 -1
- package/es/index.d.ts +3 -2
- package/es/index.mjs +1519 -1456
- package/es/locales/en-US.d.ts +9 -9
- package/es/locales/en-US.mjs +10 -10
- package/es/locales/zh-CN.d.ts +11 -11
- package/es/locales/zh-CN.mjs +12 -12
- package/es/services/function/virtualBackground.d.ts +2 -0
- package/es/services/function/virtualBackground.mjs +19 -9
- package/es/services/function/waterMark.mjs +3 -0
- package/es/services/manager/componentManager.mjs +1 -1
- package/es/services/manager/roomActionManager.mjs +1 -1
- package/es/services/roomService.d.ts +3 -4
- package/es/services/roomService.mjs +2 -26
- package/es/stores/chat.mjs +3 -3
- package/es/stores/room.d.ts +1 -1
- package/es/stores/room.mjs +11 -10
- package/lib/components/Chat/ChatEditor/index.vue.js +1 -1
- package/lib/components/Chat/ChatEditor/index.vue2.js +4 -4
- package/lib/components/Chat/ChatEditor/useChatEditor.d.ts +1 -2
- package/lib/components/Chat/ChatEditor/useChatEditor.js +3 -11
- package/lib/components/ManageMember/MemberControl/index.vue.js +1 -1
- package/lib/components/ManageMember/MemberControl/index.vue2.js +4 -3
- package/lib/components/ManageMember/MemberControl/useMemberControlHooks.js +35 -12
- package/lib/components/ManageMember/useIndexHooks.js +2 -1
- package/lib/components/RoomFooter/ApplyControl/MemberApplyControl.vue.js +1 -1
- package/lib/components/RoomFooter/ApplyControl/MemberApplyControl.vue2.js +2 -2
- package/lib/components/RoomFooter/EndControl/useEndControlHooks.js +1 -1
- package/lib/components/RoomFooter/VirtualBackground.vue.js +1 -1
- package/lib/components/RoomFooter/VirtualBackground.vue2.js +86 -26
- package/lib/components/RoomFooter/index/index.vue.js +1 -1
- package/lib/components/RoomFooter/index/index.vue2.js +0 -2
- package/lib/components/RoomHeader/RoomInfo/useRoomInfoHooks.js +2 -2
- package/lib/components/RoomHeader/index/LayoutControl.vue.js +1 -1
- package/lib/components/RoomHeader/index/LayoutControl.vue2.js +1 -3
- package/lib/components/RoomHeader/index/NetworkInfo.vue.js +1 -1
- package/lib/components/RoomHeader/index/NetworkInfo.vue2.js +0 -2
- package/lib/components/common/base/MessageBox/index.js +3 -1
- package/lib/conference.d.ts +1 -1
- package/lib/conference.js +9 -0
- package/lib/conference.vue.js +1 -1
- package/lib/conference.vue2.js +10 -23
- package/lib/constants/room.d.ts +3 -1
- package/lib/extension/RoomMessageCard/RoomMessageCard.vue.js +1 -1
- package/lib/extension/RoomMessageCard/RoomMessageCard.vue2.js +2 -2
- package/lib/extension/chatExtension.js +4 -2
- package/lib/hooks/useDeviceManager.d.ts +3 -1
- package/lib/hooks/useMasterApplyControl.js +16 -10
- package/lib/hooks/useRoomEngine.d.ts +3 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +1517 -1454
- package/lib/locales/en-US.d.ts +9 -9
- package/lib/locales/en-US.js +10 -10
- package/lib/locales/zh-CN.d.ts +11 -11
- package/lib/locales/zh-CN.js +12 -12
- package/lib/services/function/virtualBackground.d.ts +2 -0
- package/lib/services/function/virtualBackground.js +19 -9
- package/lib/services/function/waterMark.js +3 -0
- package/lib/services/manager/componentManager.js +1 -1
- package/lib/services/manager/roomActionManager.js +1 -1
- package/lib/services/roomService.d.ts +3 -4
- package/lib/services/roomService.js +2 -26
- package/lib/stores/chat.js +3 -3
- package/lib/stores/room.d.ts +1 -1
- package/lib/stores/room.js +11 -10
- package/package.json +2 -2
- package/src/TUIRoom/assets/style/global.scss +1 -1
- package/src/TUIRoom/components/Chat/ChatEditor/index.vue +4 -4
- package/src/TUIRoom/components/Chat/ChatEditor/useChatEditor.ts +4 -13
- package/src/TUIRoom/components/ManageMember/MemberControl/index.vue +5 -4
- package/src/TUIRoom/components/ManageMember/MemberControl/useMemberControlHooks.ts +36 -13
- package/src/TUIRoom/components/ManageMember/useIndexHooks.ts +3 -2
- package/src/TUIRoom/components/RoomFooter/ApplyControl/MemberApplyControl.vue +2 -2
- package/src/TUIRoom/components/RoomFooter/EndControl/useEndControlHooks.ts +1 -1
- package/src/TUIRoom/components/RoomFooter/VirtualBackground.vue +100 -16
- package/src/TUIRoom/components/RoomFooter/index/index.vue +0 -3
- package/src/TUIRoom/components/RoomHeader/RoomInfo/useRoomInfoHooks.ts +2 -2
- package/src/TUIRoom/components/RoomHeader/index/LayoutControl.vue +0 -2
- package/src/TUIRoom/components/RoomHeader/index/NetworkInfo.vue +0 -2
- package/src/TUIRoom/components/common/base/MessageBox/index.ts +2 -1
- package/src/TUIRoom/conference.vue +8 -13
- package/src/TUIRoom/extension/RoomMessageCard/RoomMessageCard.vue +1 -1
- package/src/TUIRoom/extension/RoomMessageCard/roomMessageCard.scss +3 -0
- package/src/TUIRoom/extension/chatExtension.ts +3 -1
- package/src/TUIRoom/hooks/useMasterApplyControl.ts +15 -10
- package/src/TUIRoom/index.ts +12 -3
- package/src/TUIRoom/locales/en-US.ts +9 -9
- package/src/TUIRoom/locales/zh-CN.ts +11 -11
- package/src/TUIRoom/services/function/virtualBackground.ts +21 -9
- package/src/TUIRoom/services/function/waterMark.ts +6 -0
- package/src/TUIRoom/services/manager/componentManager.ts +1 -1
- package/src/TUIRoom/services/manager/roomActionManager.ts +1 -1
- package/src/TUIRoom/services/roomService.ts +0 -29
- package/src/TUIRoom/stores/chat.ts +5 -6
- package/src/TUIRoom/stores/room.ts +13 -12
- package/es/utils/aegis/config.mjs +0 -12
- package/es/utils/aegis/index.mjs +0 -63
- package/lib/utils/aegis/config.js +0 -12
- package/lib/utils/aegis/index.js +0 -63
package/es/locales/en-US.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare const _default: {
|
|
|
38
38
|
'Join Room': string;
|
|
39
39
|
'Enter room ID': string;
|
|
40
40
|
'video conferencing': string;
|
|
41
|
-
'Quick
|
|
41
|
+
'Quick Conference': string;
|
|
42
42
|
'Room ID': string;
|
|
43
43
|
'Low Definition': string;
|
|
44
44
|
'Standard Definition': string;
|
|
@@ -71,9 +71,9 @@ declare const _default: {
|
|
|
71
71
|
'Full screen': string;
|
|
72
72
|
Members: string;
|
|
73
73
|
'Search Member': string;
|
|
74
|
-
'
|
|
74
|
+
'Make host': string;
|
|
75
75
|
'Set as administrator': string;
|
|
76
|
-
'
|
|
76
|
+
'Remove administrator': string;
|
|
77
77
|
'The administrator status of sb has been withdrawn': ({ named }: {
|
|
78
78
|
named: any;
|
|
79
79
|
}) => string;
|
|
@@ -212,8 +212,6 @@ declare const _default: {
|
|
|
212
212
|
}) => string;
|
|
213
213
|
'All videos disabled': string;
|
|
214
214
|
'All videos enabled': string;
|
|
215
|
-
'Disabling text chat for all is enabled': string;
|
|
216
|
-
'Unblocked all text chat': string;
|
|
217
215
|
'Your camera has been turned off': string;
|
|
218
216
|
'Sb invites you to turn on the camera': ({ named }: {
|
|
219
217
|
named: any;
|
|
@@ -262,7 +260,7 @@ declare const _default: {
|
|
|
262
260
|
'An invitation to open the camera has been sent to sb.': ({ named }: {
|
|
263
261
|
named: any;
|
|
264
262
|
}) => string;
|
|
265
|
-
'
|
|
263
|
+
'Make host failed, please try again.': string;
|
|
266
264
|
'Sb has been set as an administrator': ({ named }: {
|
|
267
265
|
named: any;
|
|
268
266
|
}) => string;
|
|
@@ -286,8 +284,7 @@ declare const _default: {
|
|
|
286
284
|
'You are now an administrator': string;
|
|
287
285
|
'The RoomOwner has withdrawn your administrator privileges': string;
|
|
288
286
|
'This member has already received the same request, please try again later': string;
|
|
289
|
-
'
|
|
290
|
-
'The current number of people on stage has reached the limit': string;
|
|
287
|
+
'The request to go on stage has timed out': string;
|
|
291
288
|
'The invitation to sb to go on stage has timed out': ({ named }: {
|
|
292
289
|
named: any;
|
|
293
290
|
}) => string;
|
|
@@ -306,7 +303,9 @@ declare const _default: {
|
|
|
306
303
|
'and so on number people applying to stage': ({ named }: {
|
|
307
304
|
named: any;
|
|
308
305
|
}) => string;
|
|
309
|
-
'
|
|
306
|
+
'The stage is full, please contact the host': string;
|
|
307
|
+
'The stage is full': string;
|
|
308
|
+
'quick conference': string;
|
|
310
309
|
Meeting: string;
|
|
311
310
|
'Meeting in progress': string;
|
|
312
311
|
Initiating: string;
|
|
@@ -320,5 +319,6 @@ declare const _default: {
|
|
|
320
319
|
'Currently in a meeting, please exit the current meeting before proceeding.': string;
|
|
321
320
|
'Failed to initiate meeting': string;
|
|
322
321
|
'Failed to enter the meeting': string;
|
|
322
|
+
'Failed to disable chat': string;
|
|
323
323
|
};
|
|
324
324
|
export default _default;
|
package/es/locales/en-US.mjs
CHANGED
|
@@ -38,7 +38,7 @@ const EN = {
|
|
|
38
38
|
"Join Room": "Join Room",
|
|
39
39
|
"Enter room ID": "Enter room ID",
|
|
40
40
|
"video conferencing": " 's video conferencing",
|
|
41
|
-
"Quick
|
|
41
|
+
"Quick Conference": " 's Quick Conference",
|
|
42
42
|
"Room ID": "Room ID",
|
|
43
43
|
"Low Definition": "Low Definition",
|
|
44
44
|
"Standard Definition": "Standard Definition",
|
|
@@ -71,9 +71,9 @@ const EN = {
|
|
|
71
71
|
"Full screen": "Full screen",
|
|
72
72
|
Members: "Members",
|
|
73
73
|
"Search Member": "Search Member",
|
|
74
|
-
"
|
|
74
|
+
"Make host": "Make host",
|
|
75
75
|
"Set as administrator": "Set as administrator",
|
|
76
|
-
"
|
|
76
|
+
"Remove administrator": "Remove administrator",
|
|
77
77
|
// @ts-ignore
|
|
78
78
|
"The administrator status of sb has been withdrawn": ({ named }) => `The administrator status of ${named("name")} has been withdrawn`,
|
|
79
79
|
// @ts-ignore
|
|
@@ -208,8 +208,6 @@ const EN = {
|
|
|
208
208
|
"Sb invites you to turn on the microphone": ({ named }) => `${named("role")} invites you to turn on the microphone`,
|
|
209
209
|
"All videos disabled": "All videos disabled",
|
|
210
210
|
"All videos enabled": "All videos enabled",
|
|
211
|
-
"Disabling text chat for all is enabled": "Disabling text chat for all is enabled",
|
|
212
|
-
"Unblocked all text chat": "Unblocked all text chat",
|
|
213
211
|
"Your camera has been turned off": "Your camera has been turned off",
|
|
214
212
|
// @ts-ignore
|
|
215
213
|
"Sb invites you to turn on the camera": ({ named }) => `${named("role")} invites you to turn on the camera`,
|
|
@@ -252,7 +250,7 @@ const EN = {
|
|
|
252
250
|
"An invitation to open the microphone has been sent to sb.": ({ named }) => `An invitation to open the microphone has been sent to ${named("name")}`,
|
|
253
251
|
// @ts-ignore
|
|
254
252
|
"An invitation to open the camera has been sent to sb.": ({ named }) => `An invitation to open the camera has been sent to ${named("name")}`,
|
|
255
|
-
"
|
|
253
|
+
"Make host failed, please try again.": "Make host failed, please try again.",
|
|
256
254
|
// @ts-ignore
|
|
257
255
|
"Sb has been set as an administrator": ({ named }) => `${named("name")} has been set as an administrator.`,
|
|
258
256
|
"Succeed on stage": "Succeed on stage",
|
|
@@ -273,8 +271,7 @@ const EN = {
|
|
|
273
271
|
"You are now an administrator": "You are now an administrator",
|
|
274
272
|
"The RoomOwner has withdrawn your administrator privileges": "The RoomOwner has withdrawn your administrator privileges",
|
|
275
273
|
"This member has already received the same request, please try again later": "This member has already received the same request, please try again later",
|
|
276
|
-
"
|
|
277
|
-
"The current number of people on stage has reached the limit": "The current number of people on stage has reached the limit",
|
|
274
|
+
"The request to go on stage has timed out": "The request to go on stage has timed out",
|
|
278
275
|
// @ts-ignore
|
|
279
276
|
"The invitation to sb to go on stage has timed out": ({ named }) => `The invitation to ${named("name")} to go on stage has timed out`,
|
|
280
277
|
"Currently no member has applied to go on stage": "Currently no member has applied to go on stage",
|
|
@@ -291,8 +288,10 @@ const EN = {
|
|
|
291
288
|
"people applying to stage": "people applying to stage",
|
|
292
289
|
// @ts-ignore
|
|
293
290
|
"and so on number people applying to stage": ({ named }) => `and so on ${named("number")} people applying to stage`,
|
|
291
|
+
"The stage is full, please contact the host": "The stage is full, please contact the host",
|
|
292
|
+
"The stage is full": "The stage is full",
|
|
294
293
|
// Room Chat Fusion Card Translation
|
|
295
|
-
"quick
|
|
294
|
+
"quick conference": "quick conference",
|
|
296
295
|
Meeting: "Meeting",
|
|
297
296
|
"Meeting in progress": "Meeting in progress",
|
|
298
297
|
Initiating: "Initiating",
|
|
@@ -305,7 +304,8 @@ const EN = {
|
|
|
305
304
|
"The meeting has ended": "The meeting has ended",
|
|
306
305
|
"Currently in a meeting, please exit the current meeting before proceeding.": "Currently in a meeting, please exit the current meeting before proceeding.",
|
|
307
306
|
"Failed to initiate meeting": "Failed to initiate meeting",
|
|
308
|
-
"Failed to enter the meeting": "Failed to enter the meeting"
|
|
307
|
+
"Failed to enter the meeting": "Failed to enter the meeting",
|
|
308
|
+
"Failed to disable chat": "Failed to disable chat"
|
|
309
309
|
};
|
|
310
310
|
export {
|
|
311
311
|
EN as default
|
package/es/locales/zh-CN.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ declare const _default: {
|
|
|
35
35
|
'Join Room': string;
|
|
36
36
|
'Enter room ID': string;
|
|
37
37
|
'video conferencing': string;
|
|
38
|
-
'Quick
|
|
38
|
+
'Quick Conference': string;
|
|
39
39
|
'Room ID': string;
|
|
40
40
|
'Low Definition': string;
|
|
41
41
|
'Standard Definition': string;
|
|
@@ -68,9 +68,9 @@ declare const _default: {
|
|
|
68
68
|
'Full screen': string;
|
|
69
69
|
Members: string;
|
|
70
70
|
'Search Member': string;
|
|
71
|
-
'
|
|
71
|
+
'Make host': string;
|
|
72
72
|
'Set as administrator': string;
|
|
73
|
-
'
|
|
73
|
+
'Remove administrator': string;
|
|
74
74
|
'The administrator status of sb has been withdrawn': ({ named }: {
|
|
75
75
|
named: any;
|
|
76
76
|
}) => string;
|
|
@@ -212,8 +212,6 @@ declare const _default: {
|
|
|
212
212
|
}) => string;
|
|
213
213
|
'All videos disabled': string;
|
|
214
214
|
'All videos enabled': string;
|
|
215
|
-
'Disabling text chat for all is enabled': string;
|
|
216
|
-
'Unblocked all text chat': string;
|
|
217
215
|
'Your camera has been turned off': string;
|
|
218
216
|
'Sb invites you to turn on the camera': ({ named }: {
|
|
219
217
|
named: any;
|
|
@@ -226,10 +224,10 @@ declare const _default: {
|
|
|
226
224
|
'kicked out of the room by the host': string;
|
|
227
225
|
'kicked out of the room by other device': string;
|
|
228
226
|
'kicked out of the room by serve': string;
|
|
229
|
-
'Reject sb stage failed, please retry': ({ named }: {
|
|
227
|
+
'Reject sb on stage failed, please retry': ({ named }: {
|
|
230
228
|
named: any;
|
|
231
229
|
}) => string;
|
|
232
|
-
'Agree sb stage failed, please retry': ({ named }: {
|
|
230
|
+
'Agree sb on stage failed, please retry': ({ named }: {
|
|
233
231
|
named: any;
|
|
234
232
|
}) => string;
|
|
235
233
|
'Has been fully muted and cannot open the microphone': string;
|
|
@@ -262,7 +260,7 @@ declare const _default: {
|
|
|
262
260
|
'An invitation to open the camera has been sent to sb.': ({ named }: {
|
|
263
261
|
named: any;
|
|
264
262
|
}) => string;
|
|
265
|
-
'
|
|
263
|
+
'Make host failed, please try again.': string;
|
|
266
264
|
'Sb has been set as an administrator': ({ named }: {
|
|
267
265
|
named: any;
|
|
268
266
|
}) => string;
|
|
@@ -286,8 +284,7 @@ declare const _default: {
|
|
|
286
284
|
'You are now an administrator': string;
|
|
287
285
|
'The RoomOwner has withdrawn your administrator privileges': string;
|
|
288
286
|
'This member has already received the same request, please try again later': string;
|
|
289
|
-
'
|
|
290
|
-
'The current number of people on stage has reached the limit': string;
|
|
287
|
+
'The request to go on stage has timed out': string;
|
|
291
288
|
'The invitation to sb to go on stage has timed out': ({ named }: {
|
|
292
289
|
named: any;
|
|
293
290
|
}) => string;
|
|
@@ -306,7 +303,9 @@ declare const _default: {
|
|
|
306
303
|
'and so on number people applying to stage': ({ named }: {
|
|
307
304
|
named: any;
|
|
308
305
|
}) => string;
|
|
309
|
-
'
|
|
306
|
+
'The stage is full, please contact the host': string;
|
|
307
|
+
'The stage is full': string;
|
|
308
|
+
'quick conference': string;
|
|
310
309
|
Meeting: string;
|
|
311
310
|
'Meeting in progress': string;
|
|
312
311
|
Initiating: string;
|
|
@@ -320,5 +319,6 @@ declare const _default: {
|
|
|
320
319
|
'Currently in a meeting, please exit the current meeting before proceeding.': string;
|
|
321
320
|
'Failed to initiate meeting': string;
|
|
322
321
|
'Failed to enter the meeting': string;
|
|
322
|
+
'Failed to disable chat': string;
|
|
323
323
|
};
|
|
324
324
|
export default _default;
|
package/es/locales/zh-CN.mjs
CHANGED
|
@@ -35,7 +35,7 @@ const ZH = {
|
|
|
35
35
|
"Join Room": "进入房间",
|
|
36
36
|
"Enter room ID": "输入房间号",
|
|
37
37
|
"video conferencing": " 的视频会议",
|
|
38
|
-
"Quick
|
|
38
|
+
"Quick Conference": "的快速会议",
|
|
39
39
|
"Room ID": "房间号",
|
|
40
40
|
"Low Definition": "流畅",
|
|
41
41
|
"Standard Definition": "标清",
|
|
@@ -68,9 +68,9 @@ const ZH = {
|
|
|
68
68
|
"Full screen": "全屏",
|
|
69
69
|
Members: "成员",
|
|
70
70
|
"Search Member": "搜索成员",
|
|
71
|
-
"
|
|
71
|
+
"Make host": "转交房主",
|
|
72
72
|
"Set as administrator": "设为管理员",
|
|
73
|
-
"
|
|
73
|
+
"Remove administrator": "撤销管理员",
|
|
74
74
|
// @ts-ignore
|
|
75
75
|
"The administrator status of sb has been withdrawn": ({ named }) => `已将 ${named("name")} 的管理员身份撤回`,
|
|
76
76
|
// @ts-ignore
|
|
@@ -208,8 +208,6 @@ const ZH = {
|
|
|
208
208
|
"Sb invites you to turn on the microphone": ({ named }) => `${named("role")}邀请你打开麦克风`,
|
|
209
209
|
"All videos disabled": "已开启全体禁画",
|
|
210
210
|
"All videos enabled": "已解除全体禁画",
|
|
211
|
-
"Disabling text chat for all is enabled": "已开启全体禁止文字聊天",
|
|
212
|
-
"Unblocked all text chat": "已解除全体禁止文字聊天",
|
|
213
211
|
"Your camera has been turned off": "已关闭您的摄像头",
|
|
214
212
|
// @ts-ignore
|
|
215
213
|
"Sb invites you to turn on the camera": ({ named }) => `${named("role")}邀请你打开摄像头`,
|
|
@@ -222,9 +220,9 @@ const ZH = {
|
|
|
222
220
|
"kicked out of the room by other device": "相同账号在其他客户端进入房间",
|
|
223
221
|
"kicked out of the room by serve": "被服务端踢出房间",
|
|
224
222
|
// @ts-ignore
|
|
225
|
-
"Reject sb stage failed, please retry": ({ named }) => `拒绝 ${named("name")} 上台失败, 请重试`,
|
|
223
|
+
"Reject sb on stage failed, please retry": ({ named }) => `拒绝 ${named("name")} 上台失败, 请重试`,
|
|
226
224
|
// @ts-ignore
|
|
227
|
-
"Agree sb stage failed, please retry": ({ named }) => `同意 ${named("name")} 上台失败, 请重试`,
|
|
225
|
+
"Agree sb on stage failed, please retry": ({ named }) => `同意 ${named("name")} 上台失败, 请重试`,
|
|
228
226
|
"Has been fully muted and cannot open the microphone": "已被全员静音,无法打开麦克风",
|
|
229
227
|
"Has been muted by the host and cannot open the microphone": "已被主持人静音,无法打开麦克风",
|
|
230
228
|
"To apply to speak in the room, please raise your hand first to apply for the microphone": "申请发言房间,请先举手申请上麦",
|
|
@@ -252,7 +250,7 @@ const ZH = {
|
|
|
252
250
|
"An invitation to open the microphone has been sent to sb.": ({ named }) => `已向 ${named("name")} 发出开启麦克风邀请`,
|
|
253
251
|
// @ts-ignore
|
|
254
252
|
"An invitation to open the camera has been sent to sb.": ({ named }) => `已向 ${named("name")} 发出开启摄像头邀请`,
|
|
255
|
-
"
|
|
253
|
+
"Make host failed, please try again.": "转交房主失败,请重试",
|
|
256
254
|
// @ts-ignore
|
|
257
255
|
"Sb has been set as an administrator": ({ named }) => `已将 ${named("name")} 设为管理员`,
|
|
258
256
|
"Succeed on stage": "上台成功",
|
|
@@ -273,8 +271,7 @@ const ZH = {
|
|
|
273
271
|
"You are now an administrator": "您已成为管理员",
|
|
274
272
|
"The RoomOwner has withdrawn your administrator privileges": "房主已收回您的管理员权限",
|
|
275
273
|
"This member has already received the same request, please try again later": "该成员已收到相同请求,请稍后再试",
|
|
276
|
-
"
|
|
277
|
-
"The current number of people on stage has reached the limit": "当前上台人数已达上限",
|
|
274
|
+
"The request to go on stage has timed out": "上台请求已超时",
|
|
278
275
|
// @ts-ignore
|
|
279
276
|
"The invitation to sb to go on stage has timed out": ({ named }) => `对${named("name")}的上台邀请已超时`,
|
|
280
277
|
"Currently no member has applied to go on stage": "暂无成员申请上台",
|
|
@@ -291,8 +288,10 @@ const ZH = {
|
|
|
291
288
|
"people applying to stage": "人正在申请上台",
|
|
292
289
|
// @ts-ignore
|
|
293
290
|
"and so on number people applying to stage": ({ named }) => `等 ${named("number")} 人正在申请上台`,
|
|
291
|
+
"The stage is full, please contact the host": "台上人数已满,请联系主持人",
|
|
292
|
+
"The stage is full": "台上人数已满",
|
|
294
293
|
// Room Chat Fusion Card Translation
|
|
295
|
-
"quick
|
|
294
|
+
"quick conference": "快速会议",
|
|
296
295
|
Meeting: "会议",
|
|
297
296
|
"Meeting in progress": "会议 进行中",
|
|
298
297
|
Initiating: "正在发起",
|
|
@@ -305,7 +304,8 @@ const ZH = {
|
|
|
305
304
|
"The meeting has ended": "会议已结束",
|
|
306
305
|
"Currently in a meeting, please exit the current meeting before proceeding.": "正在会议中,请先退出当前会议后再进行操作",
|
|
307
306
|
"Failed to initiate meeting": "发起会议失败",
|
|
308
|
-
"Failed to enter the meeting": "进入会议失败"
|
|
307
|
+
"Failed to enter the meeting": "进入会议失败",
|
|
308
|
+
"Failed to disable chat": "禁言失败"
|
|
309
309
|
};
|
|
310
310
|
export {
|
|
311
311
|
ZH as default
|
|
@@ -4,6 +4,7 @@ interface IVirtualBackground {
|
|
|
4
4
|
dispose(): void;
|
|
5
5
|
initVirtualBackground(): Promise<void>;
|
|
6
6
|
toggleVirtualBackground(enabled: boolean): Promise<void>;
|
|
7
|
+
toggleTestVirtualBackground(enabled: boolean): Promise<void>;
|
|
7
8
|
}
|
|
8
9
|
export declare class VirtualBackground implements IVirtualBackground {
|
|
9
10
|
private service;
|
|
@@ -15,5 +16,6 @@ export declare class VirtualBackground implements IVirtualBackground {
|
|
|
15
16
|
dispose(): void;
|
|
16
17
|
initVirtualBackground(): Promise<void>;
|
|
17
18
|
toggleVirtualBackground(enabled: boolean): Promise<void>;
|
|
19
|
+
toggleTestVirtualBackground(enabled: boolean): Promise<void>;
|
|
18
20
|
}
|
|
19
21
|
export {};
|
|
@@ -11,6 +11,7 @@ class VirtualBackground {
|
|
|
11
11
|
__publicField(this, "virtualBackgroundPluginReady", false);
|
|
12
12
|
__publicField(this, "handleUnmount", async () => {
|
|
13
13
|
await this.toggleVirtualBackground(false);
|
|
14
|
+
await this.toggleTestVirtualBackground(false);
|
|
14
15
|
});
|
|
15
16
|
this.service = service;
|
|
16
17
|
if (isElectron)
|
|
@@ -36,15 +37,24 @@ class VirtualBackground {
|
|
|
36
37
|
async toggleVirtualBackground(enabled) {
|
|
37
38
|
await this.initVirtualBackground();
|
|
38
39
|
const { sdkAppId, userId, userSig } = this.service.basicStore;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
const params = {
|
|
41
|
+
sdkAppId,
|
|
42
|
+
userId,
|
|
43
|
+
userSig,
|
|
44
|
+
enable: enabled
|
|
45
|
+
};
|
|
46
|
+
await this.trtcCloud.callExperimentalAPI(JSON.stringify({ api: "enableVirtualBackground", params }));
|
|
47
|
+
}
|
|
48
|
+
async toggleTestVirtualBackground(enabled) {
|
|
49
|
+
await this.initVirtualBackground();
|
|
50
|
+
const { sdkAppId, userId, userSig } = this.service.basicStore;
|
|
51
|
+
const params = {
|
|
52
|
+
sdkAppId,
|
|
53
|
+
userId,
|
|
54
|
+
userSig,
|
|
55
|
+
enable: enabled
|
|
56
|
+
};
|
|
57
|
+
await this.trtcCloud.callExperimentalAPI(JSON.stringify({ api: "enableTestVirtualBackground", params }));
|
|
48
58
|
}
|
|
49
59
|
}
|
|
50
60
|
export {
|
|
@@ -77,6 +77,7 @@ class WaterMark {
|
|
|
77
77
|
watermarkContainer.classList.add("watermark-container");
|
|
78
78
|
targetElement.appendChild(watermarkContainer);
|
|
79
79
|
const addWatermarkElements = () => {
|
|
80
|
+
watermarkContainer.innerHTML = "";
|
|
80
81
|
const maxWidth = 200;
|
|
81
82
|
const watermarkSpacing = maxWidth + 25;
|
|
82
83
|
for (let y = -watermarkSpacing; y < watermarkContainer.offsetHeight + watermarkSpacing; y += watermarkSpacing) {
|
|
@@ -91,6 +92,8 @@ class WaterMark {
|
|
|
91
92
|
}
|
|
92
93
|
};
|
|
93
94
|
addWatermarkElements();
|
|
95
|
+
const resizeObserver = new ResizeObserver(addWatermarkElements);
|
|
96
|
+
resizeObserver.observe(watermarkContainer);
|
|
94
97
|
const observerCallback = (mutations, observer) => {
|
|
95
98
|
mutations.forEach((mutation) => {
|
|
96
99
|
if (mutation.removedNodes.length > 0) {
|
|
@@ -33,7 +33,7 @@ const defaultConfig = {
|
|
|
33
33
|
ManageMemberControl: { visible: true },
|
|
34
34
|
InviteControl: { visible: true },
|
|
35
35
|
ChatControl: { visible: true },
|
|
36
|
-
MoreControl: { visible:
|
|
36
|
+
MoreControl: { visible: false },
|
|
37
37
|
VirtualBackground: { visible: false }
|
|
38
38
|
};
|
|
39
39
|
const _ComponentManager = class _ComponentManager {
|
|
@@ -102,7 +102,7 @@ class RoomActionManager {
|
|
|
102
102
|
const { roomId, roomName, roomMode } = options;
|
|
103
103
|
const roomParams = {
|
|
104
104
|
roomId,
|
|
105
|
-
|
|
105
|
+
roomName,
|
|
106
106
|
roomType: TUIRoomType.kConference,
|
|
107
107
|
isSeatEnabled: roomMode !== "FreeToSpeak",
|
|
108
108
|
seatMode: roomMode === "SpeakAfterTakingSeat" ? TUISeatMode.kApplyToTake : void 0
|
|
@@ -5,9 +5,10 @@ import { LifeCycleManager } from './manager/lifeCycleManager';
|
|
|
5
5
|
import { SelfInfoOptions, UserManager } from './manager/userManager';
|
|
6
6
|
import { ConfigManager, LanguageOption, ThemeOption } from './manager/configManager';
|
|
7
7
|
import { ComponentConfig, ComponentManager, ComponentName } from './manager/componentManager';
|
|
8
|
+
import { default as TUIRoomEngine } from '@tencentcloud/tuiroom-engine-electron';
|
|
8
9
|
import { EventType, IRoomService, RoomInitData, RoomParam } from './types';
|
|
9
10
|
|
|
10
|
-
export declare const roomEngine: Record<string,
|
|
11
|
+
export declare const roomEngine: Record<string, TUIRoomEngine | null>;
|
|
11
12
|
export declare class RoomService implements IRoomService {
|
|
12
13
|
static instance?: RoomService;
|
|
13
14
|
private emitter;
|
|
@@ -18,7 +19,7 @@ export declare class RoomService implements IRoomService {
|
|
|
18
19
|
roomActionManager: RoomActionManager;
|
|
19
20
|
waterMark: WaterMark;
|
|
20
21
|
virtualBackground: VirtualBackground;
|
|
21
|
-
roomEngine: Record<string,
|
|
22
|
+
roomEngine: Record<string, TUIRoomEngine | null>;
|
|
22
23
|
t: any;
|
|
23
24
|
get basicStore(): any;
|
|
24
25
|
get roomStore(): any;
|
|
@@ -43,8 +44,6 @@ export declare class RoomService implements IRoomService {
|
|
|
43
44
|
private onAllUserCameraDisableChanged;
|
|
44
45
|
private handleVideoStateChange;
|
|
45
46
|
private onAllUserMicrophoneDisableChanged;
|
|
46
|
-
private onSendMessageForAllUserDisableChanged;
|
|
47
|
-
private handleMessageStateChange;
|
|
48
47
|
private handleAudioStateChange;
|
|
49
48
|
resetStore(): void;
|
|
50
49
|
private storeInit;
|
|
@@ -65,7 +65,6 @@ const _RoomService = class _RoomService {
|
|
|
65
65
|
this.onKickedOffLine = this.onKickedOffLine.bind(this);
|
|
66
66
|
this.onAllUserCameraDisableChanged = this.onAllUserCameraDisableChanged.bind(this);
|
|
67
67
|
this.onAllUserMicrophoneDisableChanged = this.onAllUserMicrophoneDisableChanged.bind(this);
|
|
68
|
-
this.onSendMessageForAllUserDisableChanged = this.onSendMessageForAllUserDisableChanged.bind(this);
|
|
69
68
|
}
|
|
70
69
|
static getInstance() {
|
|
71
70
|
if (!_RoomService.instance) {
|
|
@@ -92,7 +91,7 @@ const _RoomService = class _RoomService {
|
|
|
92
91
|
useDeviceManager({ listenForDeviceChange: true });
|
|
93
92
|
}
|
|
94
93
|
bindRoomEngineEvents() {
|
|
95
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
94
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
96
95
|
(_a = roomEngine.instance) == null ? void 0 : _a.on(TUIRoomEvents.onError, this.onError);
|
|
97
96
|
(_b = roomEngine.instance) == null ? void 0 : _b.on(TUIRoomEvents.onRoomDismissed, this.onRoomDismissed);
|
|
98
97
|
(_c = roomEngine.instance) == null ? void 0 : _c.on(TUIRoomEvents.onUserVoiceVolumeChanged, this.onUserVoiceVolumeChanged);
|
|
@@ -106,13 +105,9 @@ const _RoomService = class _RoomService {
|
|
|
106
105
|
(_h = roomEngine.instance) == null ? void 0 : _h.on(TUIRoomEvents.onKickedOffLine, this.onKickedOffLine);
|
|
107
106
|
(_i = roomEngine.instance) == null ? void 0 : _i.on(TUIRoomEvents.onAllUserCameraDisableChanged, this.onAllUserCameraDisableChanged);
|
|
108
107
|
(_j = roomEngine.instance) == null ? void 0 : _j.on(TUIRoomEvents.onAllUserMicrophoneDisableChanged, this.onAllUserMicrophoneDisableChanged);
|
|
109
|
-
(_k = roomEngine.instance) == null ? void 0 : _k.on(
|
|
110
|
-
TUIRoomEvents.onSendMessageForAllUserDisableChanged,
|
|
111
|
-
this.onSendMessageForAllUserDisableChanged
|
|
112
|
-
);
|
|
113
108
|
}
|
|
114
109
|
unBindRoomEngineEvents() {
|
|
115
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j
|
|
110
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
116
111
|
(_a = roomEngine.instance) == null ? void 0 : _a.off(TUIRoomEvents.onError, this.onError);
|
|
117
112
|
(_b = roomEngine.instance) == null ? void 0 : _b.off(TUIRoomEvents.onRoomDismissed, this.onRoomDismissed);
|
|
118
113
|
(_c = roomEngine.instance) == null ? void 0 : _c.off(TUIRoomEvents.onUserVoiceVolumeChanged, this.onUserVoiceVolumeChanged);
|
|
@@ -123,10 +118,6 @@ const _RoomService = class _RoomService {
|
|
|
123
118
|
(_h = roomEngine.instance) == null ? void 0 : _h.off(TUIRoomEvents.onKickedOffLine, this.onKickedOffLine);
|
|
124
119
|
(_i = roomEngine.instance) == null ? void 0 : _i.off(TUIRoomEvents.onAllUserCameraDisableChanged, this.onAllUserCameraDisableChanged);
|
|
125
120
|
(_j = roomEngine.instance) == null ? void 0 : _j.off(TUIRoomEvents.onAllUserMicrophoneDisableChanged, this.onAllUserMicrophoneDisableChanged);
|
|
126
|
-
(_k = roomEngine.instance) == null ? void 0 : _k.off(
|
|
127
|
-
TUIRoomEvents.onSendMessageForAllUserDisableChanged,
|
|
128
|
-
this.onSendMessageForAllUserDisableChanged
|
|
129
|
-
);
|
|
130
121
|
}
|
|
131
122
|
onError(error) {
|
|
132
123
|
logger.error("roomEngine.onError: ", error);
|
|
@@ -252,21 +243,6 @@ const _RoomService = class _RoomService {
|
|
|
252
243
|
this.handleAudioStateChange(isDisable);
|
|
253
244
|
this.roomStore.setDisableMicrophoneForAllUserByAdmin(isDisable);
|
|
254
245
|
}
|
|
255
|
-
async onSendMessageForAllUserDisableChanged(eventInfo) {
|
|
256
|
-
const { isDisable } = eventInfo;
|
|
257
|
-
if (isDisable !== this.roomStore.isMessageDisableForAllUser && this.roomStore.localUser.userRole === TUIRole.kGeneralUser) {
|
|
258
|
-
this.handleMessageStateChange(isDisable);
|
|
259
|
-
}
|
|
260
|
-
this.roomStore.setDisableMessageAllUserByAdmin(isDisable);
|
|
261
|
-
}
|
|
262
|
-
async handleMessageStateChange(isDisableMessage) {
|
|
263
|
-
const tipMessage = isDisableMessage ? t("Disabling text chat for all is enabled") : t("Unblocked all text chat");
|
|
264
|
-
this.emit(EventType.ROOM_NOTICE_MESSAGE, {
|
|
265
|
-
type: "success",
|
|
266
|
-
message: tipMessage,
|
|
267
|
-
duration: MESSAGE_DURATION.NORMAL
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
246
|
async handleAudioStateChange(isDisableAudio) {
|
|
271
247
|
var _a;
|
|
272
248
|
const tipMessage = isDisableAudio ? t("All audios disabled") : t("All audios enabled");
|
package/es/stores/chat.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { defineStore } from "pinia";
|
|
|
2
2
|
const useChatStore = defineStore("chat", {
|
|
3
3
|
state: () => ({
|
|
4
4
|
messageList: [],
|
|
5
|
-
|
|
5
|
+
isMessageDisabled: false,
|
|
6
6
|
unReadCount: 0,
|
|
7
7
|
isCompleted: false,
|
|
8
8
|
nextReqMessageId: ""
|
|
@@ -29,12 +29,12 @@ const useChatStore = defineStore("chat", {
|
|
|
29
29
|
this.messageList = filteredMessageList.concat(this.messageList).sort((messageA, messageB) => messageA.sequence - messageB.sequence);
|
|
30
30
|
},
|
|
31
31
|
setSendMessageDisableChanged(isDisable) {
|
|
32
|
-
this.
|
|
32
|
+
this.isMessageDisabled = isDisable;
|
|
33
33
|
},
|
|
34
34
|
reset() {
|
|
35
35
|
this.messageList = [];
|
|
36
36
|
this.unReadCount = 0;
|
|
37
|
-
this.
|
|
37
|
+
this.isMessageDisabled = false;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
});
|
package/es/stores/room.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export type UserInfo = {
|
|
|
19
19
|
hasScreenStream?: boolean;
|
|
20
20
|
isVideoVisible?: boolean;
|
|
21
21
|
isScreenVisible?: boolean;
|
|
22
|
+
isMessageDisabled?: boolean;
|
|
22
23
|
userRole?: TUIRole;
|
|
23
24
|
onSeat?: boolean;
|
|
24
|
-
isChatMutedByMasterOrAdmin?: boolean;
|
|
25
25
|
isRequestingUserOpenMic?: boolean;
|
|
26
26
|
requestUserOpenMicRequestId?: string;
|
|
27
27
|
isRequestingUserOpenCamera?: boolean;
|
package/es/stores/room.mjs
CHANGED
|
@@ -50,11 +50,12 @@ const useRoomStore = defineStore("room", {
|
|
|
50
50
|
masterUserId: "",
|
|
51
51
|
isMicrophoneDisableForAllUser: false,
|
|
52
52
|
isCameraDisableForAllUser: false,
|
|
53
|
-
isMessageDisableForAllUser: false,
|
|
54
53
|
isSeatEnabled: false,
|
|
55
54
|
seatMode: TUISeatMode.kFreeToTake,
|
|
56
55
|
maxMembersCount: 5,
|
|
57
56
|
// Includes local streams and screen shares, above which subsequent streams are played
|
|
57
|
+
maxSeatCount: 20,
|
|
58
|
+
roomName: "",
|
|
58
59
|
hasVideoStreamObject: {},
|
|
59
60
|
// Visual area user flow list
|
|
60
61
|
currentStreamIdListInVisibleView: [],
|
|
@@ -198,9 +199,9 @@ const useRoomStore = defineStore("room", {
|
|
|
198
199
|
hasScreenStream: false,
|
|
199
200
|
isVideoVisible: false,
|
|
200
201
|
isScreenVisible: false,
|
|
202
|
+
isMessageDisabled: false,
|
|
201
203
|
userRole: TUIRole.kGeneralUser,
|
|
202
204
|
onSeat: !this.isSpeakAfterTakingSeatMode,
|
|
203
|
-
isChatMutedByMasterOrAdmin: false,
|
|
204
205
|
isUserApplyingToAnchor: false,
|
|
205
206
|
isInvitingUserToAnchor: false,
|
|
206
207
|
cameraStreamInfo: {
|
|
@@ -423,9 +424,10 @@ const useRoomStore = defineStore("room", {
|
|
|
423
424
|
roomOwner,
|
|
424
425
|
isMicrophoneDisableForAllUser,
|
|
425
426
|
isCameraDisableForAllUser,
|
|
426
|
-
isMessageDisableForAllUser,
|
|
427
427
|
isSeatEnabled,
|
|
428
|
-
seatMode
|
|
428
|
+
seatMode,
|
|
429
|
+
maxSeatCount,
|
|
430
|
+
roomName
|
|
429
431
|
} = roomInfo;
|
|
430
432
|
if (this.localUser.userId === roomOwner) {
|
|
431
433
|
this.localUser.userRole = TUIRole.kRoomOwner;
|
|
@@ -433,11 +435,12 @@ const useRoomStore = defineStore("room", {
|
|
|
433
435
|
this.masterUserId = roomOwner;
|
|
434
436
|
this.isMicrophoneDisableForAllUser = isMicrophoneDisableForAllUser;
|
|
435
437
|
this.isCameraDisableForAllUser = isCameraDisableForAllUser;
|
|
436
|
-
this.isMessageDisableForAllUser = isMessageDisableForAllUser;
|
|
437
438
|
this.isSeatEnabled = isSeatEnabled;
|
|
438
439
|
this.seatMode = seatMode;
|
|
439
440
|
this.canControlSelfAudio = !this.isMicrophoneDisableForAllUser;
|
|
440
441
|
this.canControlSelfVideo = !this.isCameraDisableForAllUser;
|
|
442
|
+
this.maxSeatCount = maxSeatCount;
|
|
443
|
+
this.roomName = roomName;
|
|
441
444
|
},
|
|
442
445
|
setDisableMicrophoneForAllUserByAdmin(isDisable) {
|
|
443
446
|
this.isMicrophoneDisableForAllUser = isDisable;
|
|
@@ -445,9 +448,6 @@ const useRoomStore = defineStore("room", {
|
|
|
445
448
|
setDisableCameraForAllUserByAdmin(isDisable) {
|
|
446
449
|
this.isCameraDisableForAllUser = isDisable;
|
|
447
450
|
},
|
|
448
|
-
setDisableMessageAllUserByAdmin(isDisable) {
|
|
449
|
-
this.isMessageDisableForAllUser = isDisable;
|
|
450
|
-
},
|
|
451
451
|
setMasterUserId(userId) {
|
|
452
452
|
this.masterUserId = userId;
|
|
453
453
|
},
|
|
@@ -528,7 +528,7 @@ const useRoomStore = defineStore("room", {
|
|
|
528
528
|
setMuteUserChat(userId, muted) {
|
|
529
529
|
const remoteUserInfo = this.remoteUserObj[userId];
|
|
530
530
|
if (remoteUserInfo) {
|
|
531
|
-
remoteUserInfo.
|
|
531
|
+
remoteUserInfo.isMessageDisabled = muted;
|
|
532
532
|
}
|
|
533
533
|
},
|
|
534
534
|
setRemoteUserRole(userId, role) {
|
|
@@ -637,12 +637,13 @@ const useRoomStore = defineStore("room", {
|
|
|
637
637
|
this.masterUserId = "";
|
|
638
638
|
this.isMicrophoneDisableForAllUser = false;
|
|
639
639
|
this.isCameraDisableForAllUser = false;
|
|
640
|
-
this.isMessageDisableForAllUser = false;
|
|
641
640
|
this.isSeatEnabled = false;
|
|
642
641
|
this.seatMode = TUISeatMode.kFreeToTake;
|
|
643
642
|
this.hasVideoStreamObject = {};
|
|
644
643
|
this.hasOtherScreenShare = false;
|
|
645
644
|
this.isOnStateTabActive = true;
|
|
645
|
+
this.maxSeatCount = 20;
|
|
646
|
+
this.roomName = "";
|
|
646
647
|
}
|
|
647
648
|
}
|
|
648
649
|
});
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const index_vue_vue_type_script_setup_true_lang = require("./index.vue2.js");
|
|
4
4
|
require("./index.vue3.js");
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const ChatEditor = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const ChatEditor = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-417e38fe"]]);
|
|
7
7
|
exports.default = ChatEditor;
|
|
@@ -11,13 +11,13 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
11
11
|
t,
|
|
12
12
|
editorInputEle,
|
|
13
13
|
sendMsg,
|
|
14
|
-
|
|
14
|
+
isMessageDisabled,
|
|
15
15
|
sendMessage,
|
|
16
16
|
handleChooseEmoji
|
|
17
17
|
} = useChatEditor.default();
|
|
18
18
|
return (_ctx, _cache) => {
|
|
19
19
|
return Vue.openBlock(), Vue.createElementBlock("div", {
|
|
20
|
-
class: Vue.normalizeClass(["chat-editor", { "disable": Vue.unref(
|
|
20
|
+
class: Vue.normalizeClass(["chat-editor", { "disable": Vue.unref(isMessageDisabled) }])
|
|
21
21
|
}, [
|
|
22
22
|
Vue.createVNode(index.default, {
|
|
23
23
|
class: "chat-emoji",
|
|
@@ -27,9 +27,9 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
27
27
|
ref_key: "editorInputEle",
|
|
28
28
|
ref: editorInputEle,
|
|
29
29
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(sendMsg) ? sendMsg.value = $event : null),
|
|
30
|
-
disabled: Vue.unref(
|
|
30
|
+
disabled: Vue.unref(isMessageDisabled),
|
|
31
31
|
class: "content-bottom-input",
|
|
32
|
-
placeholder: Vue.unref(
|
|
32
|
+
placeholder: Vue.unref(isMessageDisabled) ? Vue.unref(t)("Muted by the moderator") : Vue.unref(t)("Type a message"),
|
|
33
33
|
onKeyup: _cache[1] || (_cache[1] = Vue.withKeys(
|
|
34
34
|
//@ts-ignore
|
|
35
35
|
(...args) => Vue.unref(sendMessage) && Vue.unref(sendMessage)(...args),
|
|
@@ -2,8 +2,7 @@ export default function useChatEditor(): {
|
|
|
2
2
|
t: any;
|
|
3
3
|
editorInputEle: import('vue').Ref<any>;
|
|
4
4
|
sendMsg: import('vue').Ref<string>;
|
|
5
|
-
|
|
6
|
-
cannotSendMessage: import('vue').ComputedRef<boolean>;
|
|
5
|
+
isMessageDisabled: any;
|
|
7
6
|
sendMessage: () => Promise<void>;
|
|
8
7
|
handleChooseEmoji: (emojiName: string) => void;
|
|
9
8
|
isEmojiToolbarVisible: import('vue').Ref<boolean>;
|