chore(glass): scrub dev-process/hostname refs from tracked comments
Code review (public-repo rule): the GlassTuner + index.css/App.tsx comments named the prod hostname and dev-process jargon (UAT/HMR/dev ports/epic), which ship in the public bundle. Genericised the comments — no behaviour change.
This commit is contained in:
parent
f0330fa57f
commit
9f664a7ca6
3 changed files with 9 additions and 11 deletions
|
|
@ -1,13 +1,12 @@
|
|||
import { useEffect, useMemo, useState } from "react";
|
||||
|
||||
/**
|
||||
* DEV-ONLY live appearance tuner. Mounted at the App root so it stays reachable on every page.
|
||||
* It writes the glass CSS custom properties (index.css `:root`) inline on <html> for instant,
|
||||
* build-free feedback, and persists to localStorage so tweaks survive an F5 during UAT.
|
||||
* Local-only live appearance tuner. Mounted at the app root so it's reachable on every page; it
|
||||
* writes the glass CSS custom properties (index.css `:root`) inline on the document element for
|
||||
* instant, build-free feedback, and persists to localStorage.
|
||||
*
|
||||
* Gated to localhost/127.0.0.1 so it renders on the :8080 UAT build and :5173 HMR but NEVER on
|
||||
* prod (siftlode.b1fr0st.eu). It is a scaffold for the glass-consistency epic: dial in values
|
||||
* here, hit "Copy CSS", hand them over to bake into index.css — then this component is deleted.
|
||||
* Only active on localhost, so it never appears in a hosted build. A scratch tool for dialling in
|
||||
* the surface values — "Copy CSS" exports them to paste into index.css.
|
||||
*/
|
||||
const DEV_TUNER =
|
||||
typeof window !== "undefined" && /^(localhost|127\.0\.0\.1)$/.test(window.location.hostname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue