Changeset b5bae24 in Klonkt for src/server.js


Ignore:
Timestamp:
06/14/2026 01:25:19 AM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
9b36f45
Parents:
c88783e
Message:

reconcile: commit uncommitted live /srv state (playback fix + prefetch, SF favicon, smooth scroll, scripts)

The live working tree /srv/prutfolio was ahead of the bare repo with direct
server edits that had never been committed back. The deploy hook does
checkout -f main, so the next deploy would have reverted the 3 modified
tracked files to f33db01 and lost this work:

  • audio-player.js: robust playback — retry+backoff on network hiccups (no longer skipping immediately) + next-track prefetch (downloads the next track while the current one plays -> ended->next swaps instantly, covering the autoplay lapse). Fix for the sometimes-next-doesn't-play bug.
  • server.js: favicon mark p -> SF (SoundFabrics rebrand). shell.ejs: audio-player.js cache buster ?v=5 -> ?v=6 + favicon ?v=sf.
  • Plus previously untracked project files committed: lenis.min.js + smooth-scroll.js (not yet wired), scripts/ (v9 import/migration), deploy/ docs (DEPLOY.md/backup.sh/nginx/verify.ps1), .well-known/assetlinks.json. audio-player.js.bak.20260614 deliberately NOT committed.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    rc88783e rb5bae24  
    218218function _renderFavicon(res, accent) {
    219219  const safeAccent = /^#[0-9a-fA-F]{3,8}$/.test(accent) ? accent : '#c2410c';
    220   // Simple PrutFolio mark: a rounded square in the site accent + lowercase 'p'
    221   // (display font is server-side unavailable, so we use a generic serif fallback)
     220  // Site mark: rounded square in the site accent + bold white 'SF'
    222221  const svg = `<?xml version="1.0" encoding="UTF-8"?>
    223222<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
    224223  <rect width="64" height="64" rx="14" fill="${safeAccent}"/>
    225224  <text x="50%" y="50%" dy="0.36em" text-anchor="middle"
    226         font-family="Georgia, 'Times New Roman', serif"
    227         font-size="44" font-weight="700" fill="#fff">p</text>
     225        font-family="Arial, Helvetica, sans-serif"
     226        font-size="30" font-weight="800" letter-spacing="-1" fill="#fff">SF</text>
    228227</svg>`;
    229228  res.set('Content-Type', 'image/svg+xml');
Note: See TracChangeset for help on using the changeset viewer.