Repository navigation
feat(workers): restyle now.svg to match SiteDoing - #41
Merged
Merged
Conversation
Swap Georgia for mono type, add the 8px status dot, and inline process.iconUrl as a PNG data URI so Camo can show the app icon.
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
The full media line stays on title/aria-label; only the drawn text truncates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub profile README already embeds
https://api.froq.me/now.svg/now-light.svg/now-dark.svg. This restyles that Camo SVG so it reads like froq.meSiteDoinginstead of a Georgia serif text line.Visual
Matches
app/components/SiteDoing.vue:ui-monospacestack — LXGW is not available inside Camo)--inkwhen working, hollow--mutedwhen sleepingxsmuted copy, one row, 16×16 app icon beside the process name正在 {app} · media/在 {app} 中眠了/眠了Light/dark hex still come from site tokens (
--ink/--colored-ink/--muted) viaNOW_THEMES. Size is 640×24 so it still fits a GitHub README column; long app/media labels ellipsize in the drawn text (aria-label/<title>keep the full line).now.svg light and dark rows: status dot, mono copy, inlined app icon
Camo / icons
<image href>to arbitrary hosts is unreliable behind Camo. The Worker fetchesprocess.iconUrland inlines adata:image/png;base64,…(other rasters if the magic bytes match). Failures are text-only — never an external image URL. CORS*andCache-Control: max-age=60are unchanged.Deploy
PR only. Still manual Wrangler (
pnpm worker:deploy). This does not ship toapi.froq.meby itself.Review
workers/froq-api/src/nowSvg.tstests/now-svg.test.tsworkers/froq-api/README.mdSite UI is not touched.
Verification
pnpm exec vp test tests/now-svg.test.ts— 28 passedpnpm --dir workers/froq-api exec wrangler deploy --dry-run— packages (70.73 KiB)To show artifacts inline, enable in settings.