@ndscnj/roomkit-web-vue3 25.11.1916 → 25.12.2316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/.vscode/settings.json +2 -0
  2. package/es/assets/imgs/black-logo.png.mjs +1 -1
  3. package/es/assets/imgs/white-logo.png.mjs +1 -1
  4. package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
  5. package/es/components/RoomFooter/index/indexPC.vue2.mjs +8 -3
  6. package/es/components/RoomFooter/voteControl.vue.d.ts +15 -0
  7. package/es/components/RoomFooter/voteControl.vue.mjs +7 -0
  8. package/es/components/RoomFooter/voteControl.vue2.mjs +60 -0
  9. package/es/components/RoomInvite/useRoomInviteHooks.d.ts +1 -1
  10. package/es/components/RoomSidebar/indexPC.vue.mjs +6 -4
  11. package/es/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
  12. package/es/components/RoomSidebar/useSideBarHooks.mjs +3 -0
  13. package/es/components/RoomVote/index.d.ts +6 -0
  14. package/es/components/RoomVote/useRoomMoreHooks.d.ts +13 -0
  15. package/es/conference.vue.d.ts +2 -0
  16. package/es/conference.vue.mjs +1 -1
  17. package/es/conference.vue2.mjs +7 -2
  18. package/es/index.mjs +31 -13
  19. package/es/locales/en-US.d.ts +1 -0
  20. package/es/locales/en-US.mjs +1 -0
  21. package/es/locales/zh-CN.d.ts +1 -0
  22. package/es/locales/zh-CN.mjs +1 -0
  23. package/es/stores/basic.d.ts +1 -1
  24. package/lib/assets/imgs/black-logo.png.js +1 -1
  25. package/lib/assets/imgs/white-logo.png.js +1 -1
  26. package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
  27. package/lib/components/RoomFooter/index/indexPC.vue2.js +8 -3
  28. package/lib/components/RoomFooter/voteControl.vue.d.ts +15 -0
  29. package/lib/components/RoomFooter/voteControl.vue.js +7 -0
  30. package/lib/components/RoomFooter/voteControl.vue2.js +60 -0
  31. package/lib/components/RoomInvite/useRoomInviteHooks.d.ts +1 -1
  32. package/lib/components/RoomSidebar/indexPC.vue.js +5 -3
  33. package/lib/components/RoomSidebar/useSideBarHooks.d.ts +1 -1
  34. package/lib/components/RoomSidebar/useSideBarHooks.js +3 -0
  35. package/lib/components/RoomVote/index.d.ts +6 -0
  36. package/lib/components/RoomVote/useRoomMoreHooks.d.ts +13 -0
  37. package/lib/conference.vue.d.ts +2 -0
  38. package/lib/conference.vue.js +1 -1
  39. package/lib/conference.vue2.js +7 -2
  40. package/lib/index.js +31 -13
  41. package/lib/locales/en-US.d.ts +1 -0
  42. package/lib/locales/en-US.js +1 -0
  43. package/lib/locales/zh-CN.d.ts +1 -0
  44. package/lib/locales/zh-CN.js +1 -0
  45. package/lib/stores/basic.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/src/TUIRoom/assets/imgs/black-logo.png +0 -0
  48. package/src/TUIRoom/assets/imgs/white-logo.png +0 -0
  49. package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +5 -1
  50. package/src/TUIRoom/components/RoomFooter/voteControl.vue +65 -0
  51. package/src/TUIRoom/components/RoomSidebar/indexPC.vue +1 -0
  52. package/src/TUIRoom/components/RoomSidebar/useSideBarHooks.ts +3 -0
  53. package/src/TUIRoom/components/RoomVote/index.ts +7 -0
  54. package/src/TUIRoom/components/RoomVote/indexH5.vue +141 -0
  55. package/src/TUIRoom/components/RoomVote/indexPC.vue +106 -0
  56. package/src/TUIRoom/components/RoomVote/useRoomMoreHooks.ts +47 -0
  57. package/src/TUIRoom/conference.vue +5 -0
  58. package/src/TUIRoom/locales/en-US.ts +1 -0
  59. package/src/TUIRoom/locales/zh-CN.ts +1 -0
  60. package/src/TUIRoom/stores/basic.ts +1 -0
