Cotton code
66 lines · 2.0 KB · JSONRaw
{"format_version":1,"id":"everything","list_route":"/everything","setup":true,"name":"Table","plural":"Everything","picture":"tool-everything","builtin":true,"engine":"everything","record_route":"/lists/[table]","columns":[  {    "key": "name",    "name": "Table",    "type": "text",    "required": true,    "readonly": true  },  {    "key": "count",    "name": "Count",    "type": "number",    "readonly": true,    "units": {      "one": "{count_one}",      "other": "{count_other}",      "zero": "0 {count_other}"    },    "fact": true,    "reading": "{value}"  },  {    "key": "changed",    "name": "Last changed",    "type": "date",    "readonly": true  },  {    "key": "source_absent",    "name": "Not installed",    "type": "text",    "readonly": true,    "reading": "reads {value}, whose tool is not installed here",    "fact": false  },  {  "key": "count_one",  "type": "text",  "readonly": true},  {  "key": "count_other",  "type": "text",  "readonly": true}],"title":"name","date":null,"project":null,"order":null,"slip":{"title":"name","subtitle":"count","trailing":"changed","photo":null,"toggle":null},"tile":{"face":"slip-list"},"page":[{"heading":null,"columns":["name","count","changed"]}],"add":false,"empty":{"title":"No tables in this database yet"},"delete":false,"instructions":"Every table in this database, one line each, with how many records it holds and when one last changed. A line opens that table's own list. The list is read only; records are added and changed in their own tools.","parts": {    "shape": "sheet",    "head": {      "facts": [        "count",        "changed"      ]    },    "links": [],    "lists": [],    "acts": {      "more": []    },    "cards": [      {"column": "count"},      {"column": "changed"}    ]  },  "tool":{"name":"Everything","key":"everything","icon":"library","card_stock":"grey","route":"/everything","purpose":"Search and browse the records in this database."},  "tables": []}