From caeef65cdbf5a6a065732cfa83a19e28bf87e7f9 Mon Sep 17 00:00:00 2001 From: saopig1 <4x7sw862st@gmail.com> Date: Wed, 6 May 2026 16:43:10 +0800 Subject: [PATCH] feat(web): wire @playNext on all SongCard call sites Library / Search / History / Playlist now route the third action to store.playNextSong. Home is unchanged (it doesn't use SongCard). Co-Authored-By: Claude Opus 4.7 (1M context) --- web/src/views/History.vue | 1 + web/src/views/Library.vue | 1 + web/src/views/Playlist.vue | 1 + web/src/views/Search.vue | 1 + 4 files changed, 4 insertions(+) diff --git a/web/src/views/History.vue b/web/src/views/History.vue index 6c76035..a52c0d2 100644 --- a/web/src/views/History.vue +++ b/web/src/views/History.vue @@ -20,6 +20,7 @@ :index="i + 1" :active="store.currentSong?.id === song.id" @play="store.playSong(song)" + @playNext="store.playNextSong(song)" @add="store.addSong(song)" /> diff --git a/web/src/views/Library.vue b/web/src/views/Library.vue index 0f0bd6f..03a8d78 100644 --- a/web/src/views/Library.vue +++ b/web/src/views/Library.vue @@ -36,6 +36,7 @@ :index="i + 1" :active="store.currentSong?.id === song.id" @play="store.play(song.name, song.platform)" + @playNext="store.playNextSong(song)" @add="store.addToQueue(song.name, song.platform)" /> diff --git a/web/src/views/Playlist.vue b/web/src/views/Playlist.vue index 01ba118..d5c9f8d 100644 --- a/web/src/views/Playlist.vue +++ b/web/src/views/Playlist.vue @@ -32,6 +32,7 @@ :index="i + 1" :active="store.currentSong?.id === song.id" @play="store.playSong(song)" + @playNext="store.playNextSong(song)" @add="store.addSong(song)" /> diff --git a/web/src/views/Search.vue b/web/src/views/Search.vue index f7a6016..0536e36 100644 --- a/web/src/views/Search.vue +++ b/web/src/views/Search.vue @@ -28,6 +28,7 @@ :index="i + 1" :active="store.currentSong?.id === song.id" @play="store.playSong(song)" + @playNext="store.playNextSong(song)" @add="store.addSong(song)" />