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,7 +1,7 @@
package app
import (
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -1,7 +1,7 @@
package app
import (
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
)
// The C layer's documentation.
@@ -471,7 +471,7 @@ const unityTUSnippet = `// The whole layer, as one translation unit — the only
// compiler. Order matters: it is textual inclusion, not linking.
#include "base/base_inc.c" // core, arena, strings. Everything below needs it.
// The five backends declare their helpers `+ "`internal`" + ` (file-static), so they
// The five backends declare their helpers ` + "`internal`" + ` (file-static), so they
// belong in the SAME TU as the dispatch that calls them.
#include "lexer/lexer.c"
#include "lexer/lexer_c.c"
@@ -488,7 +488,7 @@ const unityTUSnippet = `// The whole layer, as one translation unit — the only
// ...and then your own program, compiled with all of it:
#include "app/app.c"`
const baseCoreSnippet = `// The three meanings of `+ "`static`" + ` in C, given three names.
const baseCoreSnippet = `// The three meanings of ` + "`static`" + ` in C, given three names.
#define internal static // a function private to this file
#define global static // a variable owned by this translation unit
#define local_persist static // a local that survives the call

View File

@@ -5,8 +5,8 @@
package app
import (
"kjol/rsc"
"kjol/vdom"
"kjol/wasmruntime/rsc"
"kjol/wasmruntime/vdom"
)
// ServerCounter is a generated client stub for the server component of the same name.

View File

@@ -4,8 +4,8 @@ import (
"strings"
"time"
. "kjol/vdom"
"kjol/wasmruntime"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -5,7 +5,7 @@ import (
"strings"
"kjol/httputil"
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -4,7 +4,7 @@ import (
"strings"
"kjol/lexer" // syntax highlighting for the code blocks — a string in, HTML out
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
// The host API is dual-build — real under js/wasm, no-ops natively — so neutral page
// code can measure the browser and still server-render. This page uses it for exactly
// one thing: reading the clock when hydration commits.

View File

@@ -1,7 +1,7 @@
package app
import (
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -3,7 +3,7 @@ package app
import (
"strings"
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -15,7 +15,7 @@ import (
"strconv"
"strings"
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -1,7 +1,7 @@
// Code generated by wasmgen. DO NOT EDIT.
package app
import "kjol/vdom"
import "kjol/wasmruntime/vdom"
// Routes maps each //gowasm:page path to its instantiated render function.
func Routes(d Deps) map[string]func() *vdom.VNode {

View File

@@ -4,7 +4,7 @@
package app
import "kjol/rsc"
import "kjol/wasmruntime/rsc"
func init() {
rsc.Register("ServerCounter", ServerCounter)

View File

@@ -6,7 +6,7 @@ import (
"strconv"
"time"
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"kjol/vdom"
"kjol/wasmruntime/vdom"
"kjol/webui"
)

View File

@@ -1,7 +1,7 @@
package app
import (
. "kjol/vdom"
. "kjol/wasmruntime/vdom"
ui "kjol/webui"
)

View File

@@ -4,7 +4,7 @@ import (
"strings"
"testing"
"kjol/vdom"
"kjol/wasmruntime/vdom"
)
// The two-runtime demo.s whole claim is that its two panes are ONE function: the live