refactor folder structure
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package webui
|
||||
|
||||
import "kjol/vdom"
|
||||
import "kjol/wasmruntime/vdom"
|
||||
|
||||
// Port of web/kit/Accordion.tsx.
|
||||
//
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package webui
|
||||
|
||||
import "kjol/vdom"
|
||||
import "kjol/wasmruntime/vdom"
|
||||
|
||||
// Port of web/kit/Badges.tsx.
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package webui
|
||||
|
||||
import "kjol/vdom"
|
||||
import "kjol/wasmruntime/vdom"
|
||||
|
||||
// Port of web/kit/Buttons.tsx.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of web/kit/CellGrid.tsx — an editable, sortable spreadsheet-style grid.
|
||||
|
||||
@@ -24,8 +24,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
type ChartKind string
|
||||
|
||||
@@ -3,7 +3,7 @@ package webui
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of web/kit/CrmTabs.tsx.
|
||||
|
||||
@@ -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) --
|
||||
|
||||
@@ -5,7 +5,7 @@ package webui
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// IsNonProdEnv reports whether env is a non-empty, non-production deployment
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// ---- input masks ----
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"strings"
|
||||
"unicode"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of web/kit/FuzzyMatch.tsx.
|
||||
|
||||
@@ -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).
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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).
|
||||
//
|
||||
|
||||
@@ -3,8 +3,8 @@ package webui
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of jsruntime/uikit/Modal.tsx.
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
// }
|
||||
package webui
|
||||
|
||||
import "kjol/vdom"
|
||||
import "kjol/wasmruntime/vdom"
|
||||
|
||||
const popoverCls = "bg-surface rounded-default shadow-lg border border-line"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package webui
|
||||
|
||||
import "kjol/vdom"
|
||||
import "kjol/wasmruntime/vdom"
|
||||
|
||||
// Port of web/kit/PrettyTable.tsx.
|
||||
//
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of FormSignaturePad (jsruntime/uikit/Forms.tsx) — freehand signing.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of web/kit/Tabs.tsx.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package webui
|
||||
|
||||
import (
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Dark mode.
|
||||
|
||||
@@ -3,8 +3,8 @@ package webui
|
||||
import (
|
||||
"strconv"
|
||||
|
||||
"kjol/vdom"
|
||||
"kjol/wasmruntime"
|
||||
"kjol/wasmruntime/vdom"
|
||||
)
|
||||
|
||||
// Port of jsruntime/uikit/Toast.tsx.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]) ──────
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user