Add js web stuff to landing page + documentation

This commit is contained in:
2026-07-14 10:33:12 -04:00
parent fec8ef4a3e
commit 02a6dc6c48
435 changed files with 69567 additions and 1522 deletions

View File

@@ -12,7 +12,7 @@ ui.Alert(ui.AlertGreen, "Done", vdom.Text("Saved."))
ui.ToggleSwitch(on, func(v bool){ on = v }, "Notifications", "", false, "")
```
See the runnable **`/kit`** demo page in `cmd/examples/go-wasm-web` (app nav → "UI Kit").
See the runnable **`/wasm/kit`** demo page in `cmd/kjol-web` (Layers → Kjol Wasm Web).
## Conventions

View File

@@ -1,4 +1,4 @@
// Port of web/uikit/AutoTable.tsx — the whole of it, in one file, as the original
// Port of jsruntime/uikit/AutoTable.tsx — the whole of it, in one file, as the original
// was. The banners below divide it into sections:
//
// - Render shell the column model, and the header/body/pagination markup

View File

@@ -2,7 +2,7 @@ package webui
import "kjol/vdom"
// Port of web/uikit/Menu.tsx, rebuilt on the Floating controller (floating.go).
// Port of jsruntime/uikit/Menu.tsx, rebuilt on the Floating controller (floating.go).
//
// # Why the API is a controller with methods
//

View File

@@ -7,7 +7,7 @@ import (
"kjol/wasmruntime"
)
// Port of web/uikit/Modal.tsx.
// Port of jsruntime/uikit/Modal.tsx.
//
// A modal is a *controller*, not a pure function: it owns the open flag, its slot
// on the shared modal stack (so Escape closes one layer per press), the refs it

View File

@@ -1,4 +1,4 @@
// Port of web/uikit/Popovers.tsx, rebuilt on the Floating controller (floating.go).
// Port of jsruntime/uikit/Popovers.tsx, rebuilt on the Floating controller (floating.go).
//
// The first Go port dropped everything that made a popover a popover: measured
// placement (it used static absolute utilities off a `relative inline-block`

View File

@@ -8,7 +8,7 @@ import (
"kjol/wasmruntime"
)
// Port of FormSignaturePad (web/uikit/Forms.tsx) — freehand signing.
// Port of FormSignaturePad (jsruntime/uikit/Forms.tsx) — freehand signing.
//
// Two deliberate departures from the TSX.
//

View File

@@ -7,7 +7,7 @@ import (
"kjol/wasmruntime"
)
// Port of web/uikit/Toast.tsx.
// Port of jsruntime/uikit/Toast.tsx.
//
// Two ways in, depending on who owns the queue:
//

View File

@@ -1,4 +1,4 @@
// Port of web/uikit/Tooltips.tsx, rebuilt on the Floating controller (floating.go).
// Port of jsruntime/uikit/Tooltips.tsx, rebuilt on the Floating controller (floating.go).
//
// The first Go port degraded the tooltip into a pure-CSS `group-hover` reveal:
// static placement classes instead of measurement, no flip/shift, no portal, no

View File

@@ -7,7 +7,7 @@ import (
"kjol/wasmruntime"
)
// Port of web/uikit/Tutorial.tsx — a guided tour: it dims the page, cuts a
// Port of jsruntime/uikit/Tutorial.tsx — a guided tour: it dims the page, cuts a
// spotlight hole around the step's target element, and floats a popover card with
// step navigation.
//