@@ -0,0 +1,141 @@
1
+ <template>
2
+ <div class="contact-container-main">
3
+ <div class="contact-title-main">
4
+ <div>{{ t('Contact us') }}</div>
5
+ <span v-tap="handleCloseContact" class="cancel">{{ t('Cancel') }}</span>
6
+ </div>
7
+ <div
8
+ v-for="item in contactContentList"
9
+ :key="item.id"
10
+ class="contact-content-main"
11
+ >
12
+ <span class="contact-title">{{ t(item.title) }}</span>
13
+ <span class="contact-content">{{ item.content }}</span>
14
+ <IconCopy v-tap="() => onCopy(item.copyLink)" class="copy" />
15
+ </div>
16
+ <span class="contact-bottom">
17
+ {{
18
+ t(
19
+ 'If you have any questions, please feel free to join our QQ group or send an email'
20
+ )
21
+ }}
22
+ </span>
23
+ </div>
24
+ </template>
25
+
26
+ <script setup lang="ts">
27
+ import useRoomMoreControl from './useRoomMoreHooks';
28
+ import { IconCopy } from '@tencentcloud/uikit-base-component-vue3';
29
+ import vTap from '../../directives/vTap';
30
+
31
+ const { t, onCopy, contactContentList } = useRoomMoreControl();
32
+
33
+ const emit = defineEmits(['on-close-contact']);
34
+
35
+ function handleCloseContact() {
36
+ emit('on-close-contact');
37
+ }
38
+ </script>
39
+
40
+ <style lang="scss" scoped>
41
+ span {
42
+ padding-right: 5px;
43
+ font-size: 12px;
44
+ font-weight: 500;
45
+ line-height: 17px;
46
+ }
47
+
48
+ .contact-container-main {
49
+ position: fixed;
50
+ bottom: 0;
51
+ display: flex;
52
+ flex-direction: column;
53
+ width: 100%;
54
+ padding-bottom: 4vh;
55
+ border-radius: 15px 15px 0 0;
56
+ animation-name: popup;
57
+ animation-duration: 200ms;
58
+ background-color: var(--bg-color-operate);
59
+
60
+ @keyframes popup {
61
+ from {
62
+ transform: scaleY(0);
63
+ transform-origin: bottom;
64
+ }
65
+
66
+ to {
67
+ transform: scaleY(1);
68
+ transform-origin: bottom;
69
+ }
70
+ }
71
+
72
+ .contact-title-main {
73
+ display: flex;
74
+ flex-direction: row;
75
+ align-items: center;
76
+ padding: 30px 0 20px 25px;
77
+ font-family: 'PingFang SC';
78
+ font-size: 20px;
79
+ font-style: normal;
80
+ font-weight: 500;
81
+ line-height: 24px;
82
+ color: var(--text-color-primary);
83
+ }
84
+
85
+ .contact-content-main {
86
+ display: flex;
87
+ flex-direction: row;
88
+ align-items: center;
89
+ width: 90%;
90
+ height: 15%;
91
+ padding: 0 0 0 25px;
92
+ margin-bottom: 10px;
93
+ }
94
+
95
+ .contact-title,
96
+ .contact-content {
97
+ width: 28%;
98
+ font-family: 'PingFang SC';
99
+ font-size: 14px;
100
+ font-style: normal;
101
+ font-weight: 400;
102
+ line-height: 20px;
103
+ white-space: nowrap;
104
+ color: var(--text-color-primary);
105
+ }
106
+
107
+ .contact-content {
108
+ width: 62%;
109
+ overflow: hidden;
110
+ font-size: 14px;
111
+ text-overflow: ellipsis;
112
+ white-space: nowrap;
113
+ color: var(--text-color-secondary);
114
+ }
115
+
116
+ .contact-bottom {
117
+ width: 90%;
118
+ padding-left: 40px;
119
+ font-family: 'PingFang SC';
120
+ font-size: 12px;
121
+ font-style: normal;
122
+ font-weight: 400;
123
+ line-height: 17px;
124
+ text-align: center;
125
+ color: var(--text-color-secondary);
126
+ }
127
+
128
+ .copy {
129
+ margin-left: 30px;
130
+ color: var(--text-color-link);
131
+ }
132
+ }
133
+
134
+ .cancel {
135
+ flex: 1;
136
+ padding-right: 30px;
137
+ font-size: 16px;
138
+ font-weight: 400;
139
+ text-align: end;
140
+ }
141
+ </style>
@@ -0,0 +1,106 @@
1
+ <template>
2
+ <div class="more-container">
3
+ <div class="more-title">
4
+ <IconEmail class="email-icon" />
5
+ <div class="more-notice">
6
+ {{ t('If you have any questions, please email us.') }}
7
+ </div>
8
+ </div>
9
+ <div v-if="isZH" class="more-item">
10
+ <div class="item-title">{{ t('Join our product discussion group') }}</div>
11
+ <TUIButton @click="handleClick">{{ t('Join now') }}</TUIButton>
12
+ </div>
13
+ <div class="more-item">
14
+ <div class="item-title">{{ t('Our email address') }}</div>
15
+ <div class="more-content">{{ email }}</div>
16
+ <IconCopy class="copy-icon" @click="onCopy(email)" />
17
+ </div>
18
+ </div>
19
+ </template>
20
+
21
+ <script setup lang="ts">
22
+ import {
23
+ TUIButton,
24
+ IconCopy,
25
+ IconEmail,
26
+ } from '@tencentcloud/uikit-base-component-vue3';
27
+ import useRoomMoreControl from './useRoomMoreHooks';
28
+
29
+ const { t, onCopy, handleClick, email, isZH } = useRoomMoreControl();
30
+ </script>
31
+
32
+ <style lang="scss" scoped>
33
+ .more-container {
34
+ padding: 20px;
35
+
36
+ .more-title {
37
+ display: flex;
38
+ align-items: center;
39
+
40
+ .email-icon {
41
+ color: var(--uikit-color-gray-7);
42
+ }
43
+
44
+ .more-notice {
45
+ width: 100%;
46
+ height: 22px;
47
+ padding-left: 8px;
48
+ font-size: 14px;
49
+ font-weight: 400;
50
+ line-height: 22px;
51
+ color: var(--text-color-primary);
52
+ }
53
+ }
54
+
55
+ .more-item {
56
+ position: relative;
57
+ display: flex;
58
+ flex-direction: column;
59
+
60
+ &:not(:first-child) {
61
+ margin-top: 20px;
62
+
63
+ .item-title {
64
+ width: 100%;
65
+ padding-bottom: 8px;
66
+ font-size: 14px;
67
+ font-weight: 400;
68
+ line-height: 22px;
69
+ color: var(--text-color-primary);
70
+ }
71
+
72
+ .more-content {
73
+ position: relative;
74
+ box-sizing: border-box;
75
+ display: inline-block;
76
+ flex: 1;
77
+ height: 42px;
78
+ padding: 10px 30px 10px 16px;
79
+ overflow: hidden;
80
+ font-size: 14px;
81
+ font-weight: 500;
82
+ line-height: 22px;
83
+ text-overflow: ellipsis;
84
+ white-space: nowrap;
85
+ border-radius: 8px;
86
+ outline: none;
87
+ transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
88
+ color: var(--text-color-primary);
89
+ background-color: var(--bg-color-input);
90
+ border: 1px solid var(--stroke-color-module);
91
+ }
92
+
93
+ .copy-icon {
94
+ position: absolute;
95
+ top: 45px;
96
+ right: 10px;
97
+ display: flex;
98
+ align-items: center;
99
+ justify-content: center;
100
+ cursor: pointer;
101
+ color: var(--text-color-link);
102
+ }
103
+ }
104
+ }
105
+ }
106
+ </style>
@@ -0,0 +1,47 @@
1
+ import { computed } from 'vue';
2
+ import { TUIToast, TOAST_TYPE } from '@tencentcloud/uikit-base-component-vue3';
3
+ import { useI18n } from '../../locales';
4
+ import { clipBoard } from '../../utils/utils';
5
+ import i18n from '../../locales/index';
6
+
7
+ export default function useRoomMoreHooks() {
8
+ const { t } = useI18n();
9
+
10
+ const groupNumber = '770645461';
11
+ const email = 'chaooliang@tencent.com';
12
+
13
+ async function onCopy(value: string | number) {
14
+ try {
15
+ await clipBoard(value);
16
+ TUIToast({
17
+ message: t('Copied successfully'),
18
+ type: TOAST_TYPE.SUCCESS,
19
+ });
20
+ } catch (error) {
21
+ TUIToast({
22
+ message: t('Copied failure'),
23
+ type: TOAST_TYPE.ERROR,
24
+ });
25
+ }
26
+ }
27
+
28
+ const isZH = computed(() => i18n.global.locale.value === 'zh-CN');
29
+
30
+ const contactContentList = [
31
+ { id: 1, title: 'group chat', content: groupNumber, copyLink: groupNumber },
32
+ { id: 2, title: 'Email', content: email, copyLink: email },
33
+ ];
34
+
35
+ const handleClick = () => {
36
+ window.open('https://zhiliao.qq.com/s/c5GY7HIM62CK', '_blank');
37
+ };
38
+
39
+ return {
40
+ t,
41
+ onCopy,
42
+ contactContentList,
43
+ email,
44
+ handleClick,
45
+ isZH,
46
+ };
47
+ }
@@ -16,6 +16,7 @@
16
16
  v-show="showRoomTool"
