Cotton code
134 lines · 2.7 KB · JSONRaw
{  "format_version": 1,  "id": "journal",  "name": "Journal entry",  "plural": "Journal",  "record_route": "/notes/note/[id]",  "picture": {    "photo": "photo:499990c3b75f1ca2b4fd2a4904cbd92e2d0dc8c3558236f5e9968520d8ca119a",    "object": "tool-journal"  },  "builtin": true,  "delete": false,  "engine": "journal",  "record_kind": "note",  "pins": true,  "columns": [    {      "key": "title",      "name": "Title",      "type": "text"    },    {      "key": "body",      "type": "longtext",      "placeholder": "What happened today?",      "name": "Entry"    },    {      "key": "journal_date",      "name": "Day",      "type": "date",      "readonly": true    },    {      "key": "project_id",      "name": "Project",      "type": "link",      "link_to": "project",      "readonly": true    }  ],  "title": "title",  "date": "journal_date",  "project": "project_id",  "order": null,  "slip": {    "title": "title",    "subtitle": "body",    "trailing": "journal_date",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list",    "current": {      "column": "journal_date",      "days": 7    }  },  "page": [    {      "heading": null,      "columns": [        "journal_date",        "title",        "body"      ]    },    {      "heading": "Filed under",      "columns": [        "project_id"      ]    }  ],  "listed_when": "body",  "sort": {    "column": "journal_date",    "descending": true  },  "instructions": "A journal page is one day's writing, one page per day (and per project when it is scoped to one). The day is a calendar date, not a moment, so add to the existing page for that day instead of starting another. Write only what the person said happened; never fill a day in for them.",  "create": {    "label": "Today's page",    "path": "/notes/journal-today"  },  "empty": {    "title": "Nothing written yet.",    "message": "Tap + to write about today."  },  "append": true,  "parts": {    "shape": "desk",    "head": {      "facts": []    },    "links": [],    "body": "body",    "lists": [],    "acts": {      "more": [        "open-project"      ]    },    "cards": [],    "strip": []  },  "tool": {    "name": "Journal",    "key": "journal",    "icon": "book-open",    "card_stock": "cream",    "route": "/journal",    "figures": [      {        "read": "journalUnwritten",        "many": "Today's page is blank"      }    ]  ,"purpose":"A page for each day’s notes."},  "tables": [],  "page_parts": [    "title",    "grid",    "content"  ],  "commands": [    {      "id": "open-project",      "label": "Open project",      "kind": "open",      "opens": "project_id"    }  ]}