Polish admin UI and add app.static file serving.

Admin gets a sidebar shell, flash messages, empty states, and forms in-chrome; listen can nest a public directory under /static (or a custom mount).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 09:26:30 +08:00
1 parent a0c56fa352
commit db6158e9e2
16 files changed
+605 -95

No files matched your search

+1
View File
@@ -0,0 +1 @@
Marqdo web static fixture.
+31
View File
@@ -0,0 +1,31 @@
---
title: web static smoke
description: Offline app.static registration (no listen).
> ext/web/web.mq.md
> lib/json.mq.md
---
# main
*`home` = > web.page title="Home" *
*`app` = > web.app page=`home` host=127.0.0.1 port=18081 *
*`app` = > `app`.static dir=web-fixtures/public mount=/static *
*`dir` = > json.get value=`app` key=static_dir *
1. `dir` == "web-fixtures/public"
> print text=dir-ok
2. *
> print text=dir-fail
*`mount` = > json.get value=`app` key=static_mount *
1. `mount` == "/static"
> print text=mount-ok
2. *
> print text=mount-fail
*`app2` = > `app`.static dir=assets mount=/assets *
*`m2` = > json.get value=`app2` key=static_mount *
1. `m2` == "/assets"
> print text=custom-ok
2. *
> print text=custom-fail
+16
View File
@@ -1358,6 +1358,22 @@ route-ok",
);
}
#[test]
fn ext_web_static_smoke() {
let status = Command::new("cargo")
.args(["build", "-p", "marqdo_plugin_web"])
.current_dir(env!("CARGO_MANIFEST_DIR"))
.status()
.expect("build web plugin");
assert!(status.success(), "failed to build marqdo_plugin_web");
assert_out(
"tests/ext/web-static-smoke.mq.md",
"dir-ok
mount-ok
custom-ok",
);
}
#[test]
fn ext_agent_framework_smoke() {
let status = Command::new("cargo")