Cotton code
148 lines · 2.8 KB · JSONRaw
{  "format_version": 1,  "id": "everything",  "list_route": "/lists/everything",  "setup": true,  "name": "Table",  "plural": "Everything",  "picture": "tool-everything",  "builtin": true,  "voice_words": [],  "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"      }    ]  },  "card": {    "face": "plain",    "fields": [      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "count"      },      {        "slot": "facts",        "column": "changed"      }    ]  },  "tables": [],  "tool": {    "views": [      {        "id": "all",        "label": "All",        "is_default": true,        "visibility": "owner",        "read": {          "table": "everything"        }      }    ],    "name": "Everything",    "key": "everything",    "icon": "library",    "card_stock": "grey",    "route": "/lists/everything",    "purpose": "Search and browse the records in this database."  }}