@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.59 kB
JavaScript
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const Vue = require("vue");
const uikitBaseComponentVue3 = require("@tencentcloud/uikit-base-component-vue3");
const index = require("../../locales/index.js");
const environment = require("../../utils/environment.js");
const basic = require("../../stores/basic.js");
const pinia = require("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__ */ Vue.defineComponent({
__name: "Logo",
setup(__props) {
const { theme } = uikitBaseComponentVue3.useUIKit();
const basicStore = basic.useBasicStore();
const { defaultTheme } = pinia.storeToRefs(basicStore);
const isEN = Vue.computed(() => index.default.global.locale.value === "en-US");
const isZH = Vue.computed(() => index.default.global.locale.value === "zh-CN");
const isDarkTheme = Vue.computed(
() => theme.value ? theme.value === "dark" : defaultTheme.value === "dark"
);
const isLightTheme = Vue.computed(
() => theme.value ? theme.value === "light" : defaultTheme.value === "light"
);
return (_ctx, _cache) => {
return Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
!Vue.unref(environment.isMobile) && isZH.value && isDarkTheme.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_2, [
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconLogoOfPCInChineseBlack), { style: { "width": "484px", "height": "63px" } })
])) : Vue.createCommentVNode("", true),
!Vue.unref(environment.isMobile) && isZH.value && isLightTheme.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconLogoOfPCInChineseWhite), { style: { "width": "484px", "height": "63px" } })
])) : Vue.createCommentVNode("", true),
Vue.unref(environment.isMobile) && isZH.value ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_4, [
Vue.createElementVNode("span", {
class: Vue.normalizeClass(["logo", isLightTheme.value ? "light" : "dark"])
}, [
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconLogoOfMobileInChinese), { style: { "width": "136px", "height": "36px" } })
], 2),
Vue.createElementVNode("span", _hoisted_5, [
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconLogoTitleOfMobileInChinese), { style: { "width": "144px", "height": "23px" } })
])
])) : Vue.createCommentVNode("", true),
isEN.value ? (Vue.openBlock(), Vue.createElementBlock("div", {
key: 3,
class: Vue.normalizeClass(["pc-en-logo", { mobile: Vue.unref(environment.isMobile) }])
}, [
Vue.createElementVNode("span", _hoisted_6, [
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconLogoInEnglish), { style: { "width": "68px", "height": "63px" } })
]),
Vue.createElementVNode("span", {
class: Vue.normalizeClass(["title", isLightTheme.value ? "light" : "dark"])
}, [
Vue.createVNode(Vue.unref(uikitBaseComponentVue3.IconLogoTitleInEnglish), { style: { "width": "271px", "height": "35px" } })
], 2)
], 2)) : Vue.createCommentVNode("", true)
]);
};
}
});
exports.default = _sfc_main;
;