Cotton code
95 lines · 1.9 KB · JSONRaw
{  "views": [    {      "id": "today",      "label": "Today",      "visibility": "owner",      "is_default": true,      "read": {        "table": "event",        "section": "today",        "empty": {          "line": "empty_views.calendar.today",          "table": true        }      }    },    {      "id": "upcoming",      "label": "Upcoming",      "visibility": "owner",      "is_default": false,      "read": {        "table": "event",        "section": "upcoming",        "empty": {          "line": "empty_views.calendar.upcoming",          "table": true        }      }    },    {      "id": "recurring",      "label": "Recurring",      "visibility": "owner",      "is_default": false,      "read": {        "table": "event",        "where": {          "rrule": {            "present": true          }        },        "empty": {          "line": "empty_views.calendar.recurring",          "table": true        }      }    },    {      "id": "all",      "label": "All",      "visibility": "owner",      "is_default": false,      "read": {        "table": "event"      }    }  ],  "id": "calendar",  "name": "Calendar",  "purpose": "Events, appointments and time you have planned.",  "picture": {    "photo": "photo:a4c0a1a6ab854cbc99f2481f788b16b76214b2133e43df2502d694498861624f",    "object": "tool-calendar"  },  "card_stock": "sage",  "tables": [    "event",    "vault_key"  ],  "instructions": "",  "automations": [],  "acts": [    {      "id": "google_connect",      "label": "Connect Google Calendar",      "object": "arrow"    },    {      "id": "google_disconnect",      "label": "Disconnect Google",      "asks": true,      "object": "cross"    }  ],  "server": {    "needs": true,    "line": "Google Calendar arrives through your Cotton server."  },  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}