From 8e4f34dd21818bd731d37590bc23a960b2e89ce3 Mon Sep 17 00:00:00 2001 From: valere Date: Sun, 12 Oct 2025 03:49:17 +0200 Subject: [PATCH] play/pause works --- app/components/compilations.vue | 5 +- app/components/player.vue | 29 +--- app/pages/index.vue | 4 +- app/pages/{dev.vue => newsletter.vue} | 4 +- app/store/data.ts | 30 +++- app/store/player.ts | 208 ++++++++++++++++++-------- 6 files changed, 188 insertions(+), 92 deletions(-) rename app/pages/{dev.vue => newsletter.vue} (83%) diff --git a/app/components/compilations.vue b/app/components/compilations.vue index 312dfb8..d6025b4 100644 --- a/app/components/compilations.vue +++ b/app/components/compilations.vue @@ -4,7 +4,9 @@ :BoxState="boxStates[compilation.id]" @click="() => openCompilation(compilation.id)" :class="boxStates[compilation.id]" class="text-center"> + class="relative z-40 rounded-full size-24 bottom-1/2 text-2xl"> + {{ !playerStore.isPaused && playerStore.currentTrack?.compilationId === compilation.id ? 'II' : '▶' }} + @@ -30,6 +32,7 @@ function openCompilation(id: string) { behavior: 'smooth' }); + navigateTo(`/box/${id}`) } } diff --git a/app/components/player.vue b/app/components/player.vue index 847abd4..c38aca0 100644 --- a/app/components/player.vue +++ b/app/components/player.vue @@ -1,50 +1,27 @@ diff --git a/app/pages/index.vue b/app/pages/index.vue index daf2201..ab560cc 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -2,11 +2,11 @@
- + +
-