gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit14abde3b14abde3bjukebox: records: Atlas's records moved to worldapi-conductor/archivemre14abde3b/components/main.hl

19.8 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. import { showOf } from '../lib/dups.hl'
  21. slot = null
  22. menu = [ { label = 'Songs' href = '/' current = false } { label = 'Artists' href = '/artists' } { label = 'Albums' href = '/albums' } { label = 'Search' href = '/search' } ]
  23. // 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)
  24. String nowSrc = ''
  25. String nowTitle = ''
  26. String nowArtist = ''
  27. String nowAlbum = ''
  28. String nowCover = ''
  29. String nowArt = ''
  30. String nowId = ''
  31. String autoPlay = 'false'
  32. Hybrid nowQueue = []
  33. Hybrid nowCtx = {}
  34. Number nowIdx = 0
  35. String overlay = 'false'
  36. String barClass = 'jb-app'
  37. String coverNow = overlay == 'true' ? nowArt : nowCover
  38. Number heard = 0
  39. String countedId = ''
  40. Number swipeY = -1
  41. String ticking = 'false'
  42. Style {
  43. // the player bar's height (0 until a song was picked); the screens take what is left of the viewport
  44. '.jb-app' { '--jb-bar' = '0rem' }
  45. '@keyframes jb-mount' { 'from' { opacity = '.999' } to { opacity = '1' } }
  46. jbTick { display = 'block' height = '0' animation = 'jb-mount 100ms linear infinite' }
  47. // a screen: as high as the viewport under the header minus the bar; its list scrolls inside, the header and the bar stay
  48. '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'
  49. '> virtual-list' { flex = '1 1 auto' height = 'auto' minHeight = '0' marginInline = '-.6rem' }
  50. }
  51. // THE PLAYER BAR, fixed at the bottom, compact: the song progress bar across the top is 1.375rem (22 px), 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. 'media-player' { display = 'contents'
  57. '.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'
  58. div { minWidth = '0' }
  59. p { margin = '0' fontSize = '.8rem' overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' }
  60. }
  61. 'mp-buttons' { display = 'contents'
  62. '.mp-play' { gridArea = 'buttons' background = 'transparent' }
  63. '.mp-back' { display = 'none' }
  64. '.mp-forward' { display = 'none' }
  65. '.mp-mute' { display = 'none' }
  66. '.mp-speed' { display = 'none' }
  67. '.mp-times' { display = 'none' }
  68. }
  69. 'mp-seek' { gridArea = 'seek' }
  70. }
  71. '.jb-close' { display = 'none'
  72. hover { background = 'var(--color-surface)' }
  73. }
  74. '.jb-album' { display = 'none' }
  75. 'button.jb-prev' { 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)' gridArea = 'prev'
  76. hover { background = 'var(--color-surface)' }
  77. }
  78. '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)' gridArea = 'next' marginRight = 'max(.25rem, calc((100vw - var(--layout-column)) / 2))'
  79. hover { background = 'var(--color-surface)' }
  80. }
  81. }
  82. // the plain tags inside the media player (a quoted plain tag nested under a quoted selector is dropped by the build, repro SN/repro-1): flat, as before
  83. '.jb-bar media-player audio' { display = 'none' }
  84. '.jb-bar media-player .mp-cover img' { width = '2.5rem' height = '2.5rem' }
  85. '.jb-bar media-player .mp-cover h2' { margin = '0' fontSize = '.95rem' lineHeight = '1.3' fontWeight = '600' overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' }
  86. '.jb-app.playing' { '--jb-bar' = '4.625rem'
  87. '.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 = '1.375rem 1fr' gridTemplateAreas = '"seek seek seek seek" "cover prev buttons next"' alignItems = 'center' }
  88. }
  89. '.jb-app:not(.open)' { '.jb-bar' { 'media-player' {
  90. 'mp-seek' { height = '1.375rem' margin = '0'
  91. '.mp-track' { top = '0' left = '0' right = '0' height = '1.375rem' borderRadius = '0' }
  92. '.mp-thumb' { display = 'none' }
  93. }
  94. '> div:not(.mp-cover)' { display = 'none' }
  95. } } }
  96. // 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)
  97. '.jb-app.open' { '--jb-bar' = '0rem'
  98. '.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)'
  99. '.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)' }
  100. 'media-player' {
  101. '.mp-cover' { gridArea = 'auto' gridColumn = '1 / -1' gridRow = '2' flexDirection = 'column' gap = '.6rem' width = '100%' paddingInline = '1.5rem' cursor = 'default' textAlign = 'center'
  102. p { fontSize = '1rem' whiteSpace = 'normal' textAlign = 'center' }
  103. }
  104. 'mp-seek' { gridArea = 'auto' gridColumn = '1 / -1' gridRow = '4' justifySelf = 'stretch' height = '1.375rem' marginInline = '1.25rem'
  105. '.mp-track' { top = '0' height = '1.375rem' }
  106. '.mp-thumb' { display = 'none' }
  107. }
  108. 'mp-buttons' {
  109. '.mp-back' { display = 'inline-flex' gridColumn = '3' gridRow = '5' }
  110. '.mp-play' { gridArea = 'auto' gridColumn = '4' gridRow = '5' background = 'var(--color-surface)' }
  111. '.mp-forward' { display = 'inline-flex' gridColumn = '5' gridRow = '5' }
  112. '.mp-times' { display = 'inline-flex' gridColumn = '2 / 5' gridRow = '6' justifySelf = 'start' marginLeft = '0' }
  113. '.mp-mute' { display = 'inline-flex' gridColumn = '5' gridRow = '6' }
  114. '.mp-speed' { display = 'inline-flex' gridColumn = '6' gridRow = '6' }
  115. }
  116. '> 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' }
  117. '.mp-queue-title' { margin = '.5rem .25rem .1rem' fontSize = '.85rem' letterSpacing = '.04em' textTransform = 'uppercase' color = 'var(--color-text-muted)' }
  118. 'ol.mp-queue' {
  119. 'li:nth-child(n+22)' { display = 'none' }
  120. '.mp-q-title' { overflow = 'hidden' textOverflow = 'ellipsis' whiteSpace = 'nowrap' overflowWrap = 'normal' }
  121. }
  122. }
  123. '.jb-album' { display = 'block' gridColumn = '1 / -1' gridRow = '3' margin = '.1rem 1.5rem 0' textAlign = 'center' color = 'var(--color-text-muted)' }
  124. 'button.jb-prev' { gridArea = 'auto' gridColumn = '2' gridRow = '5' }
  125. 'button.jb-next' { gridArea = 'auto' gridColumn = '6' gridRow = '5' marginRight = '0' }
  126. }
  127. }
  128. // the big cover takes what the screen has over once the controls and the queue (36rem) have their room: on a short screen (a tablet on its side, a phone on its side) it gets small or goes away, so the queue keeps room for rows
  129. '.jb-app.open .jb-bar media-player .mp-cover img' { width = 'clamp(0px, calc(100dvh - 36rem), min(calc(100vw - 3rem), 32dvh))' height = 'clamp(0px, calc(100dvh - 36rem), min(calc(100vw - 3rem), 32dvh))' maxWidth = '100%' }
  130. '.jb-app.open .jb-bar media-player .mp-cover h2' { fontSize = '1.25rem' overflow = 'visible' whiteSpace = 'normal' textAlign = 'center' }
  131. // a very short screen: the cover and the album line leave, the title, the controls and the queue stay
  132. '@media (max-height: 41rem)' {
  133. '.jb-app.open' { '.jb-bar' { '.jb-album' { display = 'none' } } }
  134. '.jb-app.open .jb-bar media-player .mp-cover img' { display = 'none' }
  135. }
  136. '@media (min-width: 60rem)' {
  137. '.jb-app.playing' { '--jb-bar' = '5.125rem' }
  138. 'jb-screen' { paddingTop = '1rem' }
  139. '.jb-app:not(.open)' { '.jb-bar' { 'media-player' { 'mp-buttons' { '.mp-times' { display = 'inline-flex' marginLeft = '.5rem' } } } } }
  140. '.jb-app.open' { '--jb-bar' = '0rem'
  141. '.jb-bar' { top = 'var(--layout-header)' left = 'auto' width = '24rem' zIndex = '15' }
  142. 'jb-screen' { marginRight = '24rem' }
  143. }
  144. '.jb-app.open .jb-bar media-player .mp-cover img' { width = 'clamp(0px, calc(100dvh - 36rem), min(18rem, 32dvh))' height = 'clamp(0px, calc(100dvh - 36rem), min(18rem, 32dvh))' }
  145. }
  146. }
  147. View {
  148. body {
  149. AppHeader { brand = "Jukebox"
  150. MainMenu { items = menu }
  151. }
  152. Sidebar { desktop = "false" MainMenu { items = menu } }
  153. div { class = barClass
  154. slot
  155. jbTick { on animationiteration(e) { emit jbMount(e) } }
  156. 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) }
  157. button { type = "button" class = "jb-close" title = "Close" 'aria-label' = "Close" Icon { name = "close" size = "1.5em" } on click(e) { emit jbClose(e) } }
  158. MediaPlayer { queueLabel = "Next up" src = nowSrc kind = "audio" title = nowTitle artist = nowArtist cover = coverNow queue = nowQueue onPlay = pickedNext autoPlay = autoPlay }
  159. p { class = "jb-album" nowAlbum }
  160. 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) } }
  161. 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) } }
  162. }
  163. }
  164. }
  165. }
  166. // ---- the server's part -------------------------------------------------------------------------------------------------------
  167. // rows of a list for a screen: `{ total, offset, rows }`
  168. on server jbRows(ctx, offset, limit) {
  169. return rowsFor(ctx, offset, limit)
  170. }
  171. // the songs of a list from `index` on, as queue items
  172. on server jbQueue(ctx, index, count, id, step) {
  173. return queueFor(ctx, index, count, id, step)
  174. }
  175. // a new shuffle of a pool (`{ kind: 'favourites', minPlays }` or `{ kind: 'list', ctx }`): its context, with a seed from the clock
  176. on server jbShuffleCtx(spec) {
  177. return { kind = 'shuffle' seed = now() % 2147483000 spec = spec }
  178. }
  179. // the song was listened to long enough: the jukebox database adds 1 to its own counter (the same call as POST /api/played/<id>).
  180. // The open screen is told the new count and writes that row itself.
  181. on server jbPlayed(id) {
  182. c = countPlay(id, now())
  183. if (c != null) { emit client jbPlays(c.id, showOf(c.id, c.filePlays).plays) }
  184. return c
  185. }
  186. // ---- playing -----------------------------------------------------------------------------------------------------------------
  187. setBar = () => {
  188. barClass = 'jb-app' + (nowId != '' ? ' playing' : '') + (overlay == 'true' ? ' open' : '')
  189. }
  190. // the audio element of the media player
  191. audioEl = () => { return document.querySelector('media-player audio') }
  192. // show what plays (a queue item) and start it
  193. showNow = (item) => {
  194. nowSrc = item.src
  195. nowTitle = item.title
  196. nowArtist = item.artist
  197. nowAlbum = item.album
  198. nowCover = item.cover
  199. nowArt = item.art
  200. nowId = item.id
  201. nowIdx = item.idx
  202. heard = 0
  203. countedId = ''
  204. autoPlay = 'true'
  205. setBar()
  206. let ms = window.navigator.mediaSession
  207. if (ms != null) {
  208. ms.metadata = window.Reflect.construct(window.MediaMetadata, [ { title = item.title artist = item.artist album = item.album artwork = [ { src = item.art } ] } ])
  209. }
  210. }
  211. // a queue that starts at the song that plays
  212. fromPlace = (at) => {
  213. out = []
  214. let i = at
  215. while (i < nowQueue.length) {
  216. out.push(nowQueue[i])
  217. i = i + 1
  218. }
  219. return out
  220. }
  221. // 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
  222. on jbUnfocus() {
  223. f = document.activeElement
  224. if (f != null && f.blur != null && f.closest('media-player') == null) { f.blur() }
  225. return null
  226. }
  227. // a song was tapped in a screen: its list becomes the queue
  228. on jbPlay(ctx, index, id) {
  229. emit jbUnfocus()
  230. items = emit server jbQueue(ctx, index, 40, id)
  231. if (items == null || items.length == 0) { return null }
  232. nowCtx = ctx
  233. nowQueue = items
  234. showNow(items[0])
  235. return null
  236. }
  237. // a shuffle was asked for: a new random order of the pool, played from its start
  238. on jbShuffle(spec) {
  239. emit jbUnfocus()
  240. ctx = emit server jbShuffleCtx(spec)
  241. emit jbPlay(ctx, 0)
  242. return null
  243. }
  244. // the place of a song in the queue, -1 when it is not there
  245. placeOf = (src) => {
  246. let at = -1
  247. let i = 0
  248. while (i < nowQueue.length) {
  249. if (nowQueue[i].src == src) { at = i }
  250. i = i + 1
  251. }
  252. return at
  253. }
  254. // 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
  255. pickedNext = (src) => {
  256. at = placeOf(src)
  257. if (at < 0) { return }
  258. item = nowQueue[at]
  259. nowQueue = fromPlace(at)
  260. showNow(item)
  261. if (nowQueue.length < 25) {
  262. more = emit server jbQueue(nowCtx, item.idx, 40, item.id)
  263. if (more != null && more.length > 0) { nowQueue = more }
  264. }
  265. }
  266. // next song: the second of the queue, or a request when the list has run out of items here
  267. on jbNext() {
  268. if (nowId == '') { return null }
  269. if (nowQueue.length > 1) { pickedNext(nowQueue[1].src) return null }
  270. more = emit server jbQueue(nowCtx, nowIdx + 1, 40, nowId, 1)
  271. if (more != null && more.length > 0) {
  272. nowQueue = more
  273. showNow(more[0])
  274. }
  275. return null
  276. }
  277. // previous song: after 3 seconds into a song the first press starts it again, then the song before it in the list
  278. on jbPrev() {
  279. if (nowId == '') { return null }
  280. let a = audioEl()
  281. if (a != null && a.currentTime > 3) { a.currentTime = 0 return null }
  282. if (nowIdx < 1) { if (a != null) { a.currentTime = 0 } return null }
  283. items = emit server jbQueue(nowCtx, nowIdx - 1, 40, nowId, -1)
  284. if (items != null && items.length > 0) {
  285. nowQueue = items
  286. showNow(items[0])
  287. }
  288. return null
  289. }
  290. // the buttons give the focus back, so Space keeps meaning play / pause
  291. on jbNextClick(e) { e.target.closest('button').blur() emit jbNext() return null }
  292. on jbPrevClick(e) { e.target.closest('button').blur() emit jbPrev() return null }
  293. toggleNow = () => {
  294. let a = audioEl()
  295. if (a == null || nowId == '') { return }
  296. if (a.paused) { a.play() } else { a.pause() }
  297. }
  298. jumpBy = (seconds) => {
  299. let a = audioEl()
  300. if (a == null || nowId == '') { return }
  301. let t = a.currentTime + seconds
  302. if (t < 0) { t = 0 }
  303. if (a.duration > 0 && t > a.duration) { t = a.duration }
  304. a.currentTime = t
  305. }
  306. // ---- the overlay ---------------------------------------------------------------------------------------------------------------
  307. on jbOpen() {
  308. if (nowId == '') { return null }
  309. overlay = 'true'
  310. setBar()
  311. return null
  312. }
  313. on jbClose(e) {
  314. if (e.target != null && e.target.closest != null && e.target.closest('button') != null) { e.target.closest('button').blur() }
  315. overlay = 'false'
  316. setBar()
  317. return null
  318. }
  319. // a tap on the bar (not on a button or the seek line) opens the overlay
  320. on jbBarClick(e) {
  321. if (overlay == 'true') { return null }
  322. if (e.target.closest('button, mp-seek') != null) { return null }
  323. emit jbOpen()
  324. return null
  325. }
  326. // a swipe down over the cover or the title closes it (not over the buttons, the seek line or the queue, which scroll)
  327. on jbDown(e) {
  328. if (overlay != 'true' || e.target.closest('button, mp-seek, ol') != null) { swipeY = -1 return null }
  329. swipeY = e.clientY
  330. return null
  331. }
  332. on jbUp(e) {
  333. if (swipeY >= 0 && e.clientY - swipeY > 80) { overlay = 'false' setBar() }
  334. swipeY = -1
  335. return null
  336. }
  337. on jbCancel(e) { swipeY = -1 return null }
  338. // ---- counting, keys and the lock screen -----------------------------------------------------------------------------------
  339. // every second: the seconds the audio really played; at half the song or 4 minutes the server counts the play, once
  340. on jbTick() {
  341. let a = audioEl()
  342. if (a == null || nowId == '' || a.paused || a.ended) { return null }
  343. heard = heard + 1
  344. let need = 240
  345. if (a.duration > 0 && a.duration / 2 < 240) { need = a.duration / 2 }
  346. if (heard >= need && countedId != nowId) {
  347. countedId = nowId
  348. emit server jbPlayed(nowId)
  349. }
  350. return null
  351. }
  352. // 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
  353. on jbMount(e) {
  354. e.target.style.animationName = 'none'
  355. if (ticking == 'true') { return null }
  356. ticking = 'true'
  357. window.setInterval(() => { emit jbTick() }, 1000)
  358. let ms = window.navigator.mediaSession
  359. if (ms != null) {
  360. ms.setActionHandler('play', () => { toggleNow() })
  361. ms.setActionHandler('pause', () => { toggleNow() })
  362. ms.setActionHandler('previoustrack', () => { emit jbPrev() })
  363. ms.setActionHandler('nexttrack', () => { emit jbNext() })
  364. }
  365. return null
  366. }

