@ndscnj/roomkit-web-vue3 25.12.24161 → 25.12.24162
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/assets/imgs/vote-icon.png.mjs +4 -0
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +1 -7
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue.mjs +1 -1
- package/es/components/RoomFooter/VoteControl/MoreControlH5.vue2.mjs +53 -44
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue.mjs +5 -53
- package/es/components/RoomFooter/VoteControl/MoreControlPC.vue2.mjs +59 -1
- package/es/components/RoomFooter/VoteControl/index.d.ts +1 -7
- package/es/components/RoomFooter/VoteControl/index.mjs +2 -2
- package/es/components/RoomFooter/index/index.d.ts +1 -6
- package/es/components/RoomFooter/index/indexH5.vue.d.ts +1 -3
- package/es/components/RoomFooter/index/indexH5.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexH5.vue2.mjs +5 -19
- package/es/components/RoomFooter/index/indexPC.vue.mjs +1 -1
- package/es/components/RoomFooter/index/indexPC.vue2.mjs +1 -2
- package/es/index.mjs +13 -45
- package/lib/assets/imgs/vote-icon.png.js +4 -0
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.d.ts +1 -7
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue.js +1 -1
- package/lib/components/RoomFooter/VoteControl/MoreControlH5.vue2.js +52 -43
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue.js +5 -53
- package/lib/components/RoomFooter/VoteControl/MoreControlPC.vue2.js +60 -2
- package/lib/components/RoomFooter/VoteControl/index.d.ts +1 -7
- package/lib/components/RoomFooter/VoteControl/index.js +2 -2
- package/lib/components/RoomFooter/index/index.d.ts +1 -6
- package/lib/components/RoomFooter/index/indexH5.vue.d.ts +1 -3
- package/lib/components/RoomFooter/index/indexH5.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexH5.vue2.js +4 -18
- package/lib/components/RoomFooter/index/indexPC.vue.js +1 -1
- package/lib/components/RoomFooter/index/indexPC.vue2.js +0 -1
- package/lib/index.js +13 -45
- package/package.json +1 -1
- package/src/TUIRoom/assets/imgs/vote-icon.png +0 -0
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlH5.vue +38 -75
- package/src/TUIRoom/components/RoomFooter/VoteControl/MoreControlPC.vue +7 -1
- package/src/TUIRoom/components/RoomFooter/index/indexH5.vue +2 -13
- package/src/TUIRoom/components/RoomFooter/index/indexPC.vue +0 -1
|
@@ -1,65 +1,74 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const Vue = require("vue");
|
|
4
|
-
const
|
|
4
|
+
const voteIcon = require("../../../assets/imgs/vote-icon.png.js");
|
|
5
5
|
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
6
|
-
const
|
|
6
|
+
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
7
|
+
const basic = require("../../../stores/basic.js");
|
|
8
|
+
const chat = require("../../../stores/chat.js");
|
|
9
|
+
const pinia = require("pinia");
|
|
10
|
+
const index = require("../../../locales/index.js");
|
|
11
|
+
const Badge = require("../../common/base/Badge.vue.js");
|
|
7
12
|
require("../../../services/main.js");
|
|
8
13
|
const roomService = require("../../../services/roomService.js");
|
|
9
|
-
require("../../../locales/index.js");
|
|
10
14
|
require("@tencentcloud/tuiroom-engine-js");
|
|
11
15
|
require("../../../utils/environment.js");
|
|
12
16
|
require("mitt");
|
|
13
17
|
require("../../../services/manager/roomActionManager.js");
|
|
14
18
|
require("@tencentcloud/tui-core");
|
|
19
|
+
const dataReportManager = require("../../../services/manager/dataReportManager.js");
|
|
15
20
|
const _hoisted_1 = {
|
|
16
21
|
key: 0,
|
|
17
|
-
class: "
|
|
22
|
+
class: "vote-control-container"
|
|
18
23
|
};
|
|
19
24
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
20
25
|
__name: "MoreControlH5",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
visible: basicStore.isSidebarOpen
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function handleDocumentClick(event) {
|
|
36
|
-
if (showMoreContent.value && !moreContentRef.value.contains(event.target)) {
|
|
37
|
-
showMoreContent.value = false;
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const { t } = index.useI18n();
|
|
28
|
+
const chatControlConfig = roomService.roomService.getComponentConfig("MoreControl");
|
|
29
|
+
const basicStore = basic.useBasicStore();
|
|
30
|
+
const chatStore = chat.useChatStore();
|
|
31
|
+
const { sidebarName } = pinia.storeToRefs(basicStore);
|
|
32
|
+
async function toggleChatSidebar() {
|
|
33
|
+
if (basicStore.isSidebarOpen && basicStore.sidebarName === "vote") {
|
|
34
|
+
basicStore.setSidebarOpenStatus(false);
|
|
35
|
+
basicStore.setSidebarName("");
|
|
36
|
+
return;
|
|
38
37
|
}
|
|
38
|
+
basicStore.setSidebarOpenStatus(true);
|
|
39
|
+
basicStore.setSidebarName("vote");
|
|
40
|
+
chatStore.updateUnReadCount(0);
|
|
41
|
+
roomService.roomService.dataReportManager.reportCount(dataReportManager.MetricsKey.openChat);
|
|
42
|
+
roomService.roomService.trackingManager.sendMessage("experience-vote");
|
|
39
43
|
}
|
|
40
|
-
Vue.onMounted(() => {
|
|
41
|
-
document == null ? void 0 : document.addEventListener("click", handleDocumentClick, true);
|
|
42
|
-
});
|
|
43
|
-
Vue.onUnmounted(() => {
|
|
44
|
-
document == null ? void 0 : document.removeEventListener("click", handleDocumentClick, true);
|
|
45
|
-
});
|
|
46
44
|
return (_ctx, _cache) => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Vue.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
Vue.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
return Vue.unref(chatControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
46
|
+
Vue.createVNode(Badge.default, {
|
|
47
|
+
hidden: Vue.unref(chatStore).unReadCount === 0,
|
|
48
|
+
value: Vue.unref(chatStore).unReadCount,
|
|
49
|
+
max: 10
|
|
50
|
+
}, {
|
|
51
|
+
default: Vue.withCtx(() => [
|
|
52
|
+
Vue.createVNode(IconButton.default, {
|
|
53
|
+
title: Vue.unref(t)("Vote"),
|
|
54
|
+
"is-active": Vue.unref(sidebarName) === "vote",
|
|
55
|
+
onClickIcon: toggleChatSidebar
|
|
56
|
+
}, {
|
|
57
|
+
default: Vue.withCtx(() => [
|
|
58
|
+
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconChat), { size: "24" })
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
}, 8, ["title", "is-active"])
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
}, 8, ["hidden", "value"]),
|
|
65
|
+
_cache[0] || (_cache[0] = Vue.createElementVNode("img", {
|
|
66
|
+
class: "ndsc-img-box",
|
|
67
|
+
src: voteIcon.default,
|
|
68
|
+
alt: "",
|
|
69
|
+
click: "toggleChatSidebar"
|
|
70
|
+
}, null, -1))
|
|
71
|
+
])) : Vue.createCommentVNode("", true);
|
|
63
72
|
};
|
|
64
73
|
}
|
|
65
74
|
});
|
|
@@ -1,55 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const roomService = require("../../../services/roomService.js");
|
|
9
|
-
require("../../../locales/index.js");
|
|
10
|
-
require("@tencentcloud/tuiroom-engine-js");
|
|
11
|
-
require("../../../utils/environment.js");
|
|
12
|
-
require("mitt");
|
|
13
|
-
require("../../../services/manager/roomActionManager.js");
|
|
14
|
-
require("@tencentcloud/tui-core");
|
|
15
|
-
const _hoisted_1 = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "more-control-container"
|
|
18
|
-
};
|
|
19
|
-
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
20
|
-
__name: "MoreControlPC",
|
|
21
|
-
emits: ["on-vote"],
|
|
22
|
-
setup(__props, { emit: __emit }) {
|
|
23
|
-
const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
|
|
24
|
-
const { t, basicStore, sidebarName } = useMoreControlHooks.default();
|
|
25
|
-
const emit = __emit;
|
|
26
|
-
function toggleMoreSidebar() {
|
|
27
|
-
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
28
|
-
basicStore.setSidebarOpenStatus(false);
|
|
29
|
-
basicStore.setSidebarName("");
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
basicStore.setSidebarOpenStatus(true);
|
|
33
|
-
basicStore.setSidebarName("vote");
|
|
34
|
-
emit("on-vote", {
|
|
35
|
-
name: "onVote",
|
|
36
|
-
visible: basicStore.isSidebarOpen
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return (_ctx, _cache) => {
|
|
40
|
-
return Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
41
|
-
Vue.createVNode(IconButton.default, {
|
|
42
|
-
"is-active": Vue.unref(sidebarName) === "vote",
|
|
43
|
-
title: Vue.unref(t)("Vote"),
|
|
44
|
-
onClickIcon: toggleMoreSidebar
|
|
45
|
-
}, {
|
|
46
|
-
default: Vue.withCtx(() => [
|
|
47
|
-
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconMore), { size: "24" })
|
|
48
|
-
]),
|
|
49
|
-
_: 1
|
|
50
|
-
}, 8, ["is-active", "title"])
|
|
51
|
-
])) : Vue.createCommentVNode("", true);
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
exports.default = _sfc_main;
|
|
3
|
+
const MoreControlPC_vue_vue_type_script_setup_true_lang = require("./MoreControlPC.vue2.js");
|
|
4
|
+
;/* empty css */
|
|
5
|
+
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
+
const MoreControlPc = /* @__PURE__ */ _pluginVue_exportHelper.default(MoreControlPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-50420946"]]);
|
|
7
|
+
exports.default = MoreControlPc;
|
|
@@ -1,4 +1,62 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const Vue = require("vue");
|
|
4
|
+
const voteIcon = require("../../../assets/imgs/vote-icon.png.js");
|
|
5
|
+
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
|
|
6
|
+
const IconButton = require("../../common/base/IconButton.vue.js");
|
|
7
|
+
const useMoreControlHooks = require("./useMoreControlHooks.js");
|
|
8
|
+
require("../../../services/main.js");
|
|
9
|
+
const roomService = require("../../../services/roomService.js");
|
|
10
|
+
require("../../../locales/index.js");
|
|
11
|
+
require("@tencentcloud/tuiroom-engine-js");
|
|
12
|
+
require("../../../utils/environment.js");
|
|
13
|
+
require("mitt");
|
|
14
|
+
require("../../../services/manager/roomActionManager.js");
|
|
15
|
+
require("@tencentcloud/tui-core");
|
|
16
|
+
const _hoisted_1 = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "more-control-container"
|
|
19
|
+
};
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
21
|
+
__name: "MoreControlPC",
|
|
22
|
+
emits: ["on-vote"],
|
|
23
|
+
setup(__props, { emit: __emit }) {
|
|
24
|
+
const moreControlConfig = roomService.roomService.getComponentConfig("MoreControl");
|
|
25
|
+
const { t, basicStore, sidebarName } = useMoreControlHooks.default();
|
|
26
|
+
const emit = __emit;
|
|
27
|
+
function toggleMoreSidebar() {
|
|
28
|
+
if (basicStore.setSidebarOpenStatus && basicStore.sidebarName === "vote") {
|
|
29
|
+
basicStore.setSidebarOpenStatus(false);
|
|
30
|
+
basicStore.setSidebarName("");
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
basicStore.setSidebarOpenStatus(true);
|
|
34
|
+
basicStore.setSidebarName("vote");
|
|
35
|
+
emit("on-vote", {
|
|
36
|
+
name: "onVote",
|
|
37
|
+
visible: basicStore.isSidebarOpen
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return (_ctx, _cache) => {
|
|
41
|
+
return Vue.unref(moreControlConfig).visible ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
|
|
42
|
+
Vue.createVNode(IconButton.default, {
|
|
43
|
+
"is-active": Vue.unref(sidebarName) === "vote",
|
|
44
|
+
title: Vue.unref(t)("Vote"),
|
|
45
|
+
onClickIcon: toggleMoreSidebar
|
|
46
|
+
}, {
|
|
47
|
+
default: Vue.withCtx(() => [
|
|
48
|
+
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconMore), { size: "24" })
|
|
49
|
+
]),
|
|
50
|
+
_: 1
|
|
51
|
+
}, 8, ["is-active", "title"]),
|
|
52
|
+
_cache[0] || (_cache[0] = Vue.createElementVNode("img", {
|
|
53
|
+
class: "ndsc-img-box",
|
|
54
|
+
src: voteIcon.default,
|
|
55
|
+
alt: "",
|
|
56
|
+
click: "toggleMoreSidebar"
|
|
57
|
+
}, null, -1))
|
|
58
|
+
])) : Vue.createCommentVNode("", true);
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
exports.default = _sfc_main;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
declare const MoreControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
-
"show-overlay": (...args: any[]) => void;
|
|
3
|
-
"on-vote": (...args: any[]) => void;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
5
|
-
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1
|
+
declare const MoreControl: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any> | import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
2
|
"on-vote": (...args: any[]) => void;
|
|
9
3
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
10
4
|
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const MoreControlH5 = require("./MoreControlH5.vue.js");
|
|
4
|
-
const
|
|
4
|
+
const MoreControlPC = require("./MoreControlPC.vue.js");
|
|
5
5
|
const environment = require("../../../utils/environment.js");
|
|
6
|
-
const MoreControl = environment.isMobile ? MoreControlH5.default :
|
|
6
|
+
const MoreControl = environment.isMobile ? MoreControlH5.default : MoreControlPC.default;
|
|
7
7
|
exports.default = MoreControl;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
declare const Index: ({
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
3
3
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
4
|
-
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
5
4
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
5
|
"show-overlay": (...args: any[]) => void;
|
|
7
|
-
"on-vote": (...args: any[]) => void;
|
|
8
6
|
}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
7
|
P: {};
|
|
10
8
|
B: {};
|
|
@@ -14,20 +12,17 @@ declare const Index: ({
|
|
|
14
12
|
Defaults: {};
|
|
15
13
|
}, Readonly<{}> & Readonly<{
|
|
16
14
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
17
|
-
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
18
15
|
}>, {}, {}, {}, {}, {}>;
|
|
19
16
|
__isFragment?: never;
|
|
20
17
|
__isTeleport?: never;
|
|
21
18
|
__isSuspense?: never;
|
|
22
19
|
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{
|
|
23
20
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
24
|
-
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
25
21
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
22
|
"show-overlay": (...args: any[]) => void;
|
|
27
|
-
"on-vote": (...args: any[]) => void;
|
|
28
23
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
29
24
|
$slots: {
|
|
30
|
-
|
|
25
|
+
contentH5?(_: {}): any;
|
|
31
26
|
};
|
|
32
27
|
})) | ({
|
|
33
28
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
|
-
|
|
2
|
+
contentH5?(_: {}): any;
|
|
3
3
|
};
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
5
|
"show-overlay": (...args: any[]) => void;
|
|
6
|
-
"on-vote": (...args: any[]) => void;
|
|
7
6
|
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
8
7
|
"onShow-overlay"?: ((...args: any[]) => any) | undefined;
|
|
9
|
-
"onOn-vote"?: ((...args: any[]) => any) | undefined;
|
|
10
8
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
9
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
10
|
export default _default;
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const indexH5_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const indexH5 = /* @__PURE__ */ _pluginVue_exportHelper.default(indexH5_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-253a50f0"]]);
|
|
7
7
|
exports.default = indexH5;
|
|
@@ -57,21 +57,17 @@ const ManageMemberControl_vue_vue_type_script_setup_true_lang = require("../Mana
|
|
|
57
57
|
const ChatControl_vue_vue_type_script_setup_true_lang = require("../ChatControl.vue.js");
|
|
58
58
|
const ManageStageControl_vue_vue_type_script_setup_true_lang = require("../ManageStageControl.vue.js");
|
|
59
59
|
const MemberApplyControl = require("../ApplyControl/MemberApplyControl.vue.js");
|
|
60
|
-
const index$
|
|
61
|
-
const index$1 = require("../VoteControl/index.js");
|
|
60
|
+
const index$1 = require("../MoreControl/index.js");
|
|
62
61
|
const AIControl = require("../AIControl.vue.js");
|
|
63
62
|
const useMitt = require("../../../hooks/useMitt.js");
|
|
64
63
|
const useRoomFooterHooks = require("./useRoomFooterHooks.js");
|
|
65
64
|
const _hoisted_1 = { class: "footer-container" };
|
|
66
65
|
const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
67
66
|
__name: "indexH5",
|
|
68
|
-
emits: ["show-overlay"
|
|
67
|
+
emits: ["show-overlay"],
|
|
69
68
|
setup(__props, { emit: __emit }) {
|
|
70
69
|
const { roomStore, isMaster, isAdmin, isAudience } = useRoomFooterHooks.default();
|
|
71
70
|
const emit = __emit;
|
|
72
|
-
const onVote = (data) => {
|
|
73
|
-
emit("on-vote", { code: data.visible, message: "vote" });
|
|
74
|
-
};
|
|
75
71
|
function handleControlClick(name) {
|
|
76
72
|
useMitt.default.emit("experience-communication", name);
|
|
77
73
|
}
|
|
@@ -95,17 +91,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
95
91
|
!Vue.unref(roomStore).isSpeakAfterTakingSeatMode ? Vue.withDirectives((Vue.openBlock(), Vue.createBlock(ChatControl_vue_vue_type_script_setup_true_lang.default, { key: 2 }, null, 512)), [
|
|
96
92
|
[Vue.unref(vTap.default), () => handleControlClick("chatControl")]
|
|
97
93
|
]) : Vue.createCommentVNode("", true),
|
|
98
|
-
Vue.
|
|
99
|
-
onShowOverlay: handleShowOverlay,
|
|
100
|
-
onOnVote: onVote
|
|
101
|
-
}, {
|
|
102
|
-
content: Vue.withCtx(() => [
|
|
103
|
-
Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true)
|
|
104
|
-
]),
|
|
105
|
-
_: 3
|
|
106
|
-
})), [
|
|
107
|
-
[Vue.unref(vTap.default), () => handleControlClick("voteControl")]
|
|
108
|
-
]),
|
|
94
|
+
Vue.renderSlot(_ctx.$slots, "contentH5", {}, void 0, true),
|
|
109
95
|
Vue.createVNode(AIControl.default, {
|
|
110
96
|
onClick: _cache[0] || (_cache[0] = ($event) => handleControlClick("AIControl"))
|
|
111
97
|
}),
|
|
@@ -118,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
118
104
|
Vue.withDirectives(Vue.createVNode(ManageMemberControl_vue_vue_type_script_setup_true_lang.default, null, null, 512), [
|
|
119
105
|
[Vue.unref(vTap.default), () => handleControlClick("manageMemberControl")]
|
|
120
106
|
]),
|
|
121
|
-
Vue.withDirectives(Vue.createVNode(Vue.unref(index$
|
|
107
|
+
Vue.withDirectives(Vue.createVNode(Vue.unref(index$1.default), { onShowOverlay: handleShowOverlay }, null, 512), [
|
|
122
108
|
[Vue.unref(vTap.default), () => handleControlClick("moreControl")]
|
|
123
109
|
])
|
|
124
110
|
]);
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const indexPC_vue_vue_type_script_setup_true_lang = ;/* empty css */
|
|
4
4
|
;/* empty css */
|
|
5
5
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
6
|
-
const indexPc = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
6
|
+
const indexPc = /* @__PURE__ */ _pluginVue_exportHelper.default(indexPC_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-4afcea78"]]);
|
|
7
7
|
exports.default = indexPc;
|
|
@@ -139,7 +139,6 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
|
|
|
139
139
|
class: "center-container-item",
|
|
140
140
|
onClick: _cache[9] || (_cache[9] = ($event) => handleControlClick("MasterApplyControl"))
|
|
141
141
|
})) : Vue.createCommentVNode("", true),
|
|
142
|
-
Vue.renderSlot(_ctx.$slots, "content", {}, void 0, true),
|
|
143
142
|
Vue.createVNode(Vue.unref(index$1.default), {
|
|
144
143
|
class: "center-container-item",
|
|
145
144
|
onClick: _cache[10] || (_cache[10] = ($event) => handleControlClick("voteControl")),
|
package/lib/index.js
CHANGED
|
@@ -3635,44 +3635,6 @@ to {
|
|
|
3635
3635
|
border-radius: 8px;
|
|
3636
3636
|
color: var(--text-color-primary);
|
|
3637
3637
|
background-color: var(--button-color-secondary-default);
|
|
3638
|
-
}.show-more-content[data-v-b8ad5a8b] {
|
|
3639
|
-
position: absolute;
|
|
3640
|
-
bottom: 15px;
|
|
3641
|
-
left: 5%;
|
|
3642
|
-
width: 90%;
|
|
3643
|
-
height: 17vh;
|
|
3644
|
-
padding: 10px;
|
|
3645
|
-
border-radius: 13px;
|
|
3646
|
-
animation-name: popup-b8ad5a8b;
|
|
3647
|
-
animation-duration: 200ms;
|
|
3648
|
-
background-color: var(--bg-color-operate);
|
|
3649
|
-
}
|
|
3650
|
-
@keyframes popup-b8ad5a8b {
|
|
3651
|
-
from {
|
|
3652
|
-
bottom: 0;
|
|
3653
|
-
}
|
|
3654
|
-
to {
|
|
3655
|
-
bottom: 15px;
|
|
3656
|
-
}
|
|
3657
|
-
}
|
|
3658
|
-
.control-compent[data-v-b8ad5a8b] {
|
|
3659
|
-
display: flex;
|
|
3660
|
-
}
|
|
3661
|
-
.close[data-v-b8ad5a8b] {
|
|
3662
|
-
position: relative;
|
|
3663
|
-
top: 10%;
|
|
3664
|
-
display: flex;
|
|
3665
|
-
align-items: center;
|
|
3666
|
-
justify-content: center;
|
|
3667
|
-
width: 100%;
|
|
3668
|
-
padding: 10px;
|
|
3669
|
-
font-style: normal;
|
|
3670
|
-
font-weight: 400;
|
|
3671
|
-
line-height: 24px;
|
|
3672
|
-
text-align: center;
|
|
3673
|
-
border-radius: 8px;
|
|
3674
|
-
color: var(--text-color-primary);
|
|
3675
|
-
background-color: var(--button-color-secondary-default);
|
|
3676
3638
|
}.tool-box[data-v-34681937] {
|
|
3677
3639
|
position: absolute;
|
|
3678
3640
|
bottom: 72px;
|
|
@@ -3702,7 +3664,7 @@ to {
|
|
|
3702
3664
|
.tool-box .tool-box-item[data-v-34681937]:hover {
|
|
3703
3665
|
border-radius: 8px;
|
|
3704
3666
|
background-color: var(--list-color-hover);
|
|
3705
|
-
}.footer-container[data-v-
|
|
3667
|
+
}.footer-container[data-v-253a50f0] {
|
|
3706
3668
|
position: absolute;
|
|
3707
3669
|
bottom: 0;
|
|
3708
3670
|
display: flex;
|
|
@@ -3966,7 +3928,13 @@ to {
|
|
|
3966
3928
|
}
|
|
3967
3929
|
.footer .mirror-container .mirror-text[data-v-21a63691] {
|
|
3968
3930
|
margin-left: 4px;
|
|
3969
|
-
}.
|
|
3931
|
+
}.ndsc-img-box[data-v-70cfb5f8] {
|
|
3932
|
+
width: 50px;
|
|
3933
|
+
height: 50px;
|
|
3934
|
+
}.ndsc-img-box[data-v-50420946] {
|
|
3935
|
+
width: 50px;
|
|
3936
|
+
height: 50px;
|
|
3937
|
+
}.footer-container[data-v-4afcea78] {
|
|
3970
3938
|
position: absolute;
|
|
3971
3939
|
bottom: 0;
|
|
3972
3940
|
display: flex;
|
|
@@ -3980,25 +3948,25 @@ to {
|
|
|
3980
3948
|
background-color: var(--bg-color-topbar);
|
|
3981
3949
|
box-shadow: 0 -8px 30px var(--uikit-color-black-8);
|
|
3982
3950
|
}
|
|
3983
|
-
.footer-container .left-container[data-v-
|
|
3951
|
+
.footer-container .left-container[data-v-4afcea78] {
|
|
3984
3952
|
display: flex;
|
|
3985
3953
|
align-items: center;
|
|
3986
3954
|
height: 100%;
|
|
3987
3955
|
}
|
|
3988
|
-
.footer-container .left-container .left-container-item[data-v-
|
|
3956
|
+
.footer-container .left-container .left-container-item[data-v-4afcea78]:not(:first-child) {
|
|
3989
3957
|
margin-left: 1rem;
|
|
3990
3958
|
}
|
|
3991
|
-
.footer-container .center-container[data-v-
|
|
3959
|
+
.footer-container .center-container[data-v-4afcea78] {
|
|
3992
3960
|
position: relative;
|
|
3993
3961
|
display: flex;
|
|
3994
3962
|
align-items: center;
|
|
3995
3963
|
height: 100%;
|
|
3996
3964
|
margin: 0 auto;
|
|
3997
3965
|
}
|
|
3998
|
-
.footer-container .center-container .center-container-item[data-v-
|
|
3966
|
+
.footer-container .center-container .center-container-item[data-v-4afcea78]:not(:first-child) {
|
|
3999
3967
|
margin-left: 16px;
|
|
4000
3968
|
}
|
|
4001
|
-
.footer-container .right-container[data-v-
|
|
3969
|
+
.footer-container .right-container[data-v-4afcea78] {
|
|
4002
3970
|
display: flex;
|
|
4003
3971
|
align-items: center;
|
|
4004
3972
|
height: 100%;
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,90 +1,53 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<
|
|
2
|
+
<div v-if="chatControlConfig.visible" class="vote-control-container">
|
|
3
|
+
<tui-badge
|
|
4
|
+
:hidden="chatStore.unReadCount === 0"
|
|
5
|
+
:value="chatStore.unReadCount"
|
|
6
|
+
:max="10"
|
|
7
|
+
>
|
|
4
8
|
<icon-button
|
|
5
|
-
v-tap="showMore"
|
|
6
|
-
:is-active="sidebarName === 'vote'"
|
|
7
9
|
:title="t('Vote')"
|
|
10
|
+
:is-active="sidebarName === 'vote'"
|
|
11
|
+
@click-icon="toggleChatSidebar"
|
|
8
12
|
>
|
|
9
|
-
<
|
|
13
|
+
<IconChat size="24" />
|
|
10
14
|
</icon-button>
|
|
11
|
-
</
|
|
15
|
+
</tui-badge>
|
|
16
|
+
<img class="ndsc-img-box" src="../../../assets/imgs/vote-icon.png" alt="" click="toggleChatSidebar"/>
|
|
12
17
|
</div>
|
|
13
18
|
</template>
|
|
19
|
+
|
|
14
20
|
<script setup lang="ts">
|
|
15
|
-
import { ref, onMounted, onUnmounted, defineEmits } from 'vue';
|
|
16
|
-
import { IconExtension } from '@tencentcloud/uikit-base-component-vue3';
|
|
17
21
|
import IconButton from '../../common/base/IconButton.vue';
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
import { IconChat } from '@tencentcloud/uikit-base-component-vue3';
|
|
23
|
+
import { useBasicStore } from '../../../stores/basic';
|
|
24
|
+
import { useChatStore } from '../../../stores/chat';
|
|
25
|
+
import { storeToRefs } from 'pinia';
|
|
26
|
+
import { useI18n } from '../../../locales';
|
|
27
|
+
import TuiBadge from '../../common/base/Badge.vue';
|
|
28
|
+
import { roomService, MetricsKey } from '../../../services';
|
|
29
|
+
const { t } = useI18n();
|
|
30
|
+
const chatControlConfig = roomService.getComponentConfig('MoreControl');
|
|
31
|
+
const basicStore = useBasicStore();
|
|
32
|
+
const chatStore = useChatStore();
|
|
33
|
+
const { sidebarName } = storeToRefs(basicStore);
|
|
34
|
+
|
|
35
|
+
async function toggleChatSidebar() {
|
|
36
|
+
if (basicStore.isSidebarOpen && basicStore.sidebarName === 'vote') {
|
|
37
|
+
basicStore.setSidebarOpenStatus(false);
|
|
38
|
+
basicStore.setSidebarName('');
|
|
39
|
+
return;
|
|
35
40
|
}
|
|
41
|
+
basicStore.setSidebarOpenStatus(true);
|
|
42
|
+
basicStore.setSidebarName('vote');
|
|
43
|
+
chatStore.updateUnReadCount(0);
|
|
44
|
+
roomService.dataReportManager.reportCount(MetricsKey.openChat);
|
|
45
|
+
roomService.trackingManager.sendMessage('experience-vote');
|
|
36
46
|
}
|
|
37
|
-
|
|
38
|
-
onMounted(() => {
|
|
39
|
-
document?.addEventListener('click', handleDocumentClick, true);
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
onUnmounted(() => {
|
|
43
|
-
document?.removeEventListener('click', handleDocumentClick, true);
|
|
44
|
-
});
|
|
45
47
|
</script>
|
|
46
48
|
<style lang="scss" scoped>
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
left: 5%;
|
|
51
|
-
width: 90%;
|
|
52
|
-
height: 17vh;
|
|
53
|
-
padding: 10px;
|
|
54
|
-
border-radius: 13px;
|
|
55
|
-
animation-name: popup;
|
|
56
|
-
animation-duration: 200ms;
|
|
57
|
-
background-color: var(--bg-color-operate);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@keyframes popup {
|
|
61
|
-
from {
|
|
62
|
-
bottom: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
to {
|
|
66
|
-
bottom: 15px;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.control-compent {
|
|
71
|
-
display: flex;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.close {
|
|
75
|
-
position: relative;
|
|
76
|
-
top: 10%;
|
|
77
|
-
display: flex;
|
|
78
|
-
align-items: center;
|
|
79
|
-
justify-content: center;
|
|
80
|
-
width: 100%;
|
|
81
|
-
padding: 10px;
|
|
82
|
-
font-style: normal;
|
|
83
|
-
font-weight: 400;
|
|
84
|
-
line-height: 24px;
|
|
85
|
-
text-align: center;
|
|
86
|
-
border-radius: 8px;
|
|
87
|
-
color: var(--text-color-primary);
|
|
88
|
-
background-color: var(--button-color-secondary-default);
|
|
49
|
+
.ndsc-img-box{
|
|
50
|
+
width: 50px;
|
|
51
|
+
height: 50px
|
|
89
52
|
}
|
|
90
53
|
</style>
|