diff --git a/src-tauri/server/src/lib.rs b/src-tauri/server/src/lib.rs index 089c3b5..0e1cd31 100644 --- a/src-tauri/server/src/lib.rs +++ b/src-tauri/server/src/lib.rs @@ -1,6 +1,6 @@ use std::{net::SocketAddr, path::PathBuf, sync::Arc, time::Duration}; -use abi::{musync_service_server::MusyncServiceServer, UpdatePlayerEvent}; +use abi::musync_service_server::MusyncServiceServer; use axum::{routing::get, Extension, Router}; use axum_server::Handle; diff --git a/src/components/QScrollbar.vue b/src/components/QScrollbar.vue index 7ba148c..c6715c8 100644 --- a/src/components/QScrollbar.vue +++ b/src/components/QScrollbar.vue @@ -2,17 +2,23 @@ import Scrollbar from 'smooth-scrollbar'; import { onMounted, onUnmounted, ref } from 'vue'; +const scrollbar = ref(null); + const container = ref(null); onMounted(() => { if (container.value) { - Scrollbar.init(container.value, { + scrollbar.value = Scrollbar.init(container.value, { alwaysShowTracks: true, }); } }); onUnmounted(() => { if (container.value) - Scrollbar.destroy(container.value!); + scrollbar.value?.destroy(); +}); + +defineExpose({ + scrollbar, }); diff --git a/src/layouts/Basic.vue b/src/layouts/Basic.vue index 6642799..d79f614 100644 --- a/src/layouts/Basic.vue +++ b/src/layouts/Basic.vue @@ -1,13 +1,35 @@ diff --git a/src/pages/main/Account.vue b/src/pages/main/Account.vue index 0a49f7a..ab887dd 100644 --- a/src/pages/main/Account.vue +++ b/src/pages/main/Account.vue @@ -2,7 +2,6 @@ import { useI18n } from 'vue-i18n'; import { computed, ref } from 'vue'; import LongButton from '~/components/LongButton.vue'; -import H1 from '~/components/typo/H1.vue'; import H2 from '~/components/typo/H2.vue'; import Basic from '~/layouts/Basic.vue'; import IconConnected from '~icons/fluent/plug-connected-24-regular'; @@ -19,8 +18,7 @@ const online = computed(() => accountStore.online);