askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
site_pages.json · 1.2 KB · 21 lines
| 1 | { |
| 2 | "name": "site_pages", |
| 3 | "title": "Site Pages", |
| 4 | "version": 1, |
| 5 | "description": "One published page of a website: its site name and page slug make its address (/s/{site}/{slug}; slug index is /s/{site}), html is the whole page as its builder exported it. The author's HTML is never trusted by the server: it is served sandboxed by site_sites_page.", |
| 6 | "fields": [ |
| 7 | {"name": "id"}, |
| 8 | {"name": "site", "type": "text", "required": true, "label": "Site", |
| 9 | "help": "lowercase letters, digits and hyphens", |
| 10 | "validation": {"min_length": 1, "max_length": 40, "pattern": "^[a-z0-9][a-z0-9-]*$"}}, |
| 11 | {"name": "slug", "type": "text", "required": true, "label": "Page", "default": "index", |
| 12 | "help": "the page's address in the site; index is the home page", |
| 13 | "validation": {"min_length": 1, "max_length": 80, "pattern": "^[a-z0-9][a-z0-9-]*$"}}, |
| 14 | {"name": "title", "type": "text", "label": "Title", "validation": {"max_length": 200}}, |
| 15 | {"name": "html", "type": "text", "required": true, "label": "HTML", |
| 16 | "validation": {"max_length": 2000000}}, |
| 17 | {"name": "is_public", "type": "boolean", "default": "false", "label": "Public", |
| 18 | "help": "anyone can see it; otherwise only you"}, |
| 19 | {"name": "owner_id", "type": "text", "label": "Owner"} |
| 20 | ] |
| 21 | } |