Cotton code
133 lines · 2.3 KB · JSONRaw
{  "format_version": 1,  "id": "kitchen_chef",  "name": "Chef",  "plural": "Chef",  "picture": null,  "builtin": false,  "engine": null,  "visibility": "public",  "columns": [    {      "key": "name",      "name": "Chef",      "type": "text",      "required": true    },    {      "key": "photo",      "name": "Photo",      "type": "photo"    },    {      "key": "bio",      "name": "About",      "type": "longtext"    },    {      "key": "from_place",      "name": "From",      "type": "text"    },    {      "key": "cooking_since",      "name": "Cooking here since",      "type": "date"    },    {      "key": "rating",      "name": "Rating",      "type": "number",      "reading": "★ {value}",      "decimals": 1    },    {      "key": "reviews",      "name": "Reviews",      "type": "number",      "reading": "{value} reviews"    }  ],  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "photo": "photo",    "toggle": null,    "subtitle": [      "rating",      "reviews"    ],    "trailing": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "photo",        "name",        "from_place",        "cooking_since",        "rating",        "reviews"      ]    },    {      "heading": "About",      "columns": [        "bio"      ]    }  ],  "sort": {    "column": "name",    "descending": false  },  "empty": {    "title": "No chef yet",    "message": "Say who cooks here."  },  "card": {    "face": "nancy.chef",    "fields": [      {        "slot": "photo",        "column": "photo"      },      {        "slot": "title",        "column": "name"      },      {        "slot": "subtitle",        "column": "from_place"      },      {        "slot": "body",        "column": "bio"      },      {        "slot": "date",        "column": "cooking_since",        "form": "relative"      },      {        "slot": "facts",        "column": "rating",        "also": [          "reviews",          "cooking_since"        ]      }    ],    "pages": [      "bio"    ]  },  "instructions": "Who cooks here: the chef's name, photo, where she is from, her story, since when she has cooked for customers, and her rating over all reviews."}