Commit Graph

6 Commits

Author SHA1 Message Date
Adam H
0c92b2370c web: Light / Dark / Auto theme (#53)
* web: add a terminal colour theme option (Auto, Dark, Light)

* web: add an option to turn off the Terminal window's see-through glass

* web: default the terminal colours to Auto

* web: add a page colour theme option (Auto, Dark, Light)

* web: give the chrome's materials in style.css a light variant

* web: give the components' chrome classes a light variant

* web: follow the theme in the charts, the alerts' caution badge and the Docs window

* web: fix the light theme's Dock glyphs, Resume card veil and Browser toolbar hover

* web: read the shown theme from the store and type the option field names

* web: darken the light theme's faint and error colours to 4.5:1 on tints

* web: give the light terminal mid-tone colours that read under black text

* web: lighten the light terminal's green, yellow and cyan for black text on them

* web: use the dark terminal's green in the light terminal

* web: give the light terminal's green, yellow and cyan 4.5:1 on white, as its red, blue and magenta

* web: give the light theme a white status bar on iOS

* web: make the Docs window opaque

* web: post a theme change to the Docs window instead of reloading it

* docs: upgrade undocs nightly, for the Docs window's theme messages

---------

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2026-11-28 22:34:15 +01:00
Pooya Parsa
d80c033106 net: drop the default Wisp server from the SDK
The SDK named the project's Wisp server (DEFAULT_WISP_SERVERS), and the
Node entry sent Origin: http://localhost to pass that server's allow
list (NODE_WISP_HEADERS). The server accepts only the page's origins,
so both are gone: wispBackend() takes the caller's server, and Node
sends handshake headers only when `headers` asks for them. The page
keeps wss://wisp.unkernel.dev:6680/ as its own default (web/src/net.ts).

The live Wisp test takes its server from UNKERNEL_TEST_WISP.
2026-11-27 22:24:02 +00:00
Pooya Parsa
287e41464f net: document Wisp's limits, add a lookup option, move to wisp.unkernel.dev
The README and the SDK docs now say what a guest sees over Wisp: no
half-close (a client that waits for the server to see end of file
hangs), placeholder addresses for every name, no connect
acknowledgement. wispBackend() takes a `lookup` resolver for real
addresses, and its fake address table now evicts the least recently
used name instead of wrapping. The default server is
wss://wisp.unkernel.dev:6680/.

The live Wisp test waited for its marker anywhere in the screen, so the
shell's echo of the command satisfied it; it now waits for the marker at
the start of a line.

Refs #44
2026-11-27 22:15:52 +00:00
Pooya Parsa
fd78ca9ad0 docs: serve cross-origin isolated, so the page's Docs window embeds them in every browser 2026-11-27 21:34:12 +00:00
Pooya Parsa
53e1fe6bb6 docs: add credits 2026-11-27 21:32:46 +00:00
Pooya Parsa
cb784c6e2c chore: init docs 2026-11-27 21:11:51 +00:00