Add the network-extension wave to lib/net and the web ABI plugin:
- lib/net cookie_parse / multipart_parse host primitives (EN/ZH)
- plugins/web session store + /admin login gate + WebSocket client/server
- ext/web author surface (EN/ZH) for session, auth, ws
- form update flow and page-level validation echo tests
- fix string escapes: \xHH, \u{...}, unknown escapes kept verbatim
- map Chinese component slots (导航/侧栏/页脚) so sidebar renders
- resolve relative static/db paths against the entry script dir (entry_dir)
- new tutorial chapter 14, EN/ZH example sites, and gold tests
Co-authored-by: Cursor <cursoragent@cursor.com>
767 B
767 B
title: web entry-dir relative path smoke description: Relative db path resolves against the entry script dir, not cwd. import web:ext/web/web.mq.md
main
store = > web.db url="sqlite:entrydir-fixtures/data/entrydir.db"
schema =
| 字段 | 类型 |
|---|---|
| title | text |
store.init name=items fields=schema
one =
| 行 | title |
|---|---|
| 1 | hello |
store.insert table=items rows=one
rows = > store.select table="items" limit=10
n = > len value=rows
n== 1
print text=entrydir-db-ok
print text=entrydir-db-fail