You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Web-first UI and app shell primitives for Vix.cpp applications.
4
4
5
5
`vix::ui` is a small UI foundation layer built on top of the Vix template engine.
6
-
It helps Vix.cpp applications describe views, render HTML responses, manage assets, build simple forms, and prepare future browser, desktop, and mobile app shells.
6
+
It helps Vix.cpp applications describe views, render HTML responses, manage assets, build forms, create live UI fragments, and run server-rendered interfaces inside app shells.
7
7
8
8
It is not a replacement for `vix::template_`.
9
9
It is a higher-level layer that makes template-based web UI development cleaner.
10
10
11
+
## Version
12
+
13
+
Current module version:
14
+
15
+
```txt
16
+
0.5.0
17
+
```
18
+
11
19
## Goals
12
20
13
-
Vix UI starts with a simple direction:
21
+
Vix UI follows a simple direction:
14
22
15
23
- keep Vix web-first
16
24
- reuse the existing Vix template engine
17
25
- provide small UI primitives
26
+
- support server-rendered UI first
18
27
- avoid a heavy frontend framework
19
-
- prepare desktop/mobile shells without forcing native UI complexity early
28
+
- prepare desktop/mobile shells through WebView containers
29
+
- make dashboards, admin panels and internal tools easier to build
20
30
21
31
The first target is server-rendered web UI.
22
32
23
-
Later, the same web UI foundation can be used by desktop or mobile shells through WebView-based app containers.
33
+
The same UI foundation can then be used by desktop or mobile shells through WebView-based app containers.
It does not depend on a specific HTTP response type. Higher-level Vix integrations can copy its body, status and content type into a real HTTP response.
134
+
135
+
It does not depend on a specific HTTP response type. Higher-level Vix integrations can copy its body, status, and content type into a real HTTP response.
120
136
121
137
## Assets
122
138
@@ -165,22 +181,120 @@ Validation errors can be attached to the form and to individual fields:
165
181
form.add_error("email", "Email is required.");
166
182
```
167
183
184
+
## Live UI fragments
185
+
186
+
`Fragment` represents a small server-rendered HTML piece.
187
+
188
+
It can be returned from a route, embedded in a template, or sent through a WebSocket-friendly update payload.
`AppShell` is currently a lightweight shell descriptor.
276
+
`AppShell` is the public shell facade for Vix UI applications.
171
277
172
-
It stores configuration, validates the shell settings, tracks running/stopped state, and exposes the effective target URL.
278
+
It stores configuration, validates shell settings, can start a local server process, wait for server readiness, and open the configured target URL through the selected backend.
0 commit comments