UNPKG

@tencentcloud/roomkit-web-vue3

Version:

<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,

68 lines (67 loc) 3.34 kB
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, unref, createVNode, createElementVNode, normalizeClass } from "vue"; import { useUIKit, IconLogoOfPCInChineseBlack, IconLogoOfPCInChineseWhite, IconLogoOfMobileInChinese, IconLogoTitleOfMobileInChinese, IconLogoInEnglish, IconLogoTitleInEnglish } from "@tencentcloud/uikit-base-component-vue3"; import i18n from "../../locales/index.mjs"; import { isMobile } from "../../utils/environment.mjs"; import { useBasicStore } from "../../stores/basic.mjs"; import { storeToRefs } from "pinia"; const _hoisted_1 = { class: "logo-container" }; const _hoisted_2 = { key: 0 }; const _hoisted_3 = { key: 1 }; const _hoisted_4 = { key: 2, class: "mobile-zh-logo" }; const _hoisted_5 = { class: "title" }; const _hoisted_6 = { class: "logo" }; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "Logo", setup(__props) { const { theme } = useUIKit(); const basicStore = useBasicStore(); const { defaultTheme } = storeToRefs(basicStore); const isEN = computed(() => i18n.global.locale.value === "en-US"); const isZH = computed(() => i18n.global.locale.value === "zh-CN"); const isDarkTheme = computed( () => theme.value ? theme.value === "dark" : defaultTheme.value === "dark" ); const isLightTheme = computed( () => theme.value ? theme.value === "light" : defaultTheme.value === "light" ); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", _hoisted_1, [ !unref(isMobile) && isZH.value && isDarkTheme.value ? (openBlock(), createElementBlock("div", _hoisted_2, [ createVNode(unref(IconLogoOfPCInChineseBlack), { style: { "width": "484px", "height": "63px" } }) ])) : createCommentVNode("", true), !unref(isMobile) && isZH.value && isLightTheme.value ? (openBlock(), createElementBlock("div", _hoisted_3, [ createVNode(unref(IconLogoOfPCInChineseWhite), { style: { "width": "484px", "height": "63px" } }) ])) : createCommentVNode("", true), unref(isMobile) && isZH.value ? (openBlock(), createElementBlock("div", _hoisted_4, [ createElementVNode("span", { class: normalizeClass(["logo", isLightTheme.value ? "light" : "dark"]) }, [ createVNode(unref(IconLogoOfMobileInChinese), { style: { "width": "136px", "height": "36px" } }) ], 2), createElementVNode("span", _hoisted_5, [ createVNode(unref(IconLogoTitleOfMobileInChinese), { style: { "width": "144px", "height": "23px" } }) ]) ])) : createCommentVNode("", true), isEN.value ? (openBlock(), createElementBlock("div", { key: 3, class: normalizeClass(["pc-en-logo", { mobile: unref(isMobile) }]) }, [ createElementVNode("span", _hoisted_6, [ createVNode(unref(IconLogoInEnglish), { style: { "width": "68px", "height": "63px" } }) ]), createElementVNode("span", { class: normalizeClass(["title", isLightTheme.value ? "light" : "dark"]) }, [ createVNode(unref(IconLogoTitleInEnglish), { style: { "width": "271px", "height": "35px" } }) ], 2) ], 2)) : createCommentVNode("", true) ]); }; } }); export { _sfc_main as default };