feat(player): sleep timer and delayed start via long-press on play/pause (#270)

Add scheduled pause and resume timers in the player store, cleared on stop
and track changes. Long-press opens a compact preset modal anchored above
the transport row; one-tap presets plus custom minutes. Portaled countdown
badge on the play button; clear the long-press click guard when the modal
closes so the first play/pause click works after scheduling.
This commit is contained in:
cucadmuh
2026-04-23 00:32:44 +03:00
committed by GitHub
parent c5dfabf739
commit 624ce56faf
17 changed files with 942 additions and 20 deletions
+18
View File
@@ -1113,6 +1113,24 @@ export const nlTranslation = {
prev: 'Vorig nummer',
play: 'Afspelen',
pause: 'Pauzeren',
delayModalTitle: 'Timer',
delayPauseSection: 'Pauzeren na',
delayStartSection: 'Starten na',
delaySchedulePause: 'Pauze plannen',
delayScheduleStart: 'Start plannen',
delayCancelPause: 'Pauze-timer annuleren',
delayCancelStart: 'Start-timer annuleren',
delayInactivePause: 'Alleen beschikbaar tijdens afspelen.',
delayInactiveStart: 'Alleen in pauze met een geladen nummer of radio.',
delayCustomMinutes: 'Aangepaste vertraging (minuten)',
delayCustomPlaceholder: 'bijv. 2,5',
closeDelayModal: 'Sluiten',
delayIn: 'over',
delayFmtSec: '{{n}} s',
delayFmtMin: '{{n}} min',
delayFmtHr: '{{n}} u',
delayCancel: 'Annuleren',
delayApply: 'Toepassen',
next: 'Volgend nummer',
repeat: 'Herhalen',
repeatOff: 'Uit',