refactor folder structure

This commit is contained in:
2026-07-17 12:52:05 -04:00
parent dda0e738d4
commit 85d07f069e
80 changed files with 93 additions and 85 deletions

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/Accordion.tsx.
//

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/Alerts.tsx. The TSX exports one component per color
// (AlertWhite, AlertBlue, …); here that's Alert(color, header, children).

View File

@@ -43,8 +43,8 @@ import (
"strings"
"time"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// ColumnPosition is a cell/header alignment (mirrors the TSX 0|1|2 union).

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/Badges.tsx.

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/Buttons.tsx.

View File

@@ -5,7 +5,7 @@ import (
"strconv"
"time"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// Day-of-week and month labels (module-level in the TSX). Prefixed to stay

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/Cards.tsx. The `ui-card`/`no-flex` marker classes are kept so
// any page CSS targeting them still applies; baseline styling is Tailwind.

View File

@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// Port of web/kit/CellGrid.tsx — an editable, sortable spreadsheet-style grid.

View File

@@ -24,8 +24,8 @@ import (
"strconv"
"strings"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
type ChartKind string

View File

@@ -3,7 +3,7 @@ package webui
import (
"strconv"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// Port of web/kit/CrmTabs.tsx.

View File

@@ -22,8 +22,8 @@ import (
"strings"
"time"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// -- Tailwind class strings, verbatim from DatePicker.tsx (cmd/twcss scans these) --

View File

@@ -5,7 +5,7 @@ package webui
import (
"strings"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// IsNonProdEnv reports whether env is a non-empty, non-production deployment

View File

@@ -3,8 +3,8 @@ package webui
import (
"strconv"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Floating is the live controller for one floating panel — the Go answer to the

View File

@@ -4,8 +4,8 @@ import (
"strconv"
"strings"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Port of web/kit/Forms.tsx. Reactive accessors collapse to plain values, and

View File

@@ -3,8 +3,8 @@ package webui
import (
"strings"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// The three form controls the first pass left out, plus the two input masks. All of

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// ---- input masks ----

View File

@@ -5,7 +5,7 @@ import (
"strings"
"testing"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// fakeEvent is a vdom.Event with no DOM behind it — enough to drive Floating's

View File

@@ -6,7 +6,7 @@ import (
"strings"
"unicode"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// Port of web/kit/FuzzyMatch.tsx.

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/General.tsx. Anchor components render plain <a href>; the app
// wires SPA navigation on top (e.g. its layout nav uses Button/OnClick).

View File

@@ -3,7 +3,7 @@ package webui
import (
"strconv"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// Port of web/kit/Icons.tsx. The TSX resolves FontAwesome glyphs from an

View File

@@ -8,7 +8,7 @@ import (
"strings"
"testing"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// An unregistered icon name renders as an empty box: right size, no glyph. Nothing

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of jsruntime/uikit/Menu.tsx, rebuilt on the Floating controller (floating.go).
//

View File

@@ -3,8 +3,8 @@ package webui
import (
"strconv"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Port of jsruntime/uikit/Modal.tsx.

View File

@@ -27,7 +27,7 @@
// }
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
const popoverCls = "bg-surface rounded-default shadow-lg border border-line"

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/PrettyTable.tsx.
//

View File

@@ -2,7 +2,7 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// RemoteFlash is the trigger/signal pair from createRemoteFlash: Fire() shows
// the flash, Visible() reports whether it is currently shown, and Clear() hides

View File

@@ -2,7 +2,7 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
const sidebarNavRoot = "bg-surface rounded-default shadow-sm border border-line py-2"
const sidebarNavList = "list-none m-0 p-0"

View File

@@ -4,8 +4,8 @@ import (
"strconv"
"strings"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Port of FormSignaturePad (jsruntime/uikit/Forms.tsx) — freehand signing.

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// The pad's value IS the markup it shows — that is the whole reason it draws into an SVG

View File

@@ -4,7 +4,7 @@ import (
"strconv"
"strings"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// Port of web/kit/Tabs.tsx.

View File

@@ -1,8 +1,8 @@
package webui
import (
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Dark mode.

View File

@@ -3,8 +3,8 @@ package webui
import (
"strconv"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Port of jsruntime/uikit/Toast.tsx.

View File

@@ -1,6 +1,6 @@
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Port of web/kit/ToggleSwitch.tsx. Reactive accessors collapse to plain values.

View File

@@ -35,7 +35,7 @@
// trigger lived inside, which yanked the trigger out from under the cursor.
package webui
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
const tooltipCls = "bg-neutral-800 text-white text-sm px-2.5 py-1.5 rounded-default shadow-lg max-w-80 relative"

View File

@@ -3,8 +3,8 @@ package webui
import (
"strconv"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// Port of jsruntime/uikit/Tutorial.tsx — a guided tour: it dims the page, cuts a

View File

@@ -16,8 +16,8 @@ import (
"strconv"
"strings"
"kjol/vdom"
"kjol/wasmruntime"
"kjol/wasmruntime/vdom"
)
// ── the albersUsa projection (ported from d3-geo; scale 1280, translate [480,300]) ──────

View File

@@ -46,7 +46,7 @@ package webui
import (
"strings"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// cx joins non-empty class fragments with single spaces (a tiny clsx). Trailing