tuikit-atomicx-vue3 3.4.1 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
- package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
- package/dist/components/CoHostPanel/BattlePanel.js +16 -16
- package/dist/components/CoHostPanel/CoHostPanel.js +60 -55
- package/dist/components/CoHostPanel/ConnectionPanel.js +42 -42
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.js +56 -49
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.js +1 -1
- package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.js +7 -7
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.js +16 -16
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.js +15 -15
- package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.js +1 -1
- package/dist/components/{LiveCoreView/i18n/zh-CN → LiveView/i18n/en-US}/index.d.ts +1 -0
- package/dist/components/{LiveCoreView → LiveView}/i18n/en-US/index.js +2 -1
- package/dist/components/{LiveCoreView/i18n/en-US → LiveView/i18n/zh-CN}/index.d.ts +1 -0
- package/dist/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.js +2 -1
- package/dist/components/LiveView/index.d.ts +79 -0
- package/dist/components/{LiveCoreView → LiveView}/index.js +44 -42
- package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
- package/dist/components/StreamMixer/index.js +6 -6
- package/dist/{index-D-KJvDvy.js → index-Bm-QfV5o.js} +1 -1
- package/dist/{index-D88ja_7_.js → index-D2OVtqc8.js} +1705 -1705
- package/dist/index.js +140 -138
- package/dist/rtc/index.d.ts +2 -39
- package/dist/rtc/index.js +49 -48
- package/dist/states/BattleState.js +48 -48
- package/dist/styles/index.css +1 -1
- package/package.json +2 -2
- package/src/components/CoHostPanel/BattlePanel.vue +3 -3
- package/src/components/CoHostPanel/CoHostPanel.vue +11 -3
- package/src/components/CoHostPanel/ConnectionPanel.vue +4 -4
- package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue +28 -29
- package/src/components/{LiveCoreView → LiveView}/i18n/en-US/index.ts +1 -0
- package/src/components/{LiveCoreView → LiveView}/i18n/zh-CN/index.ts +1 -0
- package/src/components/{LiveCoreView → LiveView}/index.ts +5 -2
- package/src/components/{LiveCoreView → LiveView}/index.vue +1 -1
- package/src/components/StreamMixer/index.vue +1 -1
- package/src/rtc/index.ts +2 -2
- package/dist/components/LiveCoreView/index.d.ts +0 -4
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleUserDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.d.ts +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/i18n/index.js +0 -0
- /package/dist/components/{LiveCoreView → LiveView}/index.vue.d.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/BattleDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/CoHostDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/CoreViewDecorate/LiveCoreDecorate.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/DefaultStreamViewUI.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/AudioControl.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/MultiResolution.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.module.scss +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControl.vue +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/PlayerControlState.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/index.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/deviceDetection.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/domHelpers.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/PlayerControl/utils/fullscreenManager.ts +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/defeat.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/draw.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/img/victory.png +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleOrdinaryBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/BattleTopBadge.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/blueBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/redBkg.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/s.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/assets/svg/v.svg +0 -0
- /package/src/components/{LiveCoreView → LiveView}/i18n/index.ts +0 -0
|
@@ -1,66 +1,73 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useBattleState as
|
|
3
|
-
import { useLiveState as
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as S, ref as U, computed as g, watch as V, createElementBlock as l, createCommentVNode as m, openBlock as a, Fragment as L, renderList as D, normalizeStyle as C, unref as o, toDisplayString as p, createElementVNode as d, normalizeClass as E } from "vue";
|
|
2
|
+
import { useBattleState as G } from "../../../states/BattleState.js";
|
|
3
|
+
import { useLiveState as k } from "../../../states/LiveState/index.js";
|
|
4
|
+
import { useUIKit as M } from "@tencentcloud/uikit-base-component-vue3";
|
|
5
|
+
import { useCoHostState as T } from "../../../states/CoHostState/CoHostState.js";
|
|
5
6
|
import { CoHostLayoutTemplate as y } from "../../../types/coHost.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
const z = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20177)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.70166L14.9282%204.52622V12.1753L8%2015.9999L1.0718%2012.1753V4.52622L8%200.70166Z'%20fill='%23EF6428'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.82456V11.4737L8%2015.2982L1.0718%2011.4737V3.82456L8%200Z'%20fill='url(%23paint0_linear_18421_20177)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.69971L13.3882%204.67437V10.6237L7.99957%2013.5983L2.61096%2010.6237V4.67437L7.99957%201.69971Z'%20fill='%23FFD37A'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20177'%20x1='0'%20y1='0'%20x2='0'%20y2='15.2982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFAE5F'/%3e%3cstop%20offset='1'%20stop-color='%23FF8C3C'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20177'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20178)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.69458L14.9282%204.48401V12.0629L8%2015.8523L1.0718%2012.0629V4.48401L8%200.69458Z'%20fill='%237D9AC6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.78943V11.3683L8%2015.1577L1.0718%2011.3683V3.78943L8%200Z'%20fill='url(%23paint0_linear_18421_20178)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.68311L13.3882%204.63044V10.5251L7.99957%2013.4724L2.61096%2010.5251V4.63044L7.99957%201.68311Z'%20fill='url(%23paint1_linear_18421_20178)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20178'%20x1='0'%20y1='0'%20x2='0'%20y2='15.1577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E6F1FE'/%3e%3cstop%20offset='1'%20stop-color='%23B7C6E2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_18421_20178'%20x1='1.77734'%20y1='1.68311'%20x2='1.77734'%20y2='13.4724'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EDF6FF'/%3e%3cstop%20offset='1'%20stop-color='%23E1F0FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20178'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",
|
|
7
|
+
import { _ as Z } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const z = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20177)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.70166L14.9282%204.52622V12.1753L8%2015.9999L1.0718%2012.1753V4.52622L8%200.70166Z'%20fill='%23EF6428'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.82456V11.4737L8%2015.2982L1.0718%2011.4737V3.82456L8%200Z'%20fill='url(%23paint0_linear_18421_20177)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.69971L13.3882%204.67437V10.6237L7.99957%2013.5983L2.61096%2010.6237V4.67437L7.99957%201.69971Z'%20fill='%23FFD37A'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20177'%20x1='0'%20y1='0'%20x2='0'%20y2='15.2982'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FFAE5F'/%3e%3cstop%20offset='1'%20stop-color='%23FF8C3C'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20177'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", O = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_18421_20178)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200.69458L14.9282%204.48401V12.0629L8%2015.8523L1.0718%2012.0629V4.48401L8%200.69458Z'%20fill='%237D9AC6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8%200L14.9282%203.78943V11.3683L8%2015.1577L1.0718%2011.3683V3.78943L8%200Z'%20fill='url(%23paint0_linear_18421_20178)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.99957%201.68311L13.3882%204.63044V10.5251L7.99957%2013.4724L2.61096%2010.5251V4.63044L7.99957%201.68311Z'%20fill='url(%23paint1_linear_18421_20178)'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_18421_20178'%20x1='0'%20y1='0'%20x2='0'%20y2='15.1577'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23E6F1FE'/%3e%3cstop%20offset='1'%20stop-color='%23B7C6E2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_18421_20178'%20x1='1.77734'%20y1='1.68311'%20x2='1.77734'%20y2='13.4724'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23EDF6FF'/%3e%3cstop%20offset='1'%20stop-color='%23E1F0FF'/%3e%3c/linearGradient%3e%3cclipPath%20id='clip0_18421_20178'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", H = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "battle-user-decorate-container"
|
|
10
|
-
},
|
|
11
|
+
}, P = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "battle-decorate"
|
|
13
|
-
},
|
|
14
|
+
}, A = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "battle-score-value"
|
|
17
|
+
}, R = ["src"], W = { class: "battle-level" }, N = { class: "battle-score-value" }, K = /* @__PURE__ */ S({
|
|
14
18
|
__name: "BattleUserDecorate",
|
|
15
19
|
props: {
|
|
16
20
|
seatListWithRealSize: {}
|
|
17
21
|
},
|
|
18
22
|
setup(f) {
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
}),
|
|
24
|
-
function
|
|
25
|
-
return
|
|
26
|
-
}
|
|
27
|
-
function g() {
|
|
28
|
-
u.value = !0;
|
|
29
|
-
}
|
|
30
|
-
function L() {
|
|
31
|
-
setTimeout(() => {
|
|
32
|
-
u.value = !1;
|
|
33
|
-
}, 5e3);
|
|
23
|
+
const { t: w } = M(), I = f, { currentLive: v } = k(), { connected: b } = T(), { currentBattleInfo: B, battleScore: s } = G(), u = U(!1), F = g(() => {
|
|
24
|
+
var c, r;
|
|
25
|
+
const e = ((c = v.value) == null ? void 0 : c.layoutTemplate) === y.HostDynamicGrid, n = ((r = v.value) == null ? void 0 : r.layoutTemplate) === y.HostDynamic1v6, t = e || n;
|
|
26
|
+
return I.seatListWithRealSize.length > 0 && u.value && t && b.value.length > 2;
|
|
27
|
+
}), x = g(() => [...s.value.values()].sort((e, n) => n - e));
|
|
28
|
+
function i(e) {
|
|
29
|
+
return x.value.indexOf(s.value.get(e) || 0) + 1;
|
|
34
30
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
let _ = null;
|
|
32
|
+
return V(() => {
|
|
33
|
+
var e;
|
|
34
|
+
return (e = B.value) == null ? void 0 : e.battleId;
|
|
35
|
+
}, (e) => {
|
|
36
|
+
if (e != null)
|
|
37
|
+
u.value = !0;
|
|
38
|
+
else {
|
|
39
|
+
if (_) return;
|
|
40
|
+
_ = setTimeout(() => {
|
|
41
|
+
u.value = !1;
|
|
42
|
+
}, 5e3);
|
|
43
|
+
}
|
|
44
|
+
}, { immediate: !0 }), (e, n) => F.value ? (a(), l("div", H, [
|
|
45
|
+
(a(!0), l(L, null, D(f.seatListWithRealSize, (t, c) => {
|
|
46
|
+
var r, h;
|
|
47
|
+
return a(), l("div", {
|
|
48
|
+
key: `seat-${c}`,
|
|
49
|
+
style: C(t.region)
|
|
45
50
|
}, [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
i(t.userInfo.userId) > 0 ? (a(), l("div", P, [
|
|
52
|
+
(r = o(s)) != null && r.has(t.userInfo.userId) ? (a(), l(L, { key: 1 }, [
|
|
53
|
+
d("div", {
|
|
54
|
+
class: E(["battle-badge-container", i(t.userInfo.userId) === 1 ? "top-badge" : "ordinary-badge"])
|
|
55
|
+
}, [
|
|
56
|
+
d("img", {
|
|
57
|
+
src: i(t.userInfo.userId) === 1 ? o(z) : o(O),
|
|
58
|
+
alt: "battle-badge",
|
|
59
|
+
class: "battle-badge"
|
|
60
|
+
}, null, 8, R),
|
|
61
|
+
d("span", W, p(i(t.userInfo.userId)), 1)
|
|
62
|
+
], 2),
|
|
63
|
+
d("span", N, p(((h = o(s)) == null ? void 0 : h.get(t.userInfo.userId)) || 0), 1)
|
|
64
|
+
], 64)) : (a(), l("span", A, p(o(w)("Connecting")), 1))
|
|
65
|
+
])) : m("", !0)
|
|
59
66
|
], 4);
|
|
60
67
|
}), 128))
|
|
61
|
-
])) :
|
|
68
|
+
])) : m("", !0);
|
|
62
69
|
}
|
|
63
|
-
}),
|
|
70
|
+
}), ee = /* @__PURE__ */ Z(K, [["__scopeId", "data-v-0a9bc14e"]]);
|
|
64
71
|
export {
|
|
65
|
-
|
|
72
|
+
ee as default
|
|
66
73
|
};
|
|
@@ -35,7 +35,7 @@ const q = { class: "stream-cover" }, J = {
|
|
|
35
35
|
width: parseInt(e == null ? void 0 : e.region.width),
|
|
36
36
|
height: parseInt(e == null ? void 0 : e.region.height)
|
|
37
37
|
} : { width: 0, height: 0 };
|
|
38
|
-
}),
|
|
38
|
+
}), A = u(() => {
|
|
39
39
|
const t = Math.min(g.value.width, g.value.height);
|
|
40
40
|
return t < 64 ? t - 10 : 54;
|
|
41
41
|
}), f = u(() => {
|
|
@@ -44,8 +44,8 @@ const q = { class: "stream-cover" }, J = {
|
|
|
44
44
|
return ((n = t.userInfo) == null ? void 0 : n.userId) === ((s = a.userInfo) == null ? void 0 : s.userId);
|
|
45
45
|
});
|
|
46
46
|
return e ? a.streamViewInfoList.filter((t) => {
|
|
47
|
-
const n = t.region.zIndex > (e == null ? void 0 : e.region.zIndex), s = parseInt(t.region.left) > parseInt(e == null ? void 0 : e.region.left) && parseInt(t.region.left) < parseInt(e == null ? void 0 : e.region.left) + parseInt(e == null ? void 0 : e.region.width),
|
|
48
|
-
return n && s &&
|
|
47
|
+
const n = t.region.zIndex > (e == null ? void 0 : e.region.zIndex), s = parseInt(t.region.left) > parseInt(e == null ? void 0 : e.region.left) && parseInt(t.region.left) < parseInt(e == null ? void 0 : e.region.left) + parseInt(e == null ? void 0 : e.region.width), b = parseInt(t.region.top) > parseInt(e == null ? void 0 : e.region.top) && parseInt(t.region.top) < parseInt(e == null ? void 0 : e.region.top) + parseInt(e == null ? void 0 : e.region.height);
|
|
48
|
+
return n && s && b;
|
|
49
49
|
}).map((t) => ({
|
|
50
50
|
left: parseInt(t.region.left) - parseInt(e == null ? void 0 : e.region.left),
|
|
51
51
|
top: parseInt(t.region.top) - parseInt(e == null ? void 0 : e.region.top),
|
|
@@ -75,13 +75,13 @@ const q = { class: "stream-cover" }, J = {
|
|
|
75
75
|
}), _ = u(() => {
|
|
76
76
|
var e;
|
|
77
77
|
return ((e = a.userInfo) == null ? void 0 : e.microphoneStatus) === k.On;
|
|
78
|
-
}),
|
|
78
|
+
}), L = u(() => {
|
|
79
79
|
var e;
|
|
80
80
|
return ((e = a.userInfo) == null ? void 0 : e.cameraStatus) === k.On;
|
|
81
81
|
});
|
|
82
82
|
return (e, t) => (o(), r("div", q, [
|
|
83
83
|
d.userInfo.userId ? (o(), r(B, { key: 0 }, [
|
|
84
|
-
|
|
84
|
+
L.value ? v("", !0) : (o(), r("div", J, [
|
|
85
85
|
f.value.length > 0 ? (o(), r("canvas", {
|
|
86
86
|
key: 0,
|
|
87
87
|
ref_key: "canvasRef",
|
|
@@ -90,7 +90,7 @@ const q = { class: "stream-cover" }, J = {
|
|
|
90
90
|
}, null, 512)) : (o(), r("div", P)),
|
|
91
91
|
D(l(w), {
|
|
92
92
|
class: "avatar",
|
|
93
|
-
size:
|
|
93
|
+
size: A.value,
|
|
94
94
|
src: d.userInfo.avatarUrl,
|
|
95
95
|
alt: m.value
|
|
96
96
|
}, null, 8, ["size", "src", "alt"])
|
|
@@ -118,7 +118,7 @@ const q = { class: "stream-cover" }, J = {
|
|
|
118
118
|
]))
|
|
119
119
|
]));
|
|
120
120
|
}
|
|
121
|
-
}), le = /* @__PURE__ */ j(S, [["__scopeId", "data-v-
|
|
121
|
+
}), le = /* @__PURE__ */ j(S, [["__scopeId", "data-v-0e1033e9"]]);
|
|
122
122
|
export {
|
|
123
123
|
le as default
|
|
124
124
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, ref as v, computed as y, onUnmounted as N, createElementBlock as j, openBlock as
|
|
1
|
+
import { defineComponent as K, ref as v, computed as y, onUnmounted as N, createElementBlock as j, openBlock as C, normalizeStyle as _, createElementVNode as n, withDirectives as q, unref as S, createBlock as D, normalizeClass as J, toDisplayString as Q, vShow as W, toRaw as X } from "vue";
|
|
2
2
|
import { useUIKit as Z, IconSpeakerOff as ee, IconSpeakerOn as oe } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
3
|
import { isMobile as r } from "../../../utils/env.js";
|
|
4
4
|
import { _ as te } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -10,15 +10,15 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["volume-change", "muted-change"],
|
|
12
12
|
setup(T, { emit: w }) {
|
|
13
|
-
const o = T, m = w, { t:
|
|
13
|
+
const o = T, m = w, { t: V } = Z(), t = v({
|
|
14
14
|
current: 1,
|
|
15
15
|
previous: 1
|
|
16
|
-
}), u = v(!1), l = v(!1), a = v(!1),
|
|
16
|
+
}), u = v(!1), l = v(!1), a = v(!1), E = v(), s = v(null), b = {
|
|
17
17
|
PC: 500,
|
|
18
18
|
// 0.5 seconds for PC
|
|
19
19
|
MOBILE: 3e3
|
|
20
20
|
// 3 seconds for mobile
|
|
21
|
-
},
|
|
21
|
+
}, g = y(() => o.enableVolumeControl === !1 ? u.value ? 0 : 100 : Math.round(t.value.current * 100)), z = y(() => ({
|
|
22
22
|
width: `${o.iconSize || 20}px`,
|
|
23
23
|
height: `${o.iconSize || 20}px`
|
|
24
24
|
})), A = (e) => {
|
|
@@ -29,7 +29,7 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
|
|
|
29
29
|
o.enableVolumeControl === !1 ? M() : r ? (l.value = !l.value, l.value ? i() : d()) : M();
|
|
30
30
|
}, i = () => {
|
|
31
31
|
d();
|
|
32
|
-
const e = r ?
|
|
32
|
+
const e = r ? b.MOBILE : b.PC;
|
|
33
33
|
s.value = window.setTimeout(() => {
|
|
34
34
|
o.enableVolumeControl && (l.value = !1);
|
|
35
35
|
}, e);
|
|
@@ -53,7 +53,7 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
|
|
|
53
53
|
e.preventDefault();
|
|
54
54
|
let c;
|
|
55
55
|
e instanceof MouseEvent ? c = e.clientY : c = e.touches[0].clientY;
|
|
56
|
-
const p = O(c,
|
|
56
|
+
const p = O(c, E.value);
|
|
57
57
|
A(p);
|
|
58
58
|
}, h = () => {
|
|
59
59
|
a.value = !1, o.enableVolumeControl && l.value && i(), L();
|
|
@@ -70,21 +70,21 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
|
|
|
70
70
|
};
|
|
71
71
|
return N(() => {
|
|
72
72
|
L(), s.value && clearTimeout(s.value);
|
|
73
|
-
}), (e, c) => (
|
|
73
|
+
}), (e, c) => (C(), j("div", {
|
|
74
74
|
class: "audio-control",
|
|
75
|
-
style:
|
|
75
|
+
style: _(z.value),
|
|
76
76
|
onMouseenter: B,
|
|
77
77
|
onMouseleave: x
|
|
78
78
|
}, [
|
|
79
79
|
n("span", {
|
|
80
80
|
class: "control-btn volume-btn",
|
|
81
|
-
title: u.value ? S(
|
|
81
|
+
title: u.value ? S(V)("Unmute") : S(V)("Mute"),
|
|
82
82
|
onClick: I
|
|
83
83
|
}, [
|
|
84
|
-
u.value ? (
|
|
84
|
+
u.value ? (C(), D(S(ee), {
|
|
85
85
|
key: 0,
|
|
86
86
|
size: "20"
|
|
87
|
-
})) : (
|
|
87
|
+
})) : (C(), D(S(oe), {
|
|
88
88
|
key: 1,
|
|
89
89
|
size: "20"
|
|
90
90
|
}))
|
|
@@ -98,7 +98,7 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
|
|
|
98
98
|
n("div", ue, [
|
|
99
99
|
n("div", {
|
|
100
100
|
ref_key: "volumeSliderElement",
|
|
101
|
-
ref:
|
|
101
|
+
ref: E,
|
|
102
102
|
class: "custom-volume-slider",
|
|
103
103
|
onMousedown: H,
|
|
104
104
|
onTouchstart: P,
|
|
@@ -107,23 +107,23 @@ const le = ["title"], ne = { class: "volume-slider-container" }, ue = { class: "
|
|
|
107
107
|
n("div", re, [
|
|
108
108
|
n("div", {
|
|
109
109
|
class: "slider-progress",
|
|
110
|
-
style:
|
|
110
|
+
style: _({ height: `${g.value}%` })
|
|
111
111
|
}, null, 4),
|
|
112
112
|
n("div", {
|
|
113
113
|
class: J(["slider-thumb", { "no-transition": a.value }]),
|
|
114
|
-
style:
|
|
114
|
+
style: _({ bottom: `${g.value}%` })
|
|
115
115
|
}, null, 6)
|
|
116
116
|
])
|
|
117
117
|
], 544)
|
|
118
118
|
]),
|
|
119
|
-
n("div", ae, Q(
|
|
119
|
+
n("div", ae, Q(g.value), 1)
|
|
120
120
|
], 32)
|
|
121
121
|
], 512), [
|
|
122
122
|
[W, l.value]
|
|
123
123
|
])
|
|
124
124
|
], 36));
|
|
125
125
|
}
|
|
126
|
-
}), de = /* @__PURE__ */ te(se, [["__scopeId", "data-v-
|
|
126
|
+
}), de = /* @__PURE__ */ te(se, [["__scopeId", "data-v-4dd002d9"]]);
|
|
127
127
|
export {
|
|
128
128
|
de as default
|
|
129
129
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as w, ref as g, onMounted as y, watch as I, withDirectives as f, createCommentVNode as L, unref as t, createElementBlock as d, openBlock as p, createElementVNode as v, Fragment as S, renderList as M, toDisplayString as _, vShow as
|
|
2
|
-
import { useUIKit as
|
|
3
|
-
import
|
|
4
|
-
import { useLiveState as
|
|
5
|
-
import { usePlayerControlState as
|
|
6
|
-
import { _ as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as w, ref as g, onMounted as y, watch as I, withDirectives as f, createCommentVNode as L, unref as t, createElementBlock as d, openBlock as p, createElementVNode as v, Fragment as S, renderList as M, toDisplayString as _, vShow as x } from "vue";
|
|
2
|
+
import { useUIKit as N } from "@tencentcloud/uikit-base-component-vue3";
|
|
3
|
+
import V from "../../../directives/vClickOutside.js";
|
|
4
|
+
import { useLiveState as B } from "../../../states/LiveState/index.js";
|
|
5
|
+
import { usePlayerControlState as D, Resolution as n } from "./PlayerControlState.js";
|
|
6
|
+
import { _ as E } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
+
const O = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "multi-resolution"
|
|
10
|
-
},
|
|
10
|
+
}, b = ["data-resolution"], z = /* @__PURE__ */ w({
|
|
11
11
|
__name: "MultiResolution",
|
|
12
12
|
setup(F) {
|
|
13
|
-
const { t: l } =
|
|
13
|
+
const { t: l } = N(), { currentLive: a } = B(), {
|
|
14
14
|
resolutionList: s,
|
|
15
15
|
currentResolution: r,
|
|
16
16
|
switchResolution: h,
|
|
17
17
|
initializeResolution: R
|
|
18
|
-
} =
|
|
18
|
+
} = D(), u = {
|
|
19
19
|
[n.R360P]: "360P",
|
|
20
20
|
[n.R540P]: "540P",
|
|
21
21
|
[n.R720P]: "720P",
|
|
@@ -51,7 +51,7 @@ const E = {
|
|
|
51
51
|
immediate: !0
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
|
-
}), (e, c) => t(s).length > 0 ? f((p(), d("span",
|
|
54
|
+
}), (e, c) => t(s).length > 0 ? f((p(), d("span", O, [
|
|
55
55
|
f(v("span", {
|
|
56
56
|
class: "multi-resolution-list",
|
|
57
57
|
onClick: P
|
|
@@ -60,19 +60,19 @@ const E = {
|
|
|
60
60
|
key: o,
|
|
61
61
|
class: "multi-resolution-item",
|
|
62
62
|
"data-resolution": o
|
|
63
|
-
}, _(t(l)(u[o])), 9,
|
|
63
|
+
}, _(t(l)(u[o])), 9, b))), 128))
|
|
64
64
|
], 512), [
|
|
65
|
-
[
|
|
65
|
+
[x, i.value]
|
|
66
66
|
]),
|
|
67
67
|
v("span", {
|
|
68
68
|
class: "current-resolution",
|
|
69
69
|
onClick: C
|
|
70
70
|
}, _(t(r) ? t(l)(u[t(r)]) : t(s).length > 0 ? t(l)(u[t(s)[0]]) : ""), 1)
|
|
71
71
|
])), [
|
|
72
|
-
[t(
|
|
72
|
+
[t(V), k]
|
|
73
73
|
]) : L("", !0);
|
|
74
74
|
}
|
|
75
|
-
}), H = /* @__PURE__ */
|
|
75
|
+
}), H = /* @__PURE__ */ E(z, [["__scopeId", "data-v-013ca8f7"]]);
|
|
76
76
|
export {
|
|
77
77
|
H as default
|
|
78
78
|
};
|
|
@@ -162,7 +162,7 @@ const ye = { class: "control-buttons" }, Ee = ["title"], Te = { class: "right-co
|
|
|
162
162
|
_: 1
|
|
163
163
|
}));
|
|
164
164
|
}
|
|
165
|
-
}), Re = /* @__PURE__ */ Pe(ge, [["__scopeId", "data-v-
|
|
165
|
+
}), Re = /* @__PURE__ */ Pe(ge, [["__scopeId", "data-v-a2e1bd41"]]);
|
|
166
166
|
export {
|
|
167
167
|
Re as default
|
|
168
168
|
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { default as DefaultStreamViewUI } from './DefaultStreamViewUI.vue';
|
|
2
|
+
|
|
3
|
+
declare const LiveCoreView: {
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
5
|
+
P: {};
|
|
6
|
+
B: {};
|
|
7
|
+
D: {};
|
|
8
|
+
C: {};
|
|
9
|
+
M: {};
|
|
10
|
+
Defaults: {};
|
|
11
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
12
|
+
__isFragment?: never;
|
|
13
|
+
__isTeleport?: never;
|
|
14
|
+
__isSuspense?: never;
|
|
15
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
16
|
+
$slots: {
|
|
17
|
+
streamViewUI?(_: {
|
|
18
|
+
userInfo: import('../..').SeatUserInfo;
|
|
19
|
+
}): any;
|
|
20
|
+
localVideo?(_: {
|
|
21
|
+
style: {
|
|
22
|
+
position: "absolute";
|
|
23
|
+
left: string;
|
|
24
|
+
top: string;
|
|
25
|
+
width: string;
|
|
26
|
+
height: string;
|
|
27
|
+
transform: string;
|
|
28
|
+
zIndex: number;
|
|
29
|
+
} | {
|
|
30
|
+
position: "absolute";
|
|
31
|
+
left: string;
|
|
32
|
+
top: string;
|
|
33
|
+
width: string;
|
|
34
|
+
height: string;
|
|
35
|
+
zIndex: number;
|
|
36
|
+
transform?: undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
}): any;
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
declare const LiveView: {
|
|
42
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
43
|
+
P: {};
|
|
44
|
+
B: {};
|
|
45
|
+
D: {};
|
|
46
|
+
C: {};
|
|
47
|
+
M: {};
|
|
48
|
+
Defaults: {};
|
|
49
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
50
|
+
__isFragment?: never;
|
|
51
|
+
__isTeleport?: never;
|
|
52
|
+
__isSuspense?: never;
|
|
53
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
54
|
+
$slots: {
|
|
55
|
+
streamViewUI?(_: {
|
|
56
|
+
userInfo: import('../..').SeatUserInfo;
|
|
57
|
+
}): any;
|
|
58
|
+
localVideo?(_: {
|
|
59
|
+
style: {
|
|
60
|
+
position: "absolute";
|
|
61
|
+
left: string;
|
|
62
|
+
top: string;
|
|
63
|
+
width: string;
|
|
64
|
+
height: string;
|
|
65
|
+
transform: string;
|
|
66
|
+
zIndex: number;
|
|
67
|
+
} | {
|
|
68
|
+
position: "absolute";
|
|
69
|
+
left: string;
|
|
70
|
+
top: string;
|
|
71
|
+
width: string;
|
|
72
|
+
height: string;
|
|
73
|
+
zIndex: number;
|
|
74
|
+
transform?: undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
}): any;
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
export { LiveCoreView, LiveView, DefaultStreamViewUI };
|