17
17
  class="footer"
18
18
  @show-overlay="handleShowOverlay"
19
+ @on-vote="onVote"
19
20
  />
20
21
  <room-sidebar />
21
22
  <room-setting />
@@ -127,6 +128,7 @@ const emit = defineEmits([
127
128
  'on-kicked-out-of-room',
128
129
  'on-kicked-off-line',
129
130
  'on-userSig-expired',
131
+ 'on-vote',
130
132
  ]);
131
133
 
132
134
  const basicStore = useBasicStore();
@@ -315,6 +317,9 @@ function resetStore() {
315
317
  roomService.resetStore();
316
318
  }
317
319
 
320
+ const onVote = (data: { name: string; visible: boolean }) => {
321
+ emit('on-vote', { code: data.visible, message: 'vote' });
322
+ };
318
323
  const onStartRoom = () => {
319
324
  isShowLoading.value = false;
320
325
  emit('on-create-room', { code: 0, message: 'create room' });
@@ -72,6 +72,7 @@ export default {
72
72
  RoomOwner: 'RoomOwner',
73
73
  Me: 'Me',
74
74
  me: 'me',
75
+ 'Vote': 'Vote',
75
76
  More: 'More',
76
77
  'AI Assistant': 'AI Assistant',
77
78
  'AI real-time conference content': 'AI real-time conference content',
@@ -66,6 +66,7 @@ export default {
66
66
  me: '我',
67
67
  Admin: '管理员',
68
68
  RoomOwner: '主持人',
69
+ Vote: '表决',
69
70
  More: '更多',
70
71
  'AI Assistant': 'AI 助手',
71
72
  'AI real-time conference content': 'AI 实时会议内容',
@@ -13,6 +13,7 @@ type SideBarType =
13
13
  | 'transfer-leave'
14
14
  | 'apply'
15
15
  | 'aiTranscription'
16
+ | 'vote'
16
17
  | '';
17
18
  type SceneType = 'chat' | 'default';
18
19