From 364d38ddc09705c8b28fdc1c0cd0963ee19f219e Mon Sep 17 00:00:00 2001 From: Megghy Date: Tue, 8 Apr 2025 16:11:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=8A=9F=E8=83=BD=EF=BC=9B=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=92=8C=E7=8A=B6=E6=80=81=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=9B=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- default.d.ts | 3 +- src/client/ClientFetcher.vue | 2 +- src/client/ClientIndex.vue | 14 +- src/client/ClientLayout.vue | 289 ++++++++++----------- src/client/ClientSettings.vue | 3 + src/client/data/info.ts | 9 +- src/client/data/notification.ts | 14 +- src/components.d.ts | 1 + src/components/QuestionItem.vue | 2 +- src/components/TempComponent.vue | 1 + src/components/UpdateNoteContainer.vue | 93 +++++++ src/data/Initializer.ts | 155 +++++++++++ src/data/UpdateNote.ts | 91 +++++++ src/main.ts | 156 +---------- src/store/useWebFetcher.ts | 3 +- src/views/ManageLayout.vue | 4 + src/views/manage/QuestionBoxManageView.vue | 2 +- src/views/manage/QuestionDisplayCard.vue | 1 + vite.config.mts | 5 + 19 files changed, 536 insertions(+), 312 deletions(-) create mode 100644 src/components/UpdateNoteContainer.vue create mode 100644 src/data/Initializer.ts create mode 100644 src/data/UpdateNote.ts 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';