gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb42e7dfbb42e7dfbjukebox: conductor records (CONDUCTOR.md, STATUS.md), old STATUS archivedmreb42e7dfb/components/icons/icons.hl

3.2 KB

  1. // icons.hl — THE ICONS, one source for every component and app: `Icon { name = "link" }` is an inline SVG (24 x 24 box, drawn with
  2. // stroke = currentColor, so it takes the colour of the text around it; aria-hidden — the button or link that holds it carries the
  3. // label and title). A component that needs icons imports this file by path (`import Icon from '../icons/icons.hl'`); Hybriel
  4. // includes an imported module once per app however many components import it (mission F4: measured, reports/F4-icons.md).
  5. // Names: bold italic code link heading ul ol block table undo redo file close play pause skipBack skipForward prevTrack nextTrack volume volumeOff fullscreen. An unknown name draws an empty box. A new icon is one more
  6. // entry in `shapes` (a single path `d`; circles and rectangles written as arcs).
  7. // Size: 1.25em square by default; the host sizes it with `icon-svg svg` / its own rule, or `size = "1.5em"`.
  8. String name = ''
  9. String size = '1.25em'
  10. Hybrid shapes = {
  11. bold = 'M7 4h6a4 4 0 0 1 0 8H7zM7 12h7a4 4 0 0 1 0 8H7z'
  12. italic = 'M19 4h-9M14 20H5M15 4L9 20'
  13. code = 'M8 7l-5 5 5 5M16 7l5 5-5 5'
  14. link = 'M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'
  15. heading = 'M6 4v16M18 4v16M6 12h12'
  16. ul = 'M9 6h11M9 12h11M9 18h11M3.3 6a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M3.3 12a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0M3.3 18a1.2 1.2 0 1 0 2.4 0a1.2 1.2 0 1 0-2.4 0'
  17. ol = 'M10 6h10M10 12h10M10 18h10M4 4.5h1.5V9M3.5 9h3M3.5 14.5c.5-.8 2.8-.9 2.8.6 0 1.1-2.8 2.2-2.8 3.4h3'
  18. block = 'M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM8 10l-2 2 2 2M16 10l2 2-2 2'
  19. table = 'M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM3 10h18M3 15h18M9 10v10'
  20. undo = 'M9 14L4 9l5-5M4 9h10a6 6 0 0 1 0 12h-3'
  21. redo = 'M15 14l5-5-5-5M20 9H10a6 6 0 0 0 0 12h3'
  22. close = 'M6 6l12 12M18 6L6 18'
  23. play = 'M8 5.2l11 6.8-11 6.8z'
  24. pause = 'M7 5h3.5v14H7zM13.5 5H17v14h-3.5z'
  25. skipBack = 'M6.34 6.34A8 8 0 1 0 12 4M14.5 1.5L12 4l2.5 2.5'
  26. skipForward = 'M17.66 6.34A8 8 0 1 1 12 4M9.5 1.5L12 4 9.5 6.5'
  27. prevTrack = 'M6 5v14M19 5.5v13L9 12z'
  28. nextTrack = 'M18 5v14M5 5.5v13L15 12z'
  29. volume = 'M3.5 9.5v5h3.5l5 4v-13l-5 4zM15 9.8a4.2 4.2 0 0 1 0 4.4M17.5 7.5a7.5 7.5 0 0 1 0 9'
  30. volumeOff = 'M3.5 9.5v5h3.5l5 4v-13l-5 4zM16 9.7l4.8 4.6M20.8 9.7l-4.8 4.6'
  31. fullscreen = 'M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'
  32. file = 'M21 12.5l-8.5 8.5a5.5 5.5 0 0 1-7.8-7.8l9-9a3.7 3.7 0 0 1 5.2 5.2l-9 9a1.8 1.8 0 0 1-2.6-2.6l8.2-8.2'
  33. }
  34. // thin extra strokes drawn inside an icon (the "10" of replay / forward 10), 1.5 wide instead of 2
  35. Hybrid labels = {
  36. skipBack = 'M9.2 10.6l1.6-1v5.4M13 11.2a1.4 1.4 0 0 1 2.8 0v2.6a1.4 1.4 0 0 1-2.8 0z'
  37. skipForward = 'M9.2 10.6l1.6-1v5.4M13 11.2a1.4 1.4 0 0 1 2.8 0v2.6a1.4 1.4 0 0 1-2.8 0z'
  38. }
  39. String shape = shapes[name] == null ? '' : shapes[name]
  40. String label = labels[name] == null ? '' : labels[name]
  41. Style {
  42. 'icon-svg' { display = 'inline-flex' flex = 'none' lineHeight = '0' pointerEvents = 'none' }
  43. 'icon-svg svg' { fill = 'none' stroke = 'currentColor' strokeWidth = '2' strokeLinecap = 'round' strokeLinejoin = 'round' }
  44. }
  45. View {
  46. iconSvg {
  47. svg { viewBox = "0 0 24 24" width = size height = size 'aria-hidden' = "true" focusable = "false"
  48. path { d = shape }
  49. path { d = label 'stroke-width' = "1.5" }
  50. }
  51. }
  52. }

Branches

Latest commits

  • 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
  • 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