Cotton code
133 lines · 2.3 KB · JSONRaw
{  "format_version": 1,  "id": "story_note",  "name": "Note",  "plural": "Notes",  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "story",      "name": "Story",      "type": "link",      "link_to": "story_story",      "required": true    },    {      "key": "title",      "name": "Title",      "type": "text",      "placeholder": "What is this about?"    },    {      "key": "body",      "name": "Note",      "type": "longtext"    },    {      "key": "scene",      "name": "Scene",      "type": "link",      "link_to": "story_scene"    }  ],  "seal": {    "clear": [      "story",      "scene"    ],    "blind": [      "title",      "body"    ]  },  "title": "title",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "title",    "subtitle": "body",    "trailing": null,    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "card": {    "face": "note.card",    "fields": [      {        "slot": "title",        "column": "title"      },      {        "slot": "body",        "column": "body"      },      {        "slot": "crumb",        "column": "scene"      }    ]  },  "page": [    {      "heading": null,      "columns": [        "title",        "scene"      ]    },    {      "heading": "Note",      "columns": [        "body"      ]    }  ],  "sort": {    "column": "title",    "descending": false  },  "create": {    "label": "New note"  },  "empty": {    "title": "No notes yet",    "message": "Keep ideas, research and things to fix here."  },  "deletion": {    "bin": true  },  "links": [    {      "label": "Deleted",      "table": "bin",      "where": {        "table": "story_note"      }    }  ],  "commands": [    {      "id": "delete",      "label": "Remove",      "kind": "delete",      "verb": "delete_record",      "data": {        "table": "story_note"      },      "confirm": "It can come back from Deleted, and Undo brings it back now.",      "bindings": {        "id": "$id"      },      "receipt": "Removed",      "does": "destroys",      "object": "bin"    }  ],  "instructions": "A note is anything the owner wants to keep beside a story: an idea, research, something to fix. It may name the scene it is about."}