Cotton code
124 lines · 2.5 KB · JSONRaw
{  "format_version": 1,  "id": "backup",  "name": "Backup",  "plural": "Backups",  "picture": null,  "builtin": true,  "engine": "backup",  "columns": [    {      "key": "state",      "name": "Daily copy",      "type": "choice",      "readonly": true,      "choices": [        "ok",        "stale",        "no disk"      ],      "labels": {        "ok": "Copied today",        "stale": "No recent copy",        "no disk": "No backup disk"      }    },    {      "key": "last_at",      "name": "Newest copy",      "type": "date",      "readonly": true,      "fact": true,      "reading": "copied {value}",      "format": "calendar-datetime"    },    {      "key": "kept",      "name": "Copies kept",      "type": "number",      "readonly": true    },    {      "key": "last_error",      "name": "What went wrong",      "type": "longtext",      "readonly": true    }  ],  "title": "state",  "voice_words": [],  "date": null,  "project": null,  "order": null,  "slip": {    "title": "state",    "subtitle": [      "last_error"    ],    "trailing": null,    "photo": null,    "toggle": null,    "caption": {      "dates": [],      "fields": [        "last_at"      ]    }  },  "tile": {    "face": "slip-list"  },  "empty": {    "title": "No backup to show",    "message": "The Mac that serves your databases answers this page. When its backup disk is attached, each database's daily copy shows here."  },  "page": [    {      "heading": null,      "columns": [        "state",        "last_at",        "kept",        "last_error"      ]    }  ],  "add": false,  "delete": false,  "parts": {    "shape": "sheet",    "head": {      "facts": [        "last_at"      ]    },    "links": [],    "lists": [],    "acts": {      "more": []    },    "cards": [      {        "column": "last_error",        "width": "full",        "when": {          "column": "last_error",          "present": true        }      },      {        "column": "kept"      }    ]  },  "tables": [],  "instructions": "One row per database the serving Mac copies to its backup disk each day, read from that Mac each time the page opens: whether the newest daily copy is recent, when it was made, how many copies the disk keeps, and what went wrong when a copy is missing. Nothing here is stored or edited.",  "card": {    "face": "plain",    "fields": [      { "slot": "title", "column": "state" },      { "slot": "body", "column": "last_error" },      { "slot": "facts", "column": "last_at", "also": ["kept"] }    ]  }}