Add js web stuff to landing page + documentation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
@@ -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:
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user