gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit5135879451358794jukebox JB14 (jukebox#14): the Songs screen opens sorted the way it was left (kept on the server in storage/ui.json), the sort control shows the sort the rows really have (selected options, autocomplete off); gate tests/jb14.mjsmre51358794/components/main.hl

19.2 KB

  1. // components/main.hl — THE SHELL: the layouts header with the main menu (the phone's sidebar behind the toggle), the slot every screen renders
  2. // into, and the PLAYER BAR at the bottom. The shell stays when a screen is replaced by a click on a link (hl:web navigates in the page), so the song keeps playing
  3. // while you browse. A screen starts a song with `emit jbPlay(ctx, index, id)`: the context says which list the song was tapped in (`{ kind, sort, minPlays, ... }`,
  4. // lib/rows.hl), the id WHICH SONG (the id decides, the server looks the song up in the list as it is now; the index is only where the screen saw it, counted plays move songs). A screen starts a shuffle with `emit jbShuffle(spec)` (lib/queue.hl: favourites or the list the screen shows); the server then holds the
  5. // shuffled order and the browser asks for 40 songs at a time. The queue of the media player always starts at the song that plays: the bar shows it, the overlay lists the 20 after it.
  6. // THE NOW-PLAYING OVERLAY is the same bar and the same media player, drawn bigger by CSS: a tap on the bar opens it (full screen on the phone, a side panel from 60rem), the
  7. // close button, the Escape key or a swipe down closes it. THE COUNT: a song counts as played after half of its length or 4 minutes of listening (whichever comes first); the shell counts
  8. // the seconds the audio really plays (a one second timer), asks the server once (`jbPlayed`) and the jukebox database adds 1 to its own counter. The files are never written.
  9. // KEYBOARD: NOT HERE. Every key handler of the shell (document listener, body, the app div) made the audio element load its source again on each key press (the song
  10. // restarted): Hybriel gap, repro in reports/JB3b-keyboard-gap.md. The media player's own keys (Space, arrows on its audio element) stay as they are.
  11. // LOCK SCREEN: the browser's media session shows title, artist, album and cover and gives play, pause, previous and next to the lock screen and the headphone keys.
  12. import AppHeader from '../theme/shell/app-header.hl'
  13. import MainMenu from '../theme/shell/main-menu.hl'
  14. import Sidebar from '../theme/shell/app-sidebar.hl'
  15. import MediaPlayer from './media-player/media-player.hl'
  16. import Icon from './icons/icons.hl'
  17. import { now } from 'hl:time'
  18. import { rowsFor, queueFor } from '../lib/rows.hl'
  19. import { countPlay } from '../lib/plays.hl'
  20. slot = null
  21. menu = [ { label = 'Songs' href = '/' current = false } { label = 'Artists' href = '/artists' } { label = 'Albums' href = '/albums' } { label = 'Search' href = '/search' } ]
  22. // the player: what plays now, and the songs that follow in the list it came from (the first item of the queue is the song that plays)
  23. String nowSrc = ''
  24. String nowTitle = ''
  25. String nowArtist = ''
  26. String nowAlbum = ''
  27. String nowCover = ''
  28. String nowArt = ''
  29. String nowId = ''
  30. String autoPlay = 'false'
  31. Hybrid nowQueue = []
  32. Hybrid nowCtx = {}
  33. Number nowIdx = 0
  34. String overlay = 'false'
  35. String barClass = 'jb-app'
  36. String coverNow = overlay == 'true' ? nowArt : nowCover
  37. Number heard = 0
  38. String countedId = ''
  39. Number swipeY = -1
  40. String ticking = 'false'
  41. Style {
  42. // the player bar's height (0 until a song was picked); the screens take what is left of the viewport
  43. '.jb-app' { '--jb-bar' = '0rem' }
  44. '.jb-app.playing' { '--jb-bar' = '4.25rem' }
  45. '.jb-app.open' { '--jb-bar' = '0rem' }
  46. '@keyframes jb-mount' { 'from' { opacity = '.999' } to { opacity = '1' } }
  47. 'jb-tick' { display = 'block' height = '0' animation = 'jb-mount 100ms linear infinite' }
  48. // a screen: as high as the viewport under the header minus the bar; its list scrolls inside, the header and the bar stay
  49. 'jb-screen' { display = 'flex' flexDirection = 'column' height = 'calc(100dvh - var(--layout-header) - var(--jb-bar))' paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))' paddingTop = '.5rem' }
  50. 'jb-screen > virtual-list' { flex = '1 1 auto' height = 'auto' minHeight = '0' marginInline = '-.6rem' }
  51. // THE PLAYER BAR, fixed at the bottom, compact: a thin seek line across the top, under it the small cover with title and artist, previous song, play / pause, next song (the
  52. // times from 60rem). The media player is `display: contents`, so its parts and the shell's own buttons are cells of the bar's grid.
  53. // A tap on the bar opens THE NOW-PLAYING OVERLAY: the same bar and the same parts, placed by the second grid below (full screen on the phone, a side panel from 60rem):
  54. // close button, large cover, title, artist, album, the seek line, previous / back 10 s / play / forward 10 s / next, the times, mute and speed, and the next 20 songs.
  55. '.jb-bar' { display = 'none' }
  56. '.jb-app.playing .jb-bar' { display = 'grid' position = 'fixed' left = '0' right = '0' bottom = '0' zIndex = '15' height = 'var(--jb-bar)' background = 'var(--color-background-sunken)' gridTemplateColumns = 'minmax(0, 1fr) auto auto auto' gridTemplateRows = '1rem 1fr' gridTemplateAreas = '"seek seek seek seek" "cover prev buttons next"' alignItems = 'center' }
  57. '.jb-bar media-player, .jb-bar media-player mp-buttons' { display = 'contents' }
  58. '.jb-bar media-player audio' { display = 'none' }
  59. '.jb-bar .jb-close, .jb-bar .jb-album' { display = 'none' }
  60. '.jb-bar button.jb-prev, .jb-bar button.jb-next' { display = 'inline-flex' alignItems = 'center' justifyContent = 'center' minWidth = '2.75rem' minHeight = '2.75rem' margin = '0' padding = '0' color = 'var(--color-text)' background = 'transparent' borderRadius = 'var(--radius-small)' }
  61. '.jb-bar button.jb-prev:hover, .jb-bar button.jb-next:hover, .jb-bar .jb-close:hover' { background = 'var(--color-surface)' }
  62. '.jb-bar button.jb-prev' { gridArea = 'prev' }
  63. '.jb-bar button.jb-next' { gridArea = 'next' marginRight = 'max(.25rem, calc((100vw - var(--layout-column)) / 2))' }
  64. '.jb-bar media-player .mp-cover' { gridArea = 'cover' display = 'flex' alignItems = 'center' gap = '.6rem' margin = '0' minWidth = '0' paddingInline = 'max(var(--layout-gutter), calc((100% - var(--layout-column)) / 2))' cursor = 'pointer' }
  65. '.jb-bar media-player .mp-cover img' { width = '2.5rem' height = '2.5rem' }
  66. '.jb-bar media-player .mp-cover div' { minWidth = '0' }
  67. '.jb-bar media-player .mp-cover h2' { margin = '0' fontSize = '.95rem' lineHeight = '1.3' fontWeight = '600' overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' }
  68. '.jb-bar media-player .mp-cover p' { margin = '0' fontSize = '.8rem' overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' }
  69. '.jb-bar media-player mp-buttons .mp-play' { gridArea = 'buttons' background = 'transparent' }
  70. '.jb-bar media-player mp-buttons .mp-back, .jb-bar media-player mp-buttons .mp-forward, .jb-bar media-player mp-buttons .mp-mute, .jb-bar media-player mp-buttons .mp-speed, .jb-bar media-player mp-buttons .mp-times' { display = 'none' }
  71. '.jb-bar media-player mp-seek' { gridArea = 'seek' }
  72. '.jb-app:not(.open) .jb-bar media-player mp-seek' { height = '1rem' margin = '0' }
  73. '.jb-app:not(.open) .jb-bar media-player mp-seek .mp-track' { top = '.375rem' left = '0' right = '0' height = '.25rem' borderRadius = '0' }
  74. '.jb-app:not(.open) .jb-bar media-player mp-seek .mp-thumb' { display = 'none' }
  75. '.jb-app:not(.open) .jb-bar media-player > div:not(.mp-cover)' { display = 'none' }
  76. // the overlay: a grid of seven rows (close, cover and title, album, seek, the five controls, times / mute / speed, the queue) and seven columns (the five controls in the middle)
  77. '.jb-app.open .jb-bar' { display = 'grid' position = 'fixed' top = '0' left = '0' right = '0' bottom = '0' zIndex = '40' height = 'auto' background = 'var(--color-background)' gridTemplateColumns = '1fr 3rem 3rem 3.5rem 3rem 3rem 1fr' gridTemplateRows = 'auto auto auto auto auto auto minmax(0, 1fr)' gridTemplateAreas = 'none' alignItems = 'center' justifyItems = 'center' touchAction = 'none' paddingBottom = 'env(safe-area-inset-bottom)' }
  78. '.jb-app.open .jb-bar .jb-close' { display = 'inline-flex' gridColumn = '1 / -1' gridRow = '1' justifySelf = 'end' alignItems = 'center' justifyContent = 'center' minWidth = '2.75rem' minHeight = '2.75rem' margin = '.25rem .5rem 0' padding = '0' color = 'var(--color-text)' background = 'transparent' borderRadius = 'var(--radius-small)' }
  79. '.jb-app.open .jb-bar media-player .mp-cover' { gridArea = 'auto' gridColumn = '1 / -1' gridRow = '2' flexDirection = 'column' gap = '.6rem' width = '100%' paddingInline = '1.5rem' cursor = 'default' textAlign = 'center' }
  80. '.jb-app.open .jb-bar media-player .mp-cover img' { width = 'min(calc(100vw - 3rem), 32dvh)' height = 'min(calc(100vw - 3rem), 32dvh)' maxWidth = '100%' }
  81. '.jb-app.open .jb-bar media-player .mp-cover h2' { fontSize = '1.25rem' overflow = 'visible' whiteSpace = 'normal' textAlign = 'center' }
  82. '.jb-app.open .jb-bar media-player .mp-cover p' { fontSize = '1rem' whiteSpace = 'normal' textAlign = 'center' }
  83. '.jb-app.open .jb-bar .jb-album' { display = 'block' gridColumn = '1 / -1' gridRow = '3' margin = '.1rem 1.5rem 0' textAlign = 'center' color = 'var(--color-text-muted)' }
  84. '.jb-app.open .jb-bar media-player mp-seek' { gridArea = 'auto' gridColumn = '1 / -1' gridRow = '4' justifySelf = 'stretch' marginInline = '1.25rem' }
  85. '.jb-app.open .jb-bar button.jb-prev' { gridArea = 'auto' gridColumn = '2' gridRow = '5' }
  86. '.jb-app.open .jb-bar media-player mp-buttons .mp-back' { display = 'inline-flex' gridColumn = '3' gridRow = '5' }
  87. '.jb-app.open .jb-bar media-player mp-buttons .mp-play' { gridArea = 'auto' gridColumn = '4' gridRow = '5' background = 'var(--color-surface)' }
  88. '.jb-app.open .jb-bar media-player mp-buttons .mp-forward' { display = 'inline-flex' gridColumn = '5' gridRow = '5' }
  89. '.jb-app.open .jb-bar button.jb-next' { gridArea = 'auto' gridColumn = '6' gridRow = '5' marginRight = '0' }
  90. '.jb-app.open .jb-bar media-player mp-buttons .mp-times' { display = 'inline-flex' gridColumn = '2 / 5' gridRow = '6' justifySelf = 'start' marginLeft = '0' }
  91. '.jb-app.open .jb-bar media-player mp-buttons .mp-mute' { display = 'inline-flex' gridColumn = '5' gridRow = '6' }
  92. '.jb-app.open .jb-bar media-player mp-buttons .mp-speed' { display = 'inline-flex' gridColumn = '6' gridRow = '6' }
  93. '.jb-app.open .jb-bar media-player > div:not(.mp-cover)' { display = 'block' gridColumn = '1 / -1' gridRow = '7' justifySelf = 'stretch' alignSelf = 'stretch' minHeight = '0' overflowY = 'auto' padding = '0 .75rem .75rem' touchAction = 'pan-y' }
  94. '.jb-app.open .jb-bar media-player .mp-queue-title' { margin = '.5rem .25rem .1rem' fontSize = '.85rem' letterSpacing = '.04em' textTransform = 'uppercase' color = 'var(--color-text-muted)' }
  95. '.jb-app.open .jb-bar media-player ol.mp-queue li:nth-child(n+22)' { display = 'none' }
  96. '.jb-app.open .jb-bar media-player ol.mp-queue .mp-q-title' { overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' overflowWrap = 'normal' }
  97. '@media (min-width: 60rem)' {
  98. '.jb-app.playing' { '--jb-bar' = '4.75rem' }
  99. '.jb-app.open' { '--jb-bar' = '0rem' }
  100. 'jb-screen' { paddingTop = '1rem' }
  101. '.jb-app:not(.open) .jb-bar media-player mp-buttons .mp-times' { display = 'inline-flex' marginLeft = '.5rem' }
  102. '.jb-app.open .jb-bar' { top = 'var(--layout-header)' left = 'auto' width = '24rem' zIndex = '15' }
  103. '.jb-app.open jb-screen' { marginRight = '24rem' }
  104. '.jb-app.open .jb-bar media-player .mp-cover img' { width = 'min(18rem, 32dvh)' height = 'min(18rem, 32dvh)' }
  105. }
  106. }
  107. View {
  108. body {
  109. AppHeader { brand = "Jukebox"
  110. MainMenu { items = menu }
  111. }
  112. Sidebar { desktop = "false" MainMenu { items = menu } }
  113. div { class = barClass
  114. slot
  115. jbTick { on animationiteration(e) { emit jbMount(e) } }
  116. div { class = "jb-bar" on click(e) { emit jbBarClick(e) } on pointerdown(e) { emit jbDown(e) } on pointerup(e) { emit jbUp(e) } on pointercancel(e) { emit jbCancel(e) }
  117. button { type = "button" class = "jb-close" title = "Close" 'aria-label' = "Close" Icon { name = "close" size = "1.5em" } on click(e) { emit jbClose(e) } }
  118. MediaPlayer { queueLabel = "Next up" src = nowSrc kind = "audio" title = nowTitle artist = nowArtist cover = coverNow queue = nowQueue onPlay = pickedNext autoPlay = autoPlay }
  119. p { class = "jb-album" nowAlbum }
  120. button { type = "button" class = "jb-prev" title = "Previous song" 'aria-label' = "Previous song" Icon { name = "prevTrack" size = "1.5em" } on click(e) { emit jbPrevClick(e) } }
  121. button { type = "button" class = "jb-next" title = "Next song" 'aria-label' = "Next song" Icon { name = "nextTrack" size = "1.5em" } on click(e) { emit jbNextClick(e) } }
  122. }
  123. }
  124. }
  125. }
  126. // ---- the server's part -------------------------------------------------------------------------------------------------------
  127. // rows of a list for a screen: `{ total, offset, rows }`
  128. on server jbRows(ctx, offset, limit) {
  129. return rowsFor(ctx, offset, limit)
  130. }
  131. // the songs of a list from `index` on, as queue items
  132. on server jbQueue(ctx, index, count, id) {
  133. return queueFor(ctx, index, count, id)
  134. }
  135. // a new shuffle of a pool (`{ kind: 'favourites', minPlays }` or `{ kind: 'list', ctx }`): its context, with a seed from the clock
  136. on server jbShuffleCtx(spec) {
  137. return { kind = 'shuffle' seed = now() % 2147483000 spec = spec }
  138. }
  139. // the song was listened to long enough: the jukebox database adds 1 to its own counter (the same call as POST /api/played/<id>)
  140. on server jbPlayed(id) {
  141. return countPlay(id, now())
  142. }
  143. // ---- playing -----------------------------------------------------------------------------------------------------------------
  144. setBar = () => {
  145. barClass = 'jb-app' + (nowId != '' ? ' playing' : '') + (overlay == 'true' ? ' open' : '')
  146. }
  147. // the audio element of the media player
  148. audioEl = () => { return document.querySelector('media-player audio') }
  149. // show what plays (a queue item) and start it
  150. showNow = (item) => {
  151. nowSrc = item.src
  152. nowTitle = item.title
  153. nowArtist = item.artist
  154. nowAlbum = item.album
  155. nowCover = item.cover
  156. nowArt = item.art
  157. nowId = item.id
  158. nowIdx = item.idx
  159. heard = 0
  160. countedId = ''
  161. autoPlay = 'true'
  162. setBar()
  163. let ms = window.navigator.mediaSession
  164. if (ms != null) {
  165. ms.metadata = window.Reflect.construct(window.MediaMetadata, [ { title = item.title artist = item.artist album = item.album artwork = [ { src = item.art } ] } ])
  166. }
  167. }
  168. // a queue that starts at the song that plays
  169. fromPlace = (at) => {
  170. out = []
  171. let i = at
  172. while (i < nowQueue.length) {
  173. out.push(nowQueue[i])
  174. i = i + 1
  175. }
  176. return out
  177. }
  178. // the button or row that started a song gives the focus back (the player's own buttons keep it), so Space keeps meaning play / pause
  179. on jbUnfocus() {
  180. f = document.activeElement
  181. if (f != null && f.blur != null && f.closest('media-player') == null) { f.blur() }
  182. return null
  183. }
  184. // a song was tapped in a screen: its list becomes the queue
  185. on jbPlay(ctx, index, id) {
  186. emit jbUnfocus()
  187. items = emit server jbQueue(ctx, index, 40, id)
  188. if (items == null || items.length == 0) { return null }
  189. nowCtx = ctx
  190. nowQueue = items
  191. showNow(items[0])
  192. return null
  193. }
  194. // a shuffle was asked for: a new random order of the pool, played from its start
  195. on jbShuffle(spec) {
  196. emit jbUnfocus()
  197. ctx = emit server jbShuffleCtx(spec)
  198. emit jbPlay(ctx, 0)
  199. return null
  200. }
  201. // the place of a song in the queue, -1 when it is not there
  202. placeOf = (src) => {
  203. let at = -1
  204. let i = 0
  205. while (i < nowQueue.length) {
  206. if (nowQueue[i].src == src) { at = i }
  207. i = i + 1
  208. }
  209. return at
  210. }
  211. // the player picked a queue item (a tap on it, or the end of the song before): it becomes the first of the queue; the queue is refilled when fewer than 25 songs follow
  212. pickedNext = (src) => {
  213. at = placeOf(src)
  214. if (at < 0) { return }
  215. item = nowQueue[at]
  216. nowQueue = fromPlace(at)
  217. showNow(item)
  218. if (nowQueue.length < 25) {
  219. more = emit server jbQueue(nowCtx, item.idx, 40, item.id)
  220. if (more != null && more.length > 0) { nowQueue = more }
  221. }
  222. }
  223. // next song: the second of the queue, or a request when the list has run out of items here
  224. on jbNext() {
  225. if (nowId == '') { return null }
  226. if (nowQueue.length > 1) { pickedNext(nowQueue[1].src) return null }
  227. more = emit server jbQueue(nowCtx, nowIdx + 1, 40)
  228. if (more != null && more.length > 0) {
  229. nowQueue = more
  230. showNow(more[0])
  231. }
  232. return null
  233. }
  234. // previous song: after 3 seconds into a song the first press starts it again, then the song before it in the list
  235. on jbPrev() {
  236. if (nowId == '') { return null }
  237. let a = audioEl()
  238. if (a != null && a.currentTime > 3) { a.currentTime = 0 return null }
  239. if (nowIdx < 1) { if (a != null) { a.currentTime = 0 } return null }
  240. items = emit server jbQueue(nowCtx, nowIdx - 1, 40)
  241. if (items != null && items.length > 0) {
  242. nowQueue = items
  243. showNow(items[0])
  244. }
  245. return null
  246. }
  247. // the buttons give the focus back, so Space keeps meaning play / pause
  248. on jbNextClick(e) { e.target.closest('button').blur() emit jbNext() return null }
  249. on jbPrevClick(e) { e.target.closest('button').blur() emit jbPrev() return null }
  250. toggleNow = () => {
  251. let a = audioEl()
  252. if (a == null || nowId == '') { return }
  253. if (a.paused) { a.play() } else { a.pause() }
  254. }
  255. jumpBy = (seconds) => {
  256. let a = audioEl()
  257. if (a == null || nowId == '') { return }
  258. let t = a.currentTime + seconds
  259. if (t < 0) { t = 0 }
  260. if (a.duration > 0 && t > a.duration) { t = a.duration }
  261. a.currentTime = t
  262. }
  263. // ---- the overlay ---------------------------------------------------------------------------------------------------------------
  264. on jbOpen() {
  265. if (nowId == '') { return null }
  266. overlay = 'true'
  267. setBar()
  268. return null
  269. }
  270. on jbClose(e) {
  271. if (e.target != null && e.target.closest != null && e.target.closest('button') != null) { e.target.closest('button').blur() }
  272. overlay = 'false'
  273. setBar()
  274. return null
  275. }
  276. // a tap on the bar (not on a button or the seek line) opens the overlay
  277. on jbBarClick(e) {
  278. if (overlay == 'true') { return null }
  279. if (e.target.closest('button, mp-seek') != null) { return null }
  280. emit jbOpen()
  281. return null
  282. }
  283. // a swipe down over the cover or the title closes it (not over the buttons, the seek line or the queue, which scroll)
  284. on jbDown(e) {
  285. if (overlay != 'true' || e.target.closest('button, mp-seek, ol') != null) { swipeY = -1 return null }
  286. swipeY = e.clientY
  287. return null
  288. }
  289. on jbUp(e) {
  290. if (swipeY >= 0 && e.clientY - swipeY > 80) { overlay = 'false' setBar() }
  291. swipeY = -1
  292. return null
  293. }
  294. on jbCancel(e) { swipeY = -1 return null }
  295. // ---- counting, keys and the lock screen -----------------------------------------------------------------------------------
  296. // every second: the seconds the audio really played; at half the song or 4 minutes the server counts the play, once
  297. on jbTick() {
  298. let a = audioEl()
  299. if (a == null || nowId == '' || a.paused || a.ended) { return null }
  300. heard = heard + 1
  301. let need = 240
  302. if (a.duration > 0 && a.duration / 2 < 240) { need = a.duration / 2 }
  303. if (heard >= need && countedId != nowId) {
  304. countedId = nowId
  305. emit server jbPlayed(nowId)
  306. }
  307. return null
  308. }
  309. // the mount tick (the media player's trick): once the page is live the timer, the keys and the lock screen's buttons are set up
  310. on jbMount(e) {
  311. e.target.style.animationName = 'none'
  312. if (ticking == 'true') { return null }
  313. ticking = 'true'
  314. window.setInterval(() => { emit jbTick() }, 1000)
  315. let ms = window.navigator.mediaSession
  316. if (ms != null) {
  317. ms.setActionHandler('play', () => { toggleNow() })
  318. ms.setActionHandler('pause', () => { toggleNow() })
  319. ms.setActionHandler('previoustrack', () => { emit jbPrev() })
  320. ms.setActionHandler('nexttrack', () => { emit jbNext() })
  321. }
  322. return null
  323. }

Branches

Latest commits

  • 51358794jukebox JB14 (jukebox#14): the Songs screen opens sorted the way it was left (kept on the server in storage/ui.json), the sort control shows the sort the rows really have (selected options, autocomplete off); gate tests/jb14.mjsmre
  • cc68a063jukebox JB13 (jukebox#13): a tapped song plays the song that was tapped, found by its id in the list as it is now (not by its row number, which counted plays move); the queue goes on from its place there, the rows refresh on the tap; gate tests/jb13.mjs (songs by plays, favourites)mre
  • 88d3d5c1jukebox JB12b (jukebox#12): the scroll handle is big (2.75rem x 4rem, accent colour, grip) and drawn on every device, no media query; native bar hidden; gate tests/touch.mjs checks the drawn width with and without touchmre
  • b58e4495jukebox JB11 (jukebox#11): the next song starts in the ended event on the same audio element, so it also starts with the screen locked; gate tests/jb11.mjs (hidden tab, no frames)mre
  • 12a26233jukebox JB12 (jukebox#12): the long lists get a scroll handle a finger can use on touch screens (44 px tap area, slim look, drag through all rows), gate tests/touch.mjsmre
  • 0f2157a9jukebox JV1: onto Hybriel set-day27b: readBytes and stat for /stream and the mp3 tags (no dd, head or tail), startup fault exits 1, fs and mpackdb plugins re-vendored; songs with a comma in the title are indexed againmre
  • 63d0f2eejukebox ST1 (jukebox#2): styles of main, songs and search moved into their own Style blocks (styles.hl 81 to 8 rules, pixel-identical at 390 and 1280); artist and album wait for an hl:web fixmre
  • c5b8fde9jukebox JB3b: keyboard gap repro as a reportmre
  • 9daebb4bjukebox JB3b: shuffle, now-playing overlay, next and previous, play counting, media session, gates; keyboard left open (Hybriel gap)mre
  • 59c1373ejukebox JB3 (work in progress): albums without folder and with disc markers folded, compilations, duplicate songs, own play counter, server-side shuffle queuemre
  • 2a4cfc55jukebox: library screens (songs, artists, albums, artist, album, search, favourites), compact player bar, /stream with Range, thumbnails, virtual list vendored, ui gate and real-library checkmre
  • 93a44212jukebox: report, numbers of the full scan, notes on the index key rulemre
  • bf5167dajukebox: index keys without commas (mpackdb loses them after a reopen), comma fixture and gate checksmre
  • 28a82fa2jukebox: README, STATUS, LOG, DECISIONSmre
  • d13987dfjukebox: library scanner, ID3 reader, mpackdb database and JSON API, with fixtures and a gatemre