diff --git a/front/.eslintrc.js b/front/.eslintrc.js index c9ea0eb18..f3e73be3d 100644 --- a/front/.eslintrc.js +++ b/front/.eslintrc.js @@ -38,7 +38,6 @@ module.exports = { '@intlify/vue-i18n/valid-message-syntax': 'error', '@intlify/vue-i18n/no-i18n-t-path-prop': 'error', '@intlify/vue-i18n/no-missing-keys': 'error', - '@intlify/vue-i18n/no-dynamic-keys': 'error', '@intlify/vue-i18n/no-unused-keys': ['error', { extensions: ['.ts', '.vue'], enableFix: true diff --git a/front/package.json b/front/package.json index b1df4d362..f05de3c52 100644 --- a/front/package.json +++ b/front/package.json @@ -58,7 +58,7 @@ }, "devDependencies": { "@intlify/eslint-plugin-vue-i18n": "2.0.0", - "@intlify/unplugin-vue-i18n": "^0.8.1", + "@intlify/unplugin-vue-i18n": "^0.8.2", "@types/diff": "5.0.2", "@types/dompurify": "2.4.0", "@types/howler": "2.2.7", @@ -72,7 +72,7 @@ "@typescript-eslint/eslint-plugin": "5.48.2", "@vitejs/plugin-vue": "4.0.0", "@vitest/coverage-c8": "0.25.8", - "@vue/compiler-sfc": "3.2.45", + "@vue/compiler-sfc": "3.2.47", "@vue/eslint-config-standard": "8.0.1", "@vue/eslint-config-typescript": "11.0.2", "@vue/test-utils": "2.2.7", diff --git a/front/src/api/player.ts b/front/src/api/player.ts index abfb37663..08ab661dd 100644 --- a/front/src/api/player.ts +++ b/front/src/api/player.ts @@ -79,15 +79,15 @@ export class HTMLSound implements Sound { }) useEventListener(this.#audio, 'waiting', () => { - console.log('>> AUDIO WAITING', this.__track?.title) + console.log('>> AUDIO WAITING', this) }) useEventListener(this.#audio, 'playing', () => { - console.log('>> AUDIO PLAYING', this.__track?.title) + console.log('>> AUDIO PLAYING', this) }) useEventListener(this.#audio, 'stalled', () => { - console.log('>> AUDIO STALLED', this.__track?.title) + console.log('>> AUDIO STALLED', this) }) useEventListener(this.#audio, 'loadeddata', () => { @@ -96,7 +96,7 @@ export class HTMLSound implements Sound { }) useEventListener(this.#audio, 'error', (err) => { - console.error('>> AUDIO ERRORED', err, this.__track?.title) + console.error('>> AUDIO ERRORED', err, this) this.isErrored.value = true this.isLoaded.value = true }) @@ -104,7 +104,7 @@ export class HTMLSound implements Sound { async preload () { this.isErrored.value = false - console.log('CALLING PRELOAD ON', this.__track?.title) + console.log('CALLING PRELOAD ON', this) this.#audio.load() } diff --git a/front/src/components/Queue.vue b/front/src/components/Queue.vue index 91c6c9968..118797e0f 100644 --- a/front/src/components/Queue.vue +++ b/front/src/components/Queue.vue @@ -2,7 +2,7 @@ import type { QueueItemSource } from '~/types' import { whenever, watchDebounced, useCurrentElement, useScrollLock, useFullscreen, useIdle, refAutoReset, useStorage } from '@vueuse/core' -import { nextTick, ref, computed, watchEffect, watch, defineAsyncComponent } from 'vue' +import { nextTick, ref, computed, watchEffect, defineAsyncComponent } from 'vue' import { useFocusTrap } from '@vueuse/integrations/useFocusTrap' import { useRouter } from 'vue-router' import { useI18n } from 'vue-i18n' @@ -27,7 +27,6 @@ const { isPlaying, currentTime, duration, - progress, bufferProgress, seekTo, loading: isLoadingAudio, @@ -108,13 +107,6 @@ const touchProgress = (event: MouseEvent) => { seekTo(time) } -const animated = ref(false) -watch(currentTrack, async track => { - animated.value = false - await nextTick() - animated.value = true -}) - const play = async (index: number) => { isPlaying.value = true return playTrack(index) @@ -368,7 +360,7 @@ if (!isWebGLSupported) { :style="{ 'transform': `translateX(${bufferProgress - 100}%)` }" />