From 43633495a31c5282ed23a1d66adc1b296dc5535e Mon Sep 17 00:00:00 2001 From: Petitminion Date: Thu, 15 May 2025 12:13:18 +0200 Subject: [PATCH] remove md file from tsconfig and lint upgrade bug --- front/package.json | 6 +- front/src/api/player.ts | 12 +- front/src/components/Queue.vue | 1 + front/src/components/common/UserLink.vue | 2 +- front/src/components/ui/Link.vue | 2 +- front/src/components/vui/list/VirtualList.vue | 5 +- front/src/ui/modals/Language.vue | 2 +- front/src/ui/modals/Search.vue | 2 +- front/src/views/auth/ManageUploads.vue | 1 - front/src/views/auth/ProfileBase.vue | 5 - front/src/views/auth/ProfileOverview.vue | 5 - front/src/views/channels/DetailEpisodes.vue | 2 +- front/tsconfig.json | 4 +- front/yarn.lock | 613 ++++++++---------- 14 files changed, 300 insertions(+), 362 deletions(-) diff --git a/front/package.json b/front/package.json index 4f3be24c8..2ec578152 100644 --- a/front/package.json +++ b/front/package.json @@ -29,7 +29,7 @@ "@sentry/vue": "7.47.0", "@tauri-apps/api": "2.0.0-beta.1", "@types/jsmediatags": "3.9.6", - "@vue/runtime-core": "3.3.11", + "@vue/runtime-core": "3.5.14", "@vueuse/components": "10.11.1", "@vueuse/core": "10.11.1", "@vueuse/integrations": "10.11.1", @@ -60,7 +60,7 @@ "type-fest": "4.41.0", "universal-cookie": "4.0.4", "vite-plugin-pwa": "0.21.2", - "vue": "3.5.13", + "vue": "3.5.14", "vue-dompurify-html": "5.3.0", "vue-gettext": "2.1.12", "vue-i18n": "9.14.4", @@ -94,7 +94,7 @@ "@vitest/coverage-v8": "1.3.1", "@vue-macros/common": "1.16.1", "@vue-macros/volar": "0.30.15", - "@vue/compiler-sfc": "3.3.11", + "@vue/compiler-sfc": "3.5.14", "@vue/eslint-config-standard": "8.0.1", "@vue/eslint-config-typescript": "12.0.0", "@vue/test-utils": "2.4.6", diff --git a/front/src/api/player.ts b/front/src/api/player.ts index 97b91a851..530526427 100644 --- a/front/src/api/player.ts +++ b/front/src/api/player.ts @@ -38,9 +38,9 @@ export interface Sound { onSoundEnd: EventHookOn } -export const soundImplementations = reactive(new Set>()) +export const soundImplementations: Set> = reactive(new Set>()) -export const registerSoundImplementation = >(implementation: T) => { +export const registerSoundImplementation = (implementation: Constructor): Constructor => { soundImplementations.add(implementation) return implementation } @@ -49,8 +49,8 @@ export const registerSoundImplementation = >(implem @registerSoundImplementation export class HTMLSound implements Sound { #audio = new Audio() - #soundLoopEventHook = createEventHook() - #soundEndEventHook = createEventHook() + #soundLoopEventHook = createEventHook() + #soundEndEventHook = createEventHook() #ignoreError = false #scope = effectScope() @@ -59,8 +59,8 @@ export class HTMLSound implements Sound { readonly isDisposed = ref(false) audioNode = createAudioSource(this.#audio) - onSoundLoop: EventHookOn - onSoundEnd: EventHookOn + onSoundLoop: EventHookOn + onSoundEnd: EventHookOn constructor (sources: SoundSource[]) { this.onSoundLoop = this.#soundLoopEventHook.on diff --git a/front/src/components/Queue.vue b/front/src/components/Queue.vue index 102189287..4f8016e69 100644 --- a/front/src/components/Queue.vue +++ b/front/src/components/Queue.vue @@ -90,6 +90,7 @@ watchEffect(async () => { const list = ref() const el = useCurrentElement() const scrollToCurrent = (behavior: ScrollBehavior = 'smooth') => { + if (!(el.value instanceof HTMLElement)) return const item = el.value?.querySelector('.queue-item.active') item?.scrollIntoView({ behavior, diff --git a/front/src/components/common/UserLink.vue b/front/src/components/common/UserLink.vue index 5a53d511a..32ad8d7f8 100644 --- a/front/src/components/common/UserLink.vue +++ b/front/src/components/common/UserLink.vue @@ -28,7 +28,7 @@ const defaultAvatarStyle = computed(() => ({ backgroundColor: `#${userColor.valu