diff --git a/default.d.ts b/default.d.ts index 07b6bbc..ca6e055 100644 --- a/default.d.ts +++ b/default.d.ts @@ -1,5 +1,5 @@ -import type { LoadingBarProviderInst, MessageProviderInst, ModalProviderInst, NotificationProviderInst } from 'naive-ui' +import type { DialogProviderInst, LoadingBarProviderInst, MessageProviderInst, ModalProviderInst, NotificationProviderInst } from 'naive-ui' import type { useRoute } from 'vue-router' declare module 'vue3-aplayer' { @@ -23,5 +23,6 @@ declare global { $modal: ModalProviderInst $mitt: Emitter $notification: NotificationProviderInst + $dialog: DialogProviderInst } } diff --git a/src/client/ClientFetcher.vue b/src/client/ClientFetcher.vue index a589d73..faba986 100644 --- a/src/client/ClientFetcher.vue +++ b/src/client/ClientFetcher.vue @@ -992,7 +992,7 @@ {{ webfetcher.sessionEventCount?.toLocaleString() ?? 0 }} - {{ ((webfetcher.bytesSentSession ?? 0) / 1024).toFixed(2) }} KB + {{ ((webfetcher.bytesSentSession ?? 0) / 1024 / 1024).toFixed(2) }} Mb diff --git a/src/client/ClientIndex.vue b/src/client/ClientIndex.vue index 44eb919..93abf77 100644 --- a/src/client/ClientIndex.vue +++ b/src/client/ClientIndex.vue @@ -10,6 +10,10 @@ const webfetcher = useWebFetcher(); const coverRef = ref(); + const isHover = ref(false); + const roomCover = computed(() => { + return isHover.value ? roomInfo.value?.keyframe : roomInfo.value?.user_cover; + }); const { width, height } = useElementSize(coverRef); function logout() { @@ -90,8 +94,8 @@
{{ roomInfo?.title }} diff --git a/src/client/ClientLayout.vue b/src/client/ClientLayout.vue index 3df7e95..73d26ae 100644 --- a/src/client/ClientLayout.vue +++ b/src/client/ClientLayout.vue @@ -117,169 +117,160 @@ import { isTauri } from '@/data/constants';