Release 2.7.0: executable handbooks and native user-site workflows

This commit is contained in:
cflmy committed 2026-11-10 17:03:06 +08:00
1 parent aa0c4d0f55
commit d9aef957f7
562 files changed
+21064 -20387

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
---
markup: occlusion
type: web
view: main
route: /about
title: About · Marqdo Web
import:
layout: ../components/index.mq.md
intro: ../components/intro.mq.md
articles: ../components/articles.mq.md
component: ext/web/component/index.mq.md
form: ext/data/form.mq.md
table: lib/table.mq.md
---
This Document explicitly declares /about. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.
## main
| 返回 | 类型 | 说明 |
|---|---|---|
| result | list | Page-specific content and request resources within the shared frame |
Assembly reads Markdown with fs.read and creates pure descriptors. This explanation page requires no database query or form reference. Follow the layout imports to change one region without copying a page shell.
Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.
We **body = [Read this page's terminal introduction](intro.nodes(name="about"))**.
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=False))*.
+31
View File
@@ -0,0 +1,31 @@
---
markup: occlusion
type: web
view: main
route: /admin
title: Admin · Marqdo Web
import:
layout: ../components/index.mq.md
intro: ../components/intro.mq.md
articles: ../components/articles.mq.md
component: ext/web/component/index.mq.md
form: ext/data/form.mq.md
table: lib/table.mq.md
---
This Document explicitly declares /admin. Its introduction ends in a Markdown leaf and its frame is shared. The serving entry enforces an actual admin role gate before the desk renders. No startup page function initializes the database or starts another listener.
## main
| 返回 | 类型 | 说明 |
|---|---|---|
| result | list | Page-specific content and request resources within the shared frame |
Assembly reads Markdown with fs.read and creates pure descriptors. The server resolves the mounted form using actual session CSRF and return context. It does not embed a stale startup token or a separate copy of validation rules.
The desk keeps its own navigation and footer and has no public side rail. Its form intentionally shares the public article submission endpoint; gating presentation alone would not make that endpoint private, and the example does not claim otherwise.
We **body = [Read this page's terminal introduction](intro.nodes(name="desk"))**.
We **selected = [Reference the same explicitly mounted article form](form.reference(id="article"))** and **controls = [Retain current request CSRF and validation context](component.resource(value=`selected`, slot="article-form"))** and **body = [Keep instructions before the actual form](table.concat(a=`body`, b=`controls`))**.
We **records = [Describe the same current article list](articles.cards())** and **body = [Retain the actual record resource](table.concat(a=`body`, b=`records`))**.
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=True))*.
+30
View File
@@ -0,0 +1,30 @@
---
markup: occlusion
type: web
view: main
route: /new
title: New article · Marqdo Web
import:
layout: ../components/index.mq.md
intro: ../components/intro.mq.md
articles: ../components/articles.mq.md
component: ext/web/component/index.mq.md
form: ext/data/form.mq.md
table: lib/table.mq.md
---
This Document explicitly declares /new. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.
## main
| 返回 | 类型 | 说明 |
|---|---|---|
| result | list | Page-specific content and request resources within the shared frame |
Assembly reads Markdown with fs.read and creates pure descriptors. The server resolves the mounted form using actual session CSRF and return context. It does not embed a stale startup token or a separate copy of validation rules.
Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.
We **body = [Read this page's terminal introduction](intro.nodes(name="new"))**.
We **selected = [Reference the same explicitly mounted article form](form.reference(id="article"))** and **controls = [Retain current request CSRF and validation context](component.resource(value=`selected`, slot="article-form"))** and **body = [Keep instructions before the actual form](table.concat(a=`body`, b=`controls`))**.
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=False))*.
+30
View File
@@ -0,0 +1,30 @@
---
markup: occlusion
type: web
view: main
route: /post/{slug}
title: Article · Marqdo Web
import:
layout: ../components/index.mq.md
intro: ../components/intro.mq.md
articles: ../components/articles.mq.md
component: ext/web/component/index.mq.md
form: ext/data/form.mq.md
table: lib/table.mq.md
---
This Document explicitly declares /post/{slug}. Its introduction ends in a Markdown leaf and its frame is shared. Request resources retain their own data or submission responsibilities. No startup page function initializes the database or starts another listener.
## main
| 返回 | 类型 | 说明 |
|---|---|---|
| result | list | Page-specific content and request resources within the shared frame |
Assembly reads Markdown with fs.read and creates pure descriptors. The actual path capture selects the current database record at request time; full Markdown body is separate from list summary, and query strings cannot replace the route slug.
Page structure stays stable while request-dependent resources observe current data and identity. A missing required resource remains a diagnostic rather than a fake successful response.
We **body = [Read this page's terminal introduction](intro.nodes(name="post"))**.
We **records = [Describe the current full-body slug match](articles.detail())** and **body = [Retain the actual record resource](table.concat(a=`body`, b=`records`))**.
Return *[Place the page in its selected recursive frame](layout.frame(body=`body`, management=False))*.