Notes
Four small modules I keep going back to. Each note is the short version: what it does and the one detail that matters.
-
Toast system
Subscribes to the client's push channel and turns skin events into toasts in the bottom-right corner, stacked with a fixed gap and dismissed after five seconds.
Each toast carries the skin artwork as a dimmed background layer; a debug hook lives at
window.SYNC.pushso events can be fired without waiting for a real queue. -
Lava background
Ten radial-gradient blobs inside one blurred container — the whole effect is two CSS properties on the parent plus a float animation per blob.
Built once in
createModal()and reused by every dialog: because the blur lives on the container, the blobs only move, which keeps it cheap on the GPU. -
logger
createLogger(import.meta.url)prints a coloured[module/path]prefix, so a line from a nested shim is recognisable at a glance.The palette is fixed per module in one table: debug goes grey, info takes the module colour, warn is yellow and error is red — no configuration at call sites.
-
LCUX shims
Four thin wrappers over the game client socket: current mode and queue id, current champion, swiftplay selection and owned skins.
Queue ids are grouped into classic, ARAM and swiftplay sets, and everything is re-exported through
window.gamestatewithon…Changesubscriptions.