feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bfb10d172b
commit
b5c07385e9
324 files changed
+4572
-4339
No files matched your search
@@ -6,4 +6,4 @@
|
||||
|------|-----|------|
|
||||
| Marqdo | https://github.com | |
|
||||
|
||||
**`foot`**
|
||||
*`foot`*
|
||||
@@ -11,4 +11,4 @@ Static top links for the shell.
|
||||
| New | /new | |
|
||||
| Admin | /admin | |
|
||||
|
||||
**`nav`**
|
||||
*`nav`*
|
||||
@@ -7,4 +7,4 @@
|
||||
| Notes | / | |
|
||||
| Docs | https://github.com | |
|
||||
|
||||
**`side`**
|
||||
*`side`*
|
||||
@@ -8,7 +8,7 @@
|
||||
| title | text | false |
|
||||
| body | text | true |
|
||||
|
||||
**`fields`**
|
||||
*`fields`*
|
||||
|
||||
## seed
|
||||
|
||||
@@ -19,4 +19,4 @@
|
||||
| 1 | Hello Marqdo | First article from a GFM table. |
|
||||
| 2 | Code as docs | The page table is the program. |
|
||||
|
||||
**`rows`**
|
||||
*`rows`*
|
||||
@@ -8,13 +8,13 @@ import fs:lib/fs.mq.md
|
||||
|
||||
## open
|
||||
|
||||
*store = > web.db url="sqlite:data/site.db"*
|
||||
*fields = > articles.schema*
|
||||
**store = > web.db url="sqlite:data/site.db"**
|
||||
**fields = > articles.schema**
|
||||
> `store`.init name=articles fields=`fields`
|
||||
*rows = > store.select table="articles" limit=1*
|
||||
**rows = > store.select table="articles" limit=1**
|
||||
1. `rows`
|
||||
**store**
|
||||
*store*
|
||||
2. *
|
||||
*seed = > articles.seed*
|
||||
**seed = > articles.seed**
|
||||
> `store`.insert table=articles rows=`seed`
|
||||
**store**
|
||||
*store*
|
||||
@@ -46,28 +46,28 @@ Article create form (design §5.5): field table + rules table.
|
||||
| title | max:120 | Title is too long |
|
||||
| body | max:8000 | Body is too long |
|
||||
|
||||
*store = > db.open*
|
||||
*page = > web.page title="Marqdo Web Site" intro="<h1>Web Site</h1><p>Tables + class methods.</p>"*
|
||||
*page = > page.compose_components components=home*
|
||||
*page = > page.compose_main main=index*
|
||||
**store = > db.open**
|
||||
**page = > web.page title="Marqdo Web Site" intro="<h1>Web Site</h1><p>Tables + class methods.</p>"**
|
||||
**page = > page.compose_components components=home**
|
||||
**page = > page.compose_main main=index**
|
||||
|
||||
About page: same shell, different intro (no main bind).
|
||||
|
||||
*about = > web.page title="About" intro="<h1>About</h1><p>Marqdo web = tables + class methods.</p>"*
|
||||
*about = > about.compose_components components=home*
|
||||
**about = > web.page title="About" intro="<h1>About</h1><p>Marqdo web = tables + class methods.</p>"**
|
||||
**about = > about.compose_components components=home**
|
||||
|
||||
*article_form = > web.form table="articles" action="insert"*
|
||||
*article_form = > article_form.fields fields=article_fields*
|
||||
*article_form = > article_form.rules rules=article_rules*
|
||||
**article_form = > web.form table="articles" action="insert"**
|
||||
**article_form = > article_form.fields fields=article_fields**
|
||||
**article_form = > article_form.rules rules=article_rules**
|
||||
|
||||
New article: form embedded in the page main slot (design §5.5.4).
|
||||
|
||||
*new = > web.page title="New article" intro="<h1>New article</h1><p>Form lives in the main slot.</p>"*
|
||||
*new = > new.compose_components components=home*
|
||||
*new = > new.compose_form id="article" form=article_form*
|
||||
**new = > web.page title="New article" intro="<h1>New article</h1><p>Form lives in the main slot.</p>"**
|
||||
**new = > new.compose_components components=home**
|
||||
**new = > new.compose_form id="article" form=article_form**
|
||||
|
||||
*app = > web.app page=page db=store admin=True host="127.0.0.1" port=18081*
|
||||
*app = > app.route path="/about" page=about*
|
||||
*app = > app.route path="/new" page=new*
|
||||
*app = > app.static dir="public" mount="/static"*
|
||||
**app = > web.app page=page db=store admin=True host="127.0.0.1" port=18081**
|
||||
**app = > app.route path="/about" page=about**
|
||||
**app = > app.route path="/new" page=new**
|
||||
**app = > app.static dir="public" mount="/static"**
|
||||
> `app`.listen
|
||||
@@ -7,7 +7,7 @@
|
||||
| background | #ffffff |
|
||||
| border-bottom | 1px solid #e7e5e4 |
|
||||
|
||||
**`topnav`**
|
||||
*`topnav`*
|
||||
|
||||
## side_panel
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|------|-----|
|
||||
| background | #f5f5f4 |
|
||||
|
||||
**`side_panel`**
|
||||
*`side_panel`*
|
||||
|
||||
## card_title
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
| font-size | 1.15rem |
|
||||
| margin | 0 0 0.35rem |
|
||||
|
||||
**`card_title`**
|
||||
*`card_title`*
|
||||
|
||||
## card_body
|
||||
|
||||
@@ -39,4 +39,4 @@
|
||||
| color | #57534e |
|
||||
| margin | 0 |
|
||||
|
||||
**`card_body`**
|
||||
*`card_body`*
|
||||
Reference in new issue
Block a user