From 25bfc07b59d072f2d12e63102252ff5b882b351b Mon Sep 17 00:00:00 2001 From: Yvv Date: Fri, 27 Feb 2026 14:08:58 +0100 Subject: [PATCH] Fix double-fire player, navigation par morceaux, admin labels morceaux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BookPlayer : navigation par playlist (9 morceaux) au lieu de 11 chapitres - stopPropagation clavier → plus de saut 1→3→5 - Sommaire aligné avec titres des morceaux - Bouton back aligné avec clavier (toujours morceau précédent) - Admin chapitres : tags morceaux cliquables avec étoile primary - Admin liste chapitres : badges morceaux associés - Éditeur markdown en vue split par défaut Co-Authored-By: Claude Opus 4.6 --- app/components/admin/AdminMarkdownEditor.vue | 2 +- app/components/book/BookPlayer.vue | 234 ++++++++----------- app/composables/useAudioPlayer.ts | 8 +- app/pages/admin/book/[slug].vue | 166 ++++++++++++- app/pages/admin/book/index.vue | 57 ++++- app/stores/player.ts | 9 +- 6 files changed, 314 insertions(+), 162 deletions(-) diff --git a/app/components/admin/AdminMarkdownEditor.vue b/app/components/admin/AdminMarkdownEditor.vue index 1b6c00a..06c4678 100644 --- a/app/components/admin/AdminMarkdownEditor.vue +++ b/app/components/admin/AdminMarkdownEditor.vue @@ -65,7 +65,7 @@ const emit = defineEmits<{ 'update:modelValue': [value: string] }>() -const tab = ref<'edit' | 'preview' | 'split'>('edit') +const tab = ref<'edit' | 'preview' | 'split'>('split') const fullscreen = ref(false) const textareaRef = ref() diff --git a/app/components/book/BookPlayer.vue b/app/components/book/BookPlayer.vue index 1a27f5a..7a6a789 100644 --- a/app/components/book/BookPlayer.vue +++ b/app/components/book/BookPlayer.vue @@ -35,8 +35,8 @@
- {{ chapterIdx + 1 }}. - {{ chapters[chapterIdx].title }} + {{ trackIdx + 1 }}. + {{ currentTrack?.title ?? '' }}
{{ scrollPercent }}%
@@ -76,12 +76,12 @@ ref="contentEl" :style="contentStyle" > -
-
-

Paroles à venir pour « {{ chapterSong.title }} »

+
+
+

Paroles à venir pour « {{ currentSong.title }} »

-

Aucun morceau associé à ce chapitre

+

Aucun morceau sélectionné

@@ -92,28 +92,28 @@
- -
+ +
- {{ chapterSong.title }} + {{ currentSong.title }}
@@ -123,7 +123,7 @@