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>
19 lines
429 B
Markdown
19 lines
429 B
Markdown
---
|
|
title: db/index
|
|
description: Open sqlite, init articles, seed once.
|
|
import web:ext/web/web.mq.md
|
|
import articles:articles.mq.md
|
|
---
|
|
|
|
## open
|
|
|
|
*store = > web.db url="sqlite:data/site-net.db"*
|
|
*fields = > articles.schema*
|
|
> `store`.init name=articles fields=`fields`
|
|
*rows = > store.select table="articles" limit=1*
|
|
1. `rows`
|
|
**store**
|
|
2. *
|
|
*seed = > articles.seed*
|
|
> `store`.insert table=articles rows=`seed`
|
|
**store** |