Branches

Latest commits

  • 14abde3bjukebox: records: Atlas's records moved to worldapi-conductor/archivemre
  • 0433e9a8jukebox: records: gitoria remote added and pushedmre
  • 1722d707jukebox: records: repo creation handed to Gitoriamre
  • b42e7dfbjukebox: conductor records (CONDUCTOR.md, STATUS.md), old STATUS archivedmre
  • 1b0d0bc1jukebox: a startup error prints its message before exit 1 (hybriel#247)mre
  • b19c478bjukebox JB18 (jukebox#17): onto Hybriel set-day31 (b287cd82, contains the SIGPIPE fix 6d2ca454): plugins/core and plugins/web re-vendored, bin/ from the set; a client that closes /stream while it is written no longer kills the server (90 aborted streams survived, the old bin died with exit 141 on the first)mre
  • 73867a2ejukebox#2: Style blocks in the language's nested form (rules named after the View's own elements, pseudo-classes nested, merged duplicates); the same CSS rules, the pages look the samemre
  • 06c548d6jukebox JB15: report, log linemre
  • 980859cbjukebox JB15 (jukebox#15): the now-playing overlay on a short screen (tablet or phone on its side) gave the queue 12 to 100 px because the big cover took the room; the cover now shrinks with the screen height and goes away under 41rem, the queue keeps 3+ rows; gate tests/jb15.mjs at 8 sizesmre
  • 9efc40ffjukebox#12 #14: Grok session 1793246574527-181160mre
  • 7d58b36ejukebox JB13 (jukebox#13): Next and Previous ask for the songs after / before the current song's id in the current order, not for place + 1; gate tests/jb13.mjs checks Next with the queue down to one song after the order changedmre
  • 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