Files
marqdo/examples/browser-app
cflmyandCursor 8fbf617e05 feat(wasm): route E host effects for author-zero-JS frontend
Expand the official bridge with style/focus/list/navigate/storage/ws/
fetch_all/interval effects; relax the design rule to forbid only
author-written JS. Add browser-app demo and L1 list_html/dom_patch keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 09:06:21 +08:00
..

browser-app(路线 E)

作者零业务 JS:官方 bridge 自启;交互在 app.mq.md。

覆盖:set_html 列表、storage 草稿、navigate+popstate、interval、事件 委托。

# 仓库根
cargo build -p marqdo --release
./target/release/marqdo wasm build -o examples/browser-app
# 若 build 覆盖 bridge,可再:cp crates/marqdo-wasm/js/marqdo-bridge.js examples/browser-app/

cd examples/browser-app
python3 -m http.server 8766
# http://127.0.0.1:8766/

原则:禁止作者手写 JS;官方桥内机制(列表装配、路由、存储等)允许。见 browser-wasm-e.md。