Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 signup: the person chooses the password and name on the confirm page 83c7aa6 2 weeks, 5 days ago History
views.json · 2.6 KB · 98 lines
1{
2 "name": "views",
3 "title": "Views",
4 "version": 1,
5 "description": "Views as records: a universal renderer reads one view's blocks and draws the page. Editing this record edits the page -- no deploy, no hand-written mount.",
6 "fields": [
7 {
8 "name": "id"
9 },
10 {
11 "name": "title",
12 "type": "text",
13 "required": true,
14 "label": "Title",
15 "validation": {
16 "min_length": 1,
17 "max_length": 200
18 }
19 },
20 {
21 "name": "route",
22 "type": "text",
23 "label": "Route",
24 "help": "optional site path, e.g. /stuck; served via site_routes. May carry one capture segment (e.g. /contacts/{contact_id:uuid}, docs/site-routing.md's pattern syntax) -- the captured value resolves as $record_id in this view's detail/related/thread blocks."
25 },
26 {
27 "name": "layout",
28 "type": "enum",
29 "label": "Layout",
30 "default": "single",
31 "enum": [
32 "single",
33 "two_column",
34 "grid"
35 ]
36 },
37 {
38 "name": "blocks",
39 "type": "textarea",
40 "label": "Blocks",
41 "help": "JSON list of block descriptors, validated server-side. Each block has a \"kind\" of list, form, detail, related, thread, count, aggregate, markdown, or reader -- unknown kinds render as a placeholder, never as raw markup. The `object` kind renders a hand-written object inline ({\"kind\":\"object\",\"object_id\":\"site_my_panel\"}): the escape hatch that keeps a generated page from being all-or-nothing, so a view can stay generated everywhere except the one part that genuinely needs code. The object runs through the ordinary execution path, so permissions and audit still apply -- it widens what a page can SHOW, never what a viewer may see.",
42 "validation": {
43 "max_length": 32768
44 }
45 },
46 {
47 "name": "owner_id",
48 "type": "text",
49 "label": "Owner"
50 },
51 {
52 "name": "is_public",
53 "type": "boolean",
54 "label": "Public",
55 "default": "false"
56 },
57 {
58 "name": "pinned",
59 "type": "boolean",
60 "label": "Pinned",
61 "default": "false",
62 "help": "pinned views appear in the nav Apps switcher"
63 },
64 {
65 "name": "created_at",
66 "type": "datetime",
67 "label": "Created",
68 "read_only": true
69 }
70 ],
71 "forms": {
72 "default": {
73 "fields": [
74 "title",
75 "route",
76 "layout",
77 "blocks",
78 "is_public",
79 "pinned"
80 ]
81 }
82 },
83 "views": {
84 "list_mode": "table",
85 "list_fields": [
86 "title",
87 "route",
88 "layout",
89 "pinned"
90 ]
91 },
92 "search": {
93 "fields": [
94 "title",
95 "route"
96 ]
97 }